]> git.pld-linux.org Git - packages/cpudyn.git/blame - cpudyn.spec
- tabs in preamble
[packages/cpudyn.git] / cpudyn.spec
CommitLineData
2384463f 1Summary: A tools to control CPU frequency
270c7fce 2Summary(pl.UTF-8): Narzędzia do kontroli częstotliwości procesora
2384463f 3Name: cpudyn
0b347217 4Version: 1.0.1
eb4666fb 5Release: 2
2384463f 6License: GPL
7Group: Daemons
8Source0: http://mnm.uib.es/~gallir/cpudyn/download/%{name}-%{version}.tgz
0b347217 9# Source0-md5: 670d32eb953f99ba04aee44848864228
2384463f 10Source1: %{name}.init
11Source2: %{name}.conf
12URL: http://mnm.uib.es/~gallir/cpudyn/
cd502e9e 13BuildRequires: rpmbuild(macros) >= 1.268
2384463f 14Requires(post,preun): /sbin/chkconfig
eb4666fb 15Requires: rc-scripts
2384463f 16BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17
34fa7a31 18%define _sbindir /sbin
19
2384463f 20%description
21This program control the speed in Intel SpeedStep, Pentium 4 Mobile
22and PowerPC machines with the cpufreq compiled in the kernel.
23
24Tested with 2.4, Pentium 3 Speedstep Laptop (Dell Latitude), Pentium 4
25Mobile Laptop (Dell Inspiron), AMD Power Now, Apple iBook, IBM
26Thinkpad. cpudyn is just a user space program, so it will work on
7dfe5a6d 27every processor supported by the kernel's cpufreq driver.
2384463f 28
d4e40631
JR
29%description -l pl.UTF-8
30Ten program kontroluje prędkość procesorów Intel SpeedStep, Pentium 4
31Mobile oraz PowerPC (o ile kernel został skompilowany z obsługą
578a2ed3
AG
32cpufreq).
33
d4e40631 34Program ten został przetestowany na jądrze 2.4, na Pentium 3 SpeedStep
578a2ed3 35(Dell Latitude), Pentium 4 Mobile (Dell Inspiron), AMD Power Now,
d4e40631
JR
36Apple iBook, IBM Thinkpad. cpudyn jest programem userspace, więc
37będzie współpracował z każdym procesorem wspieranym przez sterownik
578a2ed3
AG
38cpufreq.
39
2384463f 40%prep
7dfe5a6d 41%setup -q -n %{name}
2384463f 42
43%build
a26d46f1 44%{__make} \
eb4666fb 45 CC="%{__cc}" \
4cee641b 46 CFLAGS="%{rpmcflags} -Wall"
2384463f 47
48%install
49rm -rf $RPM_BUILD_ROOT
34fa7a31 50install -d $RPM_BUILD_ROOT{%{_sbindir},%{_sysconfdir},/etc/rc.d/init.d/,%{_mandir}/man8}
2384463f 51
52install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/cpudynd
53install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/cpudyn.conf
34fa7a31 54install cpudynd $RPM_BUILD_ROOT%{_sbindir}
55install cpudynd.8 $RPM_BUILD_ROOT%{_mandir}/man8
2384463f 56
57%clean
58rm -rf $RPM_BUILD_ROOT
59
eb4666fb
ER
60%post
61/sbin/chkconfig --add cpudynd
62%service cpudynd restart
63
64%preun
65if [ "$1" = "0" ]; then
66 %service cpudynd stop
67 /sbin/chkconfig --del cpudynd
68fi
69
2384463f 70%files
71%defattr(644,root,root,755)
72%doc README faq.html
34fa7a31 73%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/cpudyn.conf
74%attr(755,root,root) %{_sbindir}/cpudynd
2384463f 75%attr(754,root,root) /etc/rc.d/init.d/cpudynd
a26d46f1 76%{_mandir}/man8/*
This page took 0.069967 seconds and 4 git commands to generate.