From f62165d706f835c9a1a50c27f9a29a67fbe29d2f07358c47827534644a30d0ac Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Tue, 4 Dec 2018 13:51:34 +0000 Subject: [PATCH 1/2] Remove superfluous devel dependency for noarch package OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyinotify?expand=0&rev=28 --- python-pyinotify.changes | 5 +++++ python-pyinotify.spec | 5 ++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/python-pyinotify.changes b/python-pyinotify.changes index 2d67a24..e4aa7d8 100644 --- a/python-pyinotify.changes +++ b/python-pyinotify.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Dec 4 12:52:19 UTC 2018 - Matej Cepl + +- Remove superfluous devel dependency for noarch package + ------------------------------------------------------------------- Thu Aug 24 13:50:56 UTC 2017 - jmatejek@suse.com diff --git a/python-pyinotify.spec b/python-pyinotify.spec index 2a413da..31374f9 100644 --- a/python-pyinotify.spec +++ b/python-pyinotify.spec @@ -1,7 +1,7 @@ # # spec file for package python-pyinotify # -# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -12,7 +12,7 @@ # 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/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # @@ -26,7 +26,6 @@ Group: Development/Libraries/Python Url: http://github.com/seb-m/pyinotify Source: https://files.pythonhosted.org/packages/source/p/pyinotify/pyinotify-%{version}.tar.gz Source1: pyinotify -BuildRequires: %{python_module devel} BuildRequires: %{python_module setuptools} BuildRequires: python-rpm-macros BuildArch: noarch From 0494d3a1e8996112163eaf5fdd9331418548b2eaae5712366173fe759ef20b35 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Tue, 4 Dec 2018 17:19:26 +0000 Subject: [PATCH 2/2] Clean up the SPEC file OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyinotify?expand=0&rev=29 --- python-pyinotify.spec | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/python-pyinotify.spec b/python-pyinotify.spec index 31374f9..c5077b8 100644 --- a/python-pyinotify.spec +++ b/python-pyinotify.spec @@ -23,14 +23,14 @@ Release: 0 Summary: Python module for watching filesystems changes License: MIT Group: Development/Libraries/Python -Url: http://github.com/seb-m/pyinotify +URL: http://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 -Requires(post): update-alternatives -Requires(postun): update-alternatives %python_subpackages %description @@ -53,8 +53,8 @@ notifications. %setup -q -n pyinotify-%{version} # remove unwanted shebang sed -i '/^#!/ d' python2/pyinotify.py -sed -i "s|#!/usr/bin/env python|#!%__python2|" python2/examples/*py -sed -i "s|#!/usr/bin/env python|#!%__python3|" python3/examples/*py +sed -i "s|#!%{_bindir}/env python|#!%__python2|" python2/examples/*py +sed -i "s|#!%{_bindir}/env python|#!%__python3|" python3/examples/*py %build %python_build @@ -71,8 +71,8 @@ install -D -m 0755 %{SOURCE1} %{buildroot}%{_bindir}/pyinotify %python_uninstall_alternative pyinotify %files %{python_files} -%defattr(-,root,root) -%doc ACKS COPYING README.md +%license COPYING +%doc ACKS README.md %doc old/ChangeLog old/NEWS %python2_only %doc python2/examples %python3_only %doc python3/examples