Name: foo Version: 0.0.git.5.a9450536 Release: 1%{?dist} Summary: foo License: MIT URL: https://github.com/nikromen/%{name} VCS: git+https://github.com/nikromen/foo.git#a9450536ff254368bb19f7a051fa2a1617aea63c: Source0: foo-a9450536.tar.gz BuildArch: noarch BuildRequires: bar Requires: bash %description %{summary} %prep %setup -T -b 0 -q -n foo %build %install rm -rf %{buidroot} mkdir -p %{buildroot}%{_bindir} install -p -m 0775 %{name}.sh %{buildroot}%{_bindir} %files %{_bindir}/%{name}.sh %changelog