Summary: A tools to control CPU frequency Summary(pl.UTF-8): Narzędzia do kontroli częstotliwości procesora Name: cpudyn Version: 1.0.1 Release: 2 License: GPL Group: Daemons Source0: http://mnm.uib.es/~gallir/cpudyn/download/%{name}-%{version}.tgz # Source0-md5: 670d32eb953f99ba04aee44848864228 Source1: %{name}.init Source2: %{name}.conf URL: http://mnm.uib.es/~gallir/cpudyn/ BuildRequires: rpmbuild(macros) >= 1.268 Requires(post,preun): /sbin/chkconfig Requires: rc-scripts BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %define _sbindir /sbin %description This program control the speed in Intel SpeedStep, Pentium 4 Mobile and PowerPC machines with the cpufreq compiled in the kernel. Tested with 2.4, Pentium 3 Speedstep Laptop (Dell Latitude), Pentium 4 Mobile Laptop (Dell Inspiron), AMD Power Now, Apple iBook, IBM Thinkpad. cpudyn is just a user space program, so it will work on every processor supported by the kernel's cpufreq driver. %description -l pl.UTF-8 Ten program kontroluje prędkość procesorów Intel SpeedStep, Pentium 4 Mobile oraz PowerPC (o ile kernel został skompilowany z obsługą cpufreq). Program ten został przetestowany na jądrze 2.4, na Pentium 3 SpeedStep (Dell Latitude), Pentium 4 Mobile (Dell Inspiron), AMD Power Now, Apple iBook, IBM Thinkpad. cpudyn jest programem userspace, więc będzie współpracował z każdym procesorem wspieranym przez sterownik cpufreq. %prep %setup -q -n %{name} %build %{__make} \ CC="%{__cc}" \ CFLAGS="%{rpmcflags} -Wall" %install rm -rf $RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT{%{_sbindir},%{_sysconfdir},/etc/rc.d/init.d/,%{_mandir}/man8} install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/cpudynd install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/cpudyn.conf install cpudynd $RPM_BUILD_ROOT%{_sbindir} install cpudynd.8 $RPM_BUILD_ROOT%{_mandir}/man8 %clean rm -rf $RPM_BUILD_ROOT %post /sbin/chkconfig --add cpudynd %service cpudynd restart %preun if [ "$1" = "0" ]; then %service cpudynd stop /sbin/chkconfig --del cpudynd fi %files %defattr(644,root,root,755) %doc README faq.html %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/cpudyn.conf %attr(755,root,root) %{_sbindir}/cpudynd %attr(754,root,root) /etc/rc.d/init.d/cpudynd %{_mandir}/man8/*