%global pkgvers 0 %global scdate0 20260222 %global schash0 e2856c2f595b153ca1ce9258c5301dbabc4f39f5 %global branch0 master %global source0 https://github.com/KarypisLab/GKlib.git %global sshort0 %{expand:%%{lua:print(('%{schash0}'):sub(1,8))}} Name: gklib Version: 5.1.1 Release: %{scdate0}.%{pkgvers}.git%{sshort0}%{?dist} Summary: Various helper routines and frameworks License: Apache URL: https://github.com/KarypisLab/GKlib BuildRequires: gcc cmake git pcre2-devel %global __cmake_in_source_build 1 %description A library of various helper routines and frameworks used by many of the lab's software. %package devel Summary: Development files for %{name} Requires: %{name} = %{version}-%{release} %description devel This package contains development files for %{name}. %prep %setup -T -c -n %{name} git clone --depth 1 -n -b %{branch0} %{source0} . git fetch --depth 1 origin %{schash0} git reset --hard %{schash0} git log --format=fuller %build sed -i '/-march=native/d' cmake/GKlibSystem.cmake sed -i 's|-Werror||g' cmake/GKlibSystem.cmake %ifnarch x86_64 sed -i '/("test")/d' CMakeLists.txt %endif mkdir build pushd build %cmake .. -Wno-dev -G "Unix Makefiles" \ -DCMAKE_SKIP_RPATH=ON \ -DCMAKE_VERBOSE_MAKEFILE=OFF \ -DCMAKE_BUILD_TYPE=RelWithDebInfo \ %ifnarch x86_64 -DNO_X86=ON \ %endif -DSHARED=ON \ -DOPENMP=ON \ -DPCRE=ON make %{?_smp_mflags} popd %install pushd build make install DESTDIR=%{buildroot} popd # fix libdir path mkdir -p %{buildroot}%{_libdir} mv -f %{buildroot}/usr/lib/* %{buildroot}%{_libdir}/ || true %files %license LICENSE.txt %doc README.md %{_bindir}/* %{_libdir}/lib*.so.* %files devel %{_includedir}/* %{_datadir}/* %{_libdir}/cmake/* %{_libdir}/lib*.so %changelog * Fri Dec 03 2021 Balint Cristian - github update releases