How do I pass a configure option thru an SRPM? I want to do something
analogous to:
$ ./configure --enable-foo
with the source rpm while doing a rebuild. Also, how do I examine the
contents of an SRPM?
TIA
--
Tahir Hashmi
tahir AT ncst DOT ernet DOT in
--
Registered Linux User # 125653 (http://counter.li.org)
Certified: 55% bastard, 31% of which is tard.
http://www.thespark.com/bastardtest
Please remove '.invalid' to reply.
OK, here's what I did:
$ rpm -i foo.src.rpm
edited the following in /usr/src/redhat/SPECS/foo.spec :
%build
./configure --prefix=%{prefix} --enable-xft <-- I added --enable-xft
myself
make
and then did this:
$ rpmbuild --rebuild foo.src.rpm
# rpm -i foo.rpm
The configure option didn't seem to have any effect. Am I making some
mistake in rebuilding and installation or somewhere else?
I think, if you now go and look at the .spec file, your changes are lost
(it seems to me that using that format of rpmbuild, rpmbuild will start
by extracting the source rpm - including the spec file).
First, check that your changes in the spec file are still there - and
repeat them, if they're not. Then try with
rpmbuild --rebuild /usr/src/redhat/SPECS/foo.spec
--
Wolf a.k.a. Juha Laiho Espoo, Finland
(GC 3.0) GIT d- s+: a C++ ULSH++++$ P++@ L+++ E- W+$@ N++ !K w !O !M V
PS(+) PE Y+ PGP(+) t- 5 !X R !tv b+ !DI D G e+ h---- r+++ y++++
"...cancel my subscription to the resurrection!" (Jim Morrison)
Hold it right there! You just blew away your editing!
You need to use "rpmbuild -bp /usr/src/redhat/SPECS/foo.spec" to take
advantage of your editing.