[packages/python-libusb1] - disabled python3 here, 2to3 is no longer supported by current setuptools

qboosh qboosh at pld-linux.org
Fri Jul 8 21:52:53 CEST 2022


commit a6f9c6a9938022c515854b754a9a6a950bdef51b
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Fri Jul 8 21:54:33 2022 +0200

    - disabled python3 here, 2to3 is no longer supported by current setuptools

 python-libusb1.spec | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/python-libusb1.spec b/python-libusb1.spec
index e163a3a..7fae54b 100644
--- a/python-libusb1.spec
+++ b/python-libusb1.spec
@@ -2,11 +2,12 @@
 # Conditional build:
 %bcond_without	tests	# unit tests
 %bcond_without	python2 # CPython 2.x module
-%bcond_without	python3 # CPython 3.x module
+%bcond_with	python3 # CPython 3.x module (built from python3-libusb1.spec)
 
 Summary:	Pure-python wrapper for libusb-1.0
 Summary(pl.UTF-8):	Czysto pythonowy interfejs do libusb-1.0
 Name:		python-libusb1
+# keep 1.x here for python2 support
 Version:	1.9.3
 Release:	1
 License:	LGPL v2.1+
@@ -26,7 +27,7 @@ BuildRequires:	python3-setuptools
 %endif
 BuildRequires:	rpm-pythonprov
 BuildRequires:	rpmbuild(macros) >= 1.714
-BuildRequires:        sed >= 4.0
+BuildRequires:	sed >= 4.0
 Requires:	python-modules >= 1:2.7
 BuildArch:	noarch
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-libusb1.git/commitdiff/a6f9c6a9938022c515854b754a9a6a950bdef51b



More information about the pld-cvs-commit mailing list