]> git.pld-linux.org Git - packages/speedtest-cli.git/commitdiff
switch to python3 auto/th/speedtest-cli-2.1.3-1
authorJan Palus <atler@pld-linux.org>
Wed, 9 Jun 2021 10:19:23 +0000 (10:19 +0000)
committerJan Palus <atler@pld-linux.org>
Wed, 9 Jun 2021 10:30:35 +0000 (10:30 +0000)
speedtest-cli.spec

index b2d2ed346ad98fcf1b8eebcb3946f95996030c89..fc81610862ab891b0f3c4f3ba1f1067a5fff4567 100644 (file)
@@ -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
This page took 0.088754 seconds and 4 git commands to generate.