[packages/python3-linux-procfs] - python-linux-procfs.spec updated to 0.7.1 for python 3.6+
qboosh
qboosh at pld-linux.org
Mon Jan 16 18:13:51 CET 2023
commit 6131a0df8d52aba1fcb1b84d3ffd3ea8b3ee693b
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Mon Jan 16 18:15:00 2023 +0100
- python-linux-procfs.spec updated to 0.7.1 for python 3.6+
python-linux-procfs.spec | 98 -----------------------------------------------
python3-linux-procfs.spec | 47 +++++++++++++++++++++++
2 files changed, 47 insertions(+), 98 deletions(-)
---
diff --git a/python-linux-procfs.spec b/python-linux-procfs.spec
deleted file mode 100644
index 280d0fe..0000000
--- a/python-linux-procfs.spec
+++ /dev/null
@@ -1,98 +0,0 @@
-#
-# Conditional build:
-%bcond_without python2 # CPython 2.x module
-%bcond_without python3 # CPython 3.x module
-
-Summary: Linux /proc abstraction classes for Python 2
-Summary(pl.UTF-8): Klasy abstrakcji linuksowego /proc dla Pythona 2
-Name: python-linux-procfs
-Version: 0.7.0
-Release: 5
-License: GPL v2
-Group: Libraries/Python
-Source0: https://www.kernel.org/pub/software/libs/python/python-linux-procfs/%{name}-%{version}.tar.xz
-# Source0-md5: a6c26f7cb2ce077b4d95da0e933a7ee9
-URL: https://rt.wiki.kernel.org/index.php/Tuna
-%if %{with python2}
-BuildRequires: python-modules >= 1:2.5
-BuildRequires: python-setuptools
-%endif
-%if %{with python3}
-BuildRequires: python3-modules >= 1:3.2
-BuildRequires: python3-setuptools
-%endif
-BuildRequires: rpm-pythonprov
-BuildRequires: rpmbuild(macros) >= 1.714
-BuildRequires: tar >= 1:1.22
-BuildRequires: xz
-BuildArch: noarch
-BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
-
-%description
-Python 2 abstractions to extract information from the Linux kernel
-/proc files.
-
-%description -l pl.UTF-8
-Abstrakcje Pythona 2 do wydobywania informacji z plików /proc jądra
-Linuksa.
-
-%package -n python3-linux-procfs
-Summary: Linux /proc abstraction classes for Python 3
-Summary(pl.UTF-8): Klasy abstrakcji linuksowego /proc dla Pythona 3
-Group: Libraries/Python
-
-%description -n python3-linux-procfs
-Python 3 abstractions to extract information from the Linux kernel
-/proc files.
-
-%description -n python3-linux-procfs -l pl.UTF-8
-Abstrakcje Pythona 3 do wydobywania informacji z plików /proc jądra
-Linuksa.
-
-%prep
-%setup -q
-
-%build
-%if %{with python2}
-%py_build
-%endif
-
-%if %{with python3}
-%py3_build
-%endif
-
-%install
-rm -rf $RPM_BUILD_ROOT
-
-%if %{with python2}
-%py_install
-
-%py_postclean
-%endif
-
-%if %{with python3}
-# Make sure python2 script is removed
-%{__rm} -f $RPM_BUILD_ROOT%{_bindir}/pflags
-%py3_install
-%endif
-
-%clean
-rm -rf $RPM_BUILD_ROOT
-
-%if %{with python2}
-%files
-%defattr(644,root,root,755)
-%if %{without python3}
-%attr(755,root,root) %{_bindir}/pflags
-%endif
-%{py_sitescriptdir}/procfs
-%{py_sitescriptdir}/python_linux_procfs-%{version}-py*.egg-info
-%endif
-
-%if %{with python3}
-%files -n python3-linux-procfs
-%defattr(644,root,root,755)
-%attr(755,root,root) %{_bindir}/pflags
-%{py3_sitescriptdir}/procfs
-%{py3_sitescriptdir}/python_linux_procfs-%{version}-py*.egg-info
-%endif
diff --git a/python3-linux-procfs.spec b/python3-linux-procfs.spec
new file mode 100644
index 0000000..5630315
--- /dev/null
+++ b/python3-linux-procfs.spec
@@ -0,0 +1,47 @@
+Summary: Linux /proc abstraction classes for Python 3
+Summary(pl.UTF-8): Klasy abstrakcji linuksowego /proc dla Pythona 3
+Name: python3-linux-procfs
+Version: 0.7.1
+Release: 1
+License: GPL v2
+Group: Libraries/Python
+Source0: https://www.kernel.org/pub/software/libs/python/python-linux-procfs/python-linux-procfs-%{version}.tar.xz
+# Source0-md5: a2500fa2074f1ac60c66d7877a8a5e5a
+URL: https://rt.wiki.kernel.org/index.php/Tuna
+# uses f-strings
+BuildRequires: python3-modules >= 1:3.6
+BuildRequires: python3-setuptools
+BuildRequires: rpm-pythonprov
+BuildRequires: rpmbuild(macros) >= 1.714
+BuildRequires: tar >= 1:1.22
+BuildRequires: xz
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Python 3 abstractions to extract information from the Linux kernel
+/proc files.
+
+%description -l pl.UTF-8
+Abstrakcje Pythona 3 do wydobywania informacji z plików /proc jądra
+Linuksa.
+
+%prep
+%setup -q -n python-linux-procfs-%{version}
+
+%build
+%py3_build
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%py3_install
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/pflags
+%{py3_sitescriptdir}/procfs
+%{py3_sitescriptdir}/python_linux_procfs-0.7.0-py*.egg-info
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python3-linux-procfs.git/commitdiff/6131a0df8d52aba1fcb1b84d3ffd3ea8b3ee693b
More information about the pld-cvs-commit
mailing list