public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/sundials] main: Release 7.9.0 | Add sundials 64bit integer sub-packages
@ 2026-09-19 15:04 Antonio Trande
0 siblings, 0 replies; only message in thread
From: Antonio Trande @ 2026-09-19 15:04 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/sundials
Branch : main
Commit : 62e21784c4eea16c3651604a133a4614a49b6e1d
Author : Antonio Trande <sagitter@fedoraproject.org>
Date : 2026-09-19T17:04:38+02:00
Stats : +442/-254 in 8 file(s)
URL : https://src.fedoraproject.org/rpms/sundials/c/62e21784c4eea16c3651604a133a4614a49b6e1d?branch=main
Log:
Release 7.9.0 | Add sundials 64bit integer sub-packages
---
diff --git a/.gitignore b/.gitignore
index 6d9eeb5..8cd8548 100644
--- a/.gitignore
+++ b/.gitignore
@@ -30,3 +30,4 @@ sundials-2.3.0.tar.gz
/sundials-7.5.0.tar.gz
/sundials-7.6.0.tar.gz
/sundials-7.8.0.tar.gz
+/sundials-7.9.0.tar.gz
diff --git a/sources b/sources
index 90f0de3..32690d8 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (sundials-7.8.0.tar.gz) = 312c22c6df61ffa7c3cb0bd0c30d0945b106014bc40c1ceedc1df5ebfa58d6b1b57bf7e0b30b22c6ac3e0c210b78aa6dc8d62da37b3cdc2cd3d3833012e1c2b5
+SHA512 (sundials-7.9.0.tar.gz) = f4c855698575754b111df8836432c6392a0d0c7946146a68041ec192f2d74e69882b0a0f3ce4513f6a8a01f8bbf0d0f216203705321ee2758acd9dbc57e2575f
diff --git a/sundials-7.8.0-set_python_cmake_flags.patch b/sundials-7.8.0-set_python_cmake_flags.patch
deleted file mode 100644
index efc48dc..0000000
--- a/sundials-7.8.0-set_python_cmake_flags.patch
+++ /dev/null
@@ -1,18 +0,0 @@
---- a/pyproject.orig.toml 2026-01-26 17:43:46.000000000 +0100
-+++ b/pyproject.toml 2026-01-31 17:54:34.505475024 +0100
-@@ -54,10 +54,13 @@
- "-DSUNDIALS_ENABLE_IDA:BOOL=OFF",
- "-DSUNDIALS_ENABLE_C_EXAMPLES:BOOL=OFF",
- "-DSUNDIALS_ENABLE_CXX_EXAMPLES:BOOL=OFF",
-- "-DSUNDIALS_ENABLE_PYTHON:BOOL=ON"
-+ "-DSUNDIALS_ENABLE_PYTHON:BOOL=ON",
-+ "-DCMAKE_VERBOSE_MAKEFILE:BOOL=ON",
-+ "-DCMAKE_C_FLAGS_RELEASE:STRING=${CFLAGS}",
-+ "-DCMAKE_CXX_FLAGS_RELEASE:STRING=${CXXFLAGS}"
- ]
-
--cmake.build-type = "RelWithDebInfo"
-+cmake.build-type = "Release"
-
- [tool.pytest.ini_options]
- python_files = ["*.py"]
diff --git a/sundials-7.9.0-find_petsc64.patch b/sundials-7.9.0-find_petsc64.patch
new file mode 100644
index 0000000..e0ed923
--- /dev/null
+++ b/sundials-7.9.0-find_petsc64.patch
@@ -0,0 +1,12 @@
+--- a/cmake/tpl/FindPETSC.cmake 2026-09-03 21:06:14.000000000 +0200
++++ b/cmake/tpl/FindPETSC.cmake 2026-09-11 13:25:10.809094660 +0200
+@@ -37,7 +37,7 @@
+ set(_pkg_version_spec ">=${PETSC_FIND_VERSION}")
+ endif()
+ endif()
+-pkg_check_modules(PKG_PETSC "PETSc${_pkg_version_spec}")
++pkg_check_modules(PKG_PETSC "PETSc64${_pkg_version_spec}")
+ unset(_pkg_version_spec)
+
+ # Find the PETSC libraries
+
diff --git a/sundials-7.9.0-klu64.patch b/sundials-7.9.0-klu64.patch
new file mode 100644
index 0000000..7910ead
--- /dev/null
+++ b/sundials-7.9.0-klu64.patch
@@ -0,0 +1,56 @@
+--- a/cmake/tpl/FindKLU.orig.cmake 2021-09-30 21:05:25.000000000 +0200
++++ b/cmake/tpl/FindKLU.cmake 2023-03-03 21:28:45.354177379 +0100
+@@ -39,7 +39,8 @@
+ OR KLU_LIBRARY))
+ # Prefer the import target from upstream SuiteSparse if it is available and
+ # the user didn't point to a specific (different) version.
+- find_package(KLU CONFIG)
++ # find_package(KLU CONFIG)
++ find_package(KLU CONFIG EXACT REQUIRED PATHS ${KLU_LIBRARY_DIR}/SuiteSparse64/cmake)
+
+ if(TARGET SuiteSparse::KLU)
+ # Some upstream SuiteSparse config packages create SuiteSparse::KLU but omit
+@@ -97,36 +98,37 @@
+
+ else()
+ # find library with user provided directory path
+- set(KLU_LIBRARY_NAME klu)
++ set(KLU_LIBRARY_NAME klu64)
+ find_library(KLU_LIBRARY ${KLU_LIBRARY_NAME} ${KLU_LIBRARY_DIR})
+ endif()
+ mark_as_advanced(KLU_LIBRARY)
+
+ if(NOT AMD_LIBRARY)
+- set(AMD_LIBRARY_NAME amd)
++ set(AMD_LIBRARY_NAME amd64)
+ find_library(AMD_LIBRARY ${AMD_LIBRARY_NAME} ${KLU_LIBRARY_DIR})
+ mark_as_advanced(AMD_LIBRARY)
+ endif()
+
+ if(NOT COLAMD_LIBRARY)
+- set(COLAMD_LIBRARY_NAME colamd)
++ set(COLAMD_LIBRARY_NAME colamd64)
+ find_library(COLAMD_LIBRARY ${COLAMD_LIBRARY_NAME} ${KLU_LIBRARY_DIR})
+ mark_as_advanced(COLAMD_LIBRARY)
+ endif()
+
+ if(NOT BTF_LIBRARY)
+- set(BTF_LIBRARY_NAME btf)
++ set(BTF_LIBRARY_NAME btf64)
+ find_library(BTF_LIBRARY ${BTF_LIBRARY_NAME} ${KLU_LIBRARY_DIR})
+ mark_as_advanced(BTF_LIBRARY)
+ endif()
+
+ if(NOT SUITESPARSECONFIG_LIBRARY)
+- set(SUITESPARSECONFIG_LIBRARY_NAME suitesparseconfig)
++ # set(SUITESPARSECONFIG_LIBRARY_NAME suitesparseconfig)
+ # NOTE: no prefix for this library on windows
+ if(MSVC OR ("${CMAKE_C_SIMULATE_ID}" STREQUAL "MSVC"))
+ set(CMAKE_FIND_LIBRARY_PREFIXES "")
+ endif()
+- find_library(SUITESPARSECONFIG_LIBRARY ${SUITESPARSECONFIG_LIBRARY_NAME}
++ find_library(SUITESPARSECONFIG_LIBRARY suitesparseconfig64
++ HINTS ${LIB_INSTALL_DIR}
+ ${KLU_LIBRARY_DIR})
+ mark_as_advanced(SUITESPARSECONFIG_LIBRARY)
+ endif()
diff --git a/sundials-7.9.0-set_python_cmake_flags.patch b/sundials-7.9.0-set_python_cmake_flags.patch
new file mode 100644
index 0000000..25c4c46
--- /dev/null
+++ b/sundials-7.9.0-set_python_cmake_flags.patch
@@ -0,0 +1,14 @@
+--- a/pyproject.orig.toml 2026-01-26 17:43:46.000000000 +0100
++++ b/pyproject.toml 2026-01-31 17:54:34.505475024 +0100
+@@ -54,7 +54,10 @@
+ "-DSUNDIALS_ENABLE_IDA:BOOL=OFF",
+ "-DSUNDIALS_ENABLE_C_EXAMPLES:BOOL=OFF",
+ "-DSUNDIALS_ENABLE_CXX_EXAMPLES:BOOL=OFF",
+- "-DSUNDIALS_ENABLE_PYTHON:BOOL=ON"
++ "-DSUNDIALS_ENABLE_PYTHON:BOOL=ON",
++ "-DCMAKE_VERBOSE_MAKEFILE:BOOL=ON",
++ "-DCMAKE_C_FLAGS_RELEASE:STRING=${CFLAGS}",
++ "-DCMAKE_CXX_FLAGS_RELEASE:STRING=${CXXFLAGS}"
+ ]
+
+ cmake.build-type = "RelWithDebInfo"
diff --git a/sundials-klu64.patch b/sundials-klu64.patch
deleted file mode 100644
index bba8953..0000000
--- a/sundials-klu64.patch
+++ /dev/null
@@ -1,43 +0,0 @@
---- a/cmake/tpl/FindKLU.orig.cmake 2021-09-30 21:05:25.000000000 +0200
-+++ b/cmake/tpl/FindKLU.cmake 2023-03-03 21:28:45.354177379 +0100
-@@ -82,35 +82,35 @@
-
- else()
- # find library with user provided directory path
-- set(KLU_LIBRARY_NAME klu)
-+ set(KLU_LIBRARY_NAME klu64)
- find_library(KLU_LIBRARY ${KLU_LIBRARY_NAME} ${KLU_LIBRARY_DIR}
- NO_DEFAULT_PATH)
- endif()
- mark_as_advanced(KLU_LIBRARY)
-
- if(NOT AMD_LIBRARY)
-- set(AMD_LIBRARY_NAME amd)
-+ set(AMD_LIBRARY_NAME amd64)
- find_library(AMD_LIBRARY ${AMD_LIBRARY_NAME} ${KLU_LIBRARY_DIR}
- NO_DEFAULT_PATH)
- mark_as_advanced(AMD_LIBRARY)
- endif()
-
- if(NOT COLAMD_LIBRARY)
-- set(COLAMD_LIBRARY_NAME colamd)
-+ set(COLAMD_LIBRARY_NAME colamd64)
- find_library(COLAMD_LIBRARY ${COLAMD_LIBRARY_NAME} ${KLU_LIBRARY_DIR}
- NO_DEFAULT_PATH)
- mark_as_advanced(COLAMD_LIBRARY)
- endif()
-
- if(NOT BTF_LIBRARY)
-- set(BTF_LIBRARY_NAME btf)
-+ set(BTF_LIBRARY_NAME btf64)
- find_library(BTF_LIBRARY ${BTF_LIBRARY_NAME} ${KLU_LIBRARY_DIR}
- NO_DEFAULT_PATH)
- mark_as_advanced(BTF_LIBRARY)
- endif()
-
- if(NOT SUITESPARSECONFIG_LIBRARY)
-- set(SUITESPARSECONFIG_LIBRARY_NAME suitesparseconfig)
-+ set(SUITESPARSECONFIG_LIBRARY_NAME suitesparseconfig64)
- # NOTE: no prefix for this library on windows
- if(MSVC OR ("${CMAKE_C_SIMULATE_ID}" STREQUAL "MSVC"))
- set(CMAKE_FIND_LIBRARY_PREFIXES "")
diff --git a/sundials.spec b/sundials.spec
index 51934e1..4a36791 100644
--- a/sundials.spec
+++ b/sundials.spec
@@ -1,4 +1,4 @@
-## Debug builds?
+# Enable debug outputs
%bcond_with debug
#
@@ -15,15 +15,11 @@
%define _lto_cflags %{nil}
%global with_mpich 1
-%if 0%{?fedora} >= 40
%ifarch %{ix86}
%global with_openmpi 0
%else
%global with_openmpi 1
%endif
-%else
-%global with_openmpi 1
-%endif
%if 0%{?flatpak}
%global with_mpich 0
%global with_openmpi 0
@@ -45,10 +41,6 @@
###########
%global with_sercheck 1
-## PETSc ##
-%global with_petsc 1
-###########
-
## SuperLUMT ##
%global with_superlumt 1
###########
@@ -57,17 +49,25 @@
%global with_superludist 0
###########
+## 64bit integer support is not ready yet when we use PETSc64 serial
%if 0%{?fedora} || 0%{?rhel} >= 10
-# KLU support
%ifarch %{arm} %{ix86}
+%global with_64bit_integer 0
%global with_klu 1
+%global with_superlumt 1
%global with_klu64 0
%global with_fortran 0
+%global with_petsc 1
%endif
%ifarch s390x x86_64 %{power64} %{arm64} riscv64
+%global with_64bit_integer 1
%global with_klu 1
%global with_klu64 0
+%global with_klu64_serial 0
%global with_fortran 1
+%global with_petsc 1
+%global with_superlumt 1
+%global with_superlumt64_serial 1
%endif
%endif
##########
@@ -75,6 +75,8 @@
%if 0%{?rhel} && 0%{?rhel} == 8
%global with_klu 1
%global with_fortran 0
+%global with_petsc 1
+%global with_petsc64 0
%endif
##########
##########
@@ -82,6 +84,8 @@
%global with_klu 1
%global with_klu64 0
%global with_fortran 1
+%global with_petsc 1
+%global with_petsc64 0
%endif
##########
# SOVERSIONs (*_SOVERSION from CMakeLists.txt):
@@ -100,7 +104,7 @@
Summary: Suite of nonlinear solvers
Name: sundials
-Version: 7.8.0
+Version: 7.9.0
Release: %autorelease
License: BSD-3-Clause
URL: https://computation.llnl.gov/projects/%{name}/
@@ -110,8 +114,10 @@ Source0: https://github.com/LLNL/%{name}/releases/download/v%{version}/%{name
Patch0: %{name}-5.5.0-set_superlumt_name.patch
# This patch rename superLUMT64 library
Patch1: %{name}-5.5.0-set_superlumt64_name.patch
-Patch3: %{name}-klu64.patch
-Patch4: %{name}-7.8.0-set_python_cmake_flags.patch
+
+Patch3: %{name}-7.9.0-klu64.patch
+Patch4: %{name}-7.9.0-set_python_cmake_flags.patch
+Patch5: %{name}-7.9.0-find_petsc64.patch
BuildRequires: make
%if 0%{?with_fortran}
@@ -124,18 +130,16 @@ BuildRequires: epel-rpm-macros
%endif
BuildRequires: cmake >= 3.10
BuildRequires: %{blaslib}-devel
-%if 0%{?with_superlumt}
-%if 0%{?with_klu64}
+%if 0%{?with_superlumt64_serial}
BuildRequires: SuperLUMT64-devel > 0:4.0.2-1
%endif
-%if 0%{?with_klu}
+%if 0%{?with_superlumt}
BuildRequires: SuperLUMT-devel > 0:4.0.2-1
%endif
-%endif
+
# KLU support
%if 0%{?with_klu64}
BuildRequires: suitesparse64-devel
-BuildRequires: petsc64-devel
%endif
%if 0%{?with_klu}
BuildRequires: suitesparse-devel
@@ -183,6 +187,29 @@ Official Python bindings for the SUNDIALS suite of nonlinear and
differential/algebraic equation solvers.
sundials4py is in beta and is subject to breaking changes.
%endif
+
+#############################################################################
+#######
+%if 0%{?with_64bit_integer}
+%package -n sundials64
+Summary: Suite of nonlinear solvers (64bit integer)
+%description -n sundials64
+SUNDIALS (64bit integer) is a SUite of Non-linear DIfferential/ALgebraic equation Solvers
+for use in writing mathematical software.
+This package contains the developer files (dynamic libraries, header files,
+static libraries and example files).
+
+%package -n sundials64-devel
+Summary: Suite of nonlinear solvers (64bit integer, developer files)
+Requires: %{name}64%{?_isa} = %{version}-%{release}
+Provides: %{name}64-fortran-static = %{version}-%{release}
+Provides: %{name}64-examples = %{version}-%{release}
+%description -n sundials64-devel
+SUNDIALS (64bit integer) is a SUite of Non-linear DIfferential/ALgebraic equation Solvers
+for use in writing mathematical software.
+This package contains the developer files (dynamic libraries, header files,
+static libraries and example files).
+%endif
#############################################################################
#########
%if 0%{?with_openmpi}
@@ -280,18 +307,24 @@ This package contains the documentation source files.
%prep
%setup -qc
-pushd %{name}-%{version}
+%if 0%{?with_64bit_integer}
+cp -a %{name}-%{version} %{name}64-%{version}
-%if 0%{?with_klu64}
+pushd %{name}64-%{version}
+%if 0%{?with_superlumt64_serial}
%patch -P 1 -p1 -b .set_superlumt64_name
-%else
-%patch -P 0 -p1 -b .set_superlumt_name
%endif
-
-%if 0%{?with_klu64}
+%if 0%{?with_klu64_serial}
%patch -P 3 -p1 -b .klu64
%endif
+%if 0%{?with_petsc64_serial}
+%patch -P 5 -p1 -b .petsc64
+%endif
+popd
+%endif
+pushd %{name}-%{version}
+%patch -P 0 -p1 -b .set_superlumt_name
%if %{with python}
%patch -P 4 -p1 -b .backup
%endif
@@ -305,80 +338,47 @@ mv src/kinsol/README.md src/README-kinsol.md
popd
%if %{with python}
-cp -a sundials-%{version} sundials-%{version}-python
+cp -a %{name}-%{version} %{name}-%{version}-python
#generate_buildrequires
-pushd sundials-%{version}-python
+pushd %{name}-%{version}-python
%pyproject_buildrequires
popd
%endif
%if 0%{?with_openmpi}
-cp -a sundials-%{version} buildopenmpi_dir
+cp -a %{name}-%{version} buildopenmpi_dir
%endif
%if 0%{?with_mpich}
-cp -a sundials-%{version} buildmpich_dir
+cp -a %{name}-%{version} buildmpich_dir
%endif
%build
%global _smp_ncpus_max 1
-mkdir -p sundials-%{version}/build
-
-export LIBBLASLINK=-l%{blaslib}%{blasvar}
-export INCBLAS=%{_includedir}/%{blaslib}
-
%if 0%{?with_superlumt}
-%if 0%{?with_klu64}
-export LIBSUPERLUMTLINK=-lsuperlu_mt64
-%endif
-%if 0%{?with_klu}
export LIBSUPERLUMTLINK=-lsuperlu_mt
%endif
-%endif
-
-%if %{with debug}
-%undefine _hardened_build
-export CFLAGS=" -fPIC"
-export FFLAGS=" -fPIC"
-export FCFLAGS=" -fPIC"
-%{_bindir}/cmake -B sundials-%{version}/build -S sundials-%{version} \
- -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON \
- -DCMAKE_BUILD_TYPE:STRING=Debug \
- -DCMAKE_C_FLAGS_DEBUG:STRING="-O0 -g %{__global_ldflags} -I$INCBLAS" \
- -DCMAKE_Fortran_FLAGS_DEBUG:STRING="-O0 -g %{__global_ldflags} -I$INCBLAS" \
- -DCMAKE_CXX_FLAGS_DEBUG:STRING="-O0 -g %{__global_ldflags} -I$INCBLAS" \
- -DCMAKE_SHARED_LINKER_FLAGS_DEBUG:STRING="%{__global_ldflags} $LIBBLASLINK $LIBSUPERLUMTLINK" \
-%else
+export LIBBLASLINK=-l%{blaslib}%{blasvar}
+export INCBLAS=%{_includedir}/%{blaslib}
export CFLAGS="%{build_cflags}"
export FFLAGS="%{build_fflags} -fPIC"
-%cmake -B sundials-%{version}/build -S sundials-%{version} \
+
+%define _vpath_srcdir %{name}-%{version}
+mkdir -p %{name}-%{version}/build
+%define _vpath_builddir %{name}-%{version}/build
+%cmake \
-DCMAKE_C_FLAGS_RELEASE:STRING="%{optflags} -I$INCBLAS" \
-DCMAKE_Fortran_FLAGS_RELEASE:STRING="%{optflags} -I$INCBLAS" \
-%endif
-%if 0%{?with_klu64}
- -DSUNDIALS_INDEX_SIZE:STRING=64 \
- -DSUNDIALS_ENABLE_KLU=ON -DKLU_LIBRARY_DIR:PATH=%{_libdir} -DKLU_LIBRARY=%{_libdir}/libklu64.so \
- -DAMD_LIBRARY=%{_libdir}/libamd64.so -DAMD_LIBRARY_DIR:PATH=%{_libdir} \
- -DBTF_LIBRARY=%{_libdir}/libbtf64.so -DBTF_LIBRARY_DIR:PATH=%{_libdir} \
- -DCOLAMD_LIBRARY=%{_libdir}/libcolamd64.so -DCOLAMD_LIBRARY_DIR:PATH=%{_libdir} \
- -DKLU_INCLUDE_DIR:PATH=%{_includedir}/suitesparse \
-%if 0%{?with_superlumt}
- -DSUNDIALS_ENABLE_SUPERLUMT:BOOL=ON \
- -DSUPERLUMT_INCLUDE_DIR:PATH=%{_includedir}/SuperLUMT64 \
- -DSUPERLUMT_LIBRARY_DIR:PATH=%{_libdir} \
- -DSUPERLUMT_LIBRARY:FILEPATH=%{_libdir}/libsuperlu_mt64.so \
- -DSUPERLUMT_THREAD_TYPE:STRING=OpenMP \
-%endif
-%endif
%if 0%{?with_klu}
- -DSUNDIALS_INDEX_SIZE:STRING=32 \
- -DSUNDIALS_ENABLE_KLU=ON -DKLU_LIBRARY_DIR:PATH=%{_libdir} -DKLU_LIBRARY=%{_libdir}/libklu.so \
+ -DSUNDIALS_ENABLE_KLU:BOOL=ON -DKLU_LIBRARY_DIR:PATH=%{_libdir} \
+ -DKLU_LIBRARY:FILEPATH=%{_libdir}/libklu.so \
+ -DKLU_INCLUDE_DIR:PATH=%{_includedir}/suitesparse \
-DAMD_LIBRARY=%{_libdir}/libamd.so -DAMD_LIBRARY_DIR:PATH=%{_libdir} \
-DBTF_LIBRARY=%{_libdir}/libbtf.so -DBTF_LIBRARY_DIR:PATH=%{_libdir} \
-DCOLAMD_LIBRARY=%{_libdir}/libcolamd.so -DCOLAMD_LIBRARY_DIR:PATH=%{_libdir} \
- -DKLU_INCLUDE_DIR:PATH=%{_includedir}/suitesparse \
+%endif
%if 0%{?with_superlumt}
-DSUNDIALS_ENABLE_SUPERLUMT:BOOL=ON \
-DSUPERLUMT_INCLUDE_DIR:PATH=%{_includedir}/SuperLUMT \
@@ -386,8 +386,8 @@ export FFLAGS="%{build_fflags} -fPIC"
-DSUPERLUMT_LIBRARY:FILEPATH=%{_libdir}/libsuperlu_mt.so \
-DSUPERLUMT_THREAD_TYPE:STRING=OpenMP \
%endif
-%endif
-DSUNDIALS_ENABLE_PETSC:BOOL=OFF \
+ -DBLAS_LIBRARIES:FILEPATH=%{_libdir}/lib%{blaslib}%{blasvar}.so \
-DSUNDIALS_ENABLE_PROFILING:BOOL=OFF \
-DCMAKE_VERBOSE_MAKEFILE:BOOL=ON \
-DCMAKE_BUILD_TYPE:STRING=Release \
@@ -402,8 +402,8 @@ export FFLAGS="%{build_fflags} -fPIC"
-DSUNDIALS_ENABLE_MPI:BOOL=OFF \
%if 0%{?with_fortran}
-DF77_INTERFACE_ENABLE:BOOL=ON \
-%if %{?__isa_bits:%{__isa_bits}}%{!?__isa_bits:32} == 64
-DSUNDIALS_ENABLE_FORTRAN:BOOL=ON \
+ -DFortran_INSTALL_MODDIR:PATH=%{_fmoddir}/%{name} \
%endif
%if 0%{?with_sercheck}
-DSUNDIALS_ENABLE_F90_EXAMPLES:BOOL=ON \
@@ -411,34 +411,109 @@ export FFLAGS="%{build_fflags} -fPIC"
-DSUNDIALS_ENABLE_CXX_EXAMPLES:BOOL=ON \
-DSUNDIALS_ENABLE_C_EXAMPLES:BOOL=ON \
%endif
- -DFortran_INSTALL_MODDIR:PATH=%{_fmoddir}/%{name} \
-%endif
-DUSE_GENERIC_MATH:BOOL=ON \
-DSUNDIALS_ENABLE_OPENMP:BOOL=ON \
%if %{with pthread}
-DSUNDIALS_ENABLE_PTHREAD:BOOL=ON \
%endif
+ -DSUNDIALS_INDEX_SIZE:STRING=32 \
-DSUNDIALS_PRECISION:STRING=double \
-DSUNDIALS_ENABLE_SUPERLUDIST:BOOL=OFF \
-DSUNDIALS_ENABLE_HYPRE:BOOL=OFF \
-DSUNDIALS_EXAMPLES_INSTALL_PATH:PATH=%{_libexecdir}/%{name}-%{version}/examples \
-DSUNDIALS_ENABLE_MONITORING:BOOL=ON \
-DSUNDIALS_ENABLE_PYTHON:BOOL=OFF
-
-%define _vpath_builddir sundials-%{version}/build
+
+%define _vpath_srcdir %{name}-%{version}
+%define _vpath_builddir %{name}-%{version}/build
%cmake_build
%if %{with python}
-pushd sundials-%{version}-python
+pushd %{name}-%{version}-python
%pyproject_wheel
popd
%endif
#############################################################################
#######
+%if 0%{?with_64bit_integer}
+
+%if 0%{?with_superlumt64_serial}
+export LIBSUPERLUMTLINK=-lsuperlu_mt64
+%endif
+export LIBBLASLINK=-l%{blaslib}%{blasvar}64
+export INCBLAS=%{_includedir}/%{blaslib}64
+export CFLAGS="%{build_cflags}"
+export FFLAGS="%{build_fflags} -fPIC"
+export LDFLAGS="%{__global_ldflags}"
+
+%define _vpath_srcdir %{name}64-%{version}
+mkdir -p %{name}64-%{version}/build
+%define _vpath_builddir %{name}64-%{version}/build
+%cmake \
+ -DCMAKE_C_FLAGS_RELEASE:STRING="%{optflags} -I$INCBLAS" \
+ -DCMAKE_Fortran_FLAGS_RELEASE:STRING="%{optflags} -I$INCBLAS" \
+%if 0%{?with_klu64_serial}
+ -DSUNDIALS_ENABLE_KLU:BOOL=ON \
+ -DKLU_LIBRARY:FILEPATH=%{_libdir}/libklu64.so \
+ -DKLU_INCLUDE_DIR:PATH=%{_includedir}/SuiteSparse64 \
+ -DAMD_LIBRARY=%{_libdir}/libamd64.so -DAMD_LIBRARY_DIR:PATH=%{_libdir} \
+ -DBTF_LIBRARY=%{_libdir}/libbtf64.so -DBTF_LIBRARY_DIR:PATH=%{_libdir} \
+ -DSUITESPARSECONFIG_LIBRARY:FILEPATH=%{_libdir}/libsuitesparseconfig64.so \
+ -DCOLAMD_LIBRARY=%{_libdir}/libcolamd64.so -DCOLAMD_LIBRARY_DIR:PATH=%{_libdir} \
+%endif
+%if 0%{?with_superlumt64_serial}
+ -DSUNDIALS_ENABLE_SUPERLUMT:BOOL=ON \
+ -DSUPERLUMT_INCLUDE_DIR:PATH=%{_includedir}/SuperLUMT64 \
+ -DSUPERLUMT_LIBRARY_DIR:PATH=%{_libdir} \
+ -DSUPERLUMT_LIBRARY:FILEPATH=%{_libdir}/libsuperlu_mt64.so \
+ -DSUPERLUMT_THREAD_TYPE:STRING=OpenMP \
+%endif
+ -DSUNDIALS_ENABLE_PETSC:BOOL=OFF \
+ -DBLAS_LIBRARIES:FILEPATH=%{_libdir}/lib%{blaslib}%{blasvar}64.so \
+ -DSUNDIALS_ENABLE_PROFILING:BOOL=OFF \
+ -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON \
+ -DCMAKE_BUILD_TYPE:STRING=Release \
+ -DCMAKE_SHARED_LINKER_FLAGS_RELEASE:STRING="%{__global_ldflags} $LIBBLASLINK $LIBSUPERLUMTLINK" \
+ -DCMAKE_INSTALL_INCLUDEDIR:PATH=%{_includedir}/sundials64 \
+ -DSUNDIALS_ENABLE_LAPACK:BOOL=OFF \
+ -DCMAKE_MODULE_LINKER_FLAGS:STRING="%{__global_ldflags}" \
+ -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} -DCMAKE_INSTALL_LIBDIR:PATH=%{_lib}/sundials64 \
+ -DPYTHON_EXECUTABLE:FILEPATH=%{__python3} \
+ -DCMAKE_SKIP_RPATH:BOOL=YES -DCMAKE_SKIP_INSTALL_RPATH:BOOL=YES \
+ -DBUILD_SHARED_LIBS:BOOL=ON -DBUILD_STATIC_LIBS:BOOL=ON \
+ -DSUNDIALS_ENABLE_MPI:BOOL=OFF \
+%if 0%{?with_fortran}
+ -DF77_INTERFACE_ENABLE:BOOL=ON \
+ -DSUNDIALS_ENABLE_FORTRAN:BOOL=ON \
+ -DFortran_INSTALL_MODDIR:PATH=%{_fmoddir}/%{name}64 \
+%endif
+%if 0%{?with_sercheck}
+ -DSUNDIALS_ENABLE_F90_EXAMPLES:BOOL=ON \
+ -DSUNDIALS_ENABLE_F77_EXAMPLES:BOOL=ON \
+ -DSUNDIALS_ENABLE_CXX_EXAMPLES:BOOL=ON \
+ -DSUNDIALS_ENABLE_C_EXAMPLES:BOOL=ON \
+%endif
+ -DUSE_GENERIC_MATH:BOOL=ON \
+ -DSUNDIALS_ENABLE_OPENMP:BOOL=ON \
+%if %{with pthread}
+ -DSUNDIALS_ENABLE_PTHREAD:BOOL=ON \
+%endif
+ -DSUNDIALS_PRECISION:STRING=double \
+ -DSUNDIALS_ENABLE_SUPERLUDIST:BOOL=OFF \
+ -DSUNDIALS_ENABLE_HYPRE:BOOL=OFF \
+ -DSUNDIALS_EXAMPLES_INSTALL_PATH:PATH=%{_libexecdir}/%{name}64-%{version}/examples \
+ -DSUNDIALS_ENABLE_MONITORING:BOOL=ON \
+ -DSUNDIALS_ENABLE_PYTHON:BOOL=OFF
+
+%define _vpath_srcdir %{name}64-%{version}
+%define _vpath_builddir %{name}64-%{version}/build
+%cmake_build
+%endif
+#############################################################################
+#######
%if 0%{?with_openmpi}
-mkdir -p buildopenmpi_dir/build
%{_openmpi_load}
## Blas
@@ -447,14 +522,12 @@ export INCBLAS=%{_includedir}/%{blaslib}
##
## SuperLUMT
-%if 0%{?with_superlumt}
-%if 0%{?with_klu64}
+%if 0%{?with_superlumt64}
export LIBSUPERLUMTLINK=-lsuperlu_mt64
%endif
-%if 0%{?with_klu}
+%if 0%{?with_superlumt}
export LIBSUPERLUMTLINK=-lsuperlu_mt
%endif
-%endif
## Hypre
%if 0%{?with_hypre}
@@ -472,36 +545,25 @@ export FC=$MPI_BIN/mpif77
%endif
##
-%if %{with debug}
-%undefine _hardened_build
-export CFLAGS=" -fPIC"
-export FFLAGS=" -fPIC"
-export FCFLAGS=" -fPIC"
-%{_bindir}/cmake -B buildopenmpi_dir/build -S buildopenmpi_dir \
- -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON \
- -DCMAKE_BUILD_TYPE:STRING=Debug \
- -DCMAKE_C_FLAGS_DEBUG:STRING="-O0 -g %{__global_ldflags} -I$INCBLAS" \
- -DCMAKE_Fortran_FLAGS_DEBUG:STRING="-O0 -g %{__global_ldflags} -I$INCBLAS" \
- -DCMAKE_CXX_FLAGS_DEBUG:STRING="-O0 -g %{__global_ldflags} -I$INCBLAS" \
- -DCMAKE_SHARED_LINKER_FLAGS_DEBUG:STRING="%{__global_ldflags} $LIBBLASLINK $LIBSUPERLUMTLINK $LIBHYPRELINK" \
-%else
export CFLAGS="%{build_cflags}"
export FFLAGS="%{build_fflags} -fPIC"
-%cmake -B buildopenmpi_dir/build -S buildopenmpi_dir \
+%define _vpath_srcdir buildopenmpi_dir
+mkdir -p buildopenmpi_dir/build
+%define _vpath_builddir buildopenmpi_dir/build
+%cmake \
-DCMAKE_C_FLAGS_RELEASE:STRING="%{optflags} -I$INCBLAS" \
-DCMAKE_Fortran_FLAGS_RELEASE:STRING="%{optflags} -I$INCBLAS" \
-%endif
%if 0%{?with_klu64}
-DSUNDIALS_INDEX_SIZE:STRING=64 \
-DSUNDIALS_ENABLE_KLU=ON -DKLU_LIBRARY_DIR:PATH=%{_libdir} -DKLU_LIBRARY=%{_libdir}/libklu64.so \
-DAMD_LIBRARY=%{_libdir}/libamd64.so -DAMD_LIBRARY_DIR:PATH=%{_libdir} \
-DBTF_LIBRARY=%{_libdir}/libbtf64.so -DBTF_LIBRARY_DIR:PATH=%{_libdir} \
-DCOLAMD_LIBRARY=%{_libdir}/libcolamd64.so -DCOLAMD_LIBRARY_DIR:PATH=%{_libdir} \
- -DKLU_INCLUDE_DIR:PATH=%{_includedir}/suitesparse \
-%if 0%{?with_petsc}
+ -DKLU_INCLUDE_DIR:PATH=%{_includedir}/SuiteSparse64 \
+%if 0%{?with_petsc64}
-DSUNDIALS_ENABLE_PETSC:BOOL=ON \
- -DPETSC_INCLUDES:PATH=%{_includedir}/petsc64 \
- -DPETSC_LIBRARIES:PATH=%{_libdir}/libpetsc64.so \
+ -DPETSC_INCLUDES:STRING=-I%{_includedir}/petsc64 \
+ -DPETSC_LIBRARIES:STRING="-L%{_libdir} -lpetsc64" \
%endif
%if 0%{?with_superlumt}
-DSUNDIALS_ENABLE_SUPERLUMT:BOOL=ON \
@@ -520,8 +582,8 @@ export FFLAGS="%{build_fflags} -fPIC"
-DKLU_INCLUDE_DIR:PATH=%{_includedir}/suitesparse \
%if 0%{?with_petsc}
-DSUNDIALS_ENABLE_PETSC:BOOL=ON \
- -DPETSC_INCLUDES:PATH=$MPI_INCLUDE/petsc \
- -DPETSC_LIBRARIES:FILEPATH=$MPI_LIB/libpetsc.so \
+ -DPETSC_INCLUDES:STRING=-I$MPI_INCLUDE/petsc \
+ -DPETSC_LIBRARIES:STRING="-L$MPI_LIB -lpetsc" \
%endif
%if 0%{?with_superlumt}
-DSUNDIALS_ENABLE_SUPERLUMT:BOOL=ON \
@@ -580,6 +642,7 @@ export FFLAGS="%{build_fflags} -fPIC"
-DSUNDIALS_EXAMPLES_INSTALL_PATH:PATH=%{_libexecdir}/%{name}-%{version}/examples \
-DSUNDIALS_ENABLE_MONITORING:BOOL=ON
+%define _vpath_srcdir buildopenmpi_dir
%define _vpath_builddir buildopenmpi_dir/build
%cmake_build
%{_openmpi_unload}
@@ -589,7 +652,6 @@ export FFLAGS="%{build_fflags} -fPIC"
%if 0%{?with_mpich}
-mkdir -p buildmpich_dir/build
%{_mpich_load}
## Blas
@@ -598,14 +660,12 @@ export INCBLAS=%{_includedir}/%{blaslib}
##
## SuperLUMT
-%if 0%{?with_superlumt}
-%if 0%{?with_klu64}
+%if 0%{?with_superlumt64}
export LIBSUPERLUMTLINK=-lsuperlu_mt64
%endif
-%if 0%{?with_klu}
+%if 0%{?with_superlumt}
export LIBSUPERLUMTLINK=-lsuperlu_mt
%endif
-%endif
## Hypre
%if 0%{?with_hypre}
@@ -623,25 +683,14 @@ export FC=$MPI_BIN/mpif77
%endif
##
-%if %{with debug}
-%undefine _hardened_build
-export CFLAGS=" -fPIC"
-export FFLAGS=" -fPIC"
-export FCFLAGS=" -fPIC"
-%{_bindir}/cmake -B buildmpich_dir/build -S buildmpich_dir \
- -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON \
- -DCMAKE_BUILD_TYPE:STRING=Debug \
- -DCMAKE_C_FLAGS_DEBUG:STRING="-O0 -g %{__global_ldflags} -I$INCBLAS" \
- -DCMAKE_Fortran_FLAGS_DEBUG:STRING="-O0 -g %{__global_ldflags} -I$INCBLAS" \
- -DCMAKE_CXX_FLAGS_DEBUG:STRING="-O0 -g %{__global_ldflags} -I$INCBLAS" \
- -DCMAKE_SHARED_LINKER_FLAGS_DEBUG:STRING="%{__global_ldflags} $LIBBLASLINK $LIBSUPERLUMTLINK $LIBHYPRELINK" \
-%else
export CFLAGS="%{build_cflags}"
export FFLAGS="%{build_fflags} -fPIC"
-%cmake -B buildmpich_dir/build -S buildmpich_dir \
+%define _vpath_srcdir buildmpich_dir
+mkdir -p buildmpich_dir/build
+%define _vpath_builddir buildmpich_dir/build
+%cmake \
-DCMAKE_C_FLAGS_RELEASE:STRING="%{optflags} -I$INCBLAS" \
-DCMAKE_Fortran_FLAGS_RELEASE:STRING="%{optflags} -I$INCBLAS" \
-%endif
%if 0%{?with_klu64}
-DSUNDIALS_INDEX_SIZE:STRING=64 \
-DSUNDIALS_ENABLE_KLU=ON -DKLU_LIBRARY_DIR:PATH=%{_libdir} -DKLU_LIBRARY=%{_libdir}/libklu64.so \
@@ -656,10 +705,10 @@ export FFLAGS="%{build_fflags} -fPIC"
-DSUPERLUMT_LIBRARY:FILEPATH=%{_libdir}/libsuperlu_mt64.so \
-DSUPERLUMT_THREAD_TYPE:STRING=OpenMP \
%endif
-%if 0%{?with_petsc}
+%if 0%{?with_petsc64}
-DSUNDIALS_ENABLE_PETSC:BOOL=ON \
- -DPETSC_INCLUDES:PATH=%{_includedir}/petsc64 \
- -DPETSC_LIBRARIES:PATH=%{_libdir}/libpetsc64.so \
+ -DPETSC_INCLUDES:STRING=-I%{_includedir}/petsc64 \
+ -DPETSC_LIBRARIES:STRING="-L%{_libdir} -lpetsc64" \
%endif
%endif
%if 0%{?with_klu}
@@ -678,8 +727,8 @@ export FFLAGS="%{build_fflags} -fPIC"
%endif
%if 0%{?with_petsc}
-DSUNDIALS_ENABLE_PETSC:BOOL=ON \
- -DPETSC_INCLUDES:PATH=$MPI_INCLUDE/petsc \
- -DPETSC_LIBRARIES:FILEPATH=$MPI_LIB/libpetsc.so \
+ -DPETSC_INCLUDES:STRING=-I$MPI_INCLUDE/petsc \
+ -DPETSC_LIBRARIES:STRING="-L$MPI_LIB -lpetsc" \
%endif
%endif
-DSUNDIALS_ENABLE_PROFILING:BOOL=OFF \
@@ -725,6 +774,7 @@ export FFLAGS="%{build_fflags} -fPIC"
-DSUNDIALS_EXAMPLES_INSTALL_PATH:PATH=%{_libexecdir}/%{name}-%{version}/examples \
-DSUNDIALS_ENABLE_MONITORING:BOOL=ON
+%define _vpath_srcdir buildmpich_dir
%define _vpath_builddir buildmpich_dir/build
%cmake_build
%{_mpich_unload}
@@ -735,29 +785,49 @@ export FFLAGS="%{build_fflags} -fPIC"
%install
%if 0%{?with_openmpi}
%{_openmpi_load}
+%define _vpath_srcdir buildopenmpi_dir
%define _vpath_builddir buildopenmpi_dir/build
%cmake_install
-rm -f %{buildroot}$MPI_INCLUDE/sundials/LICENSE
-rm -f %{buildroot}$MPI_INCLUDE/sundials/NOTICE
+rm -f %{buildroot}$MPI_INCLUDE/%{name}/LICENSE
+rm -f %{buildroot}$MPI_INCLUDE/%{name}/NOTICE
%{_openmpi_unload}
%endif
%if 0%{?with_mpich}
%{_mpich_load}
+%define _vpath_srcdir buildmpich_dir
%define _vpath_builddir buildmpich_dir/build
%cmake_install
-rm -f %{buildroot}$MPI_INCLUDE/sundials/LICENSE
-rm -f %{buildroot}$MPI_INCLUDE/sundials/NOTICE
+rm -f %{buildroot}$MPI_INCLUDE/%{name}/LICENSE
+rm -f %{buildroot}$MPI_INCLUDE/%{name}/NOTICE
%{_mpich_unload}
%endif
-%define _vpath_builddir sundials-%{version}/build
+#############################################################################
+#######
+%if 0%{?with_64bit_integer}
+%define _vpath_srcdir %{name}64-%{version}
+%define _vpath_builddir %{name}64-%{version}/build
+%cmake_install
+
+# Avoid using rpath
+# https://docs.fedoraproject.org/en-US/packaging-guidelines/#alternatives-to-rpath
+mkdir -p %{buildroot}%{_sysconfdir}/ld.so.conf.d
+cat > %{buildroot}%{_sysconfdir}/ld.so.conf.d/sundials64.conf <<EOL
+%{_libdir}/sundials64
+EOL
+
+%endif
+#############################################################################
+
+%define _vpath_srcdir %{name}-%{version}
+%define _vpath_builddir %{name}-%{version}/build
%cmake_install
# Remove files in bad position
rm -f %{buildroot}%{_prefix}/LICENSE
-rm -f %{buildroot}%{_includedir}/sundials/LICENSE
-rm -f %{buildroot}%{_includedir}/sundials/NOTICE
+rm -f %{buildroot}%{_includedir}/%{name}/LICENSE
+rm -f %{buildroot}%{_includedir}/%{name}/NOTICE
%if %{with python}
pushd %{name}-%{version}-python
@@ -774,6 +844,7 @@ rm -rf %{buildroot}%{python3_sitearch}/include
%if 0%{?with_openmpi}
%if 0%{?with_openmpicheck}
%{_openmpi_load}
+%define _vpath_builddir buildopenmpi_dir
%define _vpath_builddir buildopenmpi_dir/build
export LD_LIBRARY_PATH=%{buildroot}$MPI_LIB
%if %{with debug}
@@ -781,15 +852,16 @@ export LD_LIBRARY_PATH=%{buildroot}$MPI_LIB
%else
%ctest
%endif
+%endif
%{_openmpi_unload}
%endif
## if with_openmpicheck
-%endif
## if with_openmpi
%if 0%{?with_mpich}
%if 0%{?with_mpichcheck}
%{_mpich_load}
+%define _vpath_builddir buildmpich_dir
%define _vpath_builddir buildmpich_dir/build
export LD_LIBRARY_PATH=%{buildroot}$MPI_LIB
%if %{with debug}
@@ -797,20 +869,36 @@ export LD_LIBRARY_PATH=%{buildroot}$MPI_LIB
%else
%ctest
%endif
+%endif
%{_mpich_unload}
%endif
## if with_mpichcheck
-%endif
## if with_mpich
%if 0%{?with_sercheck}
-%define _vpath_builddir sundials-%{version}/build
+%define _vpath_srcdir %{name}-%{version}
+%define _vpath_builddir %{name}-%{version}/build
export LD_LIBRARY_PATH=%{buildroot}%{_libdir}
%if %{with debug}
%ctest -VV --debug
%else
%ctest
%endif
+%endif
+
+#############################################################################
+#######
+%if 0%{?with_64bit_integer}
+%define _vpath_srcdir %{name}64-%{version}
+%define _vpath_builddir %{name}64-%{version}/build
+export LD_LIBRARY_PATH=%{buildroot}%{_libdir}/sundials64
+%if %{with debug}
+%ctest -VV --debug
+%else
+%ctest
+%endif
+%endif
+#############################################################################
%if %{with python}
pushd %{name}-%{version}-python
@@ -819,22 +907,19 @@ pushd %{name}-%{version}-python
popd
%endif
-%endif
-## if with_sercheck
-
%files
-%license sundials-%{version}/LICENSE
-%doc sundials-%{version}/CHANGELOG.md
-%doc sundials-%{version}/CITATIONS.md
-%doc sundials-%{version}/NOTICE
-%doc sundials-%{version}/README.md
-%doc sundials-%{version}/CONTRIBUTING.md
-%doc sundials-%{version}/src/README-arkode.md
-%doc sundials-%{version}/src/README-cvode.md
-%doc sundials-%{version}/src/README-cvodes.md
-%doc sundials-%{version}/src/README-ida.md
-%doc sundials-%{version}/src/README.idas.md
-%doc sundials-%{version}/src/README-kinsol.md
+%license %{name}-%{version}/LICENSE
+%doc %{name}-%{version}/CHANGELOG.md
+%doc %{name}-%{version}/CITATIONS.md
+%doc %{name}-%{version}/NOTICE
+%doc %{name}-%{version}/README.md
+%doc %{name}-%{version}/CONTRIBUTING.md
+%doc %{name}-%{version}/src/README-arkode.md
+%doc %{name}-%{version}/src/README-cvode.md
+%doc %{name}-%{version}/src/README-cvodes.md
+%doc %{name}-%{version}/src/README-ida.md
+%doc %{name}-%{version}/src/README.idas.md
+%doc %{name}-%{version}/src/README-kinsol.md
%{_libdir}/libsundials_core.so.%{sundialslib_SOVERSION}*
%{_libdir}/libsundials_arkode*.so.%{arkodelib_SOVERSION}*
%{_libdir}/libsundials_cvode*.so.%{cvodelib_SOVERSION}*
@@ -943,28 +1028,109 @@ popd
%if %{with python}
%files -n python3-sundials4py -f %{pyproject_files}
-%license sundials-%{version}/LICENSE
-%doc sundials-%{version}/CHANGELOG.md
-%doc sundials-%{version}/CITATIONS.md
-%doc sundials-%{version}/NOTICE
-%doc sundials-%{version}/README.md
-%doc sundials-%{version}/CONTRIBUTING.md
+%license %{name}-%{version}/LICENSE
+%doc %{name}-%{version}/CHANGELOG.md
+%doc %{name}-%{version}/CITATIONS.md
+%doc %{name}-%{version}/NOTICE
+%doc %{name}-%{version}/README.md
+%doc %{name}-%{version}/CONTRIBUTING.md
%endif
+#############################################################################
+#######
+%if 0%{?with_64bit_integer}
+%files -n sundials64
+%license %{name}64-%{version}/LICENSE
+%doc %{name}-%{version}/CHANGELOG.md
+%doc %{name}-%{version}/CITATIONS.md
+%doc %{name}-%{version}/NOTICE
+%doc %{name}-%{version}/README.md
+%doc %{name}-%{version}/CONTRIBUTING.md
+%doc %{name}-%{version}/src/README-arkode.md
+%doc %{name}-%{version}/src/README-cvode.md
+%doc %{name}-%{version}/src/README-cvodes.md
+%doc %{name}-%{version}/src/README-ida.md
+%doc %{name}-%{version}/src/README.idas.md
+%doc %{name}-%{version}/src/README-kinsol.md
+%{_sysconfdir}/ld.so.conf.d/%{name}64.conf
+%{_libdir}/%{name}64/libsundials_core.so.%{sundialslib_SOVERSION}*
+%{_libdir}/%{name}64/libsundials_arkode*.so.%{arkodelib_SOVERSION}*
+%{_libdir}/%{name}64/libsundials_cvode*.so.%{cvodelib_SOVERSION}*
+%{_libdir}/%{name}64/libsundials_ida.so.%{idalib_SOVERSION}*
+%{_libdir}/%{name}64/libsundials_idas.so.%{idaslib_SOVERSION}*
+%{_libdir}/%{name}64/libsundials_kinsol.so.%{kinsollib_SOVERSION}*
+%{_libdir}/%{name}64/libsundials_nvecopenmp.so.%{nveclib_SOVERSION}*
+%{_libdir}/%{name}64/libsundials_nvecmanyvector.so.%{nveclib_SOVERSION}*
+%if %{with pthread}
+%{_libdir}/%{name}64/libsundials_nvecpthreads.so.%{nveclib_SOVERSION}*
+%endif
+%{_libdir}/%{name}64/libsundials_nvecserial.so.%{nveclib_SOVERSION}*
+%{_libdir}/%{name}64/libsundials_sunlinsol*.so.%{sunlinsollib_SOVERSION}*
+%{_libdir}/%{name}64/libsundials_sunmatrix*.so.%{sunmatrixlib_SOVERSION}*
+%{_libdir}/%{name}64/libsundials_sunnonlinsol*.so.%{sunnonlinsollib_SOVERSION}*
+%{_libdir}/%{name}64/libsundials_sundomeigestpower.so.%{sundomeigestpower_SOVERSION}*
+%if 0%{?with_fortran}
+%{_libdir}/%{name}64/libsundials_f*[_mod].so.*
+%endif
+
+%files -n sundials64-devel
+%{_libdir}/%{name}64/*.a
+%{_libdir}/%{name}64/libsundials_core.so
+%{_libdir}/%{name}64/libsundials_ida*.so
+%{_libdir}/%{name}64/libsundials_cvode*.so
+%{_libdir}/%{name}64/libsundials_arkode*.so
+%{_libdir}/%{name}64/libsundials_kinsol.so
+%{_libdir}/%{name}64/libsundials_nvecserial.so
+%{_libdir}/%{name}64/libsundials_nvecopenmp.so
+%{_libdir}/%{name}64/libsundials_nvecmanyvector.so
+%{_libdir}/%{name}64/libsundials_sundomeigestpower.so
+%{_libdir}/%{name}64/cmake/sundials/
+%if %{with pthread}
+%{_libdir}/%{name}64/libsundials_nvecpthreads.so
+%endif
+%{_libdir}/%{name}64/libsundials_sunmatrix*.so
+%{_libdir}/%{name}64/libsundials_sunlinsol*.so
+%{_libdir}/%{name}64/libsundials_sunnonlinsol*.so
+%if 0%{?with_fortran}
+%{_libdir}/%{name}64/libsundials_f*[_mod].so
+%{_fmoddir}/%{name}64/
+%if %{with pthread}
+%{_libdir}/%{name}64/libsundials_fnvecpthreads.so
+%endif
+%endif
+%{_includedir}/%{name}64/nvector/
+%{_includedir}/%{name}64/sunmatrix/
+%{_includedir}/%{name}64/sunadjointcheckpointscheme/
+%{_includedir}/%{name}64/sunnonlinsol/
+%{_includedir}/%{name}64/sunlinsol/
+%{_includedir}/%{name}64/sunadaptcontroller/
+%{_includedir}/%{name}64/sunmemory/
+%{_includedir}/%{name}64/arkode/
+%{_includedir}/%{name}64/cvode/
+%{_includedir}/%{name}64/cvodes/
+%{_includedir}/%{name}64/ida/
+%{_includedir}/%{name}64/idas/
+%{_includedir}/%{name}64/kinsol/
+%{_includedir}/%{name}64/sundomeigest
+%{_includedir}/%{name}64/sundials/
+%{_libexecdir}/%{name}64-%{version}/
+%endif
+#############################################################################
+
%if 0%{?with_openmpi}
%files openmpi
-%license sundials-%{version}/LICENSE
-%doc sundials-%{version}/CHANGELOG.md
-%doc sundials-%{version}/CITATIONS.md
-%doc sundials-%{version}/NOTICE
-%doc sundials-%{version}/README.md
-%doc sundials-%{version}/CONTRIBUTING.md
-%doc sundials-%{version}/src/README-arkode.md
-%doc sundials-%{version}/src/README-cvode.md
-%doc sundials-%{version}/src/README-cvodes.md
-%doc sundials-%{version}/src/README-ida.md
-%doc sundials-%{version}/src/README.idas.md
-%doc sundials-%{version}/src/README-kinsol.md
+%license %{name}-%{version}/LICENSE
+%doc %{name}-%{version}/CHANGELOG.md
+%doc %{name}-%{version}/CITATIONS.md
+%doc %{name}-%{version}/NOTICE
+%doc %{name}-%{version}/README.md
+%doc %{name}-%{version}/CONTRIBUTING.md
+%doc %{name}-%{version}/src/README-arkode.md
+%doc %{name}-%{version}/src/README-cvode.md
+%doc %{name}-%{version}/src/README-cvodes.md
+%doc %{name}-%{version}/src/README-ida.md
+%doc %{name}-%{version}/src/README.idas.md
+%doc %{name}-%{version}/src/README-kinsol.md
%{_libdir}/openmpi/lib/libsundials_nvecparallel.so.*
%{_libdir}/openmpi/lib/libsundials_nvecparhyp.so.*
%if 0%{?with_petsc}
@@ -1043,18 +1209,18 @@ popd
%if 0%{?with_mpich}
%files mpich
-%license sundials-%{version}/LICENSE
-%doc sundials-%{version}/CHANGELOG.md
-%doc sundials-%{version}/CITATIONS.md
-%doc sundials-%{version}/NOTICE
-%doc sundials-%{version}/README.md
-%doc sundials-%{version}/CONTRIBUTING.md
-%doc sundials-%{version}/src/README-arkode.md
-%doc sundials-%{version}/src/README-cvode.md
-%doc sundials-%{version}/src/README-cvodes.md
-%doc sundials-%{version}/src/README-ida.md
-%doc sundials-%{version}/src/README.idas.md
-%doc sundials-%{version}/src/README-kinsol.md
+%license %{name}-%{version}/LICENSE
+%doc %{name}-%{version}/CHANGELOG.md
+%doc %{name}-%{version}/CITATIONS.md
+%doc %{name}-%{version}/NOTICE
+%doc %{name}-%{version}/README.md
+%doc %{name}-%{version}/CONTRIBUTING.md
+%doc %{name}-%{version}/src/README-arkode.md
+%doc %{name}-%{version}/src/README-cvode.md
+%doc %{name}-%{version}/src/README-cvodes.md
+%doc %{name}-%{version}/src/README-ida.md
+%doc %{name}-%{version}/src/README.idas.md
+%doc %{name}-%{version}/src/README-kinsol.md
%{_libdir}/mpich/lib/libsundials_nvecparallel.so.*
%{_libdir}/mpich/lib/libsundials_nvecparhyp.so.*
%if 0%{?with_petsc}
@@ -1133,13 +1299,13 @@ popd
%endif
%files doc
-%license sundials-%{version}/LICENSE
-%doc sundials-%{version}/CHANGELOG.md
-%doc sundials-%{version}/CITATIONS.md
-%doc sundials-%{version}/NOTICE
-%doc sundials-%{version}/README.md
-%doc sundials-%{version}/CONTRIBUTING.md
-%doc sundials-%{version}/doc/
+%license %{name}-%{version}/LICENSE
+%doc %{name}-%{version}/CHANGELOG.md
+%doc %{name}-%{version}/CITATIONS.md
+%doc %{name}-%{version}/NOTICE
+%doc %{name}-%{version}/README.md
+%doc %{name}-%{version}/CONTRIBUTING.md
+%doc %{name}-%{version}/doc/
%changelog
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-09-19 15:04 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-19 15:04 [rpms/sundials] main: Release 7.9.0 | Add sundials 64bit integer sub-packages Antonio Trande
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox