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}/*