[packages/cpulimit] - updated to 3.0

qboosh qboosh at pld-linux.org
Tue Mar 26 19:13:42 CET 2024


commit 329e33c2469ccaefff3122f97679fc21ebb9dbd4
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Tue Mar 26 18:53:07 2024 +0100

    - updated to 3.0

 cpulimit.spec | 26 ++++++++++++++++----------
 1 file changed, 16 insertions(+), 10 deletions(-)
---
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*
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/cpulimit.git/commitdiff/329e33c2469ccaefff3122f97679fc21ebb9dbd4



More information about the pld-cvs-commit mailing list