/[packages]/cauldron/cpuspeed/current/SPECS/cpuspeed.spec
ViewVC logotype

Contents of /cauldron/cpuspeed/current/SPECS/cpuspeed.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 131550 - (show annotations) (download)
Wed Aug 3 17:34:53 2011 UTC (10 years, 1 month ago) by tv
File size: 2341 byte(s)
imported package cpuspeed
1 Summary: CPU frequency adjusting daemon
2 Name: cpuspeed
3 Version: 1.5
4 Release: %mkrel 1
5 Group: System/Servers
6 License: GPLv2+
7 URL: http://carlthompson.net/Software/CPUSpeed
8 Source0: http://carlthompson.net/downloads/cpuspeed/cpuspeed-%{version}.tar.bz2
9 Source1: http://carlthompson.net/downloads/cpuspeed/license.txt
10 Source2: cpuspeed.init
11 Source3: cpuspeed.conf
12 Source4: cpuspeed.8
13 Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
14 Requires(post): chkconfig rpm-helper
15 Requires(preun): chkconfig rpm-helper
16 Requires(preun): chkconfig rpm-helper initscripts
17
18 BuildRequires: automake util-linux groff gettext
19 ExclusiveArch: %{ix86} x86_64 ppc ppc64 ia64 sparcv9 sparc64
20
21 Patch1: cpuspeed-1.5-Makefile.patch
22 Patch2: cpuspeed-1.5-no-affected_cpus-fallback.patch
23
24 %description
25 cpuspeed is a daemon that dynamically changes the speed
26 of your processor(s) depending upon its current workload
27 if it is capable (needs Intel Speedstep, AMD PowerNow!,
28 or similar support).
29
30 This package also supports enabling CPU frequency scaling
31 via in-kernel governors on Intel Centrino and AMD
32 Athlon64/Opteron platforms.
33
34 %prep
35 %setup -q
36 cp %{SOURCE1} .
37 %patch1 -p1 -b .make
38 %patch2 -p1 -b .ac
39
40 %build
41 RPM_OPT_FLAGS=$(echo $RPM_OPT_FLAGS | sed -e 's/-fexceptions/-fno-exceptions/g')
42 make CFLAGS="$RPM_OPT_FLAGS -fpie -pie" LDFLAGS="-Wl,-z,relro,-z,now"
43
44 %install
45 rm -rf $RPM_BUILD_ROOT
46
47 mkdir -p $RPM_BUILD_ROOT%{_sbindir}
48 mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/rc.d/init.d
49 mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig
50 mkdir -p $RPM_BUILD_ROOT%{_mandir}/man8/
51
52 make DESTDIR=$RPM_BUILD_ROOT install
53 install -m755 %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/rc.d/init.d/cpuspeed
54 install -m644 %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/cpuspeed
55 install -m644 %{SOURCE4} $RPM_BUILD_ROOT%{_mandir}/man8/cpuspeed.8
56
57 %clean
58 [ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT;
59
60 %files
61 %defattr(-,root,root,-)
62 %doc license.txt CHANGES CONTRIBUTORS EXAMPLES FEATURES README USAGE
63 %{_sbindir}/cpuspeed
64 %{_sysconfdir}/rc.d/init.d/cpuspeed
65 %{_mandir}/man8/*
66 %attr(0644,root,root) %config(noreplace) %{_sysconfdir}/sysconfig/cpuspeed
67
68 %post
69 %_post_service %{name}
70
71 %preun
72 %_preun_service %{name}
73

  ViewVC Help
Powered by ViewVC 1.1.28