%global commit 854929e5413e8d2cf84e90c5cc3ccb0188ab5d22 %global shortcommit %(c=%{commit}; echo ${c:0:7}) %global date 20250807 Name: xdg-ninja Version: 0.2.0.2 Release: 1.%{date}git%{shortcommit}%{?dist} Summary: A shell script which checks your $HOME for unwanted files and directories License: MIT URL: https://github.com/b3nj5m1n/xdg-ninja Source0: https://github.com/b3nj5m1n/%{name}/archive/%{commit}.tar.gz#/%{name}-%{shortcommit}.tar.gz BuildArch: noarch Requires: bash Requires: jq Requires: findutils Recommends: glow %description xdg-ninja is a shell script that checks your $HOME directory for unwanted files and directories that don't follow the XDG Base Directory Specification. When xdg-ninja encounters a file or directory it knows about, it will tell you whether it's possible to move it to the appropriate location, and how to do it. %prep %autosetup -n %{name}-%{commit} %build %install install -Dm 0755 -T xdg-ninja.sh %{buildroot}%{_bindir}/xdg-ninja install -d %{buildroot}%{_datadir}/xdg-ninja/ cp -r programs %{buildroot}%{_datadir}/xdg-ninja/ install -Dm 0644 -t %{buildroot}%{_mandir}/man1/ man/xdg-ninja.1 %files %license LICENSE %doc README.md %{_bindir}/xdg-ninja %{_datadir}/xdg-ninja/ %{_mandir}/man1/xdg-ninja.1* %changelog * Sun Aug 10 2025 DaniCatGames - 0.2.0.2-1.20250807git854929e - Initial package for Fedora