commit 4dc8c0801f4b9d1b5e14696c1d4fd3efd00d1a3b Author: Yanko Kaneti <yaneti@xxxxxxxxxxx> Date: Thu Jul 19 16:26:11 2012 +0300 Initial import .gitignore | 1 + perl-SNMP-Simple.spec | 57 +++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 59 insertions(+), 0 deletions(-) --- diff --git a/.gitignore b/.gitignore index e69de29..69021cf 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/SNMP-Simple-0.02.tar.gz diff --git a/perl-SNMP-Simple.spec b/perl-SNMP-Simple.spec new file mode 100644 index 0000000..3da9456 --- /dev/null +++ b/perl-SNMP-Simple.spec @@ -0,0 +1,57 @@ +Name: perl-SNMP-Simple +Version: 0.02 +Release: 2%{?dist} +Summary: Shortcuts for SNMP + +License: GPL+ or Artistic +URL: http://search.cpan.org/~ian/SNMP-Simple-0.02/lib/SNMP/Simple.pm +Source0: http://search.cpan.org/CPAN/authors/id/I/IA/IAN/SNMP-Simple-%{version}.tar.gz + +BuildArch: noarch +BuildRequires: perl(ExtUtils::MakeMaker) +BuildRequires: perl(Test::More) +BuildRequires: perl(SNMP) +BuildRequires: perl(Carp) +BuildRequires: perl(Test::Pod) >= 1.14 +BuildRequires: perl(Test::Pod::Coverage) >= 1.04 + +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) + +%{?perl_default_filter} + +%description +This module provides shortcuts when performing repetitive information-retrieval +tasks with SNMP. + +%prep +%setup -q -n SNMP-Simple-%{version} + + +%build +%{__perl} Makefile.PL INSTALLDIRS=vendor +make %{?_smp_mflags} + + +%install +make pure_install DESTDIR=$RPM_BUILD_ROOT +find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';' +find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null ';' +%{_fixperms} $RPM_BUILD_ROOT/* + + +%check +make test + + +%files +%doc Changes README examples +%{perl_vendorlib}/* +%{_mandir}/man3/*.3* + + +%changelog +* Wed Jul 18 2012 Yanko Kaneti <yaneti@xxxxxxxxxxx> 0.02-2 +- Add some additional BR suggested by the package review. + +* Fri Jul 13 2012 Yanko Kaneti <yaneti@xxxxxxxxxxx> 0.02-1 +- Initial attempt. Specfile mostly autogenerated by rpmdev-newspec diff --git a/sources b/sources index e69de29..1bb1c56 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +d5725a7279c7d3e50d6b5fe6e49d9a7a SNMP-Simple-0.02.tar.gz -- 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