%global djagiosdir %{_datadir}/djagios-0.1 %{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} %{!?pyver: %global pyver %(%{__python} -c "import sys ; print sys.version[:3]")} Name: djagios Version: 0.1.3 Release: 1%{?dist} Summary: Djagios is an open source Nagios web based config tool with a Python API Group: Applications/System License: GPLv2+ URL: http://djagios.org/ Source0: http://downloads.djagios.org/%{name}-%{version}.tar.gz BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Requires: nagios, mysql, mysql-server, mod_python, Django, MySQL-python %description Djagios is an open source Nagios web based configuration tool with a complete Python Nagios API. The main goal of the tool was to make Nagios usable for non-Nagios admins. The initial install and configuration would have to be done by Nagios administrators. But once done ordinary users can add servers, appliances, devices, services themselves. %prep %setup -q %build %install rm -rf %{buildroot} %{__python} setup.py install --root %{buildroot} %post %clean rm -rf %{buildroot} %files %defattr(-,root,root,-) %{python_sitelib}/djagios/ %djagiosdir %changelog * Wed Dec 16 2009 Kris Buytaert 0.1.3 - Cleaned up rpmlint warnings + errors * Wed Dec 16 2009 Kris Buytaert 0.1.3 - Initial Package