From 712e04e468e862da7d09dabccc3502292c0da774b6a0cc7e1fc4032bf6e5e138 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Tue, 4 Dec 2018 13:26:50 +0000 Subject: [PATCH 1/2] Remove superfluous devel dependency for noarch package OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-fasteners?expand=0&rev=10 --- python-fasteners.changes | 5 +++++ python-fasteners.spec | 10 +++++----- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/python-fasteners.changes b/python-fasteners.changes index 62b7bcf..b874271 100644 --- a/python-fasteners.changes +++ b/python-fasteners.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Dec 4 12:47:54 UTC 2018 - Matej Cepl + +- Remove superfluous devel dependency for noarch package + ------------------------------------------------------------------- Wed May 3 15:34:35 UTC 2017 - toddrme2178@gmail.com diff --git a/python-fasteners.spec b/python-fasteners.spec index 89a74db..0ebd192 100644 --- a/python-fasteners.spec +++ b/python-fasteners.spec @@ -1,7 +1,7 @@ # # spec file for package python-fasteners # -# 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,9 +12,10 @@ # 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/ # + %bcond_without tests %{?!python_module:%define python_module() python-%{**} python3-%{**}} @@ -26,14 +27,13 @@ License: Apache-2.0 Group: Development/Languages/Python Url: https://github.com/harlowja/fasteners Source: https://files.pythonhosted.org/packages/source/f/fasteners/fasteners-%{version}.tar.gz +BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros -BuildRequires: %{python_module devel} -BuildRequires: %{python_module setuptools} %if %{with tests} +BuildRequires: %{python_module monotonic >= 0.1} BuildRequires: %{python_module pytest} BuildRequires: %{python_module testtools} -BuildRequires: %{python_module monotonic >= 0.1} BuildRequires: python-futures %endif Requires: python-monotonic >= 0.1 From 121228f37142973f2b4740d6c711ceedd05ca5a51739395ed6edde2d1f5fcb61 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Tue, 4 Dec 2018 17:13:18 +0000 Subject: [PATCH 2/2] Clean up the SPEC file OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-fasteners?expand=0&rev=11 --- python-fasteners.spec | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/python-fasteners.spec b/python-fasteners.spec index 0ebd192..52fa426 100644 --- a/python-fasteners.spec +++ b/python-fasteners.spec @@ -16,30 +16,28 @@ # -%bcond_without tests - %{?!python_module:%define python_module() python-%{**} python3-%{**}} +%bcond_without tests Name: python-fasteners Version: 0.14.1 Release: 0 Summary: A python package that provides useful locks License: Apache-2.0 Group: Development/Languages/Python -Url: https://github.com/harlowja/fasteners +URL: https://github.com/harlowja/fasteners Source: https://files.pythonhosted.org/packages/source/f/fasteners/fasteners-%{version}.tar.gz BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros +Requires: python-monotonic >= 0.1 +Requires: python-six +BuildArch: noarch %if %{with tests} BuildRequires: %{python_module monotonic >= 0.1} BuildRequires: %{python_module pytest} BuildRequires: %{python_module testtools} BuildRequires: python-futures %endif -Requires: python-monotonic >= 0.1 -Requires: python-six -BuildRoot: %{_tmppath}/%{name}-%{version}-build -BuildArch: noarch %python_subpackages %description @@ -70,8 +68,8 @@ popd %endif %files %{python_files} -%defattr(-,root,root,-) -%doc ChangeLog LICENSE README.rst +%license LICENSE +%doc ChangeLog README.rst %{python_sitelib}/* %changelog