From c0e347eb4254a6f6ba753f3039e752336069ebb4f2652ec055b456e142b22a45 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Tue, 4 Dec 2018 17:13:07 +0000 Subject: [PATCH] Clean up the SPEC file OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-extras?expand=0&rev=21 --- python-extras.spec | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/python-extras.spec b/python-extras.spec index 1bb4563..3ace8d3 100644 --- a/python-extras.spec +++ b/python-extras.spec @@ -16,31 +16,29 @@ # +%{?!python_module:%define python_module() python-%{**} python3-%{**}} # A build cycle exists between python-extras and python-testtools. Thus, only # enable testing with a build conditional (off by default): %bcond_with tests - -%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-extras Version: 1.0.0 Release: 0 Summary: Useful extra bits for Python License: MIT Group: Development/Languages/Python -Url: https://github.com/testing-cabal/extras -Source: https://pypi.io/packages/source/e/extras/extras-%{version}.tar.gz +URL: https://github.com/testing-cabal/extras +Source: https://files.pythonhosted.org/packages/source/e/extras/extras-%{version}.tar.gz BuildRequires: %{python_module setuptools} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +# Break cycle +#!BuildIgnore: python-extras +BuildArch: noarch # Test requirements: %if %{with tests} BuildRequires: %{python_module nose} BuildRequires: %{python_module testtools} %endif -BuildRequires: fdupes -BuildRequires: python-rpm-macros -# Break cycle -#!BuildIgnore: python-extras -BuildRoot: %{_tmppath}/%{name}-%{version}-build -BuildArch: noarch %python_subpackages %description @@ -64,8 +62,8 @@ general use outside of a testing context. %endif %files %{python_files} -%defattr(-,root,root,-) -%doc LICENSE NEWS README.rst +%license LICENSE +%doc NEWS README.rst %{python_sitelib}/extras %{python_sitelib}/extras-%{version}-py%{python_version}.egg-info/