perl-Net-SNMP/perl-Net-SNMP.spec

Name: perl-Net-SNMP
Summary: Net-SNMP Perl module
Version: 5.2.0
Release: 1.2
License: distributable
Group: Applications/CPAN
URL: http://search.cpan.org/dist/Net-SNMP/
Description: The Net::SNMP module implements an object oriented interface to the Simple Network Management Protocol.

CentOS 7 x86_64

The build was succesful. The following RPMs were generated:

Build Status

CentOS 6 x86_64

The build could not start because of the following missing build requirements:

Build Status

Contents

The spec file used by the build system currently has the following contents:

# $Id$
# Authority: dag

%define perl_vendorlib %(eval "`%{__perl} -V:installvendorlib`"; echo $installvendorlib)
%define perl_vendorarch %(eval "`%{__perl} -V:installvendorarch`"; echo $installvendorarch)

%define real_name Net-SNMP

Summary: Net-SNMP Perl module
Name: perl-Net-SNMP
Version: 5.2.0
Release: 1.2%{?dist}
License: distributable
Group: Applications/CPAN
URL: http://search.cpan.org/dist/Net-SNMP/

Source: http://www.cpan.org/modules/by-module/Net/Net-SNMP-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root

BuildArch: noarch
BuildRequires: perl >= 0:5.6
BuildRequires: perl(Digest::HMAC)
BuildRequires: perl(Crypt::DES)
BuildRequires: perl(ExtUtils::MakeMaker)
Requires: perl >= 0:5.6

%description
The Net::SNMP module implements an object oriented interface to the
Simple Network Management Protocol.

%prep
%setup -n %{real_name}-%{version}

%build
%{__perl} Makefile.PL INSTALLDIRS="vendor" PREFIX="%{buildroot}%{_prefix}"
%{__make} %{?_smp_mflags}

%install
%{__rm} -rf %{buildroot}
%{__make} pure_install

### Clean up buildroot
find %{buildroot} -name .packlist -exec %{__rm} {} \;

%clean
%{__rm} -rf %{buildroot}

%files
%defattr(-, root, root, 0755)
%doc %{_mandir}/man1/snmpkey.1*
%doc %{_mandir}/man3/Net::SNMP.3pm*
%{_bindir}/snmpkey
%dir %{perl_vendorlib}/Net/
%{perl_vendorlib}/Net/SNMP/
%{perl_vendorlib}/Net/SNMP.pm

%changelog
* Sat Nov  5 2005 Dries Verachtert <dries@ulyssis.org> - 5.2.0-1
- Updated to release 5.2.0.

* Tue Mar 29 2005 Dag Wieers <dag@wieers.com> - 5.0.1-1
- Updated to release 5.0.1.

* Fri Mar 12 2004 Dag Wieers <dag@wieers.com> - 4.1.2-1
- Added perl-Crypt-DES BuildRequires. (Russ Herrold)

* Mon Jul 14 2003 Dag Wieers <dag@wieers.com> - 4.1.0-0
- Updated to release 4.1.0.

* Mon Feb 17 2003 Dag Wieers <dag@wieers.com> - 4.0.3-0
- Initial package. (using DAR)