From 23d7893a02cc8196dc5ddf3db4403510ed813f83 Mon Sep 17 00:00:00 2001 From: Jeremy Cline Date: Jun 18 2018 20:30:56 +0000 Subject: Fix the global names so rpm doesn't think it's a python macro For some reason (I don't ever want to understand why) rpm interprets %{python-...} as the %python macro with the -... as an argument. Change the name to exclude dashes so RPM doesn't do crazy things. --- diff --git a/kernel-tools.spec b/kernel-tools.spec index bbb227b..2c7e7c6 100644 --- a/kernel-tools.spec +++ b/kernel-tools.spec @@ -136,22 +136,22 @@ License: GPLv2 This package contains the perf tool, which enables performance monitoring of the Linux kernel. -%global python-perf-sum Python bindings for apps which will manipulate perf events -%global python-perf-desc A Python module that permits applications \ +%global pythonperfsum Python bindings for apps which will manipulate perf events +%global pythonperfdesc A Python module that permits applications \ written in the Python programming language to use the interface \ to manipulate perf events. %package -n python2-perf -Summary: %{python-perf-sum} +Summary: %{pythonperfsum} %{?python_provide:%python_provide python2-perf} %description -n python2-perf -%{python-perf-desc} +%{pythonperfdesc} %package -n python3-perf -Summary: %{python-perf-sum} +Summary: %{pythonperfsum} %{?python_provide:%python_provide python3-perf} %description -n python3-perf -%{python-perf-desc} +%{pythonperfdesc} %package -n kernel-tools-libs Summary: Libraries for the kernels-tools