2024-01-05 16:26:09 +01:00
|
|
|
%define python_majversion %(echo %python_version | cut -d. -f 1)
|
|
|
|
|
|
|
|
Name: python-pyinotify
|
2024-01-05 16:26:09 +01:00
|
|
|
Version: 0.9.6
|
2024-01-05 16:26:10 +01:00
|
|
|
Release: 4mamba
|
2024-01-05 16:26:09 +01:00
|
|
|
Summary: Linux filesystem events monitoring
|
|
|
|
Group: System/Libraries/Python
|
|
|
|
Vendor: openmamba
|
|
|
|
Distribution: openmamba
|
2024-01-05 16:26:09 +01:00
|
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
|
|
|
URL: https://github.com/seb-m/pyinotify
|
|
|
|
Source: https://pypi.debian.net/pyinotify/pyinotify-%{version}.tar.gz
|
2024-01-05 16:26:09 +01:00
|
|
|
Source1: python-pyinotify-script
|
|
|
|
License: MIT
|
|
|
|
## AUTOBUILDREQ-BEGIN
|
2024-01-05 16:26:10 +01:00
|
|
|
BuildRequires: libpython311-devel
|
2024-01-05 16:26:09 +01:00
|
|
|
## AUTOBUILDREQ-END
|
2024-01-05 16:26:10 +01:00
|
|
|
BuildRequires: python3-devel >= 3.11.5-3mamba
|
2024-01-05 16:26:09 +01:00
|
|
|
Provides: python-inotify
|
2024-01-05 16:26:09 +01:00
|
|
|
Obsoletes: python-inotify <= 0.9.6-1mamba
|
2024-01-05 16:26:09 +01:00
|
|
|
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}
|
|
|
|
|
|
|
|
%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.
|
|
|
|
|
2024-01-05 16:26:09 +01:00
|
|
|
%if "%{?with_pyver}"
|
2024-01-05 16:26:09 +01:00
|
|
|
%define py_requires_append \
|
|
|
|
Obsoletes: python-pyinotify <= 0.9.6-1mamba
|
2024-01-05 16:26:09 +01:00
|
|
|
%pyver_package
|
|
|
|
%endif
|
|
|
|
|
2024-01-05 16:26:09 +01:00
|
|
|
%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
|
|
|
|
|
2024-01-05 16:26:09 +01:00
|
|
|
sed -i "\,\.egg-info/,d;s,.*/man/.*,&.gz," %{name}.filelist
|
|
|
|
|
2024-01-05 16:26:09 +01:00
|
|
|
## 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
|
2024-01-05 16:26:09 +01:00
|
|
|
chmod 0755 %{buildroot}%{python_sitearch}/pyinotify.py
|
2024-01-05 16:26:09 +01:00
|
|
|
|
|
|
|
%clean
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
|
2024-01-05 16:26:09 +01:00
|
|
|
%files %{?pyappend} -f %{name}.filelist
|
2024-01-05 16:26:09 +01:00
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_bindir}/pyinotify
|
2024-01-05 16:26:09 +01:00
|
|
|
%dir %{python_sitearch}/pyinotify-%{version}-py*.egg-info
|
|
|
|
%{python_sitearch}/pyinotify-%{version}-py*.egg-info/*
|
2024-01-05 16:26:09 +01:00
|
|
|
%doc ACKS COPYING
|
|
|
|
|
|
|
|
%files doc
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc python%{python_majversion}/examples
|
|
|
|
#%doc python%{python_majversion}/docstrings
|
|
|
|
|
|
|
|
%changelog
|
2024-01-05 16:26:10 +01:00
|
|
|
* Tue Sep 26 2023 Automatic Build System <autodist@mambasoft.it> 0.9.6-4mamba
|
|
|
|
- rebuilt by autoport with build requirements: python3-devel>=3.11.5-3mamba
|
|
|
|
|
2024-01-05 16:26:09 +01:00
|
|
|
* Mon May 31 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 0.9.6-3mamba
|
|
|
|
- obsolete python-pyinotify <= 0.9.6-1mamba
|
|
|
|
|
2024-01-05 16:26:09 +01:00
|
|
|
* Sat May 29 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 0.9.6-2mamba
|
|
|
|
- rebuilt with -py3 and distdeps
|
|
|
|
|
2024-01-05 16:26:09 +01:00
|
|
|
* Fri Jun 05 2015 Automatic Build System <autodist@mambasoft.it> 0.9.6-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 16:26:09 +01:00
|
|
|
* Sun Jan 25 2015 Automatic Build System <autodist@mambasoft.it> 0.9.5-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 16:26:09 +01:00
|
|
|
* Fri May 17 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 0.9.4-2mamba
|
|
|
|
- python 2.7 mass rebuild
|
|
|
|
|
|
|
|
* Tue Nov 20 2012 Automatic Build System <autodist@mambasoft.it> 0.9.4-1mamba
|
|
|
|
- update to 0.9.4
|
|
|
|
|
|
|
|
* Wed Jun 13 2012 Automatic Build System <autodist@mambasoft.it> 0.9.3-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Thu May 12 2011 Automatic Build System <autodist@mambasoft.it> 0.9.2-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
|
|
|
* Tue Nov 09 2010 Automatic Build System <autodist@mambasoft.it> 0.9.1-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
|
|
|
* Sun Jun 20 2010 Automatic Build System <autodist@mambasoft.it> 0.9.0-1mamba
|
|
|
|
- update to 0.9.0
|
|
|
|
|
|
|
|
* Wed Jan 20 2010 Stefano Cotta Ramusino <stefano.cotta@openmamba.org> 0.8.9-1mamba
|
|
|
|
- update to 0.8.9
|
|
|
|
- package name changed to python-pyinotify
|
|
|
|
|
|
|
|
* Wed May 13 2009 gil <puntogil@libero.it> 0.8.6-1mamba
|
|
|
|
- package created by autospec
|