diff --git a/README.md b/README.md index a917c92..71a9412 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # python-speedtest-cli +Command line interface for testing internet bandwidth using speedtest.net. + diff --git a/python-speedtest-cli.spec b/python-speedtest-cli.spec new file mode 100644 index 0000000..078410e --- /dev/null +++ b/python-speedtest-cli.spec @@ -0,0 +1,49 @@ +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 +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 2.1.2-1mamba +- package created using the webbuild interface