forked from pool/python-pyinotify
Accepting request 148432 from home:posophe:branches:devel:languages:python
Made required changes OBS-URL: https://build.opensuse.org/request/show/148432 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyinotify?expand=0&rev=17
This commit is contained in:
committed by
Git OBS Bridge
parent
9e9a75fc01
commit
72fe1eea74
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-pyinotify
|
||||
#
|
||||
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -20,16 +20,14 @@
|
||||
%{!?python_sitearch: %global python_sitearch %(python -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
|
||||
|
||||
Name: python-pyinotify
|
||||
Version: 0.9.1
|
||||
Version: 0.9.4
|
||||
Release: 1
|
||||
License: MIT
|
||||
Summary: Python module for watching filesystems changes
|
||||
Url: http://github.com/seb-m/pyinotify
|
||||
Group: Development/Libraries/Python
|
||||
# downloaded from http://github.com/seb-m/pyinotify/tarball/%{version}
|
||||
%define tag 5d381ce
|
||||
%define subdir 4ad6992
|
||||
Source: http://download.github.com/seb-m-pyinotify-%{version}-0-g%{tag}.tar.gz
|
||||
# downloaded from https://github.com/seb-m/pyinotify/tags
|
||||
Source: http://download.github.com/pyinotify-%{version}.tar.gz
|
||||
Source1: pyinotify
|
||||
BuildRequires: perl
|
||||
BuildRequires: python-devel
|
||||
@@ -56,22 +54,16 @@ notifications through subclassing. The only things to know is the path of items
|
||||
to watch, the kind of events to monitor and the actions to execute on these
|
||||
notifications.
|
||||
|
||||
Note: pyinotify requires Python 2.3 and above, and Linux 2.6.13 at least.
|
||||
|
||||
%prep
|
||||
%setup -q -n "seb-m-pyinotify-%{subdir}"
|
||||
%setup -q -n pyinotify-%{version}
|
||||
|
||||
%build
|
||||
export CFLAGS="%{optflags}"
|
||||
python ./setup.py build
|
||||
python setup.py build
|
||||
|
||||
%install
|
||||
python ./setup.py install --prefix=%{_prefix} --root=%{buildroot} --record-rpm=INSTALLED_FILES
|
||||
install -D -m 0755 %{SOURCE1} %{buildroot}%{_bindir}/pyinotify
|
||||
|
||||
%clean
|
||||
rm -rf %{buildroot}
|
||||
|
||||
%files -f INSTALLED_FILES
|
||||
%defattr(-,root,root)
|
||||
%doc ACKS COPYING README.md
|
||||
|
Reference in New Issue
Block a user