From: Jakub Bogusz Date: Tue, 26 Mar 2024 17:53:07 +0000 (+0100) Subject: - updated to 3.0 X-Git-Tag: auto/th/cpulimit-3.0-1 X-Git-Url: http://git.pld-linux.org/?p=packages%2Fcpulimit.git;a=commitdiff_plain - updated to 3.0 --- diff --git a/cpulimit.spec b/cpulimit.spec index 8cf1d2f..a780391 100644 --- a/cpulimit.spec +++ b/cpulimit.spec @@ -1,18 +1,18 @@ Summary: CPU usage limiter Summary(pl.UTF-8): Ograniczanie wykorzystania procesora Name: cpulimit -Version: 2.6 +Version: 3.0 Release: 1 License: GPL v2 Group: Applications -Source0: http://downloads.sourceforge.net/project/limitcpu/limitcpu/%{name}-%{version}.tar.gz -# Source0-md5: 008b012636007e954de3d5a50b83e540 -URL: http://limitcpu.sourceforge.net/ +Source0: https://downloads.sourceforge.net/project/limitcpu/limitcpu/%{name}-%{version}.tar.gz +# Source0-md5: bdfae460475241d6253a74abf4dffbad +URL: https://limitcpu.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 +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 @@ -20,7 +20,7 @@ system load, dynamically and quickly. %description -l pl.UTF-8 cpulimit to prosty program ograniczający zużycie procesora przez -proces (wyrażone w procentach, nie w czasie). Jest to przydatne to +proces (wyrażone w procentach, nie w czasie CPU). Jest to przydatne to kontrolowania zadań wsadowych, żeby nie wykorzystywały zbyt dużo mocy procesora. Program ten nie operuje na wartości nice czy innych priorytetach kolejkowania, ale na rzeczywistym czasie działania. @@ -31,17 +31,23 @@ systemu. %setup -q %build -%{__cc} %{rpmldflags} %{rpmcflags} -D LINUX cpulimit.c -o cpulimit -lrt -lpthread +%{__make} \ + CC="%{__cc}" \ + CFLAGS="%{rpmcflags} -Wall" \ + CPPFLAGS="%{rpmcppflags}" \ + LDFLAGS="%{rpmldflags}" %install rm -rf $RPM_BUILD_ROOT -install -D cpulimit $RPM_BUILD_ROOT%{_bindir}/cpulimit -install -D cpulimit.1 $RPM_BUILD_ROOT%{_mandir}/man1/cpulimit.1 + +%{__make} install \ + PREFIX=$RPM_BUILD_ROOT%{_prefix} %clean rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) -%attr(755,root,root) %{_bindir}/* +%doc CHANGELOG README +%attr(755,root,root) %{_bindir}/cpulimit %{_mandir}/man1/cpulimit.1*