make tag and %{?dist}
Michael Schwendt
bugs.michael at gmx.net
Wed May 4 16:55:19 UTC 2005
On Wed, 04 May 2005 09:08:41 -0500, Tom 'spot' Callaway wrote:
> On Wed, 2005-05-04 at 09:58 -0400, Ignacio Vazquez-Abrams wrote:
> > On Wed, 2005-05-04 at 08:43 -0500, Tom 'spot' Callaway wrote:
> > > In the spec, as the first two lines, you should put:
> > >
> > > %define dist .fc3
> > > %define fedora 3
> >
> > What about:
> >
> > %{!?dist: %define dist .fc3 }
> > %{!?fedora: %define fedora 3 }
>
> Nothing's defining %dist or %fedora in the buildsystem, so this is
> unnecessary.
What's the purpose of those macros then? Obviously, you cannot build the
same src.rpm for multiple distribution versions without editing it. If,
however, you used Ignacio's version, you could
rpmbuild --define "fedora 4" --define "dist .fc4"
and build the same src.rpm for FC4. Exactly *that* was one of the
benefits of dist tags defined outside of the package and applied at
build-time.
If we need to edit the spec, we can as well do that in CVS prior to
commit.
More information about the fedora-extras-list
mailing list