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