From 5cbd84d85f513157ac812eec1000344fd6251bf2b19009ff4b4c991c22ccd6f6 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Tue, 4 Dec 2018 13:48:40 +0000 Subject: [PATCH 1/2] Remove superfluous devel dependency for noarch package OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pulsectl?expand=0&rev=3 --- python-pulsectl.changes | 5 +++++ python-pulsectl.spec | 16 ++++++++-------- 2 files changed, 13 insertions(+), 8 deletions(-) diff --git a/python-pulsectl.changes b/python-pulsectl.changes index c9139a5..7b3d545 100644 --- a/python-pulsectl.changes +++ b/python-pulsectl.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Dec 4 12:51:49 UTC 2018 - Matej Cepl + +- Remove superfluous devel dependency for noarch package + ------------------------------------------------------------------- Fri Jan 5 09:16:09 UTC 2018 - alarrosa@suse.com diff --git a/python-pulsectl.spec b/python-pulsectl.spec index 16f012f..49058b6 100644 --- a/python-pulsectl.spec +++ b/python-pulsectl.spec @@ -1,7 +1,7 @@ # # spec file for package python-pulsectl # -# 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,8 @@ # 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/ +# %{?!python_module:%define python_module() python-%{**} python3-%{**}} @@ -20,22 +21,21 @@ Name: python-pulsectl Version: 17.12.2 Release: 0 -License: MIT Summary: Python high-level interface and ctypes-based bindings for PulseAudio (libpulse) -Url: http://github.com/mk-fg/python-pulse-control +License: MIT Group: Development/Languages/Python +Url: http://github.com/mk-fg/python-pulse-control Source: https://files.pythonhosted.org/packages/source/p/pulsectl/pulsectl-%{version}.tar.gz -BuildRequires: python-rpm-macros -BuildRequires: %{python_module devel} BuildRequires: %{python_module setuptools} +BuildRequires: python-rpm-macros %if %{with test} +BuildRequires: libpulse-devel >= 5.0 BuildRequires: pulseaudio BuildRequires: pulseaudio-utils -BuildRequires: libpulse-devel >= 5.0 %endif BuildRequires: fdupes -Requires: python-setuptools Requires: pulseaudio >= 5.0 +Requires: python-setuptools BuildArch: noarch %python_subpackages From 3a6c0ec3266f08bc95fa26167d4fb87032dda2a24321e0782b5f974813658610 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Tue, 4 Dec 2018 17:18:55 +0000 Subject: [PATCH 2/2] Clean up the SPEC file OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pulsectl?expand=0&rev=4 --- python-pulsectl.spec | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/python-pulsectl.spec b/python-pulsectl.spec index 49058b6..fab2de6 100644 --- a/python-pulsectl.spec +++ b/python-pulsectl.spec @@ -24,20 +24,19 @@ Release: 0 Summary: Python high-level interface and ctypes-based bindings for PulseAudio (libpulse) License: MIT Group: Development/Languages/Python -Url: http://github.com/mk-fg/python-pulse-control +URL: http://github.com/mk-fg/python-pulse-control Source: https://files.pythonhosted.org/packages/source/p/pulsectl/pulsectl-%{version}.tar.gz BuildRequires: %{python_module setuptools} +BuildRequires: fdupes BuildRequires: python-rpm-macros +Requires: pulseaudio >= 5.0 +Requires: python-setuptools +BuildArch: noarch %if %{with test} BuildRequires: libpulse-devel >= 5.0 BuildRequires: pulseaudio BuildRequires: pulseaudio-utils %endif -BuildRequires: fdupes -Requires: pulseaudio >= 5.0 -Requires: python-setuptools -BuildArch: noarch - %python_subpackages %description @@ -62,8 +61,8 @@ play, player-like client). %endif %files %{python_files} -%defattr(-,root,root,-) -%doc CHANGES.rst COPYING README.rst +%license COPYING +%doc CHANGES.rst README.rst %{python_sitelib}/* %changelog