From 8c0ab4c7e77ae0107a8dc483b0590abce71d760e Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sun, 4 Feb 2024 16:45:25 +0100 Subject: [PATCH] update to 3.0 [release 3.0-1mamba;Sun Feb 04 2024] --- cpulimit.spec | 36 +++++++++++++----------------------- 1 file changed, 13 insertions(+), 23 deletions(-) diff --git a/cpulimit.spec b/cpulimit.spec index 649ac6a..7e5797d 100644 --- a/cpulimit.spec +++ b/cpulimit.spec @@ -1,21 +1,18 @@ Name: cpulimit -Version: 20160304 +Epoch: 1 +Version: 3.0 Release: 1mamba Summary: CPU Usage Limiter for Linux Group: System/Kernel and Hardware Vendor: openmamba Distribution: openmamba -Packager: Stefano Cotta Ramusino -URL: http://cpulimit.sourceforge.net/ -Source: https://github.com/opsengine/cpulimit.git/master/cpulimit-%{version}.tar.bz2 -#Source: https://github.com/opsengine/cpulimit/tarball/master/cpulimit-%{version}.tar.gz -#Source: http://downloads.sourceforge.net/cpulimit/cpulimit-%{version}.tar.gz +Packager: Silvan Calarco +URL: https://sourceforge.net/projects/limitcpu/ +Source: https://sourceforge.net/projects/limitcpu/files/limitcpu/cpulimit-%{version}.tar.gz License: GPL ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel ## AUTOBUILDREQ-END -BuildRequires: help2man -BuildRoot: %{_tmppath}/%{name}-%{version}-root %description cpulimit is a simple program which attempts to limit the cpu usage of a process (expressed in percentage, not in cpu time). @@ -23,38 +20,31 @@ This is useful to control batch jobs, when you don't want them to eat too much c 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. +%debug_package + %prep %setup -q %build -%ifnarch x86_64 -sed -i 's,-O2,%{optflags},' Makefile %make -%else -make -%endif %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" -install -D -m 755 src/cpulimit \ - %{buildroot}%{_bindir}/cpulimit - -install -d %{buildroot}%{_mandir}/man1 -help2man \ - --version-string="cpulimit %{version}" \ - --output=%{buildroot}%{_mandir}/man1/cpulimit.1 \ - src/cpulimit +%makeinstall PREFIX=%{buildroot}%{_prefix} %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %files %defattr(-,root,root) -%{_bindir}/* -%{_mandir}/man1/* +%{_bindir}/cpulimit +%{_mandir}/man1/cpulimit.1* %doc LICENSE %changelog +* Sun Feb 04 2024 Silvan Calarco 3.0-1mamba +- update to 3.0 + * Fri Mar 04 2016 Automatic Build System 20160304-1mamba - automatic version update by autodist