forked from pool/python-linux-procfs
Compare commits
4 Commits
Author | SHA256 | Date | |
---|---|---|---|
16999a049a | |||
d61b4c826f | |||
755c87078b | |||
5103f114b1 |
@@ -1,3 +1,14 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Mar 26 12:30:06 UTC 2025 - Nico Krapp <nico.krapp@suse.com>
|
||||
|
||||
- Use libalternatives instead of update-alternatives, bsc#1240096
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Jan 29 00:41:51 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
|
||||
|
||||
- Switch to pyproject macros.
|
||||
- No more greedy globs in %files.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Feb 15 15:28:02 UTC 2024 - pgajdos@suse.com
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-linux-procfs
|
||||
#
|
||||
# Copyright (c) 2024 SUSE LLC
|
||||
# Copyright (c) 2025 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -16,22 +16,32 @@
|
||||
#
|
||||
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
%if 0%{?suse_version} > 1500
|
||||
%bcond_without libalternatives
|
||||
%else
|
||||
%bcond_with libalternatives
|
||||
%endif
|
||||
|
||||
Name: python-linux-procfs
|
||||
Version: 0.7.3
|
||||
Release: 0
|
||||
Summary: Linux /proc abstraction classes
|
||||
License: GPL-2.0-only
|
||||
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 pip}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module six}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires: python-six
|
||||
%if %{with libalternatives}
|
||||
Requires: alts
|
||||
BuildRequires: alts
|
||||
%else
|
||||
Requires(post): update-alternatives
|
||||
Requires(postun): update-alternatives
|
||||
%endif
|
||||
BuildArch: noarch
|
||||
%python_subpackages
|
||||
|
||||
@@ -39,19 +49,23 @@ BuildArch: noarch
|
||||
Abstractions to extract information from the Linux kernel /proc files.
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
%autosetup -p1
|
||||
|
||||
%build
|
||||
%python_build
|
||||
%pyproject_wheel
|
||||
|
||||
%install
|
||||
%python_install
|
||||
%pyproject_install
|
||||
%python_clone -a %{buildroot}%{_bindir}/pflags
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%check
|
||||
%python_exec bitmasklist_test.py
|
||||
|
||||
%pre
|
||||
# If libalternatives is used: Removing old update-alternatives entries.
|
||||
%python_libalternatives_reset_alternative pflags
|
||||
|
||||
%post
|
||||
%python_install_alternative pflags
|
||||
|
||||
@@ -59,8 +73,9 @@ Abstractions to extract information from the Linux kernel /proc files.
|
||||
%python_uninstall_alternative pflags
|
||||
|
||||
%files %{python_files}
|
||||
%{python_sitelib}/*
|
||||
%python_alternative %{_bindir}/pflags
|
||||
%license COPYING
|
||||
%python_alternative %{_bindir}/pflags
|
||||
%{python_sitelib}/procfs
|
||||
%{python_sitelib}/python_linux_procfs-%{version}.dist-info
|
||||
|
||||
%changelog
|
||||
|
Reference in New Issue
Block a user