%global forgeurl0 https://github.com/KarypisLab/GKlib %global version0 5.1.1 %global date 20250705 %global commit 6e7951358fd896e2abed7887196b6871aac9f2f8 %forgemeta Name: GKlib Version: %forgeversion -p Release: %autorelease Summary: A library of various helper routines and frameworks # Pending license discussion # https://bugzilla.redhat.com/show_bug.cgi?id=2439304#c1 # https://github.com/KarypisLab/GKlib/issues/56 # LICENSE.txt: Apache-2.0 # LGPL-2.0-only: include/gk_mksort.h, src/getopt.c, include/gkregex.h, src/gkregex.c License: Apache-2.0 AND LGPL-2.0-only URL: %forgeurl0 Source0: %forgesource0 Patch0: GKlib-fix_cmake_installation.patch Patch1: GKlib-fix_pcre_links.patch Patch2: GKlib-use_standard_OpenMP_macros.patch Patch3: GKlib-Use_C_standard_thread_local.patch Patch4: GKlib-Bump_cmake_minimum_required.patch Patch5: GKlib-Add_C_standard_specification.patch Patch6: GKlib-Remove_outdated_files_and_references.patch Patch7: GKlib-Update_CMakeLists_to_include_compiler_options.patch BuildRequires: cmake BuildRequires: gcc BuildRequires: gcc-c++ BuildRequires: pcre-devel %description A library of various helper routines and frameworks used by many of the lab's software. %package devel Summary: GKlib headers and development-related files Requires: %{name}%{?_isa} = %{version}-%{release} %description devel Header and development library files of GKlib. %prep %forgeautosetup -p1 %conf %cmake \ %ifnarch %{ix86} x86_64 -DNO_X86:BOOL=ON \ %endif -DCMAKE_BUILD_TYPE:STRING=Release \ -DOPENMP:BOOL=ON \ -DPCRE:BOOL=ON \ -DSHARED:BOOL=ON %build %cmake_build %install %cmake_install # Remove win32 files rm -rf %{buildroot}%{_includedir}/win32 %files %license LICENSE.txt %{_bindir}/csrcnv %{_libdir}/lib%{name}.so.0 %{_libdir}/lib%{name}.so.0.0.1 %files devel %{_libdir}/lib%{name}.so %{_includedir}/gk*.h %{_includedir}/GKlib.h %{_libdir}/cmake/GKlib/ %changelog %autochangelog