[packages/libpfm] Rel 3. Disable python2 (swit 4.5 no longer supports python2)

arekm arekm at pld-linux.org
Sat Oct 24 10:42:44 CEST 2026


commit 6a85a20d7383ca0fed63c4b43c4380126e532cdc
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Sat Oct 24 10:42:04 2026 +0200

    Rel 3. Disable python2 (swit 4.5 no longer supports python2)

 libpfm.spec | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/libpfm.spec b/libpfm.spec
index 2872d7b..dad0e93 100644
--- a/libpfm.spec
+++ b/libpfm.spec
@@ -1,7 +1,7 @@
 #
 # Conditional build:
 %bcond_without	python	# Python modules (any)
-%bcond_without	python2	# CPython 2.x module
+%bcond_with	python2	# CPython 2.x module
 %bcond_without	python3	# CPython 3.x module
 #
 %if %{without python}
@@ -12,7 +12,7 @@ Summary:	Library to encode performance events for use by perf tool
 Summary(pl.UTF-8):	Biblioteka do kodowania zdarzeń związanych z wydajnością do użycia przez narzędzie perf
 Name:		libpfm
 Version:	4.14.1
-Release:	2
+Release:	3
 License:	MIT
 Group:		Libraries
 Source0:	https://downloads.sourceforge.net/perfmon2/%{name}-%{version}.tar.gz
@@ -21,6 +21,7 @@ Patch0:		%{name}-build.patch
 URL:		https://perfmon2.sourceforge.net/
 %{?with_python2:BuildRequires:	python-devel >= 2}
 %{?with_python3:BuildRequires:	python3-devel >= 1:3.2}
+%{?with_python3:BuildRequires:	python3-setuptools}
 %{?with_python:BuildRequires:	swig-python >= 2}
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/libpfm.git/commitdiff/6a85a20d7383ca0fed63c4b43c4380126e532cdc



More information about the pld-cvs-commit mailing list