]>
Commit | Line | Data |
---|---|---|
1b88aa99 WF |
1 | Summary: speedtest |
2 | Name: speedtest-cli | |
3cb55a30 | 3 | Version: 2.1.2 |
1b88aa99 WF |
4 | Release: 1 |
5 | License: Apache | |
6 | Group: Networking | |
7 | Source0: http://github.com/sivel/speedtest-cli/archive/v%{version}.tar.gz | |
3cb55a30 | 8 | # Source0-md5: a49ad088331810fc9442e8a5c59de713 |
1b88aa99 WF |
9 | URL: http://github.com/sivel/speedtest-cli |
10 | BuildRequires: python-distribute | |
11 | BuildRequires: rpm-pythonprov | |
147249c0 | 12 | BuildRequires: rpmbuild(macros) >= 1.710 |
1b88aa99 WF |
13 | Requires: python-distribute |
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 | |
147249c0 | 24 | %py_build |
1b88aa99 WF |
25 | |
26 | %install | |
27 | rm -rf $RPM_BUILD_ROOT | |
1b88aa99 | 28 | |
147249c0 | 29 | %py_install |
1b88aa99 WF |
30 | %py_postclean |
31 | ||
8ee47827 JP |
32 | install -d $RPM_BUILD_ROOT%{_mandir}/man1 |
33 | install -p speedtest-cli.1 $RPM_BUILD_ROOT%{_mandir}/man1 | |
34 | ||
1b88aa99 WF |
35 | %clean |
36 | rm -rf $RPM_BUILD_ROOT | |
37 | ||
38 | %files | |
39 | %defattr(644,root,root,755) | |
f1d52875 | 40 | %doc README.rst |
1b88aa99 WF |
41 | %attr(755,root,root) %{_bindir}/speedtest |
42 | %attr(755,root,root) %{_bindir}/speedtest-cli | |
8ee47827 | 43 | %{_mandir}/man1/speedtest-cli.1* |
147249c0 | 44 | %{py_sitescriptdir}/speedtest.py* |
1b88aa99 | 45 | %{py_sitescriptdir}/speedtest_cli-%{version}-py*.egg-info |