update to 3.0 [release 3.0-1mamba;Sun Feb 04 2024]
This commit is contained in:
parent
99ad7b29b8
commit
8c0ab4c7e7
@ -1,21 +1,18 @@
|
|||||||
Name: cpulimit
|
Name: cpulimit
|
||||||
Version: 20160304
|
Epoch: 1
|
||||||
|
Version: 3.0
|
||||||
Release: 1mamba
|
Release: 1mamba
|
||||||
Summary: CPU Usage Limiter for Linux
|
Summary: CPU Usage Limiter for Linux
|
||||||
Group: System/Kernel and Hardware
|
Group: System/Kernel and Hardware
|
||||||
Vendor: openmamba
|
Vendor: openmamba
|
||||||
Distribution: openmamba
|
Distribution: openmamba
|
||||||
Packager: Stefano Cotta Ramusino <stefano.cotta@openmamba.org>
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
||||||
URL: http://cpulimit.sourceforge.net/
|
URL: https://sourceforge.net/projects/limitcpu/
|
||||||
Source: https://github.com/opsengine/cpulimit.git/master/cpulimit-%{version}.tar.bz2
|
Source: https://sourceforge.net/projects/limitcpu/files/limitcpu/cpulimit-%{version}.tar.gz
|
||||||
#Source: https://github.com/opsengine/cpulimit/tarball/master/cpulimit-%{version}.tar.gz
|
|
||||||
#Source: http://downloads.sourceforge.net/cpulimit/cpulimit-%{version}.tar.gz
|
|
||||||
License: GPL
|
License: GPL
|
||||||
## AUTOBUILDREQ-BEGIN
|
## AUTOBUILDREQ-BEGIN
|
||||||
BuildRequires: glibc-devel
|
BuildRequires: glibc-devel
|
||||||
## AUTOBUILDREQ-END
|
## AUTOBUILDREQ-END
|
||||||
BuildRequires: help2man
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
cpulimit is a simple program which attempts to limit the cpu usage of a process (expressed in percentage, not in cpu time).
|
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.
|
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.
|
Also, it is able to adapt itself to the overall system load, dynamically and quickly.
|
||||||
|
|
||||||
|
%debug_package
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%ifnarch x86_64
|
|
||||||
sed -i 's,-O2,%{optflags},' Makefile
|
|
||||||
%make
|
%make
|
||||||
%else
|
|
||||||
make
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||||||
install -D -m 755 src/cpulimit \
|
%makeinstall PREFIX=%{buildroot}%{_prefix}
|
||||||
%{buildroot}%{_bindir}/cpulimit
|
|
||||||
|
|
||||||
install -d %{buildroot}%{_mandir}/man1
|
|
||||||
help2man \
|
|
||||||
--version-string="cpulimit %{version}" \
|
|
||||||
--output=%{buildroot}%{_mandir}/man1/cpulimit.1 \
|
|
||||||
src/cpulimit
|
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%{_bindir}/*
|
%{_bindir}/cpulimit
|
||||||
%{_mandir}/man1/*
|
%{_mandir}/man1/cpulimit.1*
|
||||||
%doc LICENSE
|
%doc LICENSE
|
||||||
|
|
||||||
%changelog
|
%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
|
* Fri Mar 04 2016 Automatic Build System <autodist@mambasoft.it> 20160304-1mamba
|
||||||
- automatic version update by autodist
|
- automatic version update by autodist
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user