%global pkgvers 0 %global scdate0 20260926 %global schash0 e9c752029a0699029d9bb618562b01fb2147a508 %global branch0 main %global source0 https://github.com/libxsmm/libxsmm.git %global sshort0 %{expand:%%{lua:print(('%{schash0}'):sub(1,8))}} Name: libxsmm Version: %(curl -s https://raw.githubusercontent.com/libxsmm/libxsmm/%{schash0}/version.txt | cut -d'-' -f2 | sed 's|[^[:digit:].]||g') Release: %{scdate0}.%{pkgvers}.git%{sshort0}%{?dist} Summary: Library for specialized dense and sparse matrix operations, and deep learning primitives. License: BSD URL: https://github.com/hfp/libxsmm BuildRequires: cmake chrpath git gcc-gfortran gcc-c++ BuildRequires: python3-devel openblas-devel ExclusiveArch: x86_64 aarch64 riscv64 ppc64le %description LIBXSMM is high performance library for small dense and sparse linear algebra opertions incl. GEMM and elementwise primities often seen in deep learning applications. %package devel Summary: Development files for %{name} Requires: %{name} = %{version}-%{release} %description devel The %name-devel package contains libraries and header files for developing applications that use %{name}. %package doc Summary: Documentation for %{name} BuildArch: noarch %description doc Documentation 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 --no-pager log --format=fuller %conf %cmake \ -DCMAKE_INSTALL_Fortran_MODULES:PATH=%{_fmoddir}/%{name} \ -DLIBXSMM_FORTRAN:BOOL=ON \ -DBUILD_TESTING:BOOL=OFF \ -DLIBXSMM_CTEST_WITH_BLAS_REFERENCE:BOOL=OFF %build %cmake_build %install %cmake_install %files %license LICENSE.md %{_libdir}/libxsmm.so.* %{_libdir}/libxsmmf.so.* %files devel %{_libdir}/libxsmm.so %{_libdir}/libxsmmf.so %{_includedir}/%{name}/ %{_fmoddir}/%{name}/ %{_bindir}/libxsmm_gemm_generator %{_bindir}/libxsmm_binaryexport_generator %{_libdir}/cmake/%{name}/ %{_libdir}/pkgconfig/ %files doc %doc %{_docdir}/%{name}/ %changelog * Fri Dec 03 2021 Balint Cristian - github build releases