59 lines
1.5 KiB
RPMSpec
59 lines
1.5 KiB
RPMSpec
Name: iotop
|
|
Version: 0.6
|
|
Release: 2mamba
|
|
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: libpython311-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)
|
|
%dir %{python3_sitearch}/iotop-%{version}-py*.egg-info
|
|
%{python3_sitearch}/iotop-%{version}-py*.egg-info/*
|
|
%doc COPYING THANKS
|
|
|
|
%changelog
|
|
* Thu Oct 05 2023 Silvan Calarco <silvan.calarco@mambasoft.it> 0.6-2mamba
|
|
- rebuilt with python3 == 3.11
|
|
|
|
* Sun May 09 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 0.6-1mamba
|
|
- package created using the webbuild interface
|