|
|
@@ -41,6 +41,7 @@
|
|
|
%define V_net_bgp 0.07
|
|
|
%define V_net_pcap 0.05
|
|
|
%define V_net_radius 1.44
|
|
|
+%define V_net_ip 1.20
|
|
|
|
|
|
# package information
|
|
|
Name: perl-net
|
|
|
@@ -53,7 +54,7 @@ Class: BASE
|
|
|
Group: Language
|
|
|
License: GPL/Artistic
|
|
|
Version: %{V_perl}
|
|
|
-Release: 20040422
|
|
|
+Release: 20040427
|
|
|
|
|
|
# package options
|
|
|
%option with_curl no
|
|
|
@@ -76,6 +77,7 @@ Source12: http://curl.haxx.se/libcurl/perl/Curl-easy-%{V_curl_easy}.tar.gz
|
|
|
Source13: http://www.cpan.org/modules/by-module/Net/Net-IMAP-Simple-%{V_net_imap_simple}.tar.gz
|
|
|
Source14: http://www.cpan.org/modules/by-module/Net/Net-BGP-%{V_net_bgp}.tar.gz
|
|
|
Source15: http://www.cpan.org/authors/id/K/KC/KCARNUT/Net-Pcap-%{V_net_pcap}.tar.gz
|
|
|
+Source16: http://www.cpan.org/authors/id/M/MA/MANU/Net-IP-%{V_net_ip}.tar.gz
|
|
|
Patch0: perl-net.patch
|
|
|
|
|
|
# build information
|
|
|
@@ -122,6 +124,7 @@ AutoReqProv: no
|
|
|
- Net::UNIX::Server (%{V_net_ext})
|
|
|
- Net::Radius (%{V_net_radius})
|
|
|
- RPC::PlServer, RPC::PlClient (%{V_plrpc})
|
|
|
+ - Net::IP (%{V_net_ip})
|
|
|
%if "%{with_curl}" == "yes"
|
|
|
- Curl::easy (%{V_curl_easy})
|
|
|
%endif
|
|
|
@@ -202,6 +205,11 @@ AutoReqProv: no
|
|
|
url = http://www.cpan.org/modules/by-module/Net/
|
|
|
regex = Net-Radius-(__VER__)\.tar\.gz
|
|
|
}
|
|
|
+ prog perl-net:Net-IP = {
|
|
|
+ version = %{V_net_ip}
|
|
|
+ url = http://www.cpan.org/authors/id/M/MA/MANU/
|
|
|
+ regex = Net-IP-(__VER__)\.tar\.gz
|
|
|
+ }
|
|
|
|
|
|
%prep
|
|
|
%setup -q -c
|
|
|
@@ -220,6 +228,7 @@ AutoReqProv: no
|
|
|
%setup -q -T -D -a 13
|
|
|
%setup -q -T -D -a 14
|
|
|
%setup -q -T -D -a 15
|
|
|
+ %setup -q -T -D -a 16
|
|
|
sed <%{PATCH0} -e 's;@l_prefix@;%{l_prefix};g' | %{l_patch} -p0 -b
|
|
|
|
|
|
%build
|
|
|
@@ -246,6 +255,7 @@ AutoReqProv: no
|
|
|
%if "%{with_pcap}" == "yes"
|
|
|
%{l_prefix}/bin/perl-openpkg -d %{SOURCE15} configure build install
|
|
|
%endif
|
|
|
+ %{l_prefix}/bin/perl-openpkg -d %{SOURCE16} configure build install
|
|
|
%{l_prefix}/bin/perl-openpkg -F perl-openpkg-files fixate cleanup
|
|
|
%{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} `cat perl-openpkg-files`
|
|
|
|