Update setup.py for older distributions
Use explicit setup.py build commands Resolves: RHEL-119895 Signed-off-by: John Kacur <jkacur@redhat.com>
This commit is contained in:
parent
372d6d729f
commit
7636166183
@ -1,4 +1,4 @@
|
|||||||
From c19382fe2faa38e4245b83e42dd67fc810b01dba Mon Sep 17 00:00:00 2001
|
From db0befabfdecefc8ba3ef8f86d0704a5cf7ace9f Mon Sep 17 00:00:00 2001
|
||||||
From: John Kacur <jkacur@redhat.com>
|
From: John Kacur <jkacur@redhat.com>
|
||||||
Date: Wed, 19 Nov 2025 11:12:44 -0500
|
Date: Wed, 19 Nov 2025 11:12:44 -0500
|
||||||
Subject: [PATCH] python-linux-procfs: Add setup.py for older distributions
|
Subject: [PATCH] python-linux-procfs: Add setup.py for older distributions
|
||||||
@ -13,17 +13,17 @@ on RPM-based systems.
|
|||||||
Assisted-By: Claude <noreply@anthropic.com>
|
Assisted-By: Claude <noreply@anthropic.com>
|
||||||
Signed-off-by: John Kacur <jkacur@redhat.com>
|
Signed-off-by: John Kacur <jkacur@redhat.com>
|
||||||
---
|
---
|
||||||
setup.py | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++
|
setup.py | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++
|
||||||
1 file changed, 52 insertions(+)
|
1 file changed, 51 insertions(+)
|
||||||
create mode 100644 setup.py
|
create mode 100644 setup.py
|
||||||
|
|
||||||
diff --git a/setup.py b/setup.py
|
diff --git a/setup.py b/setup.py
|
||||||
new file mode 100644
|
new file mode 100644
|
||||||
index 000000000000..7a711331607f
|
index 000000000000..d048571c3b5c
|
||||||
--- /dev/null
|
--- /dev/null
|
||||||
+++ b/setup.py
|
+++ b/setup.py
|
||||||
@@ -0,0 +1,52 @@
|
@@ -0,0 +1,51 @@
|
||||||
+#!/usr/bin/env python3
|
+#!/usr/bin/python
|
||||||
+# SPDX-License-Identifier: GPL-2.0-only
|
+# SPDX-License-Identifier: GPL-2.0-only
|
||||||
+#
|
+#
|
||||||
+# setup.py - Legacy setup script for older distributions
|
+# setup.py - Legacy setup script for older distributions
|
||||||
@ -59,9 +59,11 @@ index 000000000000..7a711331607f
|
|||||||
+ maintainer_email="jkacur@redhat.com",
|
+ maintainer_email="jkacur@redhat.com",
|
||||||
+ url="https://www.kernel.org/pub/software/libs/python/python-linux-procfs",
|
+ url="https://www.kernel.org/pub/software/libs/python/python-linux-procfs",
|
||||||
+ license="GPL-2.0-only",
|
+ license="GPL-2.0-only",
|
||||||
|
+ long_description="""\
|
||||||
|
+Abstractions to extract information from the Linux kernel /proc files.
|
||||||
|
+""",
|
||||||
+ packages=find_packages(include=["procfs*"]),
|
+ packages=find_packages(include=["procfs*"]),
|
||||||
+ scripts=["pflags"],
|
+ scripts=["pflags"],
|
||||||
+ python_requires=">=3.10",
|
|
||||||
+ install_requires=[],
|
+ install_requires=[],
|
||||||
+ classifiers=[
|
+ classifiers=[
|
||||||
+ "Development Status :: 4 - Beta",
|
+ "Development Status :: 4 - Beta",
|
||||||
@ -69,9 +71,6 @@ index 000000000000..7a711331607f
|
|||||||
+ "License :: OSI Approved :: GNU General Public License v2 (GPLv2)",
|
+ "License :: OSI Approved :: GNU General Public License v2 (GPLv2)",
|
||||||
+ "Operating System :: POSIX :: Linux",
|
+ "Operating System :: POSIX :: Linux",
|
||||||
+ "Programming Language :: Python :: 3",
|
+ "Programming Language :: Python :: 3",
|
||||||
+ "Programming Language :: Python :: 3.10",
|
|
||||||
+ "Programming Language :: Python :: 3.11",
|
|
||||||
+ "Programming Language :: Python :: 3.12",
|
|
||||||
+ "Topic :: System :: Operating System Kernels :: Linux",
|
+ "Topic :: System :: Operating System Kernels :: Linux",
|
||||||
+ ],
|
+ ],
|
||||||
+)
|
+)
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
Name: python-linux-procfs
|
Name: python-linux-procfs
|
||||||
Version: 0.7.4
|
Version: 0.7.4
|
||||||
Release: 1%{?dist}
|
Release: 2%{?dist}
|
||||||
License: GPLv2
|
License: GPLv2
|
||||||
Summary: Linux /proc abstraction classes
|
Summary: Linux /proc abstraction classes
|
||||||
URL: https://git.kernel.org/pub/scm/libs/python/%{name}/%{name}.git
|
URL: https://git.kernel.org/pub/scm/libs/python/%{name}/%{name}.git
|
||||||
@ -21,7 +21,7 @@ Patch0: python-linux-procfs-Add-setup.py-for-older-distributions.patch
|
|||||||
Summary: %summary
|
Summary: %summary
|
||||||
%{?python_provide:%python_provide python3-linux-procfs}
|
%{?python_provide:%python_provide python3-linux-procfs}
|
||||||
|
|
||||||
Requires: python3 >= 3.10
|
Requires: python3
|
||||||
|
|
||||||
%description -n python3-linux-procfs %_description
|
%description -n python3-linux-procfs %_description
|
||||||
|
|
||||||
@ -29,11 +29,11 @@ Requires: python3 >= 3.10
|
|||||||
%autosetup -p1
|
%autosetup -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%py3_build
|
%{__python3} setup.py build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
rm -rf %{buildroot}
|
rm -rf %{buildroot}
|
||||||
%py3_install
|
%{__python3} setup.py install --root=%{buildroot}
|
||||||
|
|
||||||
%files -n python3-linux-procfs
|
%files -n python3-linux-procfs
|
||||||
%defattr(0755,root,root,0755)
|
%defattr(0755,root,root,0755)
|
||||||
@ -44,6 +44,11 @@ rm -rf %{buildroot}
|
|||||||
%license COPYING
|
%license COPYING
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Sun Nov 24 2025 John Kacur <jkacur@redhat.com> - 0.7.4-2
|
||||||
|
- Update setup.py for older distributions
|
||||||
|
- Use explicit setup.py build commands
|
||||||
|
Resolves: RHEL-119895
|
||||||
|
|
||||||
* Wed Nov 19 2025 John Kacur <jkacur@redhat.com> - 0.7.4-1
|
* Wed Nov 19 2025 John Kacur <jkacur@redhat.com> - 0.7.4-1
|
||||||
- Rebase to upstream python-linux-procfs-0.7.4
|
- Rebase to upstream python-linux-procfs-0.7.4
|
||||||
Resolves: RHEL-119895
|
Resolves: RHEL-119895
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user