Hi,
I'm trying to enable SSL in postgres at compile time using an RPM or SRPM (not source - tar.gz).
How can I do this?
This is what I have tried...I downloaded the SRPM, extracted it to the SOURCE folder and then edit the .spec file in the SPEC folder and used rpmbuild to build the RPM but while building, it gives me an error saying "Bad exit status from /vat/tmp/rpm-tmp.85685 (%install)"
This is the rpmbuild command:
Code:
rpmbuild --rebuild --define 'tcl 0' \
--define 'test 0' --define 'runselftest 0' --define 'kerberos 0' \
--define 'plpython 0' --define 'pltcl 0' --define 'plperl 0' \
--define 'ssl 1' --define 'nls 0' --define 'pam 0' \
--define 'xml 0' --define 'pgfts 0' postgresql-8.1.10-2PGDG.f7.src.rpm
So I opened up the spec file in the SPEC folder and looked at the %install macro and it had a variable named %buildroot which is not defined above.
I believe the command was something like:
Code:
%install
rm -rf %{buildroot}
So I'm not sure how to proceed. I'm not too familiar with working with RPM's (I use deb based distros at home), this was the first time I tried to build an RPM and it error'd and I'm not sure how to proceed so any guidance would be greatly appreciated.
Thanks.
:EDIT:
If it helps, I just wanted to mention that I couldn't find an .rpmmacros file on my system.