Accepting request 1241014 from devel:languages:python
- Switch to pyproject macros. - No more greedy globs in %files. OBS-URL: https://build.opensuse.org/request/show/1241014 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-linux-procfs?expand=0&rev=6
This commit is contained in:
commit
755c87078b
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
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
|
Thu Feb 15 15:28:02 UTC 2024 - pgajdos@suse.com
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-linux-procfs
|
# 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
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -16,15 +16,14 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
||||||
Name: python-linux-procfs
|
Name: python-linux-procfs
|
||||||
Version: 0.7.3
|
Version: 0.7.3
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Linux /proc abstraction classes
|
Summary: Linux /proc abstraction classes
|
||||||
License: GPL-2.0-only
|
License: GPL-2.0-only
|
||||||
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 pip}
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
BuildRequires: %{python_module six}
|
BuildRequires: %{python_module six}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
@ -42,10 +41,10 @@ Abstractions to extract information from the Linux kernel /proc files.
|
|||||||
%setup -q
|
%setup -q
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%python_build
|
%pyproject_wheel
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%python_install
|
%pyproject_install
|
||||||
%python_clone -a %{buildroot}%{_bindir}/pflags
|
%python_clone -a %{buildroot}%{_bindir}/pflags
|
||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
|
||||||
@ -59,8 +58,9 @@ Abstractions to extract information from the Linux kernel /proc files.
|
|||||||
%python_uninstall_alternative pflags
|
%python_uninstall_alternative pflags
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%{python_sitelib}/*
|
|
||||||
%python_alternative %{_bindir}/pflags
|
|
||||||
%license COPYING
|
%license COPYING
|
||||||
|
%python_alternative %{_bindir}/pflags
|
||||||
|
%{python_sitelib}/procfs
|
||||||
|
%{python_sitelib}/python_linux_procfs-%{version}.dist-info
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
x
Reference in New Issue
Block a user