SPECS: iotop.spec - up to 0.2
arekm
arekm at pld-linux.org
Sun Jun 8 12:31:59 CEST 2008
Author: arekm Date: Sun Jun 8 10:31:59 2008 GMT
Module: SPECS Tag: HEAD
---- Log message:
- up to 0.2
---- Files affected:
SPECS:
iotop.spec (1.3 -> 1.4)
---- Diffs:
================================================================
Index: SPECS/iotop.spec
diff -u SPECS/iotop.spec:1.3 SPECS/iotop.spec:1.4
--- SPECS/iotop.spec:1.3 Wed Mar 5 11:09:50 2008
+++ SPECS/iotop.spec Sun Jun 8 12:31:54 2008
@@ -2,14 +2,13 @@
Summary: Top like utility for I/O
Summary(pl.UTF-8): Narzędzie podobne do topa dla I/O
Name: iotop
-Version: 0.1
-Release: 2
+Version: 0.2
+Release: 1
License: GPLv2
Group: Applications/System
-Source0: http://guichaz.free.fr/misc/%{name}.py
-# Source0-md5: ed93de5cfc193e62c5ab0101fb8f61c1
-Patch0: %{name}-ncurses.patch
-URL: http://guichaz.free.fr/misc/#iotop
+Source0: http://guichaz.free.fr/iotop/files/iotop-0.2.tar.bz2
+# Source0-md5: b506e34c7b292f7bb7111b9ed67f68ea
+URL: http://guichaz.free.fr/iotop/
%pyrequires_eq python-modules
BuildRequires: python-devel
Requires: python >= 1:2.5
@@ -24,14 +23,22 @@
going on.
%prep
-%setup -q -c -T
-cp -a %{SOURCE0} .
-%patch0 -p0 -b .xterm-color
+%setup -q
+
+%build
+python ./setup.py build
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{_bindir}
-install iotop.py $RPM_BUILD_ROOT%{_bindir}/iotop
+
+python ./setup.py install \
+ --single-version-externally-managed \
+ --optimize 2 \
+ --root=$RPM_BUILD_ROOT
+
+%py_ocomp $RPM_BUILD_ROOT%{py_sitescriptdir}
+%py_comp $RPM_BUILD_ROOT%{py_sitescriptdir}
+%py_postclean
%clean
rm -rf $RPM_BUILD_ROOT
@@ -39,6 +46,8 @@
%files
%defattr(644,root,root,755)
%attr(755,root,root) %{_bindir}/iotop
+%{py_sitescriptdir}/iotop
+%{py_sitescriptdir}/*.egg-info
%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
%changelog
@@ -46,6 +55,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.4 2008-06-08 10:31:54 arekm
+- up to 0.2
+
Revision 1.3 2008-03-05 10:09:50 glen
- needs python 2.5; rel 2
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/iotop.spec?r1=1.3&r2=1.4&f=u
More information about the pld-cvs-commit
mailing list