|
|
@@ -40,6 +40,7 @@
|
|
|
%define V_net_imap_simple 0.93
|
|
|
%define V_net_bgp 0.07
|
|
|
%define V_net_pcap 0.05
|
|
|
+%define V_net_radius 1.44
|
|
|
|
|
|
# package information
|
|
|
Name: perl-net
|
|
|
@@ -52,7 +53,7 @@ Class: BASE
|
|
|
Group: Language
|
|
|
License: GPL/Artistic
|
|
|
Version: %{V_perl}
|
|
|
-Release: 20040228
|
|
|
+Release: 20040311
|
|
|
|
|
|
# package options
|
|
|
%option with_curl no
|
|
|
@@ -69,11 +70,12 @@ Source6: http://www.cpan.org/modules/by-module/Net/Net-SNMP-%{V_net_snmp}.t
|
|
|
Source7: http://www.cpan.org/modules/by-module/Net/Net-TFTP-%{V_net_tftp}.tar.gz
|
|
|
Source8: http://www.cpan.org/modules/by-module/Net/Net-Telnet-%{V_net_telnet}.tar.gz
|
|
|
Source9: http://www.cpan.org/modules/by-module/Net/Net-Telnet-Cisco-%{V_net_telnet_cisco}.tar.gz
|
|
|
-Source10: http://www.cpan.org/modules/by-module/RPC/PlRPC-%{V_plrpc}.tar.gz
|
|
|
-Source11: http://curl.haxx.se/libcurl/perl/Curl-easy-%{V_curl_easy}.tar.gz
|
|
|
-Source12: 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-BGP-%{V_net_bgp}.tar.gz
|
|
|
-Source14: http://www.cpan.org/authors/id/K/KC/KCARNUT/Net-Pcap-%{V_net_pcap}.tar.gz
|
|
|
+Source10: http://www.cpan.org/modules/by-module/Net/Net-Radius-%{V_net_radius}.tar.gz
|
|
|
+Source11: http://www.cpan.org/modules/by-module/RPC/PlRPC-%{V_plrpc}.tar.gz
|
|
|
+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
|
|
|
Patch0: perl-net.patch
|
|
|
|
|
|
# build information
|
|
|
@@ -110,12 +112,13 @@ AutoReqProv: no
|
|
|
- Net::TCP::Server (%{V_net_ext})
|
|
|
- Net::TFTP (%{V_net_tftp})
|
|
|
- Net::Telnet (%{V_net_telnet})
|
|
|
- - Net::Telnet:Cisco (%{V_net_telnet_cisco})
|
|
|
+ - Net::Telnet::Cisco (%{V_net_telnet_cisco})
|
|
|
- Net::Time (%{V_libnet})
|
|
|
- Net::Time (%{V_libnet})
|
|
|
- Net::UDP (%{V_net_ext})
|
|
|
- Net::UNIX (%{V_net_ext})
|
|
|
- Net::UNIX::Server (%{V_net_ext})
|
|
|
+ - Net::Radius (%{V_net_radius})
|
|
|
- RPC::PlServer, RPC::PlClient (%{V_plrpc})
|
|
|
%if "%{with_curl}" == "yes"
|
|
|
- Curl::easy (%{V_curl_easy})
|
|
|
@@ -192,6 +195,11 @@ AutoReqProv: no
|
|
|
url = http://www.cpan.org/authors/id/K/KC/KCARNUT/
|
|
|
regex = Net-Pcap-(__VER__)\.tar\.gz
|
|
|
}
|
|
|
+ prog perl-net:Net-Radius = {
|
|
|
+ version = %{V_net_radius}
|
|
|
+ url = http://www.cpan.org/modules/by-module/Net/
|
|
|
+ regex = Net-Radius-(__VER__)\.tar\.gz
|
|
|
+ }
|
|
|
|
|
|
%prep
|
|
|
%setup -q -c
|
|
|
@@ -209,6 +217,7 @@ AutoReqProv: no
|
|
|
%setup -q -T -D -a 12
|
|
|
%setup -q -T -D -a 13
|
|
|
%setup -q -T -D -a 14
|
|
|
+ %setup -q -T -D -a 15
|
|
|
sed <%{PATCH0} -e 's;@l_prefix@;%{l_prefix};g' | %{l_patch} -p0 -b
|
|
|
|
|
|
%build
|
|
|
@@ -226,13 +235,14 @@ AutoReqProv: no
|
|
|
%{l_prefix}/bin/perl-openpkg -d %{SOURCE8} configure build install
|
|
|
%{l_prefix}/bin/perl-openpkg -d %{SOURCE9} configure build install
|
|
|
%{l_prefix}/bin/perl-openpkg -d %{SOURCE10} configure build install
|
|
|
-%if "%{with_curl}" == "yes"
|
|
|
%{l_prefix}/bin/perl-openpkg -d %{SOURCE11} configure build install
|
|
|
-%endif
|
|
|
+%if "%{with_curl}" == "yes"
|
|
|
%{l_prefix}/bin/perl-openpkg -d %{SOURCE12} configure build install
|
|
|
+%endif
|
|
|
%{l_prefix}/bin/perl-openpkg -d %{SOURCE13} configure build install
|
|
|
-%if "%{with_pcap}" == "yes"
|
|
|
%{l_prefix}/bin/perl-openpkg -d %{SOURCE14} configure build install
|
|
|
+%if "%{with_pcap}" == "yes"
|
|
|
+ %{l_prefix}/bin/perl-openpkg -d %{SOURCE15} configure build install
|
|
|
%endif
|
|
|
%{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`
|