From da525e6696879556476bc5cba7d90e9d69a20689dcbc88f0fa9571b2033d3911 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Tue, 4 Dec 2018 17:26:07 +0000 Subject: [PATCH] Clean up the SPEC file OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-WSGIProxy2?expand=0&rev=17 --- python-WSGIProxy2.spec | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/python-WSGIProxy2.spec b/python-WSGIProxy2.spec index 4feeacb..d1e1c7d 100644 --- a/python-WSGIProxy2.spec +++ b/python-WSGIProxy2.spec @@ -16,29 +16,27 @@ # +%{?!python_module:%define python_module() python-%{**} python3-%{**}} # Tests have dependency loop with python-WebTest %bcond_with tests - -%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-WSGIProxy2 Version: 0.4.3 Release: 0 Summary: WSGI Proxy Implementation License: MIT Group: Development/Languages/Python -Url: https://github.com/gawel/WSGIProxy2/ +URL: https://github.com/gawel/WSGIProxy2/ Source: https://files.pythonhosted.org/packages/source/W/WSGIProxy2/WSGIProxy2-%{version}.tar.gz BuildRequires: %{python_module WebOb} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module six} BuildRequires: fdupes BuildRequires: python-rpm-macros +Conflicts: python-WSGIProxy +BuildArch: noarch %if %{with tests} BuildRequires: %{python_module WebTest} %endif -Conflicts: python-WSGIProxy -BuildRoot: %{_tmppath}/%{name}-%{version}-build -BuildArch: noarch %python_subpackages %description @@ -60,8 +58,8 @@ Proxy support for WebOb or classic WSGI applications %endif %files %{python_files} -%defattr(-,root,root,-) -%doc CHANGES.rst COPYING README.rst +%license COPYING +%doc CHANGES.rst README.rst %{python_sitelib}/* %changelog