Change-Id: I4dc289c6a052cf16ac0e6cc7d7127818dbe3f176
Reviewed-on: http://photon-jenkins.eng.vmware.com/310
Tested-by: jenkins-photon <wangnan2015@hotmail.com>
Reviewed-by: Sharath George
| 1 | 1 |
new file mode 100644 |
| ... | ... |
@@ -0,0 +1,38 @@ |
| 0 |
+Summary: Utility tools for control groups of Linux |
|
| 1 |
+Name: cgroup-utils |
|
| 2 |
+Version: 0.6 |
|
| 3 |
+Release: 1%{?dist}
|
|
| 4 |
+License: GPLv2 |
|
| 5 |
+Group: Development/Libraries |
|
| 6 |
+URL: https://pypi.python.org/pypi/cgroup-utils/0.6 |
|
| 7 |
+ |
|
| 8 |
+Source0: https://github.com/peo3/cgroup-utils/archive/%{name}-%{version}.tar.gz
|
|
| 9 |
+%define sha1 cgroup-utils=c0c9c6ddcd7e5ce2eb04394aa1ad46e1b05eb669 |
|
| 10 |
+ |
|
| 11 |
+BuildRequires: python-setuptools |
|
| 12 |
+BuildRequires: python2-devel |
|
| 13 |
+ |
|
| 14 |
+Requires: python2 |
|
| 15 |
+ |
|
| 16 |
+%description |
|
| 17 |
+cgroup-utils provides utility tools and libraries for control groups of Linux. For example, |
|
| 18 |
+cgutil top is a top-like tool which shows activities of running processes in control groups. |
|
| 19 |
+ |
|
| 20 |
+%prep |
|
| 21 |
+%setup -q |
|
| 22 |
+ |
|
| 23 |
+%build |
|
| 24 |
+python setup.py build |
|
| 25 |
+ |
|
| 26 |
+%install |
|
| 27 |
+python setup.py install --single-version-externally-managed -O1 --root=%{buildroot} --record=INSTALLED_FILES
|
|
| 28 |
+ |
|
| 29 |
+%clean |
|
| 30 |
+%{__rm} -rf %{buildroot}
|
|
| 31 |
+ |
|
| 32 |
+%files -f INSTALLED_FILES |
|
| 33 |
+%defattr(-,root,root) |
|
| 34 |
+ |
|
| 35 |
+%changelog |
|
| 36 |
+* Wed Jan 6 2016 Xiaolin Li <xiaolinl@vmware.com> 0.6-1 |
|
| 37 |
+- Initial build. First version |
|
| 0 | 38 |
\ No newline at end of file |