diff --git a/.rpmlint b/.rpmlint deleted file mode 100644 index 680773d..0000000 --- a/.rpmlint +++ /dev/null @@ -1,3 +0,0 @@ -addFilter("spelling-error Summary\(en_US\) libstatgrab -> Stalingrad") -addFilter("spelling-error %description -l en_US libstatgrab -> Stalingrad") - diff --git a/0001-setup.py-refactor-deprecated-distutils.patch b/0001-setup.py-refactor-deprecated-distutils.patch new file mode 100644 index 0000000..dc27245 --- /dev/null +++ b/0001-setup.py-refactor-deprecated-distutils.patch @@ -0,0 +1,33 @@ +From a47fee3f31979308517161eba12c3c24f57e465e Mon Sep 17 00:00:00 2001 +From: Tim Orling +Date: Sat, 25 Feb 2023 01:40:43 -0800 +Subject: [PATCH] setup.py: refactor deprecated distutils + +The distutils module has been deprecated since 3.10 and +will be removed in 3.12 +https://peps.python.org/pep-0632/ + +distutils.core -> setuptools +https://setuptools.pypa.io/en/latest/userguide/ext_modules.html + +Signed-off-by: Tim Orling +--- + setup.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/setup.py b/setup.py +index 40921f0..af5add8 100755 +--- a/setup.py ++++ b/setup.py +@@ -24,7 +24,7 @@ + # + """Python bindings for libstatgrab.""" + +-from distutils.core import setup, Extension ++from setuptools import setup, Extension + from subprocess import check_call, check_output, CalledProcessError + + import sys +-- +2.39.2 + diff --git a/pystatgrab.spec b/pystatgrab.spec index a077147..1b80cf3 100644 --- a/pystatgrab.spec +++ b/pystatgrab.spec @@ -2,15 +2,16 @@ Name: pystatgrab Version: 0.7.1 -Release: 8%{?dist} +Release: 9%{?dist} Summary: Python bindings for libstatgrab -License: LGPLv2+ +License: LGPL-2.0-or-later URL: http://www.i-scream.org/pystatgrab/ Source0: https://ftp.i-scream.org/pub/i-scream/pystatgrab/%{name}-%{version}.tar.gz +Patch0: 0001-setup.py-refactor-deprecated-distutils.patch BuildRequires: gcc -BuildRequires: libstatgrab-devel > 0.90 +BuildRequires: libstatgrab-devel > 0.91 %description Pystatgrab contains Python bindings for libstatgrab. @@ -20,13 +21,14 @@ Summary: %{summary} BuildRequires: python3-Cython BuildRequires: python3-devel +BuildRequires: python3-setuptools %{?python_provide:%python_provide python3-%{name}} %description -n python3-%{name} Pystatgrab contains Python bindings for libstatgrab. %prep -%autosetup -n %{srcname}-%{version} +%autosetup -n %{srcname}-%{version} -p1 %build rm -rf statgrab.c @@ -44,6 +46,14 @@ PYTHONPATH=%{buildroot}/%{python3_sitearch} %{__python3} test.py %{python3_sitearch}/* %changelog +* Sat Feb 25 2023 Tim Orling - 0.7.1-9 + - Add patch for deprecated distuls (rhbz 2154875) + - https://github.com/libstatgrab/pystatgrab/pull/7 + - minimum libstatgrab is 0.91 + - BR python3-setuptools + - drop .rpmlint (unused filters) + - migrated to SPDX license + * Fri Jan 20 2023 Fedora Release Engineering - 0.7.1-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild