forked from pool/python-pyinotify
- add pyinotify wrapper
- fix license in spec file OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyinotify?expand=0&rev=10
This commit is contained in:
committed by
Git OBS Bridge
parent
6952ae0366
commit
c06e24b93a
@@ -21,7 +21,7 @@
|
||||
Name: python-pyinotify
|
||||
Version: 0.9.1
|
||||
Release: 1
|
||||
License: BSD License
|
||||
License: MIT
|
||||
Summary: Python module for watching filesystems changes
|
||||
Url: http://github.com/seb-m/pyinotify
|
||||
Group: Development/Libraries/Python
|
||||
@@ -29,6 +29,7 @@ Group: Development/Libraries/Python
|
||||
%define tag 5d381ce
|
||||
%define subdir 4ad6992
|
||||
Source: http://download.github.com/seb-m-pyinotify-%{version}-0-g%{tag}.tar.gz
|
||||
Source1: pyinotify
|
||||
BuildRequires: perl
|
||||
BuildRequires: python-devel
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
@@ -64,14 +65,16 @@ export CFLAGS="%{optflags}"
|
||||
python ./setup.py build
|
||||
|
||||
%install
|
||||
python ./setup.py install --prefix="%{_prefix}" --root=%{buildroot} --record-rpm=INSTALLED_FILES
|
||||
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
|
||||
%doc ACKS COPYING README.md
|
||||
%doc python2/examples
|
||||
%{_bindir}/pyinotify
|
||||
|
||||
%changelog
|
||||
|
Reference in New Issue
Block a user