From c3a30fb4de321f8c37be41332090e9426b001e97 Mon Sep 17 00:00:00 2001 From: Antonio T Date: Nov 14 2020 20:29:26 +0000 Subject: Modify patch #3 (rhbz#1897107) --- diff --git a/libsbml-porting_to_python310.patch b/libsbml-porting_to_python310.patch index 49c2e89..ee5a526 100644 --- a/libsbml-porting_to_python310.patch +++ b/libsbml-porting_to_python310.patch @@ -25,7 +25,7 @@ m4_ifvaln([$1], [ AC_MSG_CHECKING([the version of "$PYTHON"]) - if test `"$PYTHON" -c ["import sys; print(sys.version[:3]) >= \"$1\" and \"OK\" or \"OLD\""]` = "OK" -+ if test `"$PYTHON" -c ["import sys; import platform; sys.stdout.write('{}.{}'.format(*platform.python_version_tuple()[:2])) >= \"$1\" and \"OK\" or \"OLD\""]` = "OK" ++ if test `"$PYTHON" -c ["import sys; import platform; sys.stdout.write('{}.{}'.format(*platform.python_version_tuple()[:2])) >= \"$1\""]` = "OK" then AC_MSG_RESULT(ok) else @@ -64,7 +64,7 @@ @@ -108,3 +108,3 @@ AC_MSG_CHECKING([the version of "$PYTHON"]) - if test `"$PYTHON" -c ["import sys; print(sys.version[:3]) >= \"$1\" and \"OK\" or \"OLD\""]` = "OK" -+ if test `"$PYTHON" -c ["import sys; import platform; sys.stdout.write('{}.{}'.format(*platform.python_version_tuple()[:2])) >= \"$1\" and \"OK\" or \"OLD\""]` = "OK" ++ if test `"$PYTHON" -c ["import sys; import platform; sys.stdout.write('{}.{}'.format(*platform.python_version_tuple()[:2])) >= \"$1\""]` = "OK" then @@ -122,3 +122,3 @@ changequote(<<, >>) diff --git a/libsbml.spec b/libsbml.spec index bc424c4..e6b9e4b 100644 --- a/libsbml.spec +++ b/libsbml.spec @@ -34,7 +34,7 @@ Name: libsbml Version: 5.18.0 -Release: 19%{?dist} +Release: 20%{?dist} Summary: Systems Biology Markup Language library License: LGPLv2+ URL: http://sbml.org/Software/libSBML @@ -419,6 +419,9 @@ popd %endif %changelog +* Sat Nov 14 2020 Antonio Trande - 5.18.0-20 +- Modify patch #3 (rhbz#1897107) + * Fri Nov 13 2020 Antonio Trande - 5.18.0-19 - Porting to Python-3.10 (rhbz#1897107)