automatic version update by autodist [release 20140311-1mamba;Tue Mar 11 2014]
This commit is contained in:
parent
1816e95d26
commit
28eddbb9c8
@ -1,2 +1,7 @@
|
||||
# cpulimit
|
||||
|
||||
cpulimit is a simple program which attempts to limit the cpu usage of a process (expressed in percentage, not in cpu time).
|
||||
This is useful to control batch jobs, when you don't want them to 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 system load, dynamically and quickly.
|
||||
|
||||
|
68
cpulimit.spec
Normal file
68
cpulimit.spec
Normal file
@ -0,0 +1,68 @@
|
||||
Name: cpulimit
|
||||
Version: 20140311
|
||||
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
|
||||
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).
|
||||
This is useful to control batch jobs, when you don't want them to 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 system load, dynamically and quickly.
|
||||
|
||||
%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
|
||||
|
||||
%clean
|
||||
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%{_bindir}/*
|
||||
%{_mandir}/man1/*
|
||||
%doc LICENSE
|
||||
|
||||
%changelog
|
||||
* Tue Mar 11 2014 Automatic Build System <autodist@mambasoft.it> 20140311-1mamba
|
||||
- automatic version update by autodist
|
||||
|
||||
* Sat Jan 18 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 20140118git-1mamba
|
||||
- update to 20140118git
|
||||
|
||||
* Tue Jan 29 2013 Automatic Build System <autodist@mambasoft.it> 20120918-1mamba
|
||||
- update to 20120918
|
||||
|
||||
* Tue Sep 28 2010 Stefano Cotta Ramusino <stefano.cotta@openmamba.org> 1.1-1mamba
|
||||
- package created by autospec
|
Loading…
Reference in New Issue
Block a user