Summary: hello2 -- double hello, world rpm Name: hello2 Version: 1.0 Release: 2 Group: Utilities License: GPL Distribution: RPM ^W Elfutils test suite. Vendor: Red Hat Software Packager: Red Hat Software URL: http://www.redhat.com BuildRequires: gcc make Source0: hello-1.0.tar.gz %description Simple rpm demonstration with an eye to consumption by debuginfod. %package two Summary: hello2two License: GPL %description two Dittoish. %prep %setup -q -n hello-1.0 %build gcc -g -O1 hello.c -o hello gcc -g -O2 -D_FORTIFY_SOURCE=2 hello.c -o hello2 %install rm -rf $RPM_BUILD_ROOT mkdir -p $RPM_BUILD_ROOT/usr/local/bin cp hello $RPM_BUILD_ROOT/usr/local/bin/ cp hello2 $RPM_BUILD_ROOT/usr/local/bin/ %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root) %attr(0751,root,root) /usr/local/bin/hello %files two %defattr(-,root,root) %attr(0751,root,root) /usr/local/bin/hello2 %changelog * Thu Nov 14 2019 Frank Ch. Eigler - Added source code right here to make spec file self-contained. - Dropped misc files not relevant to debuginfod testing. * Wed May 18 2016 Mark Wielaard - Add hello2 for dwz testing support. * Tue Oct 20 1998 Jeff Johnson - create.