%global pkgvers 0 %global scdate0 20240315 %global schash0 80477f635345e8f13efc512d84b01b94cad92cd9 %global branch0 master %global source0 https://github.com/herumi/xbyak.git %global sshort0 %{expand:%%{lua:print(('%{schash0}'):sub(1,8))}} Name: xbyak Version: 7.06 Release: %{scdate0}.%{pkgvers}.git%{sshort0}%{?dist} Summary: JIT assembler for x86 and x64 by C++ License: BSD BuildArch: noarch URL: https://github.com/herumi/xbyak BuildRequires: cmake gcc-c++ git %global __cmake_in_source_build 1 %description JIT assembler for x86(IA32), x64(AMD64, x86-64) by C++ %package devel Summary: Library %description devel Contains header files for developing applications that use the %{name} library. %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 mkdir -p build pushd build %cmake .. -Wno-dev \ -DCMAKE_SKIP_RPATH=ON \ -DENABLE_PLUGIN_RPATH=OFF \ -DCMAKE_VERBOSE_MAKEFILE=OFF \ -DCMAKE_BUILD_TYPE=RelWithDebInfo make %{?_smp_mflags} popd %install rm -rf %{buildroot} pushd build make install DESTDIR=%{buildroot} popd %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files devel %license COPYRIGHT %doc sample %{_includedir}/* %{_libdir}/cmake/* %changelog * Sat May 30 2020 Cristian Balint - github update releases