update to 3.0 [release 3.0-1mamba;Sun Feb 04 2024]

This commit is contained in:
Silvan Calarco 2024-02-04 16:45:25 +01:00
parent 99ad7b29b8
commit 8c0ab4c7e7

View File

@ -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 <stefano.cotta@openmamba.org>
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 <silvan.calarco@mambasoft.it>
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 <silvan.calarco@mambasoft.it> 3.0-1mamba
- update to 3.0
* Fri Mar 04 2016 Automatic Build System <autodist@mambasoft.it> 20160304-1mamba
- automatic version update by autodist