## START: Set by rpmautospec ## (rpmautospec version 0.8.4) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 33; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec %global fork Cantera Name: cantera Version: 2.6.0 Release: %{?autorelease}%{!?autorelease:22{?dist}} Summary: Chemical kinetics, thermodynamics, and transport tool suite License: BSD URL: https://github.com/%{fork}/%{name}/ Source0: %{url}archive/refs/tags/v%{version}.tar.gz # thermoToYaml test failures on ppc64le and aarch64 and s390x - BZ #2081451 # 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 # Fix failure to build with pip >= 21.1 # Fixed upstream: https://github.com/Cantera/cantera/pull/1272 Patch2: fix-pip-build-21.1.patch BuildRequires: boost-devel BuildRequires: eigen3-devel BuildRequires: fmt-devel BuildRequires: gcc BuildRequires: gcc-c++ BuildRequires: git BuildRequires: gmock-devel BuildRequires: gtest-devel BuildRequires: python3 BuildRequires: python3-Cython BuildRequires: python3-devel BuildRequires: python3-numpy BuildRequires: python3-pip BuildRequires: python3-pytest BuildRequires: python3-ruamel-yaml BuildRequires: python3-scons BuildRequires: python3-wheel BuildRequires: sundials-devel BuildRequires: yaml-cpp-devel %if 0%{?fedora} BuildRequires: gcc-fortran %else BuildRequires: gcc-gfortran %endif %global scons scons%{?rhel:-3} ExcludeArch: s390x # YAML test failures - BZ #2044056 %global common_description %{expand: \ Cantera is a suite of object-oriented software tools for solving problems involving chemical kinetics, thermodynamics, and/or transport processes. Cantera can be used for simulating time-dependent or steady reactor networks and one-dimensional reacting flows. Thermodynamic models for ideal gases, aqueous electrolytes, plasmas, and multiphase substances are provided.} %description %{common_description} %package common Summary: Common files needed for all Cantera interfaces %description common %{common_description} . This package includes programs for parsing and converting chemical mechanisms, a set of common mechanism files, and several sample problems. %package -n python3-%{name} Requires: %{name}-common%{_isa} = %{version}-%{release} Summary: Python 3 user interface for Cantera %description -n python3-%{name} %{common_description} . This package includes the Cantera Python 3 module. %package devel Requires: %{name}-common%{_isa} = %{version}-%{release} Summary: Header files and shared object libraries for Cantera %description devel %{common_description} . This package contains the header files and shared object libraries needed to develop applications with the C++ and Fortran interfaces of Cantera. %package static Requires: %{name}-common%{_isa} = %{version}-%{release} Summary: Static libraries for Cantera %description static %{common_description} . This package contains the static libraries for the C++ and Fortran interfaces of Cantera. %prep %setup -n %{name}-%{version} %patch -P0 -p0 %patch -P1 -p1 %patch -P2 -p1 %build %set_build_flags %scons build prefix=%{_prefix} python_prefix=%{_prefix} libdirname=%{_lib} system_sundials=y f90_interface=y renamed_shared_libraries=n python_package=full system_eigen=y extra_inc_dirs=/usr/include/eigen3 system_fmt=y %install %scons install prefix=%{_prefix} python_prefix=%{_prefix} libdirname=%{_lib} stage_dir=%{buildroot} if [[ -d %{buildroot}%{_prefix}/lib/python%{python3_version}/site-packages ]] && [ %{_lib} == "lib64" ]; then mkdir -p %{buildroot}%{python3_sitearch}/ mv %{buildroot}%{_prefix}/lib/python%{python3_version}/site-packages/* %{buildroot}%{python3_sitearch}/ fi %check %scons test %files common %license %{_datadir}/%{name}/doc/LICENSE.txt %doc AUTHORS README.rst %doc %{_mandir}/man1/ck2yaml.1.gz %doc %{_mandir}/man1/cti2yaml.1.gz %doc %{_mandir}/man1/ctml2yaml.1.gz %doc %{_mandir}/man1/ck2cti.1.gz %doc %{_mandir}/man1/ctml_writer.1.gz %{_bindir}/ck2yaml %{_bindir}/cti2yaml %{_bindir}/ctml2yaml %{_bindir}/ctml_writer %{_bindir}/ck2cti %{_datadir}/%{name} #not required for packaged installations %ghost %{_bindir}/setup_cantera %ghost %{_bindir}/setup_cantera.csh %files -n python3-%{name} %{python3_sitearch}/%{name}/ %{python3_sitearch}/Cantera-%{version}.dist-info/ %files devel %{_includedir}/%{name} %{_libdir}/pkgconfig/cantera.pc %{_libdir}/libcantera.so %{_libdir}/libcantera.so.2 %{_libdir}/libcantera.so.%{version} %{_libdir}/libcantera_fortran.so %{_libdir}/libcantera_fortran.so.2 %{_libdir}/libcantera_fortran.so.%{version} %files static %{_libdir}/libcantera.a %{_libdir}/libcantera_fortran.a %changelog ## START: Generated by rpmautospec * Fri Jun 05 2026 Orion Poplawski - 2.6.0-33 - Uncommitted changes * Fri Jan 13 2023 Mark E. Fuller - 2.6.0-32 - ExcludeArch: s390x, YAML test failures - BZ 2044056 * Sat Jan 07 2023 Mark E. Fuller - 2.6.0-31 - add python lib to lib64 kludge * Thu Sep 08 2022 Mark E. Fuller - 2.6.0-30 - remove kludges for F37+ * Wed Jul 20 2022 Fedora Release Engineering - 2.6.0-29 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Tue Jul 19 2022 Mamoru TASAKA - 2.6.0-28 - Rebuild for fmt-9 * Mon Jul 18 2022 Charalampos Stratakis - 2.6.0-27 - Fix FTBFS with pip >= 21.1 * Tue Jun 21 2022 Mark E. Fuller - 2.6.0-26 - fixup * Tue Jun 21 2022 Mark E. Fuller - 2.6.0-25 - patched for python3.11 * Mon Jun 13 2022 Python Maint - 2.6.0-24 - Rebuilt for Python 3.11 * Thu May 26 2022 Mark E. Fuller - 2.6.0-23 - fix premature spec changes * Thu May 26 2022 Mark E. Fuller - 2.6.0-22 - patch cantera for test tolerances on alternate architectures * Thu May 05 2022 Mark E. Fuller - 2.6.0-21 - fix typo in excludearch * Tue May 03 2022 Mark E. Fuller - 2.6.0-20 - exclude aarch64, ppcle64 due to failing test (rtol) * Tue May 03 2022 Mark E. Fuller - 2.6.0-19 - official v2.6.0 release * Thu Apr 14 2022 Mark E. Fuller - 2.6.0-18 - wrong source? * Thu Apr 14 2022 Mark E. Fuller - 2.6.0-17 - update source Cantera 2.6.0b2 * Thu Apr 14 2022 Mark E. Fuller - 2.6.0-16 - all the kludges for Cantera 2.6.0b2 * Tue Apr 12 2022 Mark E. Fuller - 2.6.0-15 - fix kludge for 32-bit builds * Tue Apr 12 2022 Mark E. Fuller - 2.6.0-14 - update to 2.6.0b2 and kludge spec * Mon Mar 14 2022 Mark E. Fuller - 2.6.0-13 - switch to autorelease * Mon Mar 14 2022 Mark E. Fuller - 2.6.0-12 - update tarball 2022-03-14 * Thu Mar 03 2022 Mark E. Fuller - 2.6.0-11 - update source tarball to use lookaside cache * Thu Mar 03 2022 Mark E. Fuller - 2.6.0-10 - update source tarball 2022-03-03 * Fri Feb 04 2022 Mark E. Fuller - 2.6.0-9 - update source tarball to latest * Fri Feb 04 2022 Mark E. Fuller - 2.6.0-8 - fix error with unneeded install scripts * Fri Feb 04 2022 Mark E. Fuller - 2.6.0-7 - drop ppc64le exclusion as fixed in gcc-12.0.1-0.5 * Fri Jan 28 2022 Mark E. Fuller - 2.6.0-6 - drop unneeded setup scripts * Fri Jan 28 2022 Mark E. Fuller - 2.6.0-5 - switch to autorelease * Sun Jan 23 2022 Mark E. Fuller - 2.6.0-0.7.a4 - first real Fedora deploy * Sun Jan 23 2022 Mark E. Fuller - 2.6.0-0.6.a4 - Final revisions for Fedora approval - Remove workaround fixed by #1172 (Issue #1149) - Version for first Fedora builds - Exclude s390x due to failing tests - Exclude ppc64le in Rawhide due to build segfaults - Rename Python package to follow Fedora standards * Thu Jan 13 2022 Mark E. Fuller - 2.6.0-0.5.a4 - Move static libraries from devel to static subpackage * Thu Jan 06 2022 Mark E. Fuller - 2.6.0-0.4.a4 - Cleanup spec per Fedora package review * Sun Jan 02 2022 Mark E. Fuller - 2.6.0-0.3.a4 - Bump dist to a4 * Thu Dec 23 2021 Mark E. Fuller - 2.6.0-0.2.a3 - Bump dist to reflect many merged commits in a3 since October * Tue Nov 30 2021 Mark E. Fuller - 2.6.0-0.1.a3 - Introduced distro-specific IF to build on both Fedora and RHEL * Thu Nov 18 2021 Mark E. Fuller - 2.6.0-0.1.a3 - Moved "setup_cantera*" to devel - Make all included files explicit * Thu Oct 14 2021 Mark E. Fuller - 2.6.0-0.1.a3 - first attempt versions of spec file and packaging ## END: Generated by rpmautospec