Step 1 Install the required packages
#yum install -y rpm-build make tree
Step 2 Create the required directories
#mkdir -p /project/my-rpm/{BUILD,RPMS,SOURCES,SPECS,SRPMS,tmp}
# tree /project/my-rpm
Step 3 Create the SPEC file
# touch /project/my-rpm/SPECS/my-rpm.spec
# vi /project/my-rpm/SPECS/my-rpm.spec
Name: