forked from pool/python-linux-procfs
- 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:
parent
2140e911c9
commit
686492aea6
@ -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
|
Mon Dec 10 17:10:01 UTC 2018 - trenn@suse.de
|
||||||
|
|
||||||
|
@ -17,7 +17,6 @@
|
|||||||
|
|
||||||
|
|
||||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||||
%define skip_python2 1
|
|
||||||
Name: python-linux-procfs
|
Name: python-linux-procfs
|
||||||
Version: 0.6
|
Version: 0.6
|
||||||
Release: 0
|
Release: 0
|
||||||
@ -26,11 +25,13 @@ License: GPL-2.0-or-later
|
|||||||
Group: Development/Languages/Python
|
Group: Development/Languages/Python
|
||||||
URL: https://rt.wiki.kernel.org/index.php/Tuna
|
URL: https://rt.wiki.kernel.org/index.php/Tuna
|
||||||
Source: https://cdn.kernel.org/pub/software/libs/python/%{name}/%{name}-%{version}.tar.xz
|
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: python-rpm-macros
|
||||||
BuildRequires: python3
|
Requires: python-six
|
||||||
BuildRequires: python3-setuptools
|
|
||||||
Requires: python3-six
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
%python_subpackages
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Abstractions to extract information from the Linux kernel /proc files.
|
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
|
%setup -q
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%python3_build
|
%python_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%python3_install
|
%python_install
|
||||||
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
python3 bitmasklist_test.py
|
%python_exec bitmasklist_test.py
|
||||||
|
|
||||||
%files
|
%files %{python_files}
|
||||||
%defattr(0755,root,root,0755)
|
%{python_sitelib}/*
|
||||||
%{python_sitelib}/procfs/
|
%python3_only %{_bindir}/pflags
|
||||||
%{_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
|
|
||||||
%license COPYING
|
%license COPYING
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
x
Reference in New Issue
Block a user