%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} %{!?python_ver: %define python_ver %(%{__python} -c "import sys ; print sys.version[:3]")} Summary: A simple log tracker which acts on certain events Name: logactio Version: 0.01 Release: 1 License: GPLv2 Group: System Environment/Daemons URL: http://fedorapeople.org/cgit/dsommers/public_git/logactio.git/ Source0: %{name}-%{version}.tar.bz2 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root BuildArch: noarch %description LogActio is a modular log tracker, which observes changes and acts through different modules based on the event. It is purely written in Python and can easily be extended with specific actions. %prep %setup -q %build %{__python} setup.py build %install rm -rf $RPM_BUILD_ROOT %{__python} setup.py install --root=$RPM_BUILD_ROOT %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc COPYING %{_bindir}/logactio %{python_sitelib}/LogActio %if "%{python_ver}" >= "2.5" %{python_sitelib}/*.egg-info %endif %changelog * Wed Dec 25 2013 David Sommerseth - 0.01-1 - Initial RPM packaging