%{!?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]")} %global modname statscache_plugins Name: statscache-plugins Version: 0.0.1 Release: 1%{?dist} Summary: Plugins for statscache daemon Group: Applications/Internet License: LGPLv2+ URL: http://github.com/fedora-infra/statscache_plugins Source0: https://rtnpro.fedorapeople.org/statscache_plugins-0.0.1.tar.gz BuildArch: noarch BuildRequires: statscache-common Requires: statscache-common %description Plugins for statscache daemon. %prep %setup -q -n %{modname}-%{version} %build %{__python} setup.py build %check PYTHONPATH=$(pwd) python setup.py test %install %{__python} setup.py install -O1 --skip-build \ --install-data=%{_datadir} --root %{buildroot} %files %doc README.rst COPYING COPYING.LESSER %{python_sitelib}/%{modname}/ %{python_sitelib}/%{modname}-%{version}-py%{pyver}.egg-info/ %changelog * Tue Jun 23 2015 Ratnadeep Debpnath - 0.0.1-1 - Initial packaging.