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