%define pdir Net
%define pnam SNMP
Summary: Object oriented interface to SNMP
-Summary(pl): Objektowo zorientowany interfejs do SNMP
+Summary(pl): Obiektowo zorientowany interfejs do SNMP
Name: perl-Net-SNMP
-Version: 4.0.1
-Release: 3
-License: GPL
+Version: 4.1.2
+Release: 1
+License: GPL/Artistic
Group: Development/Languages/Perl
-Source0: ftp://ftp.perl.org/pub/CPAN/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
-BuildRequires: rpm-perlprov >= 3.0.3-16
-BuildRequires: perl >= 5.6.1
+Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
+# Source0-md5: e6b761db6115b0b1fe5446e220abaa4a
+BuildRequires: perl-devel >= 5.6.1
BuildRequires: perl-Crypt-DES >= 2.0.3
BuildRequires: perl-Digest-HMAC
BuildRequires: perl-Digest-SHA1
+BuildRequires: rpm-perlprov >= 4.1-13
Requires: perl-Crypt-DES >= 2.0.3
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
Object oriented interface to SNMP.
%description -l pl
-Objektowo zorientowany interfejs do SNMP.
+Obiektowo zorientowany interfejs do SNMP.
%prep
%setup -q -n %{pdir}-%{pnam}-%{version}
%build
-perl Makefile.PL
+%{__perl} Makefile.PL \
+ INSTALLDIRS=vendor
%{__make}
%install
rm -rf $RPM_BUILD_ROOT
-%{__make} install DESTDIR=$RPM_BUILD_ROOT
-
-gzip -9nf README* Changes
+%{__make} install \
+ DESTDIR=$RPM_BUILD_ROOT
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
-%doc *.gz
+%doc README* Changes
%attr(755,root,root) %{_bindir}/*
-%{perl_sitelib}/Net/*.pm
-%{perl_sitelib}/Net/SNMP
+%{perl_vendorlib}/Net/*.pm
+%{perl_vendorlib}/Net/SNMP
%{_mandir}/man?/*