%global commit0 b48ea154fd74410022d8189003cd69fad8f3d02c %global shortcommit0 %(c=%{commit0}; echo ${c:0:7}) %global date0 20190429 %global debug_package %{nil} Name: arm-mem Version: 0.%{date0}git%{shortcommit0} Release: 2%{?dist} Summary: ARM-accelerated versions of selected functions from string.h License: MIT URL: https://github.com/bavison/arm-mem Source0: %{url}/archive/%{commit0}/%{name}-%{shortcommit0}.tar.gz BuildRequires: gcc ExclusiveArch: %{arm} %description ARM-accelerated versions of selected functions from string.h %prep %autosetup -p1 -n %{name}-%{commit0} %build %set_build_flags %make_build %install mkdir -p %{buildroot}%{_libdir}/%{name} install -pm 0755 libarmmem-v7l.so %{buildroot}%{_libdir}/%{name} %check test || : %files #no license %doc README.md %dir %{_libdir}/%{name} %{_libdir}/%{name}/*.so %changelog * Wed Jan 20 2021 Nicolas Chauvet - 0.20190429gitb48ea15-2 - Initial spec file