commit a8063822e482859bd0461029529a3dc0a93ce304 Author: Petr Šabata <contyk@xxxxxxxxxx> Date: Mon Feb 18 16:32:02 2013 +0100 Fix the dependencies and clean the spec up a bit perl-POE-Component-SNMP.spec | 37 +++++++++++++++++-------------------- 1 files changed, 17 insertions(+), 20 deletions(-) --- diff --git a/perl-POE-Component-SNMP.spec b/perl-POE-Component-SNMP.spec index ad689c1..9aa685e 100644 --- a/perl-POE-Component-SNMP.spec +++ b/perl-POE-Component-SNMP.spec @@ -2,19 +2,26 @@ Name: perl-POE-Component-SNMP Version: 1.1006 Release: 8%{?dist} Summary: POE interface to Net::SNMP - Group: Development/Libraries License: GPL+ or Artistic URL: http://search.cpan.org/dist/POE-Component-SNMP Source0: http://search.cpan.org/CPAN/authors/id/R/RD/RDB/POE-Component-SNMP-%{version}.tar.gz -BuildArch: noarch -BuildRequires: perl(POE), perl(Net::SNMP), perl(Time::HiRes) +BuildArch: noarch +BuildRequires: perl +BuildRequires: perl(base) +BuildRequires: perl(Carp) +BuildRequires: perl(constant) +BuildRequires: perl(ExtUtils::MakeMaker) +BuildRequires: perl(Net::SNMP) +BuildRequires: perl(POE) +BuildRequires: perl(POE::Session) +BuildRequires: perl(POE::Kernel) +BuildRequires: perl(Scalar::Util) +BuildRequires: perl(strict) BuildRequires: perl(Test::More) - -# not picked up due to 'use base' +BuildRequires: perl(Time::HiRes) Requires: perl(Net::SNMP) - -Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) +Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) %description POE::Component::SNMP is a POE-ized wrapper around the the Net::SNMP module. @@ -24,38 +31,28 @@ Most of its arguments aren't even evaluated by POE, except for -alias and If you want to make non-blocking calls with Net::SNMP in a POE application, this is the module to do it with. - %prep %setup -q -n POE-Component-SNMP-%{version} - -# let's not have rpmlint complain... chmod -x eg/* - %build -echo | %{__perl} Makefile.PL INSTALLDIRS=vendor +perl Makefile.PL INSTALLDIRS=vendor make %{?_smp_mflags} %install -make pure_install PERL_INSTALL_ROOT=%{buildroot} +make pure_install DESTDIR=%{buildroot} find %{buildroot} -type f -name .packlist -exec rm -f {} ';' -find %{buildroot} -type d -depth -exec rmdir {} 2>/dev/null ';' - %{_fixperms} %{buildroot}/* - %check make test - %files -%defattr(-,root,root,-) -%doc Changes NOTES README eg/* +%doc Changes NOTES README eg %{perl_vendorlib}/* %{_mandir}/man3/*.3* - %changelog * Thu Feb 14 2013 Fedora Release Engineering <rel-eng@xxxxxxxxxxxxxxxxxxxxxxx> - 1.1006-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild -- Fedora Extras Perl SIG http://www.fedoraproject.org/wiki/Extras/SIGs/Perl perl-devel mailing list perl-devel@xxxxxxxxxxxxxxxxxxxxxxx https://admin.fedoraproject.org/mailman/listinfo/perl-devel