diff --git a/python-pyinotify.spec b/python-pyinotify.spec index 6270fcc..0ac84c3 100644 --- a/python-pyinotify.spec +++ b/python-pyinotify.spec @@ -2,24 +2,21 @@ Name: python-pyinotify Version: 0.9.6 -Release: 1mamba +Release: 2mamba Summary: Linux filesystem events monitoring Group: System/Libraries/Python Vendor: openmamba Distribution: openmamba -Packager: Automatic Build System -URL: http://trac.dbzteam.org/pyinotify -Source: http://seb.dbzteam.org/pub/pyinotify/releases/pyinotify-%{version}.tar.gz +Packager: Silvan Calarco +URL: https://github.com/seb-m/pyinotify +Source: https://pypi.debian.net/pyinotify/pyinotify-%{version}.tar.gz Source1: python-pyinotify-script License: MIT ## AUTOBUILDREQ-BEGIN -BuildRequires: libpython-devel +BuildRequires: libpython3-devel ## AUTOBUILDREQ-END -BuildRequires: python-setuptools -Requires: python >= %python_version Provides: python-inotify -Obsoletes: python-inotify -BuildRoot: %{_tmppath}/%{name}-%{version}-root +Obsoletes: python-inotify <= 0.9.6-1mamba BuildArch: noarch %description @@ -31,16 +28,18 @@ Pyinotify binds these system calls and provides an implementation on top of them %package doc Group: Documentation Summary: Documentation package for %{name} -Requires: %{name} = %{?epoch:epoch:}%{version}-%{release} %description doc Pyinotify is a pure Python module used for monitoring filesystems events. Pyinotify relies on inotify, a Linux Kernel functionality (starting with kernel version 2.6.13). inotify is an event-driven notification mechanism, its notifications are exported to user space through three system calls. Pyinotify binds these system calls and provides an implementation on top of them. - This package contains the documentation files. +%if "%{?with_pyver}" +%pyver_package +%endif + %prep %setup -q -n pyinotify-%{version} @@ -56,6 +55,8 @@ CFLAGS="%{optflags}" %{__python} setup.py build --install-lib=%{python_sitearch} \ --record=%{name}.filelist +sed -i "\,\.egg-info/,d;s,.*/man/.*,&.gz," %{name}.filelist + ## set encoding for documentation #mv ChangeLog_old ChangeLog_old.iso88591 #iconv -f iso88591 -t utf8 -o ChangeLog_old \ @@ -72,9 +73,11 @@ chmod 0755 %{buildroot}%{python_sitearch}/pyinotify.py %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" -%files -f %{name}.filelist +%files %{?pyappend} -f %{name}.filelist %defattr(-,root,root) %{_bindir}/pyinotify +%dir %{python_sitearch}/pyinotify-%{version}-py*.egg-info +%{python_sitearch}/pyinotify-%{version}-py*.egg-info/* %doc ACKS COPYING %files doc @@ -83,6 +86,9 @@ chmod 0755 %{buildroot}%{python_sitearch}/pyinotify.py #%doc python%{python_majversion}/docstrings %changelog +* Sat May 29 2021 Silvan Calarco 0.9.6-2mamba +- rebuilt with -py3 and distdeps + * Fri Jun 05 2015 Automatic Build System 0.9.6-1mamba - automatic version update by autodist