Accepting request 1126632 from home:iznogood:factory

- Rename libcpupower0 to libcpupower1 following changes in SONAME.
- Use ldconfig_scriptlets macro for post(un) handling.

OBS-URL: https://build.opensuse.org/request/show/1126632
OBS-URL: https://build.opensuse.org/package/show/hardware/cpupower?expand=0&rev=129
This commit is contained in:
Thomas Renninger 2023-11-15 13:58:39 +00:00 committed by Git OBS Bridge
parent 44a9fb11e1
commit 45b66d1cb4
2 changed files with 11 additions and 6 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Wed Nov 15 12:57:54 UTC 2023 - Bjørn Lie <bjorn.lie@gmail.com>
- Rename libcpupower0 to libcpupower1 following changes in SONAME.
- Use ldconfig_scriptlets macro for post(un) handling.
------------------------------------------------------------------- -------------------------------------------------------------------
Sun Mar 5 18:19:36 UTC 2023 - Thomas Renninger <trenn@suse.de> Sun Mar 5 18:19:36 UTC 2023 - Thomas Renninger <trenn@suse.de>

View File

@ -42,11 +42,11 @@ BuildRequires: pciutils-devel
This tool accesses the Linux kernel's processor power subsystems This tool accesses the Linux kernel's processor power subsystems
like CPU frequency switching (cpufreq) or CPU sleep states (cpuidle). like CPU frequency switching (cpufreq) or CPU sleep states (cpuidle).
%package -n libcpupower0 %package -n libcpupower1
Summary: Processor power related C-library Summary: Processor power related C-library
Group: System/Libraries Group: System/Libraries
%description -n libcpupower0 %description -n libcpupower1
Contains libcpupower which offers easy functions to access Contains libcpupower which offers easy functions to access
processor frequency, processor idle, processor power hierarchy processor frequency, processor idle, processor power hierarchy
and other CPU power consumption related information. and other CPU power consumption related information.
@ -54,7 +54,7 @@ and other CPU power consumption related information.
%package devel %package devel
Summary: Include files for libcpupower Summary: Include files for libcpupower
Group: Development/Languages/C and C++ Group: Development/Languages/C and C++
Requires: libcpupower0 = %{version} Requires: libcpupower1 = %{version}
%description devel %description devel
Include files for C/C++ development with libcpupower. Include files for C/C++ development with libcpupower.
@ -130,8 +130,7 @@ mv %{buildroot}//%{_docdir}/%{name}/cpufreq-bench_script.sh %{buildroot}/%{_docd
%find_lang %{name} %find_lang %{name}
%post -n libcpupower0 -p /sbin/ldconfig %ldconfig_scriptlets -n libcpupower1
%postun -n libcpupower0 -p /sbin/ldconfig
%files %files
%{_mandir}/man1/cpupower*%{?ext_man} %{_mandir}/man1/cpupower*%{?ext_man}
@ -153,7 +152,7 @@ mv %{buildroot}//%{_docdir}/%{name}/cpufreq-bench_script.sh %{buildroot}/%{_docd
%{_docdir}/%{name}/examples/cpufreq-bench_script.sh %{_docdir}/%{name}/examples/cpufreq-bench_script.sh
%{_docdir}/%{name}/README-BENCH %{_docdir}/%{name}/README-BENCH
%files -n libcpupower0 %files -n libcpupower1
%{_libdir}/libcpupower*.so.* %{_libdir}/libcpupower*.so.*
%files devel %files devel