%global pkgvers 0 %global scdate0 20261003 %global schash0 cd6bad3cad2e07a3e277c23d2b1f065320024717 %global branch0 master %global source0 https://github.com/herumi/xbyak.git %global sshort0 %{expand:%%{lua:print(('%{schash0}'):sub(1,8))}} Name: xbyak Version: 7.34.1 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 %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 %cmake -Wno-dev \ -DCMAKE_SKIP_RPATH=ON \ -DENABLE_PLUGIN_RPATH=OFF \ -DCMAKE_VERBOSE_MAKEFILE=OFF \ -DCMAKE_BUILD_TYPE=RelWithDebInfo %cmake_build %install %cmake_install mkdir -p %{buildroot}%{_libdir} mv -f %{buildroot}/usr/lib64/* %{buildroot}%{_libdir}/ || true %files devel %license COPYRIGHT %doc sample %{_includedir}/* %{_libdir}/cmake/* %changelog * Sat May 30 2020 Cristian Balint - github update releases