72 lines
2.2 KiB
RPMSpec
72 lines
2.2 KiB
RPMSpec
Name: cpulimit
|
|
Version: 20150623
|
|
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 Jun 23 2015 Automatic Build System <autodist@mambasoft.it> 20150623-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* 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
|