Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package cpupower for openSUSE:Factory 
checked in at 2022-02-24 18:20:52
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/cpupower (Old)
 and      /work/SRC/openSUSE:Factory/.cpupower.new.1958 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "cpupower"

Thu Feb 24 18:20:52 2022 rev:53 rq:957148 version:MACRO

Changes:
--------
--- /work/SRC/openSUSE:Factory/cpupower/cpupower.changes        2021-09-08 
21:36:35.837887184 +0200
+++ /work/SRC/openSUSE:Factory/.cpupower.new.1958/cpupower.changes      
2022-02-24 18:24:13.878646322 +0100
@@ -1,0 +2,13 @@
+Fri Feb 18 15:56:24 UTC 2022 - Callum Farmer <gm...@opensuse.org>
+
+- Change to building the package from kernel-source based on
+  how the perf package works
+- Removed patches:
+  * turbostat_makefile_fix_asm_header.patch
+  * remove_bits_h.patch
+  * x86_perf_makefile_fix_asm_header.patch
+- Remove all tarballs and git script
+- Use %lang_package
+- Correct ix86 to %ix86
+
+-------------------------------------------------------------------

Old:
----
  Makefile.intel-speed-select
  cpupower-5.14.tar.bz2
  cpupower_export_tarball_from_git.sh
  intel-speed-select-1.10.tar.bz2
  remove_bits_h.patch
  turbostat-21.05.04.tar.bz2
  turbostat_makefile_fix_asm_header.patch
  x86_energy_perf_policy-17.05.11.tar.bz2
  x86_perf_makefile_fix_asm_header.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ cpupower.spec ++++++
--- /var/tmp/diff_new_pack.ivfq1g/_old  2022-02-24 18:24:14.386646190 +0100
+++ /var/tmp/diff_new_pack.ivfq1g/_new  2022-02-24 18:24:14.390646189 +0100
@@ -16,42 +16,25 @@
 # Please submit bugfixes or comments via https://bugs.opensuse.org/
 #
 
-
-# Use this as version when things are in mainline kernel
-%define version %(rpm -q --qf '%{VERSION}' kernel-source)
-
-%define tsversion      21.05.04
-%define pbversion      17.05.11
-%define ssversion      1.10
+%define maindir tools/power/cpupower
+%define tsdir tools/power/x86/turbostat
+%define pbdir tools/power/x86/x86_energy_perf_policy
+%define ssdir tools/power/x86/intel-speed-select
 
 Name:           cpupower
 # Use this as version when things are in mainline kernel
-%define version %(rpm -q --qf '%VERSION' kernel-source)
-Version:        5.14
+%define version %(rpm -q --qf '%%{VERSION}' kernel-source)
+Version:        %{version}
 Release:        0
 Summary:        Tools to determine and set CPU Power related Settings
 License:        GPL-2.0-only
 Group:          System/Base
 URL:            
https://git.kernel.org/cgit/linux/kernel/git/rafael/linux-pm.git
-Source:         %{name}-%{version}.tar.bz2
-Source1:        turbostat-%{tsversion}.tar.bz2
-Source2:        cpupower_export_tarball_from_git.sh
-Source3:        x86_energy_perf_policy-%{pbversion}.tar.bz2
-Source4:        intel-speed-select-%{ssversion}.tar.bz2
-Source5:        Makefile.intel-speed-select
 Patch1:         cpupower_rapl.patch
 Patch2:         rapl_monitor.patch
 Patch3:         cpupower_exclude_kernel_Makefile.patch
 Patch6:         amd_do_not_show_amount_of_boost_states_if_zero.patch
-
-#turbostat patches
-Patch22:        turbostat_makefile_fix_asm_header.patch
-Patch23:        remove_bits_h.patch
-
-# x86_energy_perf patches
-# Fixes bsc#1048546:
-Patch30:        x86_perf_makefile_fix_asm_header.patch
-
+BuildRequires:  kernel-source
 BuildRequires:  gettext-tools
 BuildRequires:  libcap-devel
 BuildRequires:  pciutils
@@ -89,42 +72,38 @@
 For that purpose, it compares the performance governor to a configured
 powersave module.
 
+%lang_package
+
 %prep
