[perl-Nagios-Plugin-WWW-Mechanize] Initial import (#681393)

Ken Dreyer ktdreyer at fedoraproject.org
Wed Mar 16 01:06:48 UTC 2011


commit 9b79f22b5fb3b96deace80b07eca4439b8937079
Author: Ken Dreyer <ktdreyer at phos.ktdreyer.com>
Date:   Tue Mar 15 19:07:00 2011 -0600

    Initial import (#681393)

 .gitignore                            |    1 +
 perl-Nagios-Plugin-WWW-Mechanize.spec |   62 +++++++++++++++++++++++++++++++++
 sources                               |    1 +
 3 files changed, 64 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..be8cff2 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/Nagios-Plugin-WWW-Mechanize-0.13.tar.gz
diff --git a/perl-Nagios-Plugin-WWW-Mechanize.spec b/perl-Nagios-Plugin-WWW-Mechanize.spec
new file mode 100644
index 0000000..c2d113f
--- /dev/null
+++ b/perl-Nagios-Plugin-WWW-Mechanize.spec
@@ -0,0 +1,62 @@
+Name:           perl-Nagios-Plugin-WWW-Mechanize
+Version:        0.13
+Release:        3%{?dist}
+Summary:        Login to a web page as a user and get data as a Nagios plugin
+License:        GPL+ or Artistic
+Group:          Development/Libraries
+URL:            http://search.cpan.org/dist/Nagios-Plugin-WWW-Mechanize/
+Source0:        http://search.cpan.org/CPAN/authors/id/T/TO/TONVOON/Nagios-Plugin-WWW-Mechanize-%{version}.tar.gz
+BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+BuildArch:      noarch
+BuildRequires:  perl >= 1:5.6.0
+BuildRequires:  perl(ExtUtils::MakeMaker)
+BuildRequires:  perl(Nagios::Plugin)
+BuildRequires:  perl(WWW::Mechanize)
+BuildRequires:  perl(Test::More)
+%{?el6:BuildRequires:  perl(Time::HiRes)}
+Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
+
+%description
+This module ties Nagios::Plugin with WWW::Mechanize so that there's less
+code in your perl script and the most common work is done for you.
+
+%prep
+%setup -q -n Nagios-Plugin-WWW-Mechanize-%{version}
+
+%build
+%{__perl} Makefile.PL INSTALLDIRS=vendor
+make %{?_smp_mflags}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+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
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(-,root,root,-)
+%doc Changes LICENSE
+%{perl_vendorlib}/*
+%{_mandir}/man3/*
+
+%changelog
+* Fri Mar 04 2011 ktdreyer at ktdreyer.com 0.13-2
+- use DESTDIR in place of PERL_INSTALL_ROOT
+- rm explicit Requires (Nagios::Plugin and WWW::Mechanize are auto-determined)
+- Wrap BuildRequires for EL6 in a conditional DistTag
+
+* Wed Mar 02 2011 ktdreyer at ktdreyer.com 0.13-2
+- Add Time::HiRes as BuildRequires, to support EL6
+
+* Tue Mar 01 2011 ktdreyer at ktdreyer.com 0.13-1
+- Specfile autogenerated by cpanspec 1.78.
diff --git a/sources b/sources
index e69de29..b177219 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+8cfc2c93d84a88756666c3d7a6baf69e  Nagios-Plugin-WWW-Mechanize-0.13.tar.gz


More information about the scm-commits mailing list