[packages/python-scandir] don't build python3 package on python >= 3.9; rel 3
atler
atler at pld-linux.org
Sun Feb 28 17:55:54 CET 2021
commit 2c856c107f06fec468d199b5f56933cd28b8e86a
Author: Jan Palus <atler at pld-linux.org>
Date: Sun Feb 28 17:50:01 2021 +0100
don't build python3 package on python >= 3.9; rel 3
no longer builds on python 3.9 and upstream suggests using os.scandir()
instead (present in python 3.5 already)
python-scandir.spec | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/python-scandir.spec b/python-scandir.spec
index a3a2fbe..0dc5e53 100644
--- a/python-scandir.spec
+++ b/python-scandir.spec
@@ -4,13 +4,17 @@
%bcond_without python2 # CPython 2.x module
%bcond_without python3 # CPython 3.x module
+%if "%{_ver_ge '%{py3_ver}' '3.9'}" == "1"
+%undefine with_python3
+%endif
+
%define module scandir
%define egg_name scandir
Summary: A better directory iterator and faster os.walk() for Python 2
Summary(pl.UTF-8): Lepszy iterator po katalogach i szybsze os.walk() dla Pythona 2
Name: python-%{module}
Version: 1.10.0
-Release: 2
+Release: 3
License: BSD
Group: Libraries/Python
Source0: https://github.com/benhoyt/scandir/archive/v%{version}/%{module}-%{version}.tar.gz
@@ -29,7 +33,7 @@ BuildRequires: python3-modules >= 1:3.4
BuildRequires: python3-setuptools
%endif
BuildRequires: rpm-pythonprov
-BuildRequires: rpmbuild(macros) >= 1.714
+BuildRequires: rpmbuild(macros) >= 1.750
Requires: python-modules >= 1:2.7
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-scandir.git/commitdiff/2c856c107f06fec468d199b5f56933cd28b8e86a
More information about the pld-cvs-commit
mailing list