Accepting request 83135 from home:jengelh:bl-c

- Remove redundant tags/sections from specfile
- Use %_smp_mflags for parallel build

OBS-URL: https://build.opensuse.org/request/show/83135
OBS-URL: https://build.opensuse.org/package/show/hardware/cpupower?expand=0&rev=4
This commit is contained in:
Ismail Dönmez 2011-09-18 18:46:15 +00:00 committed by Git OBS Bridge
parent ff93591a96
commit a0beb889c2
2 changed files with 7 additions and 30 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Sat Sep 17 23:56:39 UTC 2011 - jengelh@medozas.de
- Remove redundant tags/sections from specfile
- Use %_smp_mflags for parallel build
-------------------------------------------------------------------
Thu Aug 25 15:44:12 UTC 2011 - trenn@suse.de

View File

@ -16,9 +16,6 @@
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: cpupower
Url: http://www.kernel.org/pub/linux/utils/kernel/cpufreq/cpufrequtils.html
# Use this as version when things are in mainline kernel
@ -40,27 +37,14 @@ This tool is to make access to the Linux kernel's processor power subsystems
like CPU frequency switching (cpufreq) or CPU sleep states (cpuidle) for users
and userspace tools easier.
Authors:
--------
Dominik Brodowski <linux@brodo.de>
Thomas Renninger <trenn@suse.de>
%package -n libcpupower0
License: GPLv2+
Summary: Obsolete processor frequency related C-library
Group: System/Base
AutoReqProv: on
%description -n libcpupower0
Contains libcpupower and soon possibly other CPU power related
C libraries.
Authors:
--------
Dominik Brodowski <linux@brodo.de>
%package devel
License: GPLv2+
Summary: Include files and C-libraries
@ -70,11 +54,6 @@ Requires: libcpupower0 = %{version}
%description devel
Include files and C-libraries for C/C++ development
Authors:
--------
Dominik Brodowski <linux@brodo.de>
%package bench
License: GPLv2+
Summary: CPU frequency micro benchmark
@ -89,11 +68,6 @@ governor (e.g. ondemand, userspace, conservative) and the cpufreq HW driver
For that purpose, it compares the performance governor to a configured
powersave module.
Authors:
--------
Christian Kornacker <ckornacker@suse.de>
%prep
%setup -q
%patch0 -p1
@ -104,7 +78,7 @@ Authors:
export SUSE_ASNEEDED=0
CONF="PACKAGE_BUGREPORT=http://bugs.opensuse.org mandir=%_mandir libdir=%_libdir CPUFRQ_BENCH=true STRIP=true VERSION=%{version}"
export CFLAGS="$RPM_OPT_FLAGS"
make $CONF
make $CONF %{?_smp_mflags}
%install
export SUSE_ASNEEDED=0
@ -116,9 +90,6 @@ mkdir -p $RPM_BUILD_ROOT/%{_docdir}/%{name}/examples
mv $RPM_BUILD_ROOT/%{_docdir}/%{name}/cpufreq-bench_script.sh $RPM_BUILD_ROOT/%{_docdir}/%{name}/examples
%find_lang %{name}
%clean
rm -rf $RPM_BUILD_ROOT
%post -n libcpupower0 -p /sbin/ldconfig
%postun -n libcpupower0 -p /sbin/ldconfig