diff options
author | Bala.FA <barumuga@redhat.com> | 2014-03-07 18:28:09 +0530 |
---|---|---|
committer | Bala.FA <barumuga@redhat.com> | 2014-04-28 16:20:46 +0530 |
commit | 8f5f4537af7790be386974628c804a7bc719b738 (patch) | |
tree | ea134e1411640bdacf116332afc6a82c86ee28b0 /gluster-nagios-common.spec.in | |
parent | 79b4c3e202e0ce07d13d28b88f04c4dc79edfb12 (diff) |
Initial commitv0.1.0
Change-Id: Ie8fdd046d111a4a46abe0e162985e833323bfd7d
Signed-off-by: Bala.FA <barumuga@redhat.com>
Diffstat (limited to 'gluster-nagios-common.spec.in')
-rw-r--r-- | gluster-nagios-common.spec.in | 75 |
1 files changed, 75 insertions, 0 deletions
diff --git a/gluster-nagios-common.spec.in b/gluster-nagios-common.spec.in new file mode 100644 index 0000000..290471a --- /dev/null +++ b/gluster-nagios-common.spec.in @@ -0,0 +1,75 @@ +%global _hardened_build 1 + +%global _for_fedora_koji_builds 0 + +%if ( 0%{?fedora} && 0%{?fedora} > 16 ) || ( 0%{?rhel} && 0%{?rhel} > 6 ) +%global _with_systemd true +%endif + +# From https://fedoraproject.org/wiki/Packaging:Python#Macros +%if ( 0%{?rhel} && 0%{?rhel} <= 5 ) +%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")} +%{!?python_sitearch: %global python_sitearch %(python -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")} +%endif + +Summary: Common libraries, tools, configurations for Gluster node and Nagios server add-ons +Name: @PACKAGE_NAME@ +Version: @PACKAGE_VERSION@ +Release: @PACKAGE_RELEASE@%{?dist} +License: GPLv2+ +Group: Applications/System +URL: http://www.redhat.com +Vendor: Red Hat, Inc. +Source0: %{name}-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-root +BuildRequires: pyflakes +BuildRequires: python-pep8 +BuildRequires: python-nose +BuildRequires: python-devel +Requires: python-argparse +Requires: python-cpopen +Requires: python-pthreading + +%description +Common libraries, tools, configurations for Gluster node and Nagios server add-ons + +%package tests +Summary: Unit/functional tests of Common libraries, tools, configurations for Gluster node and Nagios server add-ons +Group: Development/Tools +Requires: %{name} = %{version}-%{release} +Requires: pyflakes +Requires: python-pep8 +Requires: python-nose +Requires: python-devel + +%description tests +Unit/functional tests of Common libraries, tools, configurations for Gluster node and Nagios server add-ons + +%prep +%setup -q + +%build +%{configure} +make + +%check +make check + +%install +rm -rf %{buildroot} +make install DESTDIR=%{buildroot} + +%clean +rm -rf %{buildroot} + +%files +%defattr(-,root,root,-) +%{python_sitearch}/glusternagios/* + +%files tests +%defattr(-,root,root,-) +%{_datadir}/%{name}/tests/* + +%changelog +* Sat Mar 08 2014 Bala FA <barumuga@redhat.com> +- Initial build. |