%global commit 7af4a28763058ebc518d65ed983e0fca5007ef4c %global shortcommit %(c=%{commit}; echo ${c:0:8}) %global commitdate 20240820 Name: adelie Version: 0.0^%{commitdate}git%{shortcommit} Release: %{autorelease} Summary: Slideshow program License: ISC URL: https://git.sr.ht/~rabbits/adelie Source: %{url}/archive/%{shortcommit}.tar.gz#/adelie-%{shortcommit}.tar.gz BuildRequires: uxn11 BuildArch: noarch %description Adelie is a slideshow program, written in Uxntal. %prep %autosetup -n adelie-%{shortcommit} %build uxnasm src/adelie.tal adelie.rom %install mkdir -p %{buildroot}/%{_datadir}/uxn-roms install -m644 adelie.rom %{buildroot}/%{_datadir}/uxn-roms/adelie.rom %check # Nothing to do %files %license LICENSE %doc README.md %dir %{_datadir}/uxn-roms %{_datadir}/uxn-roms/adelie.rom %doc slides %changelog %autochangelog