Anyone know where I can find a list of all the valid aliases that are available within a src spec file in reference to the %files section. For example: %{_bindir} = /usr/bin %{_libdir} = /usr/lib %{_mandir} = /usr/share/man etc.. I've looked through the Maximum-rpm pdf and don't see any reference to it/them so I'm wondering if there's a list somewhere on the system or the net. I could grep my entire system if it needs to come down to that, but I'm hopeing I won't have to do that. -- S.Toms - smotrs@mindspring.com - www.mindspring.com/~smotrs SuSE Linux v7.2+ - Kernel 2.4.4 Give me the Luxuries, and the Hell with the Necessities!
On Sun, Nov 25, 2001 at 11:47:29AM -0800, S.Toms wrote:
Anyone know where I can find a list of all the valid aliases that are available within a src spec file in reference to the %files section. For example:
%{_bindir} = /usr/bin %{_libdir} = /usr/lib %{_mandir} = /usr/share/man etc..
They are contained in /usr/lib/rpm/macros -Kastus
On Sun, 25 Nov 2001, Konstantin (Kastus) Shchuka wrote: ks> On Sun, Nov 25, 2001 at 11:47:29AM -0800, S.Toms wrote: ks> > Anyone know where I can find a list of all the valid aliases that are ks> > available within a src spec file in reference to the %files section. ks> > For example: ks> > ks> > %{_bindir} = /usr/bin ks> > %{_libdir} = /usr/lib ks> > %{_mandir} = /usr/share/man ks> > etc.. ks> ks> They are contained in /usr/lib/rpm/macros ks> Great, thanks for pointing that out to me. :) ks> -Kastus ks> ks> -- S.Toms - smotrs@mindspring.com - www.mindspring.com/~smotrs SuSE Linux v7.2+ - Kernel 2.4.4 Go 'way! You're bothering me!
On 25 Nov 2001, S.Toms wrote:
Anyone know where I can find a list of all the valid aliases that are available within a src spec file in reference to the %files section. For example:
%{_bindir} = /usr/bin %{_libdir} = /usr/lib %{_mandir} = /usr/share/man etc..
I've looked through the Maximum-rpm pdf and don't see any reference to it/them so I'm wondering if there's a list somewhere on the system or the net. I could grep my entire system if it needs to come down to that, but I'm hopeing I won't have to do that.
Yeah, just like Konstantin Shchuka said, check out /usr/lib/rpm/macros . Also check out /usr/lib/rpmrc , I believe. You can evalue macros straight from the command line as well: e.g. rpm --eval %{_prefix} e.g. rpm --eval %{optflags} It's very handy for testing, which I do often. -- Karol Pietrzak PGP KeyID: 3A1446A0
participants (3)
-
Karol Pietrzak
-
Konstantin (Kastus) Shchuka
-
S.Toms