]>
Commit | Line | Data |
---|---|---|
1b88aa99 WF |
1 | Summary: speedtest |
2 | Name: speedtest-cli | |
b8ce2251 | 3 | Version: 2.1.3 |
0d5e08b8 | 4 | Release: 3 |
1b88aa99 WF |
5 | License: Apache |
6 | Group: Networking | |
cebc6543 | 7 | Source0: https://github.com/sivel/speedtest-cli/archive/v%{version}/%{name}-%{version}.tar.gz |
b8ce2251 | 8 | # Source0-md5: 08c431f2f398880745c4f0564962b9e2 |
cebc6543 | 9 | URL: https://github.com/sivel/speedtest-cli |
6fbbe337 | 10 | BuildRequires: python3-setuptools |
1b88aa99 | 11 | BuildRequires: rpm-pythonprov |
147249c0 | 12 | BuildRequires: rpmbuild(macros) >= 1.710 |
6fbbe337 | 13 | Requires: python3-setuptools |
1b88aa99 WF |
14 | BuildArch: noarch |
15 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
16 | ||
1b88aa99 | 17 | %description |
f1d52875 | 18 | Command line interface for testing internet bandwidth using speedtest.net. |
1b88aa99 WF |
19 | |
20 | %prep | |
21 | %setup -q | |
22 | ||
23 | %build | |
6fbbe337 | 24 | %py3_build |
1b88aa99 WF |
25 | |
26 | %install | |
27 | rm -rf $RPM_BUILD_ROOT | |
1b88aa99 | 28 | |
6fbbe337 | 29 | %py3_install |
1b88aa99 | 30 | |
8ee47827 JP |
31 | install -d $RPM_BUILD_ROOT%{_mandir}/man1 |
32 | install -p speedtest-cli.1 $RPM_BUILD_ROOT%{_mandir}/man1 | |
33 | ||
1b88aa99 WF |
34 | %clean |
35 | rm -rf $RPM_BUILD_ROOT | |
36 | ||
37 | %files | |
38 | %defattr(644,root,root,755) | |
f1d52875 | 39 | %doc README.rst |
1b88aa99 WF |
40 | %attr(755,root,root) %{_bindir}/speedtest |
41 | %attr(755,root,root) %{_bindir}/speedtest-cli | |
8ee47827 | 42 | %{_mandir}/man1/speedtest-cli.1* |
6fbbe337 JP |
43 | %{py3_sitescriptdir}/speedtest.py |
44 | %{py3_sitescriptdir}/__pycache__/speedtest.cpython-*.pyc | |
45 | %{py3_sitescriptdir}/speedtest_cli-%{version}-py*.egg-info |