Thread: Rebuild RPM from Source

Rebuild RPM from Source

From
RahulGoutham G S
Date:
Hello Everyone ,

i am working on rebuilding the postgres RPM from source code (which has some custom changes) for Cent OS distribution .  I did find  pgdg-centos-96.spec in /pgrpms/rpm/redhat/9.6/pgdg-yum/CTOS-7 from  git://git.postgresql.org/git/pgrpms.git .

However i dont have any clue how to use these , can you help ? I am currently able to rebuild the source with my changes but could not figure out how to package this .

Thanks
Rahul

Re: Rebuild RPM from Source

From
Devrim Gündüz
Date:
Hi,

On Mon, 2018-01-08 at 16:00 -0800, RahulGoutham G S wrote:

> i am working on rebuilding the postgres RPM from source code (which has
> some custom changes) for Cent OS distribution .  I did
> find  pgdg-centos-96.spec in /pgrpms/rpm/redhat/9.6/pgdg-yum/CTOS-7
> from  git://git.postgresql.org/git/pgrpms.git .
>
> However i dont have any clue how to use these , can you help ? I am
> currently able to rebuild the source with my changes but could not figure
> out how to package this .

make rpm96

will build your package for PostgreSQL 9.6. If you want to sign them, run:

make build96 (assuming you have your gpg keys set up, etc)

Regards,
--
Devrim Gündüz
EnterpriseDB: https://www.enterprisedb.com
PostgreSQL Consultant, Red Hat Certified Engineer
Twitter: @DevrimGunduz , @DevrimGunduzTR
Attachment