[cpulimit] Initial import (#772406).

ctria ctria at fedoraproject.org
Tue Apr 17 08:35:44 UTC 2012


commit 75f238dee31ad81b04d56c3450ba17a777706138
Author: Christos Triantafyllidis <christos.triantafyllidis at gmail.com>
Date:   Tue Apr 17 11:35:18 2012 +0300

    Initial import (#772406).

 .gitignore    |    1 +
 cpulimit.spec |   39 +++++++++++++++++++++++++++++++++++++++
 sources       |    1 +
 3 files changed, 41 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..30c45f6 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/cpulimit-1.1.tar.gz
diff --git a/cpulimit.spec b/cpulimit.spec
new file mode 100644
index 0000000..5817698
--- /dev/null
+++ b/cpulimit.spec
@@ -0,0 +1,39 @@
+Name:		cpulimit
+Version:	1.1
+Release:	1%{?dist}
+Summary:	CPU Usage Limiter for Linux
+
+Group:		Applications/System
+License:	GPLv2+
+URL:		http://cpulimit.sourceforge.net/
+Source0:	http://downloads.sourceforge.net/project/%{name}/%{name}/%{name}/%{name}-%{version}.tar.gz
+BuildRoot:	%(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
+
+%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
+gcc $RPM_OPT_FLAGS -lrt -o cpulimit cpulimit.c
+
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -Dp -m 755 cpulimit $RPM_BUILD_ROOT/%{_bindir}/cpulimit
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%{_bindir}/cpulimit
+
+%changelog
+* Sat Jan 07 2011 Christos Triantafyllidis <christos.triantafyllidis at gmail.com> 1.1-1
+- initial package creation
diff --git a/sources b/sources
index e69de29..4ab81c2 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+f4ff6d4bfaef1258e8f5cd2041e2e2a3  cpulimit-1.1.tar.gz


More information about the scm-commits mailing list