]> git.pld-linux.org Git - packages/cpulimit.git/blob - cpulimit.spec
- rel. 1
[packages/cpulimit.git] / cpulimit.spec
1 Summary:        CPU usage limiter
2 Summary(pl):    Ograniczanie wykorzystania procesora
3 Name:           cpulimit
4 Version:        1.1
5 Release:        1
6 License:        GPL
7 Group:          Applications
8 Source0:        http://dl.sourceforge.net/cpulimit/%{name}-%{version}.tar.gz
9 # Source0-md5:  f4ff6d4bfaef1258e8f5cd2041e2e2a3
10 Source1:        %{name}.1
11 URL:            http://cpulimit.sourceforge.net/
12 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
13
14 %description
15 cpulimit is a simple program that attempts to limit the cpu usage of a
16 process (expressed in percentage, not in cpu time). This is useful to
17 control batch jobs, when you don't want they eat too much cpu. It does
18 not act on the nice value or other scheduling priority stuff, but on
19 the real cpu usage. Also, it is able to adapt itself to the overall
20 system load, dynamically and quickly.
21
22 %description -l pl
23 cpulimit to prosty program ograniczaj±cy zu¿ycie procesora przez
24 proces (wyra¿one w procentach, nie w czasie). Jest to przydatne to
25 kontrolowania zadañ wsadowych, ¿eby nie wykorzystywa³y zbyt du¿o mocy
26 procesora. Program ten nie operuje na warto¶ci nice czy innych
27 priorytetach kolejkowania, ale na rzeczywistym czasie dzia³ania.
28 Program jest te¿ w stanie dynamicznie dostosowaæ siê do obci±¿enia
29 systemu.
30
31 %prep
32 %setup -q
33
34 %build
35 %{__cc} %{rpmldflags} %{rpmcflags} cpulimit.c -o cpulimit -lrt
36
37 %install
38 rm -rf $RPM_BUILD_ROOT
39 install -D cpulimit $RPM_BUILD_ROOT%{_bindir}/cpulimit
40 install -D %{SOURCE1} $RPM_BUILD_ROOT%{_mandir}/man1/cpulimit.1
41
42 %clean
43 rm -rf $RPM_BUILD_ROOT
44
45 %files
46 %defattr(644,root,root,755)
47 %attr(755,root,root) %{_bindir}/*
48 %{_mandir}/man1/cpulimit.1*
This page took 0.065052 seconds and 3 git commands to generate.