mirror of
https://abf.rosa.ru/djam/speedtest-cli.git
synced 2025-02-23 14:02:55 +00:00
40 lines
1,001 B
RPMSpec
40 lines
1,001 B
RPMSpec
Name: speedtest-cli
|
|
Version: 2.1.3
|
|
Release: 1
|
|
Summary: Command line interface for testing internet bandwidth
|
|
Group: Development/Tools
|
|
License: ASL 2.0
|
|
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
|
|
|
|
%description
|
|
Command line interface for testing internet bandwidth using speedtest.net
|
|
|
|
%prep
|
|
%setup -q
|
|
sed -i -e '/^#!\//, 1d' *.py
|
|
|
|
%build
|
|
%{__python} setup.py build
|
|
|
|
%install
|
|
%{__python} setup.py install --skip-build --root %{buildroot}
|
|
gzip speedtest-cli.1
|
|
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
|
|
|
|
%check
|
|
%{__python} setup.py test
|
|
|
|
%files
|
|
%doc CONTRIBUTING.md LICENSE README.rst
|
|
%{_bindir}/speedtest-cli
|
|
%{python_sitelib}
|
|
%{_mandir}/man1/speedtest-cli.1*
|
|
|