]> git.pld-linux.org Git - packages/speedtest-cli.git/commitdiff
- new
authorWitold Filipczyk <witekfl@poczta.onet.pl>
Mon, 17 Feb 2014 17:44:25 +0000 (18:44 +0100)
committerWitold Filipczyk <witekfl@poczta.onet.pl>
Mon, 17 Feb 2014 17:44:25 +0000 (18:44 +0100)
speedtest-cli.spec [new file with mode: 0644]

diff --git a/speedtest-cli.spec b/speedtest-cli.spec
new file mode 100644 (file)
index 0000000..eabe4ec
--- /dev/null
@@ -0,0 +1,46 @@
+Summary:       speedtest
+Name:          speedtest-cli
+Version:       0.2.4
+Release:       1
+License:       Apache
+Group:         Networking
+Source0:       http://github.com/sivel/speedtest-cli/archive/v%{version}.tar.gz
+# Source0-md5: 229fc4c6ca702e5f5abdeabfb630efc7
+URL:           http://github.com/sivel/speedtest-cli
+BuildRequires: python-distribute
+BuildRequires: rpm-pythonprov
+BuildRequires: rpmbuild(macros) >= 1.219
+Requires:      python-distribute
+BuildArch:     noarch
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define                bash_compdir    %{_datadir}/bash-completion/completions
+
+%description
+speedtest-cli - command line interface to speedtest.net.
+
+%prep
+%setup -q
+
+%build
+%{__python} setup.py build
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{_bindir}
+%{__python} setup.py install \
+       --skip-build \
+       --optimize=2 \
+       --root=$RPM_BUILD_ROOT
+
+%py_postclean
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/speedtest
+%attr(755,root,root) %{_bindir}/speedtest-cli
+%{py_sitescriptdir}/speedtest_cli.py*
+%{py_sitescriptdir}/speedtest_cli-%{version}-py*.egg-info
This page took 0.037696 seconds and 4 git commands to generate.