From 72fe1eea745964d644931fe983759bfbeeaca23dcc64c048a38f556b5aa06349 Mon Sep 17 00:00:00 2001 From: Sascha Peilicke Date: Tue, 15 Jan 2013 14:14:28 +0000 Subject: [PATCH 1/2] Accepting request 148432 from home:posophe:branches:devel:languages:python Made required changes OBS-URL: https://build.opensuse.org/request/show/148432 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyinotify?expand=0&rev=17 --- pyinotify-0.9.4.tar.gz | 3 ++ python-pyinotify.changes | 11 ++++ python-pyinotify.spec | 20 +++---- python3-pyinotify.changes | 5 ++ python3-pyinotify.spec | 70 +++++++++++++++++++++++++ seb-m-pyinotify-0.9.1-0-g5d381ce.tar.gz | 3 -- 6 files changed, 95 insertions(+), 17 deletions(-) create mode 100644 pyinotify-0.9.4.tar.gz create mode 100644 python3-pyinotify.changes create mode 100644 python3-pyinotify.spec delete mode 100644 seb-m-pyinotify-0.9.1-0-g5d381ce.tar.gz diff --git a/pyinotify-0.9.4.tar.gz b/pyinotify-0.9.4.tar.gz new file mode 100644 index 0000000..c956614 --- /dev/null +++ b/pyinotify-0.9.4.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:16f2b9ea135879f8455f2297c9ed0571409f801fe5697181a40aafccd4232119 +size 60255 diff --git a/python-pyinotify.changes b/python-pyinotify.changes index 39709a8..f50af19 100644 --- a/python-pyinotify.changes +++ b/python-pyinotify.changes @@ -1,3 +1,14 @@ +------------------------------------------------------------------- +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 diff --git a/python-pyinotify.spec b/python-pyinotify.spec index ea0228a..20ceef0 100644 --- a/python-pyinotify.spec +++ b/python-pyinotify.spec @@ -1,7 +1,7 @@ # # spec file for package python-pyinotify # -# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -20,16 +20,14 @@ %{!?python_sitearch: %global python_sitearch %(python -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")} Name: python-pyinotify -Version: 0.9.1 +Version: 0.9.4 Release: 1 License: MIT Summary: Python module for watching filesystems changes Url: http://github.com/seb-m/pyinotify Group: Development/Libraries/Python -# downloaded from http://github.com/seb-m/pyinotify/tarball/%{version} -%define tag 5d381ce -%define subdir 4ad6992 -Source: http://download.github.com/seb-m-pyinotify-%{version}-0-g%{tag}.tar.gz +# downloaded from https://github.com/seb-m/pyinotify/tags +Source: http://download.github.com/pyinotify-%{version}.tar.gz Source1: pyinotify BuildRequires: perl BuildRequires: python-devel @@ -56,22 +54,16 @@ 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. -Note: pyinotify requires Python 2.3 and above, and Linux 2.6.13 at least. - %prep -%setup -q -n "seb-m-pyinotify-%{subdir}" +%setup -q -n pyinotify-%{version} %build -export CFLAGS="%{optflags}" -python ./setup.py build +python setup.py build %install python ./setup.py install --prefix=%{_prefix} --root=%{buildroot} --record-rpm=INSTALLED_FILES install -D -m 0755 %{SOURCE1} %{buildroot}%{_bindir}/pyinotify -%clean -rm -rf %{buildroot} - %files -f INSTALLED_FILES %defattr(-,root,root) %doc ACKS COPYING README.md diff --git a/python3-pyinotify.changes b/python3-pyinotify.changes new file mode 100644 index 0000000..9631c39 --- /dev/null +++ b/python3-pyinotify.changes @@ -0,0 +1,5 @@ +------------------------------------------------------------------- +Sun Jan 13 17:11:43 UTC 2013 - p.drouand@gmail.com + +- Initial python3 support + diff --git a/python3-pyinotify.spec b/python3-pyinotify.spec new file mode 100644 index 0000000..24304ea --- /dev/null +++ b/python3-pyinotify.spec @@ -0,0 +1,70 @@ +# +# spec file for package python3-pyinotify +# +# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. +# +# 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 http://bugs.opensuse.org/ +# + +Name: python3-pyinotify +Version: 0.9.4 +Release: 1 +License: MIT +Summary: Python module for watching filesystems changes +Url: http://github.com/seb-m/pyinotify +Group: Development/Libraries/Python +# downloaded from https://github.com/seb-m/pyinotify/tags +Source: http://download.github.com/pyinotify-%{version}.tar.gz +Source1: pyinotify +BuildRequires: perl +BuildRequires: python3 +BuildRequires: python3-devel +BuildRequires: python3-distribute +BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildArch: noarch + +%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} +# Use the good Python interpreter +sed -i "s|python|python3|g" %{SOURCE1} + +%build +python3 setup.py build + +%install +python3 setup.py install --prefix=%{_prefix} --root=%{buildroot} +install -D -m 0755 %{SOURCE1} %{buildroot}%{_bindir}/pyinotify-%{py3_ver} + +%files +%defattr(-,root,root) +%doc ACKS COPYING README.md +%doc python2/examples +%{_bindir}/pyinotify-%{py3_ver} +%{python3_sitelib}/* + +%changelog diff --git a/seb-m-pyinotify-0.9.1-0-g5d381ce.tar.gz b/seb-m-pyinotify-0.9.1-0-g5d381ce.tar.gz deleted file mode 100644 index 40ab03a..0000000 --- a/seb-m-pyinotify-0.9.1-0-g5d381ce.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f8f0812668cc2016e5a467883033c3efc5fe31938f3beb329bbfddde903067c5 -size 55956 From f1e31c51e573a7ee5a27519fb06336be30cde85ce50f8071b4dcec7cec791a4e Mon Sep 17 00:00:00 2001 From: Sascha Peilicke Date: Fri, 18 Jan 2013 14:20:51 +0000 Subject: [PATCH 2/2] - Avoid using github source link to please factory-auto - Avoid using github source link to please factory-auto OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyinotify?expand=0&rev=18 --- python-pyinotify.changes | 5 +++++ python-pyinotify.spec | 26 +++++++++++--------------- python3-pyinotify.changes | 5 +++++ python3-pyinotify.spec | 13 ++++++------- 4 files changed, 27 insertions(+), 22 deletions(-) diff --git a/python-pyinotify.changes b/python-pyinotify.changes index f50af19..24651cd 100644 --- a/python-pyinotify.changes +++ b/python-pyinotify.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +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 diff --git a/python-pyinotify.spec b/python-pyinotify.spec index 20ceef0..2838bce 100644 --- a/python-pyinotify.spec +++ b/python-pyinotify.spec @@ -16,26 +16,22 @@ # -%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")} -%{!?python_sitearch: %global python_sitearch %(python -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")} - Name: python-pyinotify Version: 0.9.4 -Release: 1 -License: MIT +Release: 0 Summary: Python module for watching filesystems changes -Url: http://github.com/seb-m/pyinotify +License: MIT Group: Development/Libraries/Python +Url: http://github.com/seb-m/pyinotify # downloaded from https://github.com/seb-m/pyinotify/tags -Source: http://download.github.com/pyinotify-%{version}.tar.gz +Source: pyinotify-%{version}.tar.gz Source1: pyinotify -BuildRequires: perl BuildRequires: python-devel BuildRoot: %{_tmppath}/%{name}-%{version}-build -%if 0%{?suse_version} >= 1120 -BuildArch: noarch +%if 0%{?suse_version} && 0%{?suse_version} <= 1110 +%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} %else -%{py_requires} +BuildArch: noarch %endif %description @@ -61,13 +57,13 @@ notifications. python setup.py build %install -python ./setup.py install --prefix=%{_prefix} --root=%{buildroot} --record-rpm=INSTALLED_FILES +python ./setup.py install --prefix=%{_prefix} --root=%{buildroot} install -D -m 0755 %{SOURCE1} %{buildroot}%{_bindir}/pyinotify -%files -f INSTALLED_FILES +%files %defattr(-,root,root) -%doc ACKS COPYING README.md -%doc python2/examples +%doc ACKS COPYING README.md python2/examples %{_bindir}/pyinotify +%{python_sitelib}/* %changelog diff --git a/python3-pyinotify.changes b/python3-pyinotify.changes index 9631c39..4eb3aa5 100644 --- a/python3-pyinotify.changes +++ b/python3-pyinotify.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Jan 18 14:22:32 UTC 2013 - saschpe@suse.de + +- Avoid using github source link to please factory-auto + ------------------------------------------------------------------- Sun Jan 13 17:11:43 UTC 2013 - p.drouand@gmail.com diff --git a/python3-pyinotify.spec b/python3-pyinotify.spec index 24304ea..6bc7e8b 100644 --- a/python3-pyinotify.spec +++ b/python3-pyinotify.spec @@ -15,17 +15,17 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ # + Name: python3-pyinotify Version: 0.9.4 -Release: 1 -License: MIT +Release: 0 Summary: Python module for watching filesystems changes -Url: http://github.com/seb-m/pyinotify +License: MIT Group: Development/Libraries/Python +Url: http://github.com/seb-m/pyinotify # downloaded from https://github.com/seb-m/pyinotify/tags -Source: http://download.github.com/pyinotify-%{version}.tar.gz +Source: pyinotify-%{version}.tar.gz Source1: pyinotify -BuildRequires: perl BuildRequires: python3 BuildRequires: python3-devel BuildRequires: python3-distribute @@ -62,8 +62,7 @@ install -D -m 0755 %{SOURCE1} %{buildroot}%{_bindir}/pyinotify-%{py3_ver} %files %defattr(-,root,root) -%doc ACKS COPYING README.md -%doc python2/examples +%doc ACKS COPYING README.md python2/examples %{_bindir}/pyinotify-%{py3_ver} %{python3_sitelib}/*