diff --git a/python-linux-procfs.changes b/python-linux-procfs.changes index 7442201..3208b09 100644 --- a/python-linux-procfs.changes +++ b/python-linux-procfs.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Tue Dec 11 09:21:25 UTC 2018 - Tomáš Chvátal + +- Switch to full singlespec for others to use with all python + variants as the targets are defined in distro setup (ie py3 only + on SLE15) + ------------------------------------------------------------------- Mon Dec 10 17:10:01 UTC 2018 - trenn@suse.de diff --git a/python-linux-procfs.spec b/python-linux-procfs.spec index ce6931e..3513f87 100644 --- a/python-linux-procfs.spec +++ b/python-linux-procfs.spec @@ -17,7 +17,6 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} -%define skip_python2 1 Name: python-linux-procfs Version: 0.6 Release: 0 @@ -26,11 +25,13 @@ License: GPL-2.0-or-later Group: Development/Languages/Python URL: https://rt.wiki.kernel.org/index.php/Tuna Source: https://cdn.kernel.org/pub/software/libs/python/%{name}/%{name}-%{version}.tar.xz +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module six} +BuildRequires: fdupes BuildRequires: python-rpm-macros -BuildRequires: python3 -BuildRequires: python3-setuptools -Requires: python3-six +Requires: python-six BuildArch: noarch +%python_subpackages %description Abstractions to extract information from the Linux kernel /proc files. @@ -39,21 +40,18 @@ Abstractions to extract information from the Linux kernel /proc files. %setup -q %build -%python3_build +%python_build %install -%python3_install +%python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} %check -python3 bitmasklist_test.py +%python_exec bitmasklist_test.py -%files -%defattr(0755,root,root,0755) -%{python_sitelib}/procfs/ -%{_bindir}/pflags -%defattr(0644,root,root,0755) -%{python_sitelib}/python_linux_procfs*.egg-info -%pycache_only %dir %{python_sitelib}/procfs/__pycache__ -%pycache_only %{python_sitelib}/procfs/__pycache__/*.pyc +%files %{python_files} +%{python_sitelib}/* +%python3_only %{_bindir}/pflags %license COPYING + %changelog