%global commit0 c5efbe05aed81b201454c0ae1190ba91ea1970ac %global shortcommit0 %(c=%{commit0}; echo ${c:0:8}) %global projectname theme-bobthefish Name: bobthefish Version: 20260301.git.%{shortcommit0} Release: %autorelease Summary: powerline like theme for fish BuildArch: noarch License: MIT Source0: https://github.com/oh-my-fish/%{projectname}/archive/%{commit0}.tar.gz Requires: fish >= 2.3.0 Requires: powerline-fonts %description bobthefish is a Powerline-style, Git-aware fish theme optimized for awesome. %prep %setup -q -n %{projectname}-%{commit0} %build rm -rf hooks %check %install mkdir -p %{buildroot}%{_datadir}/fish/vendor_functions.d cp functions/*.fish %{buildroot}%{_datadir}/fish/vendor_functions.d/ mkdir -p %{buildroot}%{_datadir}/doc/%{name} cp README.md %{buildroot}%{_datadir}/doc/%{name}/ mkdir -p %{buildroot}%{_datadir}/licenses/%{name} cp LICENSE %{buildroot}%{_datadir}/licenses/%{name}/ %files %license LICENSE %doc README.md %{_datadir}/fish/vendor_functions.d/*.fish %changelog %autochangelog