]>
Commit | Line | Data |
---|---|---|
116c8c0e | 1 | Summary: CPU usage limiter |
51bba865 | 2 | Summary(pl.UTF-8): Ograniczanie wykorzystania procesora |
116c8c0e | 3 | Name: cpulimit |
ab51f8da | 4 | Version: 2.6 |
4ae0e4c4 | 5 | Release: 1 |
ab51f8da | 6 | License: GPL v2 |
116c8c0e | 7 | Group: Applications |
8d0711dc | 8 | Source0: http://downloads.sourceforge.net/project/limitcpu/limitcpu/%{name}-%{version}.tar.gz |
ab51f8da | 9 | # Source0-md5: 008b012636007e954de3d5a50b83e540 |
8d0711dc | 10 | URL: http://limitcpu.sourceforge.net/ |
116c8c0e AG |
11 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
12 | ||
13 | %description | |
14 | cpulimit is a simple program that attempts to limit the cpu usage of a | |
15 | process (expressed in percentage, not in cpu time). This is useful to | |
16 | control batch jobs, when you don't want they eat too much cpu. It does | |
17 | not act on the nice value or other scheduling priority stuff, but on | |
18 | the real cpu usage. Also, it is able to adapt itself to the overall | |
19 | system load, dynamically and quickly. | |
20 | ||
b9a6b2f1 JR |
21 | %description -l pl.UTF-8 |
22 | cpulimit to prosty program ograniczający zużycie procesora przez | |
23 | proces (wyrażone w procentach, nie w czasie). Jest to przydatne to | |
24 | kontrolowania zadań wsadowych, żeby nie wykorzystywały zbyt dużo mocy | |
25 | procesora. Program ten nie operuje na wartości nice czy innych | |
26 | priorytetach kolejkowania, ale na rzeczywistym czasie działania. | |
27 | Program jest też w stanie dynamicznie dostosować się do obciążenia | |
116c8c0e AG |
28 | systemu. |
29 | ||
30 | %prep | |
31 | %setup -q | |
32 | ||
33 | %build | |
ab51f8da | 34 | %{__cc} %{rpmldflags} %{rpmcflags} -D LINUX cpulimit.c -o cpulimit -lrt -lpthread |
116c8c0e AG |
35 | |
36 | %install | |
37 | rm -rf $RPM_BUILD_ROOT | |
38 | install -D cpulimit $RPM_BUILD_ROOT%{_bindir}/cpulimit | |
ab51f8da | 39 | install -D cpulimit.1 $RPM_BUILD_ROOT%{_mandir}/man1/cpulimit.1 |
116c8c0e AG |
40 | |
41 | %clean | |
42 | rm -rf $RPM_BUILD_ROOT | |
43 | ||
44 | %files | |
45 | %defattr(644,root,root,755) | |
46 | %attr(755,root,root) %{_bindir}/* | |
47 | %{_mandir}/man1/cpulimit.1* |