]> git.pld-linux.org Git - packages/speedtest-cli.git/blob - speedtest-cli.spec
eabe4ec61aacad325b05016c0affe4dca687d655
[packages/speedtest-cli.git] / speedtest-cli.spec
1 Summary:        speedtest
2 Name:           speedtest-cli
3 Version:        0.2.4
4 Release:        1
5 License:        Apache
6 Group:          Networking
7 Source0:        http://github.com/sivel/speedtest-cli/archive/v%{version}.tar.gz
8 # Source0-md5:  229fc4c6ca702e5f5abdeabfb630efc7
9 URL:            http://github.com/sivel/speedtest-cli
10 BuildRequires:  python-distribute
11 BuildRequires:  rpm-pythonprov
12 BuildRequires:  rpmbuild(macros) >= 1.219
13 Requires:       python-distribute
14 BuildArch:      noarch
15 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16
17 %define         bash_compdir    %{_datadir}/bash-completion/completions
18
19 %description
20 speedtest-cli - command line interface to speedtest.net.
21
22 %prep
23 %setup -q
24
25 %build
26 %{__python} setup.py build
27
28 %install
29 rm -rf $RPM_BUILD_ROOT
30 install -d $RPM_BUILD_ROOT%{_bindir}
31 %{__python} setup.py install \
32         --skip-build \
33         --optimize=2 \
34         --root=$RPM_BUILD_ROOT
35
36 %py_postclean
37
38 %clean
39 rm -rf $RPM_BUILD_ROOT
40
41 %files
42 %defattr(644,root,root,755)
43 %attr(755,root,root) %{_bindir}/speedtest
44 %attr(755,root,root) %{_bindir}/speedtest-cli
45 %{py_sitescriptdir}/speedtest_cli.py*
46 %{py_sitescriptdir}/speedtest_cli-%{version}-py*.egg-info
This page took 0.086307 seconds and 2 git commands to generate.