Skip to content

rongfengliang/pg-extension-rpm-package

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

demo pg extension with rpm pacakge

how to running

  • 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