2016-07-04 21:26:04 +03:00
|
|
|
Name: speedtest-cli
|
2021-04-08 23:05:13 +03:00
|
|
|
Version: 2.1.3
|
2016-07-04 21:26:04 +03:00
|
|
|
Release: 1
|
|
|
|
Summary: Command line interface for testing internet bandwidth
|
|
|
|
Group: Development/Tools
|
2021-04-08 23:05:13 +03:00
|
|
|
License: ASL 2.0
|
2016-07-04 21:26:04 +03:00
|
|
|
URL: https://github.com/sivel/speedtest-cli
|
|
|
|
Source0: https://github.com/sivel/%{name}/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
|
|
|
|
BuildRequires: python-devel
|
|
|
|
BuildRequires: python-setuptools
|
|
|
|
Requires: python
|
|
|
|
Requires: python-setuptools
|
|
|
|
BuildArch: noarch
|
2015-09-22 19:32:27 +04:00
|
|
|
|
|
|
|
%description
|
|
|
|
Command line interface for testing internet bandwidth using speedtest.net
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
sed -i -e '/^#!\//, 1d' *.py
|
|
|
|
|
|
|
|
%build
|
2015-09-22 18:55:04 +03:00
|
|
|
%{__python} setup.py build
|
2015-09-22 19:32:27 +04:00
|
|
|
|
|
|
|
%install
|
2016-07-04 21:26:04 +03:00
|
|
|
%{__python} setup.py install --skip-build --root %{buildroot}
|
2015-09-22 19:32:27 +04:00
|
|
|
gzip speedtest-cli.1
|
2016-07-04 21:26:04 +03:00
|
|
|
mkdir -p %{buildroot}%{_mandir}/man1
|
|
|
|
install -p -m 644 speedtest-cli.1.gz %{buildroot}%{_mandir}/man1/speedtest-cli.1.gz
|
|
|
|
rm -f %{buildroot}%{_bindir}/speedtest
|
2015-09-22 19:32:27 +04:00
|
|
|
|
|
|
|
%check
|
2015-09-22 18:55:04 +03:00
|
|
|
%{__python} setup.py test
|
2015-09-22 19:32:27 +04:00
|
|
|
|
|
|
|
%files
|
2016-11-17 22:12:41 +03:00
|
|
|
%doc CONTRIBUTING.md LICENSE README.rst
|
2015-09-22 19:32:27 +04:00
|
|
|
%{_bindir}/speedtest-cli
|
2016-11-17 22:12:41 +03:00
|
|
|
%{python_sitelib}
|
2025-02-10 00:10:38 +00:00
|
|
|
%{_mandir}/man1/speedtest-cli.1*
|
2016-11-17 22:12:41 +03:00
|
|
|
|