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

50 lines
1.3 KiB
RPMSpec
Raw Normal View History

Name: python-speedtest-cli
Version: 2.1.2
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
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%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 03 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 2.1.2-1mamba
- package created using the webbuild interface