From e24f243835168db9fa82da2f2f7dc16a3c9763c2 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Fri, 5 Jan 2024 16:26:09 +0100 Subject: [PATCH] python 2.7 mass rebuild [release 0.9.4-2mamba;Fri May 17 2013] --- README.md | 5 ++ python-pyinotify-script | 5 ++ python-pyinotify.spec | 109 ++++++++++++++++++++++++++++++++++++++++ 3 files changed, 119 insertions(+) create mode 100644 python-pyinotify-script create mode 100644 python-pyinotify.spec diff --git a/README.md b/README.md index b09689f..5e46ebc 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,7 @@ # python-pyinotify +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. + diff --git a/python-pyinotify-script b/python-pyinotify-script new file mode 100644 index 0000000..149a0fb --- /dev/null +++ b/python-pyinotify-script @@ -0,0 +1,5 @@ +#! /bin/bash +# + +python -m pyinotify "$@" + diff --git a/python-pyinotify.spec b/python-pyinotify.spec new file mode 100644 index 0000000..e5bebd5 --- /dev/null +++ b/python-pyinotify.spec @@ -0,0 +1,109 @@ +%define python_majversion %(echo %python_version | cut -d. -f 1) + +Name: python-pyinotify +Version: 0.9.4 +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 +Source1: python-pyinotify-script +License: MIT +## AUTOBUILDREQ-BEGIN +BuildRequires: libpython-devel +## AUTOBUILDREQ-END +BuildRequires: python-setuptools +Requires: python >= %python_version +Provides: python-inotify +Obsoletes: python-inotify +BuildRoot: %{_tmppath}/%{name}-%{version}-root +BuildArch: noarch + +%description +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. + +%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. + +%prep +%setup -q -n pyinotify-%{version} + +%build +CFLAGS="%{optflags}" %{__python} setup.py build + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%{__python} setup.py install \ + -O1 --skip-build \ + --root="%{buildroot}" \ + --install-headers=%{_includedir}/python \ + --install-lib=%{python_sitearch} \ + --record=%{name}.filelist + +## set encoding for documentation +#mv ChangeLog_old ChangeLog_old.iso88591 +#iconv -f iso88591 -t utf8 -o ChangeLog_old \ +# ChangeLog_old.iso88591 +#rm -f ChangeLog_old.iso88591 + +# install launch script +install -D -m 0755 -p %{S:1} \ + %{buildroot}%{_bindir}/pyinotify + +# fix permissions +chmod 0755 %{buildroot}%{python_sitelib}/pyinotify.py + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%files -f %{name}.filelist +%defattr(-,root,root) +%{_bindir}/pyinotify +%doc ACKS COPYING + +%files doc +%defattr(-,root,root) +%doc python%{python_majversion}/examples +#%doc python%{python_majversion}/docstrings + +%changelog +* Fri May 17 2013 Silvan Calarco 0.9.4-2mamba +- python 2.7 mass rebuild + +* Tue Nov 20 2012 Automatic Build System 0.9.4-1mamba +- update to 0.9.4 + +* Wed Jun 13 2012 Automatic Build System 0.9.3-1mamba +- automatic version update by autodist + +* Thu May 12 2011 Automatic Build System 0.9.2-1mamba +- automatic update by autodist + +* Tue Nov 09 2010 Automatic Build System 0.9.1-1mamba +- automatic update by autodist + +* Sun Jun 20 2010 Automatic Build System 0.9.0-1mamba +- update to 0.9.0 + +* Wed Jan 20 2010 Stefano Cotta Ramusino 0.8.9-1mamba +- update to 0.8.9 +- package name changed to python-pyinotify + +* Wed May 13 2009 gil 0.8.6-1mamba +- package created by autospec