Re: rpms again
Jeff Johnson <[email protected]>
| Newsgroups | gmane.network.up2date.current.devel |
|---|---|
| Message-ID | <[email protected]> |
On Sat, Aug 10, 2002 at 04:00:31PM -0400, Hunter Matthews wrote:
> On Fri, 2002-08-09 at 09:29, Arthur Clune wrote:
> >
> >
> > Minor bug in /usr/share/docs/current-1.0.5/client (from RPM)
> >
> > In up2date.spec.sample
> >
> > ==== Original ===========================
> > [ajc22@biber client]$ more up2date.spec.sample
> >
> > # releases before 7.1 didnt use grub, so dont need grubby from mkinitrd
> > 3.2.2
> > %define has_grub 0
> > %define has_poptmodule 0
> >
> > Summary: Automatically update RPMs for a Red Hat Linux System
> > Name: up2date
> > Version: %(echo `awk '{ print $1 }' %{SOURCE1}`)
> > Release: %(echo `awk '{ print $2 }' %{SOURCE1}`)_current
> > License: GPL
> >
> > ============= end ======================
> >
> > Problem - SOURCE1 is referenced before it defined. The headers need
> > re-ordering
> > to either move the SourceN: definitions before this section, or to move
> > this section
> > later.
>
> I believe it to be a feature of RPM that this kind of ordering is
> unnecesary - that spec file built here.
Nope, you're gonna need to move your Source1: directive earlier in
the specfile. Yes, macros are evaluated when used, but, in this and most cases,
the expansion is immediate, as the value is needed.
73 de Jeff
--
Jeff Johnson ARS N3NPQ
[email protected] ([email protected])
Chapel Hill, NC