[perl-Nagios-Plugin] 0.36 bump and spec modernization

Petr Šabata psabata at fedoraproject.org
Mon Apr 2 10:17:50 UTC 2012


commit 8ccd5c0e319bfe08f21c119bf9bce8bf05d54b5b
Author: Petr Šabata <contyk at redhat.com>
Date:   Mon Apr 2 12:13:45 2012 +0200

    0.36 bump and spec modernization

 .gitignore              |    1 +
 perl-Nagios-Plugin.spec |   38 +++++++++++++++++++++-----------------
 sources                 |    2 +-
 3 files changed, 23 insertions(+), 18 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e0f8e80..3c6fc42 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,3 @@
 Nagios-Plugin-0.34.tar.gz
 /Nagios-Plugin-0.35.tar.gz
+/Nagios-Plugin-0.36.tar.gz
diff --git a/perl-Nagios-Plugin.spec b/perl-Nagios-Plugin.spec
index e442946..0903217 100644
--- a/perl-Nagios-Plugin.spec
+++ b/perl-Nagios-Plugin.spec
@@ -1,24 +1,28 @@
-%global libname Nagios-Plugin
-
-Name:           perl-%{libname}
-Version:        0.35
-Release:        5%{?dist}
+Name:           perl-Nagios-Plugin
+Version:        0.36
+Release:        1%{?dist}
 Summary:        Family of perl modules to streamline writing Nagios plugins
 License:        GPL+ or Artistic
 Group:          Development/Libraries
-URL:            http://search.cpan.org/dist/%{libname}/
-Source0:        http://www.cpan.org/modules/by-module/Nagios/%{libname}-%{version}.tar.gz
+URL:            http://search.cpan.org/dist/Nagios-Plugin/
+Source0:        http://www.cpan.org/modules/by-module/Nagios/Nagios-Plugin-%{version}.tar.gz
 BuildArch:      noarch
+BuildRequires:  perl(base)
+BuildRequires:  perl(constant)
+BuildRequires:  perl(Carp)
 BuildRequires:  perl(Class::Accessor)
+BuildRequires:  perl(Class::Accessor::Fast)
 BuildRequires:  perl(Config::Tiny)
+BuildRequires:  perl(Data::Dumper)
+BuildRequires:  perl(Exporter)
 BuildRequires:  perl(ExtUtils::MakeMaker)
+BuildRequires:  perl(File::Spec)
+BuildRequires:  perl(Getopt::Long)
+BuildRequires:  perl(IO::File)
 BuildRequires:  perl(Math::Calc::Units)
 BuildRequires:  perl(Params::Validate)
 BuildRequires:  perl(Test::More) >= 0.62
-Requires:       perl(Class::Accessor)
-Requires:       perl(Class::Accessor::Fast)
-Requires:       perl(Config::Tiny)
-Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
+Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
 
 %description
 Nagios::Plugin and its associated Nagios::Plugin::* modules are a family of
@@ -29,30 +33,31 @@ providing a simpler functional interface to a useful subset of the
 available functionality.
 
 %prep
-%setup -q -n %{libname}-%{version}
+%setup -q -n Nagios-Plugin-%{version}
 
 %build
-%{__perl} Makefile.PL INSTALLDIRS=vendor
+perl Makefile.PL INSTALLDIRS=vendor
 make %{?_smp_mflags}
 
 %install
 make pure_install PERL_INSTALL_ROOT=%{buildroot}
-
 find %{buildroot} -type f -name .packlist -exec rm -f {} \;
 find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \;
-
 %{_fixperms} %{buildroot}/*
 
 %check
 make test
 
 %files
-%defattr(-,root,root,-)
 %doc Changes README
 %{perl_vendorlib}/Nagios
 %{_mandir}/man3/Nagios::Plugin*
 
 %changelog
+* Mon Apr 02 2012 Petr Šabata <contyk at redhat.com> - 0.36-1
+- Modernize the spec and bump to 0.36
+- Correct dependencies
+
 * Fri Jan 13 2012 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.35-5
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
 
@@ -82,4 +87,3 @@ make test
 
 * Thu Aug 13 2009 Ruben Kerkhof <ruben at rubenkerkhof.com> 0.33-1
 - Initial import
-
diff --git a/sources b/sources
index 773b7f7..bbd9a34 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-96b3510798e28f3ebed8c23f4225e80e  Nagios-Plugin-0.35.tar.gz
+b897f6d5d66a655dde7caec579efcf2e  Nagios-Plugin-0.36.tar.gz


More information about the scm-commits mailing list