From 0538bc565cd2364ac931146dc74197f84b4dc354 Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Thu, 6 Jul 2023 11:49:07 +0000 Subject: automatic import of libsbml --- libsbml-rhbz_2128592.patch | 12 ------------ libsbml.spec | 4 +++- 2 files changed, 3 insertions(+), 13 deletions(-) delete mode 100644 libsbml-rhbz_2128592.patch diff --git a/libsbml-rhbz_2128592.patch b/libsbml-rhbz_2128592.patch deleted file mode 100644 index 53126a5..0000000 --- a/libsbml-rhbz_2128592.patch +++ /dev/null @@ -1,12 +0,0 @@ -diff -up libSBML-5.19.0-Source/examples/python/append_to_note.py.swig libSBML-5.19.0-Source/examples/python/append_to_note.py ---- libSBML-5.19.0-Source/examples/python/append_to_note.py.swig 2022-09-20 11:29:15.703578074 +0200 -+++ libSBML-5.19.0-Source/examples/python/append_to_note.py 2022-09-20 11:29:51.020806478 +0200 -@@ -75,7 +75,7 @@ - exit(4) - print ("Body before change: ") - print (body.toXMLString()) -- body.addChild(libsbml.XMLNode_convertStringToXMLNode(stringToAdd)) -+ body.addChild(libsbml.XMLNode.convertStringToXMLNode(stringToAdd)) - print ("\nBody after change: ") - print (body.toXMLString()) - diff --git a/libsbml.spec b/libsbml.spec index 6e61f1b..dcc9d55 100644 --- a/libsbml.spec +++ b/libsbml.spec @@ -59,7 +59,7 @@ Patch4: %{name}-drop-formatter-import.diff # affect files in dev/ that are not present in the PyPI source distribution. Patch5: https://github.com/sbmlteam/%{name}/pull/178/commits/b12b7f9372424f5271a838c95605d9946c7ea1fb.patch -Patch6: %{name}-rhbz_2128592.patch +#Patch6: %{name}-rhbz_2128592.patch BuildRequires: cmake BuildRequires: zlib-devel @@ -188,6 +188,8 @@ This package contains %{summary}. %prep %autosetup -n libSBML-%{version}-Source -p1 +# delete a file that is hard to be patched due to Windows file endings +rm -rf examples/python/append_to_note.py unzip -n %{SOURCE1} sed -r -i s/DOXYGEN_MAX_VERSION=1.8.11/DOXYGEN_MAX_VERSION=2.0.0/ configure -- cgit v1.2.3