summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakub Bogusz2003-11-19 11:10:46 (GMT)
committercvs2git2012-06-24 12:13:13 (GMT)
commit003527642a3cc33cc31edb6df47f98fa2d41a14b (patch)
tree06c74c2b5fe102c61d96643a0af2de4625e1d33d
parentd4b276b6c3363100e052afbe372885b143335fe8 (diff)
downloadperl-SNMP-Info-003527642a3cc33cc31edb6df47f98fa2d41a14b.zip
perl-SNMP-Info-003527642a3cc33cc31edb6df47f98fa2d41a14b.tar.gz
- fixed License, added URL and tests, switched to vendordirs
- more informative summaries and descriptions Changed files: perl-SNMP-Info.spec -> 1.3
-rw-r--r--perl-SNMP-Info.spec55
1 files changed, 34 insertions, 21 deletions
diff --git a/perl-SNMP-Info.spec b/perl-SNMP-Info.spec
index 3ab44e6..b441983 100644
--- a/perl-SNMP-Info.spec
+++ b/perl-SNMP-Info.spec
@@ -1,17 +1,11 @@
+#
+%bcond_without tests # don't perform "make test"
+#
%include /usr/lib/rpm/macros.perl
%define pdir SNMP
%define pnam Info
-Summary: SNMP::Info Perl module
-Summary(cs): Modul SNMP::Info pro Perl
-Summary(da): Perlmodul SNMP::Info
-Summary(de): SNMP::Info Perl Modul
-Summary(es): Módulo de Perl SNMP::Info
-Summary(fr): Module Perl SNMP::Info
-Summary(it): Modulo di Perl SNMP::Info
-Summary(ja): SNMP::Info Perl ĽâĽ¸ĽĺĄźĽë
-Summary(ko): SNMP::Info ĆŢ ¸đÁŮ
-Summary(no): Perlmodul SNMP::Info
-Summary(pl): Moduł Perla SNMP::Info
+Summary: SNMP::Info - Perl interface to network devices and MIBs through SNMP
+Summary(pl): SNMP::Info - perlowy interfejs do urządzeń sieciowych i MIB-ów poprzez SNMP
Summary(pt): Módulo de Perl SNMP::Info
Summary(pt_BR): Módulo Perl SNMP::Info
Summary(ru): íĎÄŐĚŘ ÄĚŃ Perl SNMP::Info
@@ -21,39 +15,58 @@ Summary(zh_CN): SNMP::Info Perl ÄŁżé
Name: perl-SNMP-Info
Version: 0.7
Release: 1
-License: GPL
+License: BSD
Group: Development/Languages/Perl
Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
# Source0-md5: e9a139b420d270132b43c7f8470edc17
-BuildRequires: rpm-perlprov
-BuildRequires: perl-devel >= 5.6
+URL: http://snmp-info.sourceforge.net/
+%if %{with tests}
+BuildRequires: perl(Math::BigInt)
+BuildRequires: perl-SNMP >= 4
+%endif
+BuildRequires: perl-devel >= 5.8.0
+BuildRequires: rpm-perlprov >= 4.1-13
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
-SNMP::Info - interface to network devices and MIBs through SNMP.
+SNMP::Info gives an object oriented interface to information obtained
+through SNMP. This module is geared towards network devices.
+Subclasses exist for a number of network devices and common MIBs. The
+idea behind this module is to give a common interface to data from
+network devices, leaving the device-specific hacks behind the scenes
+in subclasses.
%description -l pl
-SNMP::Info - interfejs do urządzeń sieciowych i MIBów przez SNMP.
+SNMP::Info udostępnia zorientowany obiektowo interfejs do informacji
+uzyskiwanych poprzez SNMP. Moduł jest dostosowany do urządzeń
+sieciowych. Istnieją podklasy dla wielu urządzeń sieciowych i
+popularnych MIB-ów. Ideą tego modułu jest dostarczenie wspólnego
+interfejsu do danych z urządzeń sieciowych pozostawiając specyficzne
+dla konkretnych urządzeń sztuczki ukryte w podklasach.
%prep
%setup -q -n %{pdir}-%{pnam}-%{version}
%build
-%{__perl} Makefile.PL
+%{__perl} Makefile.PL \
+ INSTALLDIRS=vendor
%{__make}
+%{?with_tests:%{__make} test}
+
%install
rm -rf $RPM_BUILD_ROOT
-%{__make} install DESTDIR=$RPM_BUILD_ROOT
+%{__make} install \
+ DESTDIR=$RPM_BUILD_ROOT
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
-%doc ChangeLog
-%{perl_sitelib}/SNMP/Info.pm
-%{perl_sitelib}/SNMP/Info
+%doc COPYRIGHT ChangeLog DeviceMatrix.txt
+%{perl_vendorlib}/SNMP/Info.pm
+%{perl_vendorlib}/SNMP/Info
%{_mandir}/man3/*