From 5c7275773dd3bb2f9ab4d04c115684adbf54d297 Mon Sep 17 00:00:00 2001 From: Jeremy Cline Date: Jan 18 2018 19:14:26 +0000 Subject: Provide python2-perf rather than python-perf The Python packaging guidelines[0] require that the package provide python2-perf, so this changes the sub-package name to python2-perf and adds the python_provides macro which changes the provides from: python-perf-4.15.0-0.rc8.git0.1.fc28.x86_64.rpm python-perf = 4.15.0-0.rc8.git0.1.fc28 python-perf(x86-64) = 4.15.0-0.rc8.git0.1.fc28 python2.7dist(perf) = 0.1 python2dist(perf) = 0.1 to: python-perf = 4.15.0-0.rc8.git0.1.fc28 python-perf(x86-64) = 4.15.0-0.rc8.git0.1.fc28 python2-perf = 4.15.0-0.rc8.git0.1.fc28 python2-perf(x86-64) = 4.15.0-0.rc8.git0.1.fc28 python2.7dist(perf) = 0.1 python2dist(perf) = 0.1 [0] https://fedoraproject.org/wiki/Packaging:Python#Provides --- diff --git a/kernel-tools.spec b/kernel-tools.spec index 607cfae..2f091de 100644 --- a/kernel-tools.spec +++ b/kernel-tools.spec @@ -135,10 +135,11 @@ License: GPLv2 This package contains the perf tool, which enables performance monitoring of the Linux kernel. -%package -n python-perf +%package -n python2-perf Summary: Python bindings for apps which will manipulate perf events -%description -n python-perf -The python-perf package contains a module that permits applications +%{?python_provide:%python_provide python2-perf} +%description -n python2-perf +The python2-perf package contains a module that permits applications written in the Python programming language to use the interface to manipulate perf events. @@ -325,7 +326,7 @@ popd %doc linux-%{kversion}/tools/perf/Documentation/examples.txt %license linux-%{kversion}/COPYING -%files -n python-perf +%files -n python2-perf %license linux-%{kversion}/COPYING %{python2_sitearch}