diff options
author | CoprDistGit <infra@openeuler.org> | 2023-04-10 11:37:21 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-04-10 11:37:21 +0000 |
commit | 409459f3406657540d3da8b1f3ca7d3c4c1d6688 (patch) | |
tree | c5102546c4dd764c53fc6da50c616722c5c65a0c | |
parent | acd96f99e76d8255988ba18fb0680d26947b05d3 (diff) |
automatic import of python-pyinotify
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-pyinotify.spec | 171 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 173 insertions, 0 deletions
@@ -0,0 +1 @@ +/pyinotify-0.9.6.tar.gz diff --git a/python-pyinotify.spec b/python-pyinotify.spec new file mode 100644 index 0000000..2159a02 --- /dev/null +++ b/python-pyinotify.spec @@ -0,0 +1,171 @@ +%global _empty_manifest_terminate_build 0 +Name: python-pyinotify +Version: 0.9.6 +Release: 1 +Summary: Linux filesystem events monitoring +License: MIT License +URL: http://github.com/seb-m/pyinotify +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/e3/c0/fd5b18dde17c1249658521f69598f3252f11d9d7a980c5be8619970646e1/pyinotify-0.9.6.tar.gz +BuildArch: noarch + + +%description +# Pyinotify + +* License : MIT +* Project URL : [http://github.com/seb-m/pyinotify](http://github.com/seb-m/pyinotify) +* Project Wiki : [http://github.com/seb-m/pyinotify/wiki](http://github.com/seb-m/pyinotify/wiki) +* API Documentation: [http://seb-m.github.com/pyinotify](http://seb-m.github.com/pyinotify) + + +## Dependencies + +* Linux ≥ 2.6.13 +* Python ≥ 2.4 (including Python 3.x) + + +## Install + +### Get the current stable version from PyPI and install it with `pip` + + # To install pip follow http://www.pip-installer.org/en/latest/installing.html + $ sudo pip install pyinotify + +### Or install Pyinotify directly from source + + # Choose your Python interpreter: either python, python2.7, python3.2,.. + # Replacing XXX accordingly, type: + $ sudo pythonXXX setup.py install + + +## Watch a directory + +Install pyinotify and run this command from a shell: + + $ python -m pyinotify -v /my-dir-to-watch + + +%package -n python3-pyinotify +Summary: Linux filesystem events monitoring +Provides: python-pyinotify +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-pyinotify +# Pyinotify + +* License : MIT +* Project URL : [http://github.com/seb-m/pyinotify](http://github.com/seb-m/pyinotify) +* Project Wiki : [http://github.com/seb-m/pyinotify/wiki](http://github.com/seb-m/pyinotify/wiki) +* API Documentation: [http://seb-m.github.com/pyinotify](http://seb-m.github.com/pyinotify) + + +## Dependencies + +* Linux ≥ 2.6.13 +* Python ≥ 2.4 (including Python 3.x) + + +## Install + +### Get the current stable version from PyPI and install it with `pip` + + # To install pip follow http://www.pip-installer.org/en/latest/installing.html + $ sudo pip install pyinotify + +### Or install Pyinotify directly from source + + # Choose your Python interpreter: either python, python2.7, python3.2,.. + # Replacing XXX accordingly, type: + $ sudo pythonXXX setup.py install + + +## Watch a directory + +Install pyinotify and run this command from a shell: + + $ python -m pyinotify -v /my-dir-to-watch + + +%package help +Summary: Development documents and examples for pyinotify +Provides: python3-pyinotify-doc +%description help +# Pyinotify + +* License : MIT +* Project URL : [http://github.com/seb-m/pyinotify](http://github.com/seb-m/pyinotify) +* Project Wiki : [http://github.com/seb-m/pyinotify/wiki](http://github.com/seb-m/pyinotify/wiki) +* API Documentation: [http://seb-m.github.com/pyinotify](http://seb-m.github.com/pyinotify) + + +## Dependencies + +* Linux ≥ 2.6.13 +* Python ≥ 2.4 (including Python 3.x) + + +## Install + +### Get the current stable version from PyPI and install it with `pip` + + # To install pip follow http://www.pip-installer.org/en/latest/installing.html + $ sudo pip install pyinotify + +### Or install Pyinotify directly from source + + # Choose your Python interpreter: either python, python2.7, python3.2,.. + # Replacing XXX accordingly, type: + $ sudo pythonXXX setup.py install + + +## Watch a directory + +Install pyinotify and run this command from a shell: + + $ python -m pyinotify -v /my-dir-to-watch + + +%prep +%autosetup -n pyinotify-0.9.6 + +%build +%py3_build + +%install +%py3_install +install -d -m755 %{buildroot}/%{_pkgdocdir} +if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi +if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi +if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi +if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi +pushd %{buildroot} +if [ -d usr/lib ]; then + find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/lib64 ]; then + find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/bin ]; then + find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/sbin ]; then + find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst +fi +touch doclist.lst +if [ -d usr/share/man ]; then + find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst +fi +popd +mv %{buildroot}/filelist.lst . +mv %{buildroot}/doclist.lst . + +%files -n python3-pyinotify -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Mon Apr 10 2023 Python_Bot <Python_Bot@openeuler.org> - 0.9.6-1 +- Package Spec generated @@ -0,0 +1 @@ +8e580fa1ff3971f94a6f81672b76c406 pyinotify-0.9.6.tar.gz |