|
@@ -42,6 +42,7 @@
|
|
|
%define V_net_pcap 0.05
|
|
%define V_net_pcap 0.05
|
|
|
%define V_net_radius 1.44
|
|
%define V_net_radius 1.44
|
|
|
%define V_net_ip 1.20
|
|
%define V_net_ip 1.20
|
|
|
|
|
+%define V_net_packet 1.27
|
|
|
|
|
|
|
|
# package information
|
|
# package information
|
|
|
Name: perl-net
|
|
Name: perl-net
|
|
@@ -54,7 +55,7 @@ Class: BASE
|
|
|
Group: Language
|
|
Group: Language
|
|
|
License: GPL/Artistic
|
|
License: GPL/Artistic
|
|
|
Version: %{V_perl}
|
|
Version: %{V_perl}
|
|
|
-Release: 20040918
|
|
|
|
|
|
|
+Release: 20041009
|
|
|
|
|
|
|
|
# package options
|
|
# package options
|
|
|
%option with_curl no
|
|
%option with_curl no
|
|
@@ -77,7 +78,8 @@ 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
|
|
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
|
|
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
|
|
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
|
|
|
|
|
|
|
+Source16: http://www.cpan.org/modules/by-module/Net/Net-Packet-%{V_net_packet}.tar.gz
|
|
|
|
|
+Source17: http://www.cpan.org/authors/id/M/MA/MANU/Net-IP-%{V_net_ip}.tar.gz
|
|
|
Patch0: perl-net.patch
|
|
Patch0: perl-net.patch
|
|
|
|
|
|
|
|
# build information
|
|
# build information
|
|
@@ -85,8 +87,8 @@ Prefix: %{l_prefix}
|
|
|
BuildRoot: %{l_buildroot}
|
|
BuildRoot: %{l_buildroot}
|
|
|
BuildPreReq: OpenPKG, openpkg >= 20040130, perl >= %{V_perl}, perl-openpkg >= %{V_perl}-20040126
|
|
BuildPreReq: OpenPKG, openpkg >= 20040130, perl >= %{V_perl}, perl-openpkg >= %{V_perl}-20040126
|
|
|
PreReq: OpenPKG, openpkg >= 20040130, perl >= %{V_perl}
|
|
PreReq: OpenPKG, openpkg >= 20040130, perl >= %{V_perl}
|
|
|
-BuildPreReq: perl-crypto
|
|
|
|
|
-PreReq: perl-crypto
|
|
|
|
|
|
|
+BuildPreReq: perl-crypto, perl-sys, perl-time
|
|
|
|
|
+PreReq: perl-crypto, perl-sys, perl-time
|
|
|
%if "%{with_curl}" == "yes"
|
|
%if "%{with_curl}" == "yes"
|
|
|
BuildPreReq: curl
|
|
BuildPreReq: curl
|
|
|
PreReq: curl
|
|
PreReq: curl
|
|
@@ -131,6 +133,7 @@ AutoReqProv: no
|
|
|
- Net::BGP (%{V_net_bgp})
|
|
- Net::BGP (%{V_net_bgp})
|
|
|
%if "%{with_pcap}" == "yes"
|
|
%if "%{with_pcap}" == "yes"
|
|
|
- Net::Pcap (%{V_net_pcap})
|
|
- Net::Pcap (%{V_net_pcap})
|
|
|
|
|
+ - Net::Packet (%{V_net_packet})
|
|
|
%endif
|
|
%endif
|
|
|
|
|
|
|
|
%track
|
|
%track
|
|
@@ -219,6 +222,11 @@ AutoReqProv: no
|
|
|
url = http://www.cpan.org/authors/id/M/MA/MANU/
|
|
url = http://www.cpan.org/authors/id/M/MA/MANU/
|
|
|
regex = Net-IP-(__VER__)\.tar\.gz
|
|
regex = Net-IP-(__VER__)\.tar\.gz
|
|
|
}
|
|
}
|
|
|
|
|
+ prog perl-net:Net-Packet = {
|
|
|
|
|
+ version = %{V_net_packet}
|
|
|
|
|
+ url = http://www.cpan.org/authors/id/M/MA/MANU/
|
|
|
|
|
+ regex = Net-Packet-(__VER__)\.tar\.gz
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
%prep
|
|
%prep
|
|
|
%setup -q -c
|
|
%setup -q -c
|
|
@@ -238,6 +246,7 @@ AutoReqProv: no
|
|
|
%setup -q -T -D -a 14
|
|
%setup -q -T -D -a 14
|
|
|
%setup -q -T -D -a 15
|
|
%setup -q -T -D -a 15
|
|
|
%setup -q -T -D -a 16
|
|
%setup -q -T -D -a 16
|
|
|
|
|
+ %setup -q -T -D -a 17
|
|
|
sed <%{PATCH0} -e 's;@l_prefix@;%{l_prefix};g' | %{l_patch} -p0 -b
|
|
sed <%{PATCH0} -e 's;@l_prefix@;%{l_prefix};g' | %{l_patch} -p0 -b
|
|
|
|
|
|
|
|
%build
|
|
%build
|
|
@@ -264,8 +273,9 @@ AutoReqProv: no
|
|
|
%{l_prefix}/bin/perl-openpkg -d %{SOURCE14} configure build install
|
|
%{l_prefix}/bin/perl-openpkg -d %{SOURCE14} configure build install
|
|
|
%if "%{with_pcap}" == "yes"
|
|
%if "%{with_pcap}" == "yes"
|
|
|
%{l_prefix}/bin/perl-openpkg -d %{SOURCE15} configure build install
|
|
%{l_prefix}/bin/perl-openpkg -d %{SOURCE15} configure build install
|
|
|
|
|
+ %{l_prefix}/bin/perl-openpkg -d %{SOURCE16} -A "INC='-I. %{l_cflags}'" -A "LIBS='%{l_ldflags} -lpcap'" configure build install
|
|
|
%endif
|
|
%endif
|
|
|
- %{l_prefix}/bin/perl-openpkg -d %{SOURCE16} configure build install
|
|
|
|
|
|
|
+ %{l_prefix}/bin/perl-openpkg -d %{SOURCE17} configure build install
|
|
|
%{l_prefix}/bin/perl-openpkg -F perl-openpkg-files fixate cleanup
|
|
%{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`
|
|
%{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} `cat perl-openpkg-files`
|
|
|
|
|
|