%global common_description %{expand: SymEngine is a standalone fast C++ symbolic manipulation library. Optional thin wrappers allow usage of the library from other languages.} Name: symengine Version: 0.13.0 Release: %autorelease Summary: Fast symbolic manipulation library License: MIT URL: https://symengine.org/ Source0: https://github.com/%{name}/%{name}/archive/v%{version}/%{name}-%{version}.tar.gz BuildRequires: cmake BuildRequires: gcc-c++ BuildRequires: gmp-devel BuildRequires: flint-devel BuildRequires: llvm-devel BuildRequires: zlib-devel %description %{common_description} %package devel Summary: Development files for %{name} Requires: cmake-filesystem %description devel %{common_description} The %{name}-devel package contains libraries and header files for developing applications that use SymEngine. %prep %autosetup sed -i -e 's|DEF_INSTALL_CMAKE_DIR lib/cmake|DEF_INSTALL_CMAKE_DIR %{_lib}/cmake|g' CMakeLists.txt %build # https://github.com/symengine/symengine?tab=readme-ov-file#recommended-options-to-build %cmake \ -DINTEGER_CLASS=flint \ -DWITH_GMP=on \ -DWITH_LLVM=on \ -DWITH_LLVM=on \ -DWITH_MPFR=on \ -DWITH_SYMENGINE_THREAD_SAFE=on %cmake_build %install %cmake_install %check %ctest %files %license LICENSE %doc AUTHORS README.md %{_libdir}/libsymengine.so.0.13 %{_libdir}/libsymengine.so.%{version} %files devel %{_includedir}/%{name}/ %{_libdir}/cmake/%{name}/SymEngineConfig.cmake %{_libdir}/cmake/%{name}/SymEngineConfigVersion.cmake %{_libdir}/cmake/%{name}/SymEngineTargets-release.cmake %{_libdir}/cmake/%{name}/SymEngineTargets.cmake %{_libdir}/lib%{name}.so %changelog %autochangelog