Sync from SUSE:SLFO:Main python-pyinotify revision 8b518ea0468a4e4c78069fe533dd5216

This commit is contained in:
Adrian Schröter 2024-05-03 22:10:45 +02:00
commit b91b4ad6ac
5 changed files with 198 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

2
pyinotify Normal file
View File

@ -0,0 +1,2 @@
#!/bin/sh
python -m pyinotify "$@"

BIN
pyinotify-0.9.6.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

88
python-pyinotify.changes Normal file
View File

@ -0,0 +1,88 @@
-------------------------------------------------------------------
Fri Apr 21 12:30:53 UTC 2023 - Dirk Müller <dmueller@suse.com>
- add sle15_python_module_pythons (jsc#PED-68)
-------------------------------------------------------------------
Thu Apr 13 22:43:43 UTC 2023 - Matej Cepl <mcepl@suse.com>
- Make calling of %{sle15modernpython} optional.
-------------------------------------------------------------------
Wed May 20 07:26:30 UTC 2020 - Petr Gajdos <pgajdos@suse.com>
- %python3_only -> %python_alternative
-------------------------------------------------------------------
Tue Dec 4 12:52:19 UTC 2018 - Matej Cepl <mcepl@suse.com>
- Remove superfluous devel dependency for noarch package
-------------------------------------------------------------------
Thu Aug 24 13:50:56 UTC 2017 - jmatejek@suse.com
- singlespec auto-conversion
-------------------------------------------------------------------
Mon Jan 4 14:35:03 UTC 2016 - dmueller@suse.com
- update to 0.9.6:
* fixes for sysctl compatibility issues
-------------------------------------------------------------------
Mon May 11 16:07:10 UTC 2015 - benoit.monin@gmx.fr
- update to version 0.9.5:
* no changelog available
- point the source URL to pypi
- remove unwanted shebang in pyinotify.py
-------------------------------------------------------------------
Fri Jan 18 14:22:13 UTC 2013 - saschpe@suse.de
- Avoid using github source link to please factory-auto
-------------------------------------------------------------------
Sun Jan 13 17:11:31 UTC 2013 - p.drouand@gmail.com
- Initial python3 support
-------------------------------------------------------------------
Sun Jan 13 17:10:46 UTC 2013 - p.drouand@gmail.com
- Update to 0.9.4 version
- Cleanup spec file
-------------------------------------------------------------------
Tue Feb 21 23:56:30 UTC 2012 - poeml@cmdline.net
- spec file boiler plate update (by the system, or someone)
-------------------------------------------------------------------
Tue Nov 2 13:27:57 UTC 2010 - prusnak@opensuse.org
- add pyinotify wrapper
- fix license in spec file
-------------------------------------------------------------------
Thu Oct 28 18:33:27 UTC 2010 - prusnak@opensuse.org
- updated to 0.9.1
- cleanup spec file
-------------------------------------------------------------------
Mon Oct 11 22:29:37 UTC 2010 - pascal.bleser@opensuse.org
- update to 0.9.0
-------------------------------------------------------------------
Tue Jun 17 21:15:13 CEST 2008 - poeml@suse.de
- update to 0.7.1
-------------------------------------------------------------------
Fri Sep 15 11:42:54 CEST 2006 - poeml@suse.de
- create package (version 0.6.2)

82
python-pyinotify.spec Normal file
View File

@ -0,0 +1,82 @@
#
# spec file for package python-pyinotify
#
# Copyright (c) 2023 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%{?sle15_python_module_pythons}
Name: python-pyinotify
Version: 0.9.6
Release: 0
Summary: Python module for watching filesystems changes
License: MIT
Group: Development/Libraries/Python
URL: https://github.com/seb-m/pyinotify
Source: https://files.pythonhosted.org/packages/source/p/pyinotify/pyinotify-%{version}.tar.gz
Source1: pyinotify
BuildRequires: %{python_module setuptools}
BuildRequires: python-rpm-macros
Requires(post): update-alternatives
Requires(postun):update-alternatives
BuildArch: noarch
%python_subpackages
%description
pyinotify is a Python module for watching filesystems changes. By its design
pyinotify can be used for any kind of fs monitoring.
pyinotify relies on a recent Linux Kernel feature (merged in kernel 2.6.13)
called inotify. inotify is an event-driven notifier, its notifications are
exported from kernel space to user space. The raw interface of inotify is
compounded of three system calls. pyinotify binds these system calls and
provides an implementation on top of them offering a generic and abstract way
to use inotify with Python. Pyinotify doesn't requires much detailed knowledge
of inotify. Moreover, it only needs few statements for initializing, watching,
handling (eventually trough a new separate thread), and processing events
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.
%prep
%setup -q -n pyinotify-%{version}
# remove unwanted shebang
sed -i '/^#!/ d' python2/pyinotify.py
sed -i "s|#!%{_bindir}/env python|#!%__python2|" python2/examples/*py
sed -i "s|#!%{_bindir}/env python|#!%__python3|" python3/examples/*py
%build
%python_build
%install
%python_install
install -D -m 0755 %{SOURCE1} %{buildroot}%{_bindir}/pyinotify
%python_clone -a %{buildroot}%{_bindir}/pyinotify
%post
%python_install_alternative pyinotify
%postun
%python_uninstall_alternative pyinotify
%files %{python_files}
%license COPYING
%doc ACKS README.md
%doc old/ChangeLog old/NEWS
%doc python3/examples
%python_alternative %{_bindir}/pyinotify
%{python_sitelib}/*
%changelog