Permalink
Browse files

Added spec file

  • Loading branch information...
jamesc committed Jan 9, 2011
1 parent cfc6b5f commit ac03892d393b3999dc3908fd101a1f59cbd33840
Showing with 78 additions and 15 deletions.
  1. +2 −1 MANIFEST
  2. +1 −0 MANIFEST.SKIP
  3. +16 −14 META.yml
  4. +59 −0 nagios-plugins-rabbitmq.spec
View
@@ -1,7 +1,8 @@
Build.pl
LICENSE.txt
MANIFEST This list of files
+META.yml
+nagios-plugins-rabbitmq.spec
README.md
scripts/check_rabbitmq_aliveness
scripts/check_rabbitmq_server
-META.yml
View
@@ -38,3 +38,4 @@
\B\._
# Avoid archives of this distribution
\bnagios-plugins-rabbitmq-[\d\.\_]+
+^MYMETA.yml$
View
@@ -1,23 +1,25 @@
---
-name: nagios-plugins-rabbitmq
-version: 1.0.0
+abstract: 'Nagios checks for RabbitMQ using the management interface'
author:
- - James Casey (jamesc.000@gmail.com)
-abstract: Nagios checks for RabbitMQ using the management interface
+ - 'James Casey (jamesc.000@gmail.com)'
+build_requires:
+ Module::Build: 0
+configure_requires:
+ Module::Build: 0.36
+generated_by: 'Module::Build version 0.3607'
license: apache
-resources:
- license: http://apache.org/licenses/LICENSE-2.0
+meta-spec:
+ url: http://module-build.sourceforge.net/META-spec-v1.4.html
+ version: 1.4
+name: nagios-plugins-rabbitmq
+recommends:
+ Nagios::Plugin: 0.27
requires:
Getopt::Long: 0
JSON: 2.12
LWP::UserAgent: 0
Pod::Usage: 0
URI: 1.35
-build_requires:
- Module::Build: 0
-recommends:
- Nagios::Plugin: 0.27
-generated_by: Module::Build version 0.2807
-meta-spec:
- url: http://module-build.sourceforge.net/META-spec-v1.2.html
- version: 1.2
+resources:
+ license: http://apache.org/licenses/LICENSE-2.0
+version: v1.0.0
@@ -0,0 +1,59 @@
+Name: nagios-plugins-rabbitmq
+Version: 1.0
+Release: 1%{?dist}
+Summary: Nagios checks for RabbitMQ
+
+Group: Development/Libraries
+License: APL2
+URL: https://github.com/jamesc/nagios-plugins-rabbitmq
+Source0: nagios-plugins-rabbitmq-%{version}.tar.gz
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+BuildArch: noarch
+# Correct for lots of packages, other common choices include eg. Module::Build
+BuildRequires: perl(Module::Build)
+Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
+
+%{?perl_default_filter}
+
+%description
+Nagios checks for RabbitMQ messaging server.
+
+These use the RabbitMQ management interface for gathering various
+information about the server
+
+%prep
+%setup -q
+
+
+%build
+# Remove OPTIMIZE=... from noarch packages (unneeded)
+%{__perl} Build.PL --installdirs=vendor OPTIMIZE="$RPM_OPT_FLAGS"
+Build %{?_smp_mflags}
+
+
+%install
+rm -rf $RPM_BUILD_ROOT
+Build pure_install --destdir=$RPM_BUILD_ROOT
+find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
+# Remove the next line from noarch packages (unneeded)
+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 LICENCE.txt README.md
+%{bindir}/*
+%{_mandir}/man1/*.1*
+
+
+%changelog

0 comments on commit ac03892

Please sign in to comment.