From 2bb75e930370d1a3b097a04603df207048da7285f429fa346f8b13be41138edb Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Tue, 4 Dec 2018 17:19:06 +0000 Subject: [PATCH] Clean up the SPEC file OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-py-cpuinfo?expand=0&rev=6 --- python-py-cpuinfo.spec | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/python-py-cpuinfo.spec b/python-py-cpuinfo.spec index cb51970..2c45c23 100644 --- a/python-py-cpuinfo.spec +++ b/python-py-cpuinfo.spec @@ -16,24 +16,22 @@ # -%bcond_without tests - %{?!python_module:%define python_module() python-%{**} python3-%{**}} +%bcond_without tests Name: python-py-cpuinfo Version: 3.1.0 Release: 0 Summary: Get CPU info with pure Python License: MIT Group: Development/Languages/Python -Url: https://github.com/workhorsy/py-cpuinfo +URL: https://github.com/workhorsy/py-cpuinfo Source: https://files.pythonhosted.org/packages/source/p/py-cpuinfo/py-cpuinfo-%{version}.tar.gz BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros -BuildRoot: %{_tmppath}/%{name}-%{version}-build -BuildArch: noarch Requires(post): update-alternatives Requires(preun): update-alternatives +BuildArch: noarch %python_subpackages %description @@ -80,8 +78,8 @@ These approaches are used for getting info: %python_uninstall_alternative cpuinfo %files %{python_files} -%defattr(-,root,root,-) -%doc README.rst LICENSE ChangeLog +%license LICENSE +%doc README.rst ChangeLog %python_alternative %{_bindir}/cpuinfo %{python_sitelib}/*