From cf02f15aa372e7a44c51c8959859056d8d0170fb328900cfeb141e691822c385 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Tue, 4 Dec 2018 13:22:10 +0000 Subject: [PATCH 1/2] Remove superfluous devel dependency for noarch package OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cssutils?expand=0&rev=46 --- python-cssutils.changes | 5 +++++ python-cssutils.spec | 7 +++---- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/python-cssutils.changes b/python-cssutils.changes index e0c7098..d89a0f0 100644 --- a/python-cssutils.changes +++ b/python-cssutils.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Dec 4 12:47:04 UTC 2018 - Matej Cepl + +- Remove superfluous devel dependency for noarch package + ------------------------------------------------------------------- Thu Aug 24 13:35:14 UTC 2017 - jmatejek@suse.com diff --git a/python-cssutils.spec b/python-cssutils.spec index f1209b7..1cd67a5 100644 --- a/python-cssutils.spec +++ b/python-cssutils.spec @@ -1,7 +1,7 @@ # # spec file for package python-cssutils # -# 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/ # @@ -22,11 +22,10 @@ Name: python-cssutils Version: 1.0.2 Release: 0 Summary: A CSS Cascading Style Sheets library for Python -License: LGPL-3.0+ +License: LGPL-3.0-or-later Group: Development/Languages/Python Url: http://cthedot.de/cssutils/ Source: https://files.pythonhosted.org/packages/source/c/cssutils/cssutils-%{version}.tar.gz -BuildRequires: %{python_module devel} BuildRequires: %{python_module setuptools} BuildRequires: python-rpm-macros BuildArch: noarch From 97ca25bfb8daf0a315cd0a643791fe70bb41f7f9a6ccce3d20196609f4e5c3b5 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Tue, 4 Dec 2018 17:11:47 +0000 Subject: [PATCH 2/2] Clean up the SPEC file OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cssutils?expand=0&rev=47 --- python-cssutils.spec | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/python-cssutils.spec b/python-cssutils.spec index 1cd67a5..52d2646 100644 --- a/python-cssutils.spec +++ b/python-cssutils.spec @@ -24,17 +24,17 @@ Release: 0 Summary: A CSS Cascading Style Sheets library for Python License: LGPL-3.0-or-later Group: Development/Languages/Python -Url: http://cthedot.de/cssutils/ +URL: http://cthedot.de/cssutils/ Source: https://files.pythonhosted.org/packages/source/c/cssutils/cssutils-%{version}.tar.gz BuildRequires: %{python_module setuptools} BuildRequires: python-rpm-macros +Requires(post): update-alternatives +Requires(postun): update-alternatives BuildArch: noarch %ifpython2 Provides: %{oldpython}-css-utils-doc = %{version} Obsoletes: %{oldpython}-css-utils-doc < %{version} %endif -Requires(post): update-alternatives -Requires(postun): update-alternatives %python_subpackages %description @@ -61,8 +61,8 @@ sed -i "s/\r//" src/cssutils/{sac,scripts/csscombine,tokenize2}.py COPYING COPYI %python_uninstall_alternative csscapture %files %{python_files} -%defattr(-,root,root,-) -%doc COPYING COPYING.LESSER README.txt examples +%license COPYING COPYING.LESSER +%doc README.txt examples %python_alternative %{_bindir}/csscapture %python_alternative %{_bindir}/csscombine %python_alternative %{_bindir}/cssparse