forked from pool/python-linux-procfs
Accepting request 808635 from home:pgajdos:python
submit OBS-URL: https://build.opensuse.org/request/show/808635 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-linux-procfs?expand=0&rev=4
This commit is contained in:
parent
96f15e9559
commit
3b44d95f4a
@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon May 25 06:50:38 UTC 2020 - Petr Gajdos <pgajdos@suse.com>
|
||||
|
||||
- %python3_only -> %python_alternative
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Dec 11 09:21:25 UTC 2018 - Tomáš Chvátal <tchvatal@suse.com>
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-linux-procfs
|
||||
#
|
||||
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2020 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@ -30,6 +30,8 @@ BuildRequires: %{python_module six}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires: python-six
|
||||
Requires(post): update-alternatives
|
||||
Requires(postun): update-alternatives
|
||||
BuildArch: noarch
|
||||
%python_subpackages
|
||||
|
||||
@ -44,14 +46,21 @@ Abstractions to extract information from the Linux kernel /proc files.
|
||||
|
||||
%install
|
||||
%python_install
|
||||
%python_clone -a %{buildroot}%{_bindir}/pflags
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%check
|
||||
%python_exec bitmasklist_test.py
|
||||
|
||||
%post
|
||||
%python_install_alternative pflags
|
||||
|
||||
%postun
|
||||
%python_uninstall_alternative pflags
|
||||
|
||||
%files %{python_files}
|
||||
%{python_sitelib}/*
|
||||
%python3_only %{_bindir}/pflags
|
||||
%python_alternative %{_bindir}/pflags
|
||||
%license COPYING
|
||||
|
||||
%changelog
|
||||
|
Loading…
x
Reference in New Issue
Block a user