|
|
90863f0 |
%if 0%{?rhel} <= 5
|
|
|
90863f0 |
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
|
|
|
90863f0 |
%{!?python_version: %global python_version %(%{__python} -c "from distutils.sysconfig import get_python_version; print get_python_version()")}
|
|
|
90863f0 |
%endif
|
|
|
90863f0 |
|
|
|
e1da713 |
Summary: Python modules and utilities for Nagios plugins and configuration
|
|
|
90863f0 |
Name: pynag
|
|
|
e20237f |
Version: 0.8.5
|
|
|
e20237f |
Release: 1%{?dist}
|
|
|
56fd18f |
Source0: http://pypi.python.org/packages/source/p/pynag/pynag-%{version}.tar.gz
|
|
|
90863f0 |
License: GPLv2
|
|
|
90863f0 |
Group: System Environment/Libraries
|
|
|
90863f0 |
BuildRequires: python-devel
|
|
|
90863f0 |
BuildRequires: python-setuptools
|
|
|
90863f0 |
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
|
|
|
efffc16 |
Url: http://pynag.org/
|
|
|
90863f0 |
BuildArch: noarch
|
|
|
90863f0 |
|
|
|
90863f0 |
%description
|
|
|
efffc16 |
Python modules and utilities for pragmatically handling Nagios configuration
|
|
|
efffc16 |
file maintenance, status information, log file parsing and plug-in
|
|
|
efffc16 |
development.
|
|
|
90863f0 |
|
|
|
90863f0 |
%package examples
|
|
|
90863f0 |
Group: System Environment/Libraries
|
|
|
90863f0 |
Summary: Example scripts which manipulate Nagios configuration
|
|
|
90863f0 |
Requires: pynag
|
|
|
90863f0 |
|
|
|
90863f0 |
%description examples
|
|
|
90863f0 |
Example scripts which manipulate Nagios configuration files. Provided
|
|
|
90863f0 |
are scripts which list services, do network discovery among other tasks.
|
|
|
90863f0 |
|
|
|
90863f0 |
%prep
|
|
|
90863f0 |
%setup -q
|
|
|
90863f0 |
|
|
|
90863f0 |
%build
|
|
|
90863f0 |
%{__python} setup.py build
|
|
|
90863f0 |
|
|
|
90863f0 |
%install
|
|
|
90863f0 |
test "x$RPM_BUILD_ROOT" != "x" && rm -rf $RPM_BUILD_ROOT
|
|
|
90863f0 |
%{__python} setup.py install --prefix=/usr --root=$RPM_BUILD_ROOT
|
|
|
90863f0 |
install -m 755 -d $RPM_BUILD_ROOT/%{_datadir}/%{name}/examples
|
|
|
90863f0 |
install -m 755 -d $RPM_BUILD_ROOT/%{_datadir}/%{name}/examples/Model
|
|
|
e1da713 |
install -m 755 -d $RPM_BUILD_ROOT/%{_datadir}/%{name}/examples/Utils
|
|
|
90863f0 |
install -m 755 -d $RPM_BUILD_ROOT/%{_datadir}/%{name}/examples/Parsers
|
|
|
90863f0 |
install -m 755 -d $RPM_BUILD_ROOT/%{_datadir}/%{name}/examples/Plugins
|
|
|
90863f0 |
install -m 755 examples/Model/* $RPM_BUILD_ROOT/%{_datadir}/%{name}/examples/Model/
|
|
|
90863f0 |
install -m 755 examples/Parsers/* $RPM_BUILD_ROOT/%{_datadir}/%{name}/examples/Parsers/
|
|
|
90863f0 |
install -m 755 examples/Plugins/* $RPM_BUILD_ROOT/%{_datadir}/%{name}/examples/Plugins/
|
|
|
a1d9689 |
gzip $RPM_BUILD_ROOT/%{_mandir}/man1/pynag.1
|
|
|
90863f0 |
|
|
|
90863f0 |
|
|
|
90863f0 |
%clean
|
|
|
90863f0 |
rm -fr $RPM_BUILD_ROOT
|
|
|
90863f0 |
|
|
|
90863f0 |
%files
|
|
|
90863f0 |
%defattr(-, root, root, -)
|
|
|
90863f0 |
%if "%{python_version}" >= "2.5"
|
|
|
90863f0 |
%{python_sitelib}/pynag*.egg-info
|
|
|
90863f0 |
%endif
|
|
|
90863f0 |
%{python_sitelib}/pynag/
|
|
|
e1da713 |
%{_bindir}/pynag
|
|
|
e1da713 |
%{_mandir}/man1/pynag.1.gz
|
|
|
e1da713 |
|
|
|
e1da713 |
%doc AUTHORS README.md LICENSE CHANGES
|
|
|
90863f0 |
%dir %{_datadir}/%{name}
|
|
|
90863f0 |
|
|
|
90863f0 |
%files examples
|
|
|
90863f0 |
%defattr(-, root, root, -)
|
|
|
90863f0 |
%{_datadir}/%{name}/examples
|
|
|
90863f0 |
%doc examples/README
|
|
|
90863f0 |
|
|
|
90863f0 |
%changelog
|
|
|
046dda4 |
* Thu Apr 10 2014 Tomas Edwardsson <tommi@tommi.org> 0.8.5-1
|
|
|
e20237f |
- Updated to latest upstream version
|
|
|
e20237f |
|
|
|
21f7b5d |
* Mon Jan 06 2014 Tomas Edwardsson <tommi@tommi.org> 0.7.0-2
|
|
|
db5cad9 |
- Update invalid changelog entries
|
|
|
db5cad9 |
|
|
|
902c1ed |
* Sat Nov 02 2013 Tomas Edwardsson <tommi@tommi.org> 0.7.0-1
|
|
|
d1c8070 |
- New upstream version
|
|
|
d1c8070 |
|
|
|
74f39cc |
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.9-2
|
|
|
74f39cc |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
74f39cc |
|
|
|
6253934 |
* Fri Jun 28 2013 Tomas Edwardsson <tommi@tommi.org> 0.5.0-1
|
|
|
e87435f |
- New upstream version
|
|
|
e87435f |
|
|
|
6253934 |
* Tue Apr 30 2013 Tomas Edwardsson <tommi@tommi.org> 0.4.9-1
|
|
|
efffc16 |
- New upstream version
|
|
|
efffc16 |
|
|
|
c261e2e |
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.8-2
|
|
|
c261e2e |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
c261e2e |
|
|
|
56fd18f |
* Wed Dec 12 2012 Tomas Edwardsson <tommi@tommi.org> 0.4.8-1
|
|
|
56fd18f |
- New upstream version
|
|
|
56fd18f |
|
|
|
e1da713 |
* Mon Sep 17 2012 Tomas Edwardsson <tommi@tommi.org> 0.4.6-1
|
|
|
e1da713 |
- New upstream version
|
|
|
e1da713 |
- Removed pynag-* scripts for a new binary, pynag
|
|
|
e1da713 |
|
|
|
ce3277a |
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.1-7
|
|
|
ce3277a |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
ce3277a |
|
|
|
6253934 |
* Wed May 9 2012 Tomas Edwardsson <tommi@tommi.org> 0.4.1-6
|
|
|
90863f0 |
- Simplified spec file, threw out lots of legacy conditionals
|
|
|
90863f0 |
- Added Requires parent for pynag-examples
|
|
|
90863f0 |
|
|
|
90863f0 |
* Mon Jul 4 2011 Pall Sigurdsson <palli@opensource.is> - 0.4-1
|
|
|
90863f0 |
- New upstream version
|
|
|
90863f0 |
- Config refactoring
|
|
|
90863f0 |
- New Model module
|
|
|
90863f0 |
|
|
|
90863f0 |
* Wed Apr 27 2011 Tomas Edwardsson <tommi@tommi.org> - 0.3-3
|
|
|
90863f0 |
- Added examples package and moved example files there
|
|
|
90863f0 |
|
|
|
6253934 |
* Wed Jan 26 2011 Tomas Edwardsson <tommi@tommi.org> - 0.3-2
|
|
|
90863f0 |
- Fixes for spelling and some issues reported by rpmlint
|
|
|
90863f0 |
|
|
|
db5cad9 |
* Sat Jan 22 2011 Tomas Edwardsson <tommi@tommi.org> - 0.3-1
|
|
|
90863f0 |
- Initial RPM Creation, based heavily on the func spec file
|