Name: hello Version: 1.0 Release: 1%{?dist} Summary: Hello program License: GNU URL: http://example.com Source0: hello-1.0.tar.gz %description %prep %setup -q %build make %install rm -rf $RPM_BUILD_ROOT mkdir -p %{buildroot}/usr/local/bin install -m 755 hello %{buildroot}/usr/local/bin %files /usr/local/bin/hello %license LICENSE %changelog * Mon Sep 2 2018 - Initial build