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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 223553 - (show annotations) (download)
Thu Mar 15 22:58:47 2012 UTC (9 years, 4 months 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 %define subrel 2
2
3 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 URL: https://wiki.mageia.org/en/Power_saving
10 Source0: %{name}.init
11 Source1: %{name}.sysconfig
12 # (kamil) fix condrestart and status (mga #4607)
13 Patch0: %{name}-1.0-mga-fix-condrestart-and-status.patch
14
15 BuildArch: noarch
16
17 Requires(pre): rpm-helper
18 Requires(postun): rpm-helper
19
20 Requires: pciutils, sed, gawk, grep, coreutils
21
22 %description
23 cpufreq is a simple initscript to set CPU frequency settings.
24
25
26 %prep
27 %setup -q -c -T
28 cp %{_sourcedir}/%{name}.init .
29 cp %{_sourcedir}/%{name}.sysconfig .
30 %patch0 -p0
31
32 %build
33 # nothing to do
34
35 %install
36 # init
37 mkdir -p %{buildroot}%{_initrddir}
38 install -D -m755 %{name}.init %{buildroot}%_initrddir/%{name}
39
40 # sysconf
41 mkdir -p %{buildroot}%{_sysconfdir}/sysconfig
42 install -D -m644 %{name}.sysconfig %{buildroot}%{_sysconfdir}/sysconfig/%{name}
43
44 %post
45 %_post_service %{name}
46
47 %preun
48 %_preun_service %{name}
49
50 %files
51 %{_initrddir}/%{name}
52 %config(noreplace) %{_sysconfdir}/sysconfig/%{name}

  ViewVC Help
Powered by ViewVC 1.1.28