Sophie

Sophie

distrib > Fedora > 18 > i386 > by-pkgid > 6558ed078296b5f531538af128228833 > files > 2

python-fsmonitor-0.1-1.fc18.src.rpm

%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 <yohangraterol92@gmail.com> - 0.1-1
- Initial Packaging