# This is a sample spec file for helloWorld BuildRoot: %{_topdir}/BUILDROOT/ Summary: Prints "Hello world!" on stdout License: GNU Name: hello-world Version: 1 Release: 1 Group: Education BuildArchitectures: i586 %description Prints "Hello world!" on stdout, that's all ! %build cd %{_sourcedir}; gcc -Wall -o helloWorld helloWorld.c %install rm -fR $RPM_BUILD_ROOT; mkdir -p $RPM_BUILD_ROOT/usr/bin; cd %{_sourcedir} mv helloWorld $RPM_BUILD_ROOT/usr/bin/; %clean rm -rf $RPM_BUILD_ROOT/ %files %attr(755,root,root) /usr/bin/helloWorld