%global commit 8733a7cb702c502e1f7a90159005046ec25e83b0 %global snapdate 20241128 Name: asmfetch Version: 0^%{snapdate}g%(c=%{commit}; echo ${c:0:7}) Release: %autorelease Summary: A fetch tool written in x86-64 assembly for Linux License: LGPL-3.0-or-later URL: https://github.com/ErrorNoInternet/asmfetch Source: %{url}/archive/%{commit}/%{name}-%{commit}.tar.gz BuildRequires: gcc %description A fetch tool written in x86-64 assembly for Linux. Runs in under 150 microseconds and has zero dependencies. %prep %autosetup -n %{name}-%{commit} -p1 %build gcc -nostdlib %{optflags} asmfetch.S -o asmfetch %install mkdir -p %{buildroot}%{_bindir} mv asmfetch %{buildroot}%{_bindir} %files %license LICENSE %doc README.md %{_bindir}/asmfetch %changelog %autochangelog