-%setup -q -D -b 1 -b 3 -b 4
+# copy necessary files from kernel-source since we need to modify them
+(cd %{_prefix}/src/linux ; tar -cf - COPYING CREDITS README tools include 
scripts Kbuild Makefile arch/*/{include,lib,Makefile} lib) | tar -xf -
+chmod +x tools/power/cpupower/utils/version-gen.sh
+cd %maindir
 %patch1 -p1
 %patch2 -p1
 %patch3 -p1
 %patch6 -p1
 
-cd ../turbostat-%{tsversion}
-%patch22 -p1
-%patch23 -p1
-
-cd ../x86_energy_perf_policy-%{pbversion}
-%patch23 -p1
-%patch30 -p1
-
-cd ../intel-speed-select-%{ssversion}
-cp %{SOURCE5} Makefile
-
 %build
-CONF="PACKAGE_BUGREPORT=https://bugs.opensuse.org mandir=%{_mandir} 
libdir=%{_libdir} CPUFRQ_BENCH=true VERSION=%{version}"
-export CFLAGS="%{optflags} -fcommon -I ."
-make $CONF %{?_smp_mflags}
-
-%ifarch ix86 x86_64
-cd ../turbostat-%{tsversion}
-export CFLAGS="%{optflags} -fcommon -I ../turbostat-%{tsversion}/include"
-make %{?_smp_mflags}
-cd ../x86_energy_perf_policy-%{pbversion}
-make %{?_smp_mflags}
-cd ../intel-speed-select-%{ssversion}
-make %{?_smp_mflags}
+CONF="PACKAGE_BUGREPORT=https://bugs.opensuse.org mandir=%{_mandir} 
libdir=%{_libdir} CPUFRQ_BENCH=true"
+export CFLAGS="%{optflags} -fcommon"
+%make_build -C %{maindir} $CONF
+
+%ifarch %{ix86} x86_64
+%make_build -C %{tsdir}
+%make_build -C %{pbdir}
+%make_build -C %{ssdir}
 %endif
 
 %install
-CONF="PACKAGE_BUGREPORT=https://bugs.opensuse.org mandir=%{_mandir} 
libdir=%{_libdir} CPUFRQ_BENCH=true DESTDIR=%{buildroot} sbindir=%{_sbindir} 
docdir=%{_docdir}/%{name} confdir=%{_sysconfdir} VERSION=%{version}"
-%make_install $CONF
+CONF="PACKAGE_BUGREPORT=https://bugs.opensuse.org mandir=%{_mandir} 
libdir=%{_libdir} CPUFRQ_BENCH=true DESTDIR=%{buildroot} sbindir=%{_sbindir} 
docdir=%{_docdir}/%{name} confdir=%{_sysconfdir}"
+%make_install -C %{maindir} $CONF
+
+%ifarch %{ix86} x86_64
+%make_install -C %{tsdir}
+%make_install -C %{pbdir}
+%make_install -C %{ssdir}
+%endif
 
 # copy to examples doc dir to avoid complains from the build
 # system about an executable in the doc dir.
@@ -133,26 +112,17 @@
 
 %find_lang %{name}
 
-%ifarch ix86 x86_64
-cd ../turbostat-%{tsversion}
-%make_install -e
-cd ../x86_energy_perf_policy-%{pbversion}
-%make_install
-cd ../intel-speed-select-%{ssversion}
-%make_install
-%endif
-
 %post -n libcpupower0 -p /sbin/ldconfig
 %postun -n libcpupower0 -p /sbin/ldconfig
 
-%files -f %{name}.lang
+%files
 %{_datadir}/bash-completion/completions/cpupower
-%{_mandir}/man1/cpupower*
+%{_mandir}/man1/cpupower*%{?ext_man}
 %{_bindir}/cpupower
-%ifarch ix86 x86_64
-%{_mandir}/man8/turbostat*
+%ifarch %{ix86} x86_64
+%{_mandir}/man8/turbostat*%{?ext_man}
 %{_bindir}/turbostat
-%{_mandir}/man8/x86_energy_perf_policy*
+%{_mandir}/man8/x86_energy_perf_policy*%{?ext_man}
 %{_bindir}/x86_energy_perf_policy
 %{_bindir}/intel-speed-select
 %endif
@@ -175,4 +145,6 @@
 %{_includedir}/powercap.h
 %{_libdir}/libcpu*.so
 
+%files lang -f %{name}.lang
+
 %changelog

Reply via email to