- 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)

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-linux-procfs?expand=0&rev=2
This commit is contained in:
Tomáš Chvátal 2018-12-11 09:22:12 +00:00 committed by Git OBS Bridge
parent 2140e911c9
commit 686492aea6
2 changed files with 20 additions and 15 deletions

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Tue Dec 11 09:21:25 UTC 2018 - Tomáš Chvátal <tchvatal@suse.com>
- 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

View File

@ -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