python-speedtest-cli/python-speedtest-cli.spec

52 lines
1.4 KiB
RPMSpec
Raw Permalink Normal View History

Name: python-speedtest-cli
Version: 2.1.3
Release: 1mamba
Summary: Command line interface for testing internet bandwidth using speedtest.net
Group: System/Libraries
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://github.com/sivel/speedtest-cli
Source: https://pypi.debian.net/speedtest-cli/speedtest-cli-%{version}.tar.gz
License: Apache License 2.0
## AUTOBUILDREQ-BEGIN
BuildRequires: libpython3-devel
## AUTOBUILDREQ-END
Requires: python3 >= %python3_version
Requires: python-setuptools-py3
%description
%{summary}.
%if 0%{?with_pyver}
%pyver_package
%endif
%prep
%setup -q -n speedtest-cli-%{version}
%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 "s,.*/man/.*,&.gz," %{name}.filelist
%files %{?pyappend} -f %{name}.filelist
%defattr(-,root,root)
%doc LICENSE
%changelog
* Fri Apr 09 2021 Automatic Build System <autodist@mambasoft.it> 2.1.3-1mamba
- automatic version update by autodist
* Fri Apr 03 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 2.1.2-1mamba
- package created using the webbuild interface