2012-01-31 14:37:58 +01:00
|
|
|
#
|
|
|
|
# spec file for package python-watchdog
|
|
|
|
#
|
2016-03-14 16:26:02 +01:00
|
|
|
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
|
2012-01-31 14:37:58 +01:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
2016-03-14 16:26:02 +01:00
|
|
|
|
2012-01-31 14:37:58 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2016-03-14 16:26:02 +01:00
|
|
|
|
2012-01-31 14:37:58 +01:00
|
|
|
Name: python-watchdog
|
2016-03-14 16:26:02 +01:00
|
|
|
Version: 0.8.3
|
2012-01-31 14:37:58 +01:00
|
|
|
Release: 0
|
|
|
|
Url: http://github.com/gorakhargosh/watchdog
|
|
|
|
Summary: Filesystem events monitoring
|
|
|
|
License: MIT
|
|
|
|
Group: Development/Languages/Python
|
|
|
|
Source: http://pypi.python.org/packages/source/w/watchdog/watchdog-%{version}.tar.gz
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
BuildRequires: python-Sphinx
|
2016-03-14 16:26:02 +01:00
|
|
|
BuildRequires: python-devel
|
2012-01-31 14:37:58 +01:00
|
|
|
Requires: python-Brownie
|
|
|
|
Requires: python-PyYAML
|
2016-03-14 16:26:02 +01:00
|
|
|
Requires: python-argh
|
|
|
|
Requires: python-pathtools
|
2012-01-31 14:37:58 +01:00
|
|
|
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
|
|
|
|
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
|
|
|
%else
|
|
|
|
BuildArch: noarch
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%description
|
|
|
|
Python API and shell utilities to monitor file system events.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n watchdog-%{version}
|
2016-03-14 16:26:02 +01:00
|
|
|
chmod -x README.rst
|
2012-01-31 14:37:58 +01:00
|
|
|
|
|
|
|
%build
|
|
|
|
python setup.py build
|
|
|
|
cd docs && make html && rm -r build/html/.buildinfo # Build HTML docs
|
|
|
|
|
|
|
|
%install
|
2016-03-14 16:26:02 +01:00
|
|
|
python setup.py install --prefix=%{_prefix} --root=%{buildroot} --record-rpm=INSTALLED_FILES
|
2013-01-15 15:17:28 +01:00
|
|
|
# remove shebangs from all scripts
|
|
|
|
find %{buildroot}%{python_sitelib} -name '*.py' \
|
|
|
|
-exec sed -i -e '1{/^#!/d}' {} \;
|
2016-03-14 16:26:02 +01:00
|
|
|
# Fix python-bytecode-inconsistent-mtime
|
|
|
|
pushd %{buildroot}%{python_sitelib}
|
|
|
|
%py_compile .
|
|
|
|
popd
|
2012-01-31 14:37:58 +01:00
|
|
|
|
2016-03-14 16:26:02 +01:00
|
|
|
%files -f INSTALLED_FILES
|
2012-01-31 14:37:58 +01:00
|
|
|
%defattr(-,root,root,-)
|
2016-03-14 16:26:02 +01:00
|
|
|
%doc AUTHORS changelog.rst COPYING LICENSE MANIFEST.in README.rst docs/build/html
|
2012-01-31 14:37:58 +01:00
|
|
|
|
|
|
|
%changelog
|