File: Net-IP.spec.PL

package info (click to toggle)
libnet-ip-perl 1.26-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, stretch
  • size: 464 kB
  • ctags: 280
  • sloc: perl: 1,321; makefile: 17
file content (45 lines) | stat: -rw-r--r-- 760 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#$Revision: 1.1 $
do 'IP.pm';

open (X, ">Net-IP.spec") || die "$!\n";

while (<DATA>)
{
    s/\@VERSION\@/$Net::IP::VERSION/e;
    print X;
}
close(X);
__END__

Summary: Net::IP Perl module
Name: perl-Net-IP
Version: @VERSION@
Release: 1
Source0: Net-IP-%{version}.tar.gz
License: Perl
Group: Development/Languages
BuildRoot: %{_tmppath}/%{name}-root

%description
IP - Perl extension for manipulating IPv4/IPv6 addresses

%prep
%setup -q -n Net-IP-%{version}
%{__perl} Makefile.PL INSTALLSCRIPT=%{_prefix}/bin
%build
%{__make}

%install
rm -rf $RPM_BUILD_ROOT
%{__make} install PREFIX=$RPM_BUILD_ROOT%{_prefix}

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_prefix}/lib/perl5/site_perl/*/Net
%{_prefix}/lib/perl5/man/man3/*
%{_prefix}/bin