%global commit 42cf5f36b8a72008244cd6007436f1a5128f49b7 %global shortcommit %(c=%{commit}; echo ${c:0:7}) Name: python-ctrldaemon Version: 0.1 Release: 1%{?dist} Summary: Service command wrapper for Python License: BSD URL: https://github.com/yograterol/python-ctrldaemon Source0: https://github.com/yograterol/python-ctrldaemon/archive/%{commit}/%{name}-%{version}-%{shortcommit}.tar.gz BuildArch: noarch BuildRequires: python2-devel BuildRequires: python-setuptools BuildRequires: python-psutil #ONLY for TEST #BuildRequires: python-nose #BuildRequires: httpd %description Service command wrapper for Python %prep %setup -qn %{name}-%{commit} find -name '*egg-info' | xargs rm -rf %build %{__python} setup.py build %install %{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT #%%check #Need ROOT privileges #export PYTHONPATH=%%{python_sitelib} #%%{__python} setup.py test %files %doc README.md LICENSE %{python_sitelib}/ctrldaemon %{python_sitelib}/ctrldaemon-%{version}-*.egg-info %changelog * Sun Aug 4 2013 Yohan Graterol - 0.1-1 - Initial Packaging