Accepting request 659589 from devel:languages:python

Remove superfluous devel dependency for noarch package

OBS-URL: https://build.opensuse.org/request/show/659589
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pyinotify?expand=0&rev=16
This commit is contained in:
Dominique Leuenberger 2018-12-24 10:41:58 +00:00 committed by Git OBS Bridge
commit 670169db91
2 changed files with 14 additions and 10 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
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

View File

@ -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/
#
@ -23,15 +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 devel}
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
@ -54,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
@ -72,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