[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: OT: Re: New package: libnjb



On Mon, 2005-08-01 at 20:42 +0200, Linus Walleij wrote:
> On Mon, 1 Aug 2005, Tom 'spot' Callaway wrote:
> 
> > Using unnecessary variable defines annoys the crap out of me.
> > IMHO, there is no reason to do any of the following:
> >
> > %define name    libnjb
> > %define        version 2.2.1
> > %define        release 1%{?dist}
> >
> > Name:          %{name}
> > Version:       %{version}
> > Release:       %{release}
> >
> > It's ugly, pointless, and clutters up the spec file.
> 
> The guidelines also tells that subpackages (like -devel) should have 
> (actually they demand epoch too):
> 
> Requires:       %{name} = %{version}-%{release}
> 
> Will using "Name:" implicitly define the macro %{name} then, so that it 
> can be used in "Requires:"?
> 
> Sorry if I (and many others) get things wrong, it is not always easy to 
> know what RPM does implicitly... %{name}-%{version}-%{release} is also 
> used in "BuildRoot:" in the guidelines.

Yes, %{name}, %{version}, and %{release} are implicitly defined from the
Name:, Version:, and Release: tags. Epoch too if you use it.

Paul.
-- 
Paul Howarth <paul city-fan org>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]