perl-POE-Component-SNMP/perl-POE-Component-SNMP.spec

Name: perl-POE-Component-SNMP
Summary: Perl module that implements a POE interface to Net::SNMP
Version: 1.10.06
Release: 1
License: Artistic/GPL
Group: Applications/CPAN
URL: http://search.cpan.org/dist/POE-Component-SNMP/
Description: perl-POE-Component-SNMP is a Perl module that implements a POE interface to Net::SNMP.

CentOS 7 x86_64

The build was succesful. The following RPMs were generated:

Build Status

CentOS 6 x86_64

The build was succesful. The following RPMs were generated:

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 POE-Component-SNMP
%define real_version 1.1006

Summary: Perl module that implements a POE interface to Net::SNMP
Name: perl-POE-Component-SNMP
Version: 1.10.06
Release: 1%{?dist}
License: Artistic/GPL
Group: Applications/CPAN
URL: http://search.cpan.org/dist/POE-Component-SNMP/

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

BuildArch: noarch
BuildRequires: perl
BuildRequires: perl(ExtUtils::MakeMaker)

%description
perl-POE-Component-SNMP is a Perl module that implements a POE interface
to Net::SNMP.

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

%build
echo | %{__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 up docs
find eg/ -type f -exec %{__chmod} a-x {} \;

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

%files
%defattr(-, root, root, 0755)
%doc Changes MANIFEST META.yml NOTES README eg/
%doc %{_mandir}/man3/POE::Component::SNMP.3pm*
%dir %{perl_vendorlib}/POE/
%dir %{perl_vendorlib}/POE/Component/
%{perl_vendorlib}/POE/Component/SNMP/
%{perl_vendorlib}/POE/Component/SNMP.pm

%changelog
* Sat Dec 26 2015 Dries Verachtert <dries.verachtert@dries.eu> - 1.10.06-1
- Updated to release 1.10.06.

* Fri Jul  3 2009 Christoph Maser <cmr@financial.com> - 1.10.01-1
- Updated to version 1.10.01.

* Mon Aug 06 2007 Dag Wieers <dag@wieers.com> - 1.07-1
- Initial package. (using DAR)