Name: b Version: 0 Release: 0 Summary: ... License: MIT BuildArch: noarch %description ... %prep %build %install mkdir -p %{buildroot}%{_bindir} echo '#!/usr/bin/bash' > %{buildroot}%{_bindir}/executable echo 'echo b' > %{buildroot}%{_bindir}/executable chmod +x %{buildroot}%{_bindir}/executable %files %{_bindir}/executable