1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
|
%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
BuildRequires: python-cpopen
BuildRequires: python-ethtool
BuildRequires: python-mock
BuildRequires: python-pthreading
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.
|