/[packages]/updates/1/cpufreq/current/SPECS/cpufreq.spec
ViewVC logotype

Annotation of /updates/1/cpufreq/current/SPECS/cpufreq.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 223553 - (hide annotations) (download)
Thu Mar 15 22:58:47 2012 UTC (12 years, 1 month ago) by kamil
File size: 1168 byte(s)
add P0 mga-fix-condrestart-and-status.patch to fix (again) broken condrestart and status (mga #4607)
1 kamil 223553 %define subrel 2
2 eandry 55753
3 kamil 211453 Name: cpufreq
4     Version: 1.0
5     Release: %mkrel 35
6     Summary: An initscript to set CPU frequency settings
7     License: GPL
8     Group: System/Servers
9 kamil 223553 URL: https://wiki.mageia.org/en/Power_saving
10 kamil 211453 Source0: %{name}.init
11     Source1: %{name}.sysconfig
12 kamil 223553 # (kamil) fix condrestart and status (mga #4607)
13     Patch0: %{name}-1.0-mga-fix-condrestart-and-status.patch
14 kamil 211453
15     BuildArch: noarch
16    
17     Requires(pre): rpm-helper
18 eandry 55753 Requires(postun): rpm-helper
19    
20 kamil 211453 Requires: pciutils, sed, gawk, grep, coreutils
21    
22 eandry 55753 %description
23     cpufreq is a simple initscript to set CPU frequency settings.
24    
25 kamil 211453
26 eandry 55753 %prep
27 kamil 211453 %setup -q -c -T
28     cp %{_sourcedir}/%{name}.init .
29     cp %{_sourcedir}/%{name}.sysconfig .
30 kamil 223553 %patch0 -p0
31 eandry 55753
32     %build
33 kamil 223553 # nothing to do
34 eandry 55753
35     %install
36 kamil 211453 # init
37     mkdir -p %{buildroot}%{_initrddir}
38     install -D -m755 %{name}.init %{buildroot}%_initrddir/%{name}
39 eandry 55753
40 kamil 211453 # sysconf
41     mkdir -p %{buildroot}%{_sysconfdir}/sysconfig
42     install -D -m644 %{name}.sysconfig %{buildroot}%{_sysconfdir}/sysconfig/%{name}
43 eandry 55753
44     %post
45     %_post_service %{name}
46    
47     %preun
48 kamil 211453 %_preun_service %{name}
49 eandry 55753
50     %files
51 kamil 211453 %{_initrddir}/%{name}
52     %config(noreplace) %{_sysconfdir}/sysconfig/%{name}

  ViewVC Help
Powered by ViewVC 1.1.30