patched for python3.11

This commit is contained in:
Mark E. Fuller 2022-06-21 22:27:47 +03:00
parent 41f48dbdf1
commit 05b012dde5
No known key found for this signature in database
GPG Key ID: D1CB9BCF4D87185F
3 changed files with 7 additions and 0 deletions

1
.gitignore vendored
View File

@ -3,3 +3,4 @@
/cantera-2.6.0b2.tar.gz
/v2.6.0.tar.gz
/cantera-test-ppc64le-aarch64-s390x.patch
/cantera-py311-deprecated-U.patch

View File

@ -12,6 +12,10 @@ Source0: %{url}archive/refs/tags/v%{version}.tar.gz
# increase test tolerance to pass
Patch0: cantera-test-ppc64le-aarch64-s390x.patch
# Fails to build under Python 3.11 due to deprecated mode 'rU' - BZ #2094258
# implement patch until upstream releases fix
Patch1: cantera-py311-deprecated-U.patch
BuildRequires: boost-devel
BuildRequires: eigen3-devel
BuildRequires: fmt-devel
@ -108,6 +112,7 @@ Summary: Static libraries for Cantera
# incorrect installation to /usr/local/bin on F36+
%if 0%{?fedora} >= 36
mkdir -p %{buildroot}%{_bindir}/
mv %{buildroot}%{_prefix}/local/bin/* %{buildroot}%{_bindir}/
rm -rf %{buildroot}%{_prefix}/local/bin
%endif

View File

@ -1,2 +1,3 @@
SHA512 (cantera-test-ppc64le-aarch64-s390x.patch) = 5eea9242cb94d95fda24e11ba90303c9f74171046412deb706f3679235bb55332d43e91b1282ca9ce9c572e8c32aba7e5b1794007ca49454e024d30f2d36c5b1
SHA512 (v2.6.0.tar.gz) = 74e12c89af38236bcc064034f74edcc690895151a9e453e728d130b83f5f527e675750c68a3fe36eea3c6aec6969685aa8828ae740a2e27b5df72a8ccc4d2856
SHA512 (cantera-py311-deprecated-U.patch) = d1ce1adf42203e4b59b4c0dec520bcbabafdf0fbda1af6e7843830feee5ef8a6be3f98eb5cc73435eb51328635311078c9197c1c81ce131307bcbd4bfa20e6f7