1 Summary: A tools to control CPU frequency
2 Summary(pl.UTF-8): Narzędzia do kontroli częstotliwości procesora
8 Source0: http://mnm.uib.es/~gallir/cpudyn/download/%{name}-%{version}.tgz
9 # Source0-md5: 670d32eb953f99ba04aee44848864228
12 URL: http://mnm.uib.es/~gallir/cpudyn/
13 BuildRequires: rpmbuild(macros) >= 1.268
14 Requires(post,preun): /sbin/chkconfig
16 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18 %define _sbindir /sbin
21 This program control the speed in Intel SpeedStep, Pentium 4 Mobile
22 and PowerPC machines with the cpufreq compiled in the kernel.
24 Tested with 2.4, Pentium 3 Speedstep Laptop (Dell Latitude), Pentium 4
25 Mobile Laptop (Dell Inspiron), AMD Power Now, Apple iBook, IBM
26 Thinkpad. cpudyn is just a user space program, so it will work on
27 every processor supported by the kernel's cpufreq driver.
29 %description -l pl.UTF-8
30 Ten program kontroluje prędkość procesorów Intel SpeedStep, Pentium 4
31 Mobile oraz PowerPC (o ile kernel został skompilowany z obsługą
34 Program ten został przetestowany na jądrze 2.4, na Pentium 3 SpeedStep
35 (Dell Latitude), Pentium 4 Mobile (Dell Inspiron), AMD Power Now,
36 Apple iBook, IBM Thinkpad. cpudyn jest programem userspace, więc
37 będzie współpracował z każdym procesorem wspieranym przez sterownik
46 CFLAGS="%{rpmcflags} -Wall"
49 rm -rf $RPM_BUILD_ROOT
50 install -d $RPM_BUILD_ROOT{%{_sbindir},%{_sysconfdir},/etc/rc.d/init.d/,%{_mandir}/man8}
52 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/cpudynd
53 install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/cpudyn.conf
54 install cpudynd $RPM_BUILD_ROOT%{_sbindir}
55 install cpudynd.8 $RPM_BUILD_ROOT%{_mandir}/man8
58 rm -rf $RPM_BUILD_ROOT
61 /sbin/chkconfig --add cpudynd
62 %service cpudynd restart
65 if [ "$1" = "0" ]; then
67 /sbin/chkconfig --del cpudynd
71 %defattr(644,root,root,755)
73 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/cpudyn.conf
74 %attr(755,root,root) %{_sbindir}/cpudynd
75 %attr(754,root,root) /etc/rc.d/init.d/cpudynd