Author: adamg Date: Fri Dec 29 12:45:43 2006 GMT Module: SPECS Tag: HEAD ---- Log message: - new
---- Files affected: SPECS: cpulimit.spec (NONE -> 1.1) (NEW) ---- Diffs: ================================================================ Index: SPECS/cpulimit.spec diff -u /dev/null SPECS/cpulimit.spec:1.1 --- /dev/null Fri Dec 29 13:45:43 2006 +++ SPECS/cpulimit.spec Fri Dec 29 13:45:38 2006 @@ -0,0 +1,59 @@ +# $Revision$, $Date$ +Summary: CPU usage limiter +Summary(pl): Ograniczanie wykorzystania procesora +Name: cpulimit +Version: 1.0 +Release: 0.1 +License: GPL +Group: Applications +Source0: http://dl.sourceforge.net/cpulimit/%{name}-%{version}.tar.gz +# Source0-md5: 8f8d795f5c6a6b5483da4c200a8df9ee +Source1: %{name}.1 +URL: http://cpulimit.sourceforge.net/ +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%description +cpulimit is a simple program that attempts to limit the cpu usage of a +process (expressed in percentage, not in cpu time). This is useful to +control batch jobs, when you don't want they eat too much cpu. It does +not act on the nice value or other scheduling priority stuff, but on +the real cpu usage. Also, it is able to adapt itself to the overall +system load, dynamically and quickly. + +%description -l pl +cpulimit to prosty program ograniczający zużycie procesora przez +proces (wyrażone w procentach, nie w czasie). Jest to przydatne to +kontrolowania zadań wsadowych, kiedy nie chcesz, by wykorzystywały +zbyt dużo mocy procesora. Program ten nie operuje na wartości nice czy +priorytetach kolejkowania, ale na rzecywistym czasie działania. +Program jest też w stanie dynamicznie dostosować się do obciążenia +systemu. + +%prep +%setup -q + +%build +%{__cc} %{rpmcflags} -lrt cpulimit.c -o cpulimit + +%install +rm -rf $RPM_BUILD_ROOT +install -D cpulimit $RPM_BUILD_ROOT%{_bindir}/cpulimit +install -D %{SOURCE1} $RPM_BUILD_ROOT%{_mandir}/man1/cpulimit.1 + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(644,root,root,755) +%attr(755,root,root) %{_bindir}/* +%{_mandir}/man1/cpulimit.1* + +%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`) +%changelog +* %{date} PLD Team <[EMAIL PROTECTED]> +All persons listed below can be reached at <cvs_login>@pld-linux.org + +$Log$ +Revision 1.1 2006/12/29 12:45:38 adamg +- new + ================================================================ _______________________________________________ pld-cvs-commit mailing list [email protected] http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit
