[nagios-plugins-rhev/f14] Adding .src.rpm

Douglas Schilling Landgraf dougsland at fedoraproject.org
Thu Aug 25 04:28:12 UTC 2011


commit ee19eb4066256fca4dd500e446ffb981654eb4f0
Author: Douglas Schilling Landgraf <dougsland at redhat.com>
Date:   Thu Aug 25 01:07:37 2011 -0300

    Adding .src.rpm

 .gitignore               |    1 +
 nagios-plugins-rhev.spec |   58 ++++++++++++++++++++++++++++++++++++++++++++++
 sources                  |    1 +
 3 files changed, 60 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..0b87dbe 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/nagios-plugins-rhev-1.0.0.tar.gz
diff --git a/nagios-plugins-rhev.spec b/nagios-plugins-rhev.spec
new file mode 100644
index 0000000..4707ec9
--- /dev/null
+++ b/nagios-plugins-rhev.spec
@@ -0,0 +1,58 @@
+%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
+
+%define nagios_plugins_dir %{_libdir}/nagios/plugins
+
+Name:           nagios-plugins-rhev
+Version:        1.0.0
+Release:        2%{?dist}
+Summary:        Nagios Plugin - check_rhev
+
+Group:          Applications/System
+License:        GPLv2+
+URL:            https://github.com/dougsland/nagios-plugins-rhev/wiki
+Source0:        https://github.com/dougsland/nagios-plugins-rhev/raw/master/%{name}-%{version}.tar.gz
+BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+BuildArch:      noarch
+
+Requires:       nagios-plugins, python-paramiko
+
+%if (0%{?fedora} > 12 || 0%{?rhel} > 5)
+BuildRequires: python-devel, python-setuptools-devel
+%else
+BuildRequires: python-devel, python-setuptools
+%endif
+
+%description
+This plugin allow you to monitor your RHEV environment.
+
+%prep
+%setup -q
+
+%build
+%{__python} setup.py build
+
+%install
+rm -rf $RPM_BUILD_ROOT
+%{__python} setup.py install --skip-build --root $RPM_BUILD_ROOT
+install -d -m 755 $RPM_BUILD_ROOT/%{nagios_plugins_dir}
+install -p -m 755 check_rhev $RPM_BUILD_ROOT/%{nagios_plugins_dir}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(-,root,root,-)
+%doc README COPYING AUTHORS
+%{nagios_plugins_dir}/check_rhev
+%if (0%{?fedora} > 12 || 0%{?rhel} > 5)
+%{python_sitelib}/*.egg-info
+%endif
+
+%changelog
+* Tue Aug 23 2011 Douglas Schilling Landgraf <dougsland at redhat.com> 1.0.0-2
+- Fixed the setup egg name
+- Split BuildRequires to BuildRequires and Requires
+- Fixed md5sum check
+
+* Tue Aug 15 2011 Douglas Schilling Landgraf <dougsland at redhat.com> 1.0.0-1
+- Initial Commit
diff --git a/sources b/sources
index e69de29..99dc4f3 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+cb19d63804fca11c99996d354bae4d5a  nagios-plugins-rhev-1.0.0.tar.gz


More information about the scm-commits mailing list