54 lines
1.3 KiB
RPMSpec
54 lines
1.3 KiB
RPMSpec
|
Name: iotop
|
||
|
Version: 0.6
|
||
|
Release: 1mamba
|
||
|
Summary: Top like utility for I/O
|
||
|
Group: System/Tools
|
||
|
Vendor: openmamba
|
||
|
Distribution: openmamba
|
||
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
||
|
URL: http://guichaz.free.fr/iotop
|
||
|
Source: https://repo.or.cz/iotop.git/iotop-%{version}/iotop-%{version}.tar.bz2
|
||
|
Patch0: iotop-0.6-python3.patch
|
||
|
Patch1: iotop-0.6-python3build.patch
|
||
|
Patch2: iotop-0.6-noendcurses.patch
|
||
|
Patch3: iotop-0.6-batchprintutf8.patch
|
||
|
License: GPL
|
||
|
## AUTOBUILDREQ-BEGIN
|
||
|
BuildRequires: libpython3-devel
|
||
|
## AUTOBUILDREQ-END
|
||
|
|
||
|
%description
|
||
|
Top like utility for I/O.
|
||
|
|
||
|
%prep
|
||
|
%setup -q
|
||
|
%patch0 -p1
|
||
|
%patch1 -p1
|
||
|
%patch2 -p1
|
||
|
%patch3 -p1
|
||
|
|
||
|
%build
|
||
|
CFLAGS="%{optflags}" %{__python3} setup.py build
|
||
|
|
||
|
%install
|
||
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||
|
%{__python3} setup.py install \
|
||
|
-O1 --skip-build \
|
||
|
--root="%{buildroot}" \
|
||
|
--install-headers=%{python3_inc} \
|
||
|
--install-lib=%{python3_sitearch} \
|
||
|
--record=%{name}.filelist
|
||
|
|
||
|
sed -i "\,\.egg-info/,d;s,.*/man/.*,&.gz," %{name}.filelist
|
||
|
|
||
|
%clean
|
||
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||
|
|
||
|
%files -f %{name}.filelist
|
||
|
%defattr(-,root,root)
|
||
|
%doc COPYING THANKS
|
||
|
|
||
|
%changelog
|
||
|
* Sun May 09 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 0.6-1mamba
|
||
|
- package created using the webbuild interface
|