%global commit 5b87ecb8cc75a58060d41352534c51a4f864a98f %global shortcommit %(c=%{commit}; echo ${c:0:7}) %global package fsmonitor Name: python-fsmonitor Version: 0.1 Release: 1%{?dist} Summary: Filesystem Monitoring for Python License: MIT URL: https://github.com/shaurz/fsmonitor Source0: https://github.com/shaurz/fsmonitor/archive/%{commit}/%{package}-%{version}-%{shortcommit}.tar.gz BuildArch: noarch BuildRequires: python2-devel BuildRequires: python-setuptools %description Filesystem Monitoring for Python %prep %setup -qn %{package}-%{commit} %build python setup.py build %install python setup.py install --skip-build --root %{buildroot} %check # Don't work the test2 and test3 for a error number 13: Permission denied cd tests PYTHONPATH=$PYTHONPATH:$(pwd) python test.py #python test1.py #python test2.py python test3.py %files %doc README.rst COPYING %{python_sitelib}/%{package} %{python_sitelib}/%{package}-*.egg-info %changelog * Sun Jun 30 2013 Yohan Graterol - 0.1-1 - Initial Packaging