From: Jan Stancek <jstancek(a)redhat.com>
kernel.spec: Gemini: add Epoch to perf and rtla subpackages
To provide an upgrade path for Gemini kernels (where RPM version
and release can now be 'lower' than previously used uname version),
add epoch to version of these packages.
Signed-off-by: Jan Stancek <jstancek(a)redhat.com>
diff --git a/redhat/kernel.spec.template b/redhat/kernel.spec.template
index blahblah..blahblah 100644
--- a/redhat/kernel.spec.template
+++ b/redhat/kernel.spec.template
@@ -996,6 +996,9 @@ It provides the kernel source files common to all builds.
%if %{with_perf}
%package -n perf
+%if 0%{gemini}
+Epoch: %{gemini}
+%endif
Summary: Performance monitoring for the Linux kernel
Requires: bzip2
License: GPLv2
@@ -1004,6 +1007,9 @@ This package contains the perf tool, which enables performance
monitoring
of the Linux kernel.
%package -n perf-debuginfo
+%if 0%{gemini}
+Epoch: %{gemini}
+%endif
Summary: Debug information for package perf
Requires: %{name}-debuginfo-common-%{_target_cpu} = %{specrpmversion}-%{release}
AutoReqProv: no
@@ -1017,6 +1023,9 @@ This package provides debug information for the perf package.
%{expand:%%global _find_debuginfo_opts %{?_find_debuginfo_opts} -p
'.*%%{_bindir}/perf(\.debug)?|.*%%{_libexecdir}/perf-core/.*|.*%%{_libdir}/libperf-jvmti.so(\.debug)?|XXX'
-o perf-debuginfo.list}
%package -n python3-perf
+%if 0%{gemini}
+Epoch: %{gemini}
+%endif
Summary: Python bindings for apps which will manipulate perf events
%description -n python3-perf
The python3-perf package contains a module that permits applications
@@ -1024,6 +1033,9 @@ written in the Python programming language to use the interface
to manipulate perf events.
%package -n python3-perf-debuginfo
+%if 0%{gemini}
+Epoch: %{gemini}
+%endif
Summary: Debug information for package perf python bindings
Requires: %{name}-debuginfo-common-%{_target_cpu} = %{specrpmversion}-%{release}
AutoReqProv: no
@@ -1090,6 +1102,9 @@ This package provides debug information for package
%{package_name}-tools.
%{expand:%%global _find_debuginfo_opts %{?_find_debuginfo_opts} -p
'.*%%{_bindir}/centrino-decode(\.debug)?|.*%%{_bindir}/powernow-k8-decode(\.debug)?|.*%%{_bindir}/cpupower(\.debug)?|.*%%{_libdir}/libcpupower.*|.*%%{_bindir}/turbostat(\.debug)?|.*%%{_bindir}/x86_energy_perf_policy(\.debug)?|.*%%{_bindir}/tmon(\.debug)?|.*%%{_bindir}/lsgpio(\.debug)?|.*%%{_bindir}/gpio-hammer(\.debug)?|.*%%{_bindir}/gpio-event-mon(\.debug)?|.*%%{_bindir}/gpio-watch(\.debug)?|.*%%{_bindir}/iio_event_monitor(\.debug)?|.*%%{_bindir}/iio_generic_buffer(\.debug)?|.*%%{_bindir}/lsiio(\.debug)?|.*%%{_bindir}/intel-speed-select(\.debug)?|.*%%{_bindir}/page_owner_sort(\.debug)?|.*%%{_bindir}/slabinfo(\.debug)?|.*%%{_sbindir}/intel_sdsi(\.debug)?|XXX'
-o %{package_name}-tools-debuginfo.list}
%package -n rtla
+%if 0%{gemini}
+Epoch: %{gemini}
+%endif
Summary: RTLA: Real-Time Linux Analysis tools
%description -n rtla
The rtla tool is a meta-tool that includes a set of commands that
--
https://gitlab.com/cki-project/kernel-ark/-/merge_requests/2386