From da6ce7d6ee25e90066365a2332fedea20007bc98f14f80203aae0254c7d04a6b Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Tue, 4 Dec 2018 14:13:20 +0000 Subject: [PATCH 1/2] Remove superfluous devel dependency for noarch package OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-waitress?expand=0&rev=23 --- python-waitress.changes | 5 +++++ python-waitress.spec | 5 ++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/python-waitress.changes b/python-waitress.changes index 4a4f769..c41e0eb 100644 --- a/python-waitress.changes +++ b/python-waitress.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Dec 4 12:55:53 UTC 2018 - Matej Cepl + +- Remove superfluous devel dependency for noarch package + ------------------------------------------------------------------- Fri Oct 13 00:49:45 UTC 2017 - arun@gmx.de diff --git a/python-waitress.spec b/python-waitress.spec index 1ba27d5..059474d 100644 --- a/python-waitress.spec +++ b/python-waitress.spec @@ -1,7 +1,7 @@ # # spec file for package python-waitress # -# 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/ # @@ -28,7 +28,6 @@ License: ZPL-2.1 Group: Development/Languages/Python Url: https://github.com/Pylons/waitress Source: https://files.pythonhosted.org/packages/source/w/waitress/waitress-%{version}.tar.gz -BuildRequires: %{python_module devel} BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros From 9af7d9789ad87a218281a791318d241c84007ad37775204a3f1d0636db09f6cf Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Tue, 4 Dec 2018 17:25:22 +0000 Subject: [PATCH 2/2] Clean up the SPEC file OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-waitress?expand=0&rev=24 --- python-waitress.spec | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/python-waitress.spec b/python-waitress.spec index 059474d..48d871a 100644 --- a/python-waitress.spec +++ b/python-waitress.spec @@ -16,27 +16,25 @@ # +%{?!python_module:%define python_module() python-%{**} python3-%{**}} # Tests require a network connection %bcond_with tests - -%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-waitress Version: 1.1.0 Release: 0 Summary: Waitress WSGI server License: ZPL-2.1 Group: Development/Languages/Python -Url: https://github.com/Pylons/waitress +URL: https://github.com/Pylons/waitress Source: https://files.pythonhosted.org/packages/source/w/waitress/waitress-%{version}.tar.gz BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros +BuildArch: noarch %if %{with tests} # Test requirements: BuildRequires: %{python_module nose} %endif -BuildRoot: %{_tmppath}/%{name}-%{version}-build -BuildArch: noarch %python_subpackages %description @@ -65,8 +63,8 @@ http://docs.pylonsproject.org/projects/waitress/en/latest/ . %endif %files %{python_files} -%defattr(-,root,root,-) -%doc COPYRIGHT.txt LICENSE.txt README.rst +%license LICENSE.txt +%doc COPYRIGHT.txt README.rst %python3_only %{_bindir}/waitress-serve %{python_sitelib}/*