commit 6fbbe337c7c9042d1b1414dd3b24ed6fd0d1c079
Author: Jan Palus <[email protected]>
Date:   Wed Jun 9 10:19:23 2021 +0000

    switch to python3

 speedtest-cli.spec | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/speedtest-cli.spec b/speedtest-cli.spec
index b2d2ed3..fc81610 100644
--- a/speedtest-cli.spec
+++ b/speedtest-cli.spec
@@ -7,10 +7,10 @@ Group:                Networking
 Source0:       
https://github.com/sivel/speedtest-cli/archive/v%{version}/%{name}-%{version}.tar.gz
 # Source0-md5: 08c431f2f398880745c4f0564962b9e2
 URL:           https://github.com/sivel/speedtest-cli
-BuildRequires: python-distribute
+BuildRequires: python3-setuptools
 BuildRequires: rpm-pythonprov
 BuildRequires: rpmbuild(macros) >= 1.710
-Requires:      python-distribute
+Requires:      python3-setuptools
 BuildArch:     noarch
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -21,13 +21,12 @@ Command line interface for testing internet bandwidth using 
speedtest.net.
 %setup -q
 
 %build
-%py_build
+%py3_build
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
-%py_install
-%py_postclean
+%py3_install
 
 install -d $RPM_BUILD_ROOT%{_mandir}/man1
 install -p speedtest-cli.1 $RPM_BUILD_ROOT%{_mandir}/man1
@@ -41,5 +40,6 @@ rm -rf $RPM_BUILD_ROOT
 %attr(755,root,root) %{_bindir}/speedtest
 %attr(755,root,root) %{_bindir}/speedtest-cli
 %{_mandir}/man1/speedtest-cli.1*
-%{py_sitescriptdir}/speedtest.py*
-%{py_sitescriptdir}/speedtest_cli-%{version}-py*.egg-info
+%{py3_sitescriptdir}/speedtest.py
+%{py3_sitescriptdir}/__pycache__/speedtest.cpython-*.pyc
+%{py3_sitescriptdir}/speedtest_cli-%{version}-py*.egg-info
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/speedtest-cli.git/commitdiff/6fbbe337c7c9042d1b1414dd3b24ed6fd0d1c079

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to