Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1282189
Summary: | The speedtest-cli package for Fedora doesn't support python3 while upstream does | ||||||
---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | dperson | ||||
Component: | speedtest-cli | Assignee: | MatÃas Kreder <mkreder> | ||||
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
Severity: | unspecified | Docs Contact: | |||||
Priority: | unspecified | ||||||
Version: | 23 | CC: | mkreder | ||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | All | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | speedtest-cli-0.3.2-3.fc23 | Doc Type: | Bug Fix | ||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2015-12-11 01:51:33 UTC | Type: | Bug | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Attachments: |
|
Description
dperson
2015-11-15 11:49:52 UTC
Created attachment 1094876 [details]
Updated version of the spec file
I'm not 100% but think that the attached version of the spec file should allow the build to work with the OS default python 2 or 3. Thank you. --- Downloads/speedtest-cli.spec.orig 2015-11-16 08:09:25.331950083 -0500 +++ Downloads/speedtest-cli.spec 2015-11-16 08:31:49.998557441 -0500 @@ -1,16 +1,23 @@ Name: speedtest-cli Version: 0.3.1 -Release: 2%{?dist} +Release: 3%{?dist} Summary: Command line interface for testing internet bandwidth License: ASL 2.0 URL: https://github.com/sivel/speedtest-cli Source0: https://github.com/sivel/%{name}/archive/v%{version}.tar.gz +%if 0%{?fedora} <= 22 BuildRequires: python2-devel BuildRequires: python-setuptools Requires: python Requires: python-setuptools +%else +BuildRequires: python3-devel +BuildRequires: python3-setuptools +Requires: python3 +Requires: python3-setuptools +%endif BuildArch: noarch %description @@ -21,26 +28,33 @@ sed -i -e '/^#!\//, 1d' *.py %build -%{__python2} setup.py build +%{__python} setup.py build %install -%{__python2} setup.py install --skip-build --root $RPM_BUILD_ROOT +%{__python} setup.py install --skip-build --root $RPM_BUILD_ROOT gzip speedtest-cli.1 mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1 install -p -m 644 speedtest-cli.1.gz $RPM_BUILD_ROOT%{_mandir}/man1/speedtest-cli.1.gz rm -f $RPM_BUILD_ROOT%{_bindir}/speedtest %check -%{__python2} setup.py test +%{__python} setup.py test %files %{_bindir}/speedtest-cli -%{python2_sitelib}/speedtest_cli.py* +%{python_sitelib}/speedtest_cli.py* +%if 0%{?fedora} <= 22 %{python2_sitelib}/speedtest_cli-%{version}-py2.7.egg-info +%else +%{python3_sitelib}/speedtest_cli-%{version}-py3.4.egg-info +%endif %{_mandir}/man1/speedtest-cli.1.gz %doc CONTRIBUTING.md LICENSE README.rst %changelog +* Mon Nov 16 2015 David Personette <dperson at, gmail.com> - 0.3.1-3 +- As upstream supports python3, try to add support to the spec file + * Fri Jun 19 2015 Fedora Release Engineering <rel-eng.org> - 0.3.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild speedtest-cli-0.3.2-3.fc23 has been submitted as an update to Fedora 23. https://bodhi.fedoraproject.org/updates/FEDORA-2015-b789bcb8b7 speedtest-cli-0.3.2-3.fc23 has been pushed to the Fedora 23 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with $ su -c 'dnf --enablerepo=updates-testing update speedtest-cli' You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2015-b789bcb8b7 speedtest-cli-0.3.2-3.fc23 has been pushed to the Fedora 23 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with $ su -c 'dnf --enablerepo=updates-testing update speedtest-cli' You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2015-b789bcb8b7 speedtest-cli-0.3.2-3.fc23 has been pushed to the Fedora 23 stable repository. If problems still persist, please make note of it in this bug report. |