From b1262ea1c9503741c5735e7736c649fc5edc809fd8aeded5c33775ad09de60ea Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Tue, 4 Dec 2018 14:03:57 +0000 Subject: [PATCH 1/2] Remove superfluous devel dependency for noarch package OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-simplegeneric?expand=0&rev=7 --- python-simplegeneric.changes | 5 +++++ python-simplegeneric.spec | 12 ++++++------ 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/python-simplegeneric.changes b/python-simplegeneric.changes index 7a75e77..b7a5b12 100644 --- a/python-simplegeneric.changes +++ b/python-simplegeneric.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Dec 4 12:54:20 UTC 2018 - Matej Cepl + +- Remove superfluous devel dependency for noarch package + ------------------------------------------------------------------- Tue Apr 25 21:49:49 UTC 2017 - toddrme2178@gmail.com diff --git a/python-simplegeneric.spec b/python-simplegeneric.spec index 8876173..24b7e2a 100644 --- a/python-simplegeneric.spec +++ b/python-simplegeneric.spec @@ -1,7 +1,7 @@ # # spec file for package python-simplegeneric # -# Copyright (c) 2017 SUSE LINUX Products 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,22 +12,22 @@ # 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-%{**}} Name: python-simplegeneric Version: 0.8.1 Release: 0 -License: ZPL-2.1 Summary: Simple generic functions (similar to Python's own len(), pickle.dump(), etc) -Url: http://cheeseshop.python.org/pypi/simplegeneric +License: ZPL-2.1 Group: Development/Languages/Python +Url: http://cheeseshop.python.org/pypi/simplegeneric Source: https://files.pythonhosted.org/packages/source/s/simplegeneric/simplegeneric-%{version}.zip BuildRequires: fdupes -BuildRequires: unzip BuildRequires: python-rpm-macros -BuildRequires: %{python_module devel} +BuildRequires: unzip BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildArch: noarch %python_subpackages From b3056f7a68c3cd3d20900c2a64e75c37c9fa45f45d15203222129517ba4493d0 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Thu, 6 Dec 2018 23:10:09 +0000 Subject: [PATCH 2/2] Fix BR OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-simplegeneric?expand=0&rev=8 --- python-simplegeneric.spec | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/python-simplegeneric.spec b/python-simplegeneric.spec index 24b7e2a..a9d25ce 100644 --- a/python-simplegeneric.spec +++ b/python-simplegeneric.spec @@ -23,12 +23,12 @@ Release: 0 Summary: Simple generic functions (similar to Python's own len(), pickle.dump(), etc) License: ZPL-2.1 Group: Development/Languages/Python -Url: http://cheeseshop.python.org/pypi/simplegeneric +URL: http://cheeseshop.python.org/pypi/simplegeneric Source: https://files.pythonhosted.org/packages/source/s/simplegeneric/simplegeneric-%{version}.zip +BuildRequires: %{python_module base} BuildRequires: fdupes BuildRequires: python-rpm-macros BuildRequires: unzip -BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildArch: noarch %python_subpackages @@ -64,7 +64,6 @@ less than 100 lines. %python_expand %fdupes %{buildroot}%{$python_sitelib} %files %{python_files} -%defattr(-,root,root,-) %doc README.txt %{python_sitelib}/*