Rebase to upstream version 0.7.4

Rebase to upstream version 0.7.4
Convert to pyproject-based build using pyproject.toml
Remove python3-six dependency (no longer needed)
Remove distutils patch (no longer needed with pyproject build)
Resolves: RHEL-114904

Signed-off-by: John Kacur <jkacur@redhat.com>
This commit is contained in:
John Kacur 2025-10-22 11:14:52 -04:00
parent f43cfe69d3
commit fff3ffa041
3 changed files with 19 additions and 15 deletions

1
.gitignore vendored
View File

@ -10,3 +10,4 @@ python-linux-procfs-0.4.4.tar.bz2
/python-linux-procfs-0.7.0.tar.xz /python-linux-procfs-0.7.0.tar.xz
/python-linux-procfs-0.7.1.tar.xz /python-linux-procfs-0.7.1.tar.xz
/python-linux-procfs-0.7.3.tar.xz /python-linux-procfs-0.7.3.tar.xz
/python-linux-procfs-0.7.4.tar.xz

View File

@ -4,8 +4,8 @@
%endif %endif
Name: python-linux-procfs Name: python-linux-procfs
Version: 0.7.3 Version: 0.7.4
Release: 7%{?dist} Release: 1%{?dist}
License: GPL-2.0-only License: GPL-2.0-only
Summary: Linux /proc abstraction classes Summary: Linux /proc abstraction classes
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
@ -13,8 +13,7 @@ URL: https://rt.wiki.kernel.org/index.php/Tuna
BuildArch: noarch BuildArch: noarch
BuildRequires: python3-devel BuildRequires: python3-devel
BuildRequires: python3-setuptools BuildRequires: python3-setuptools
BuildRequires: pyproject-rpm-macros
# Patches
%global _description\ %global _description\
Abstractions to extract information from the Linux kernel /proc files. Abstractions to extract information from the Linux kernel /proc files.
@ -25,29 +24,33 @@ Abstractions to extract information from the Linux kernel /proc files.
Summary: %summary Summary: %summary
%{?python_provide:%python_provide python3-linux-procfs} %{?python_provide:%python_provide python3-linux-procfs}
Requires: python3-six
%description -n python3-linux-procfs %_description %description -n python3-linux-procfs %_description
%prep %prep
%autosetup -p1 %autosetup -p1
%generate_buildrequires
%pyproject_buildrequires
%build %build
%py3_build %pyproject_wheel
%install %install
rm -rf %{buildroot} %pyproject_install
%py3_install %pyproject_save_files procfs
%files -n python3-linux-procfs %files -n python3-linux-procfs -f %{pyproject_files}
%defattr(0755,root,root,0755)
%{_bindir}/pflags %{_bindir}/pflags
%{python3_sitelib}/procfs/
%defattr(0644,root,root,0755)
%{python3_sitelib}/python_linux_procfs*.egg-info
%license COPYING %license COPYING
%changelog %changelog
* Wed Oct 22 2025 John Kacur <jkacur@redhat.com> - 0.7.4-1
- Rebase to upstream version 0.7.4
- Convert to pyproject-based build using pyproject.toml
- Remove python3-six dependency (no longer needed)
- Remove distutils patch (no longer needed with pyproject build)
Resolves: RHEL-114904
* Tue Oct 29 2024 Troy Dawson <tdawson@redhat.com> - 0.7.3-7 * Tue Oct 29 2024 Troy Dawson <tdawson@redhat.com> - 0.7.3-7
- Bump release for October 2024 mass rebuild: - Bump release for October 2024 mass rebuild:
Resolves: RHEL-64018 Resolves: RHEL-64018

View File

@ -1 +1 @@
SHA512 (python-linux-procfs-0.7.3.tar.xz) = c75b82667ac3d4bf6b225185f9d8af1e9bf25de2f5bdd8f02ef052428c069d5cde14ac4e62969f2b78dee78eaa62f1b3d38ecedb5b10fd2d0950345cd95304de SHA512 (python-linux-procfs-0.7.4.tar.xz) = 77bd0cc1d33a930bc63afdd7d72d4e69ec7f343922682e028a6547d53da996d6b89883d7bc8639f367fa6d6e61fd924b13ca11a7d7ae88de25dba7789e280aa4