- install rpm tools
for centos os
yum install -y rpm-build rpmdevtools
- init setuptree
with rpmdev-setuptree
rpmdev-setuptree
- copy specs file for package
copy nvl-pg-extension.spec to ~/rpmbuild/SPECS
- download source code
spectool -g -R ~/rpmbuild/SPECS/nvl-pg-extension.spec
- build rpm pacakge
rpmbuild -bb ~/rpmbuild/SPECS/nvl-pg-extension.spec