Thanks Michael. I was following old docs.
I ended up using this format for my goal:
rpmbuild -ba --define "_topdir /usr/src/redhat/RPMS/5.5.0.0" <templatefileName>
We build various versions of the product on the same system and sometimes the rpms collide. So the above format works for us now ;-)
----- Original Message ----
From: Michael Jennings <mej@xxxxxxxxx>
To: rpm-list@xxxxxxxxxx
Sent: Friday, October 5, 2007 4:40:08 PM
Subject: Re: rpmbuild --rcfile does not recognize entries in rpmrc file
From: Michael Jennings <mej@xxxxxxxxx>
To: rpm-list@xxxxxxxxxx
Sent: Friday, October 5, 2007 4:40:08 PM
Subject: Re: rpmbuild --rcfile does not recognize entries in rpmrc file
On Friday, 05 October 2007, at 10:27:22 (-0700),
Isabelle Poueriet wrote:
> Hello, can anyone help here? Thanks in advance.
>
> slughorn#rpm --rcfile ./rpmrc --showrc returns:
>
> error: bad option 'vendor' at linux/pkg/rpmrc:1
> error: bad option 'sourcedir' at linux/pkg/rpmrc:2
> error: bad option 'rpmdir' at linux/pkg/rpmrc:3
>
> slughorn#cat ./rpmrc
> vendor:XYZ
> sourcedir:/usr/src/packages/SOURCES
> rpmdir:/usr/src/packages/RPMS/5.5.0.0
>
> I can recreate this problem in any of the following environments:
>
> rpm versions:
> 3.0.6-127
> 4.1.1-177
> 4.3.3-22
>
> Linux vendors:
> RHEL4, SLES7,SLES9,
Those aren't rpmrc entries. You're confusing rpmrc with macros.
Michael
--
Michael Jennings (a.k.a. KainX) http://www.kainx.org/ <mej@xxxxxxxxx>
Linux Server/Cluster Admin, LBL.gov Author, Eterm (www.eterm.org)
-----------------------------------------------------------------------
"I feel wonderful because I see the love light in your eyes, and the
wonder of it all is that you just don't realize how much I love
you." -- Eric Clapton, "Wonderful Tonight"
_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/rpm-list
Isabelle Poueriet wrote:
> Hello, can anyone help here? Thanks in advance.
>
> slughorn#rpm --rcfile ./rpmrc --showrc returns:
>
> error: bad option 'vendor' at linux/pkg/rpmrc:1
> error: bad option 'sourcedir' at linux/pkg/rpmrc:2
> error: bad option 'rpmdir' at linux/pkg/rpmrc:3
>
> slughorn#cat ./rpmrc
> vendor:XYZ
> sourcedir:/usr/src/packages/SOURCES
> rpmdir:/usr/src/packages/RPMS/5.5.0.0
>
> I can recreate this problem in any of the following environments:
>
> rpm versions:
> 3.0.6-127
> 4.1.1-177
> 4.3.3-22
>
> Linux vendors:
> RHEL4, SLES7,SLES9,
Those aren't rpmrc entries. You're confusing rpmrc with macros.
Michael
--
Michael Jennings (a.k.a. KainX) http://www.kainx.org/ <mej@xxxxxxxxx>
Linux Server/Cluster Admin, LBL.gov Author, Eterm (www.eterm.org)
-----------------------------------------------------------------------
"I feel wonderful because I see the love light in your eyes, and the
wonder of it all is that you just don't realize how much I love
you." -- Eric Clapton, "Wonderful Tonight"
_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/rpm-list
Check out the hottest 2008 models today at Yahoo! Autos.
_______________________________________________ Rpm-list mailing list Rpm-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/rpm-list