|
@@ -23,6 +23,11 @@
|
|
|
## SUCH DAMAGE.
|
|
## SUCH DAMAGE.
|
|
|
##
|
|
##
|
|
|
|
|
|
|
|
|
|
+# versions of individual parts
|
|
|
|
|
+%define V_perl 5.8.3
|
|
|
|
|
+%define V_asused 3.72
|
|
|
|
|
+%define V_netwhois 1.19
|
|
|
|
|
+
|
|
|
# package information
|
|
# package information
|
|
|
Name: ripe-asused
|
|
Name: ripe-asused
|
|
|
Summary: RIPE NCC Autonomous Systems Query
|
|
Summary: RIPE NCC Autonomous Systems Query
|
|
@@ -33,45 +38,60 @@ Distribution: OpenPKG
|
|
|
Class: EVAL
|
|
Class: EVAL
|
|
|
Group: Network
|
|
Group: Network
|
|
|
License: RIPE NCC
|
|
License: RIPE NCC
|
|
|
-Version: 3.72
|
|
|
|
|
-Release: 20040218
|
|
|
|
|
|
|
+Version: %{V_asused}
|
|
|
|
|
+Release: 20040326
|
|
|
|
|
|
|
|
# list of sources
|
|
# list of sources
|
|
|
-Source0: ftp://ftp.ripe.net/tools/asused-%{version}.tar.gz
|
|
|
|
|
-Source1: asused.conf
|
|
|
|
|
|
|
+Source0: ftp://ftp.ripe.net/tools/asused-%{V_asused}.tar.gz
|
|
|
|
|
+Source1: http://www.cpan.org/modules/by-module/Net/Net-Whois-RIPE-%{V_netwhois}.tar.gz
|
|
|
|
|
+Source2: asused.conf
|
|
|
|
|
|
|
|
# build information
|
|
# build information
|
|
|
Prefix: %{l_prefix}
|
|
Prefix: %{l_prefix}
|
|
|
BuildRoot: %{l_buildroot}
|
|
BuildRoot: %{l_buildroot}
|
|
|
-BuildPreReq: OpenPKG, openpkg >= 20040130, perl, perl-openpkg >= 5.8.3-20040126
|
|
|
|
|
-PreReq: OpenPKG, openpkg >= 20040130, perl
|
|
|
|
|
|
|
+BuildPreReq: OpenPKG, openpkg >= 20040130, perl >= %{V_perl}, perl-openpkg >= %{V_perl}-20040126
|
|
|
|
|
+PreReq: OpenPKG, openpkg >= 20040130, perl >= %{V_perl}
|
|
|
AutoReq: no
|
|
AutoReq: no
|
|
|
AutoReqProv: no
|
|
AutoReqProv: no
|
|
|
|
|
|
|
|
%description
|
|
%description
|
|
|
- Asused is a tool for ISP IP administrators to check various aspects
|
|
|
|
|
- of IP allocations and assigments of Autonomous Systems (AS) as
|
|
|
|
|
- stored in the RIPE NCC database.
|
|
|
|
|
|
|
+ Asused is a perl based toolset for ISP IP administrators to check
|
|
|
|
|
+ various aspects of IP allocations and assigments of Autonomous
|
|
|
|
|
+ Systems (AS) as stored in the RIPE NCC database.
|
|
|
|
|
+
|
|
|
|
|
+ Perl modules for use with RIPE and WHOIS servers:
|
|
|
|
|
+ - RipeWhois::FormatMode (1.03)
|
|
|
|
|
+ - RipeWhois::RipeWhois (1.03)
|
|
|
|
|
+ - Whois::Whois (1.04)
|
|
|
|
|
|
|
|
%track
|
|
%track
|
|
|
- prog ripe-asused = {
|
|
|
|
|
- version = %{version}
|
|
|
|
|
|
|
+ prog ripe-asused:asused = {
|
|
|
|
|
+ version = %{V_asused}
|
|
|
url = ftp://ftp.ripe.net/tools/
|
|
url = ftp://ftp.ripe.net/tools/
|
|
|
regex = asused-(__VER__)\.tar\.gz
|
|
regex = asused-(__VER__)\.tar\.gz
|
|
|
}
|
|
}
|
|
|
|
|
+ prog ripe-asused:netwhois = {
|
|
|
|
|
+ version = %{V_netwhois}
|
|
|
|
|
+ url = ftp://ftp.ripe.net/tools/
|
|
|
|
|
+ regex = Net-Whois-RIPE-(__VER__)\.tar\.gz
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
%prep
|
|
%prep
|
|
|
- %setup -q -n asused-%{version}
|
|
|
|
|
|
|
+ %setup -q -c
|
|
|
|
|
+ %setup -q -T -D -a 0
|
|
|
|
|
+ %setup -q -T -D -a 1
|
|
|
|
|
|
|
|
%build
|
|
%build
|
|
|
|
|
|
|
|
%install
|
|
%install
|
|
|
- # install program
|
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
+
|
|
|
|
|
+ # routine perl module handling
|
|
|
%{l_prefix}/bin/perl-openpkg prepare
|
|
%{l_prefix}/bin/perl-openpkg prepare
|
|
|
|
|
+ %{l_prefix}/bin/perl-openpkg -d %{SOURCE0} configure build install
|
|
|
|
|
+ %{l_prefix}/bin/perl-openpkg -d %{SOURCE1} configure build install
|
|
|
|
|
|
|
|
# install manual page
|
|
# install manual page
|
|
|
- %{l_prefix}/bin/perl-openpkg configure build install
|
|
|
|
|
eval `%{l_prefix}/bin/perl -V:installarchlib -V:installprivlib -V:installvendorarch -V:installvendorlib`
|
|
eval `%{l_prefix}/bin/perl -V:installarchlib -V:installprivlib -V:installvendorarch -V:installvendorlib`
|
|
|
%{l_prefix}/bin/pod2man $RPM_BUILD_ROOT$installvendorlib/asused.pod >asused.1
|
|
%{l_prefix}/bin/pod2man $RPM_BUILD_ROOT$installvendorlib/asused.pod >asused.1
|
|
|
rm -f $RPM_BUILD_ROOT$installvendorlib/asused.pod
|
|
rm -f $RPM_BUILD_ROOT$installvendorlib/asused.pod
|