Name: speedtest-cli Version: 0.3.2 Release: 1%{?dist} Summary: Command line interface for testing internet bandwidth License: ASL 2.0 URL: https://github.com/sivel/speedtest-cli Source0: https://github.com/sivel/%{name}/archive/v%{version}.tar.gz BuildRequires: python3-devel BuildRequires: python3-setuptools Requires: python3 Requires: python3-setuptools BuildArch: noarch %description Command line interface for testing internet bandwidth using speedtest.net %prep %setup -q sed -i -e '/^#!\//, 1d' *.py %build %{__python3} setup.py build %install %{__python3} setup.py install --skip-build --root $RPM_BUILD_ROOT gzip speedtest-cli.1 mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1 install -p -m 644 speedtest-cli.1.gz $RPM_BUILD_ROOT%{_mandir}/man1/speedtest-cli.1.gz rm -f $RPM_BUILD_ROOT%{_bindir}/speedtest %check %{__python3} setup.py test %files %{_bindir}/speedtest-cli %{python3_sitelib}/speedtest_cli.py* %{python3_sitelib}/speedtest_cli-0.3.2-py3.4.egg-info* %{_mandir}/man1/speedtest-cli.1.gz %doc CONTRIBUTING.md LICENSE README.rst %exclude %{python3_sitelib}/__pycache__ %changelog * Wed Nov 18 2015 Matias Kreder - 0.3.2-1 - Updated to 0.3.2 and switched to python 3 * Fri Jun 19 2015 Fedora Release Engineering - 0.3.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Wed Oct 15 2014 Matias Kreder 0.3.1-1 - Updated to 0.3.1, added python-setuptools as a dependency * Mon Jul 14 2014 Matias Kreder 0.3.0-1 - Initial spec