[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: Different name/release/version for SRPM and binary RPM?
- From: Valery Reznic <valery_reznic yahoo com>
- To: rpm-list redhat com
- Subject: Re: Different name/release/version for SRPM and binary RPM?
- Date: Thu, 24 Apr 2003 05:19:43 -0700 (PDT)
--- Toralf Lund <toralf@procaptura.com> wrote:
> >
> > --- Toralf Lund <toralf@procaptura.com> wrote:
> > > Is there any way I can set up the .spec file so
> that
> > > when building source
> > > rpm, tags like name, release and version, will
> get
> > > different values from
> > > the ones used when building a binary package?
> > >
> > > I want this for some RPMs whose name and release
> no
> > > include certain
> > > details on the build system, typically kernel
> type
> > > and release, so that I
> > > can easily distinguish packages build on
> different
> > > setups from each other.
> > > The SRPMs, however, will be the same for all
> build
> > > configurations, so I
> > > always want to produce the same output for
> those.
> > > --
> > > Toralf Lund <toralf@procaptura.com> +47 66 85 51
> 22
> > > ProCaptura AS +47 66 85 51
> 00
> > > (switchboard)
> > > http://www.procaptura.com/~toralf +47 66 85 51
> 01
> > > (fax)
> > >
> > >
> >
> > You can use _rpmfilename in order to define binary
> rpm
> > name looks like you want.
> > Default _rpmfilename (from /usr/lib/rpm/macros)
> >
>
%%{ARCH}/%%{NAME}-%%{VERSION}-%%{RELEASE}.%%{ARCH}.rpm
> Not what I want. The *binary* file name is OK, if I
> want to use a
> non-default name for anything, it would be the
> *source* rpm, but there is
> no special macro for that, as far as I can tell. I
> can't just keep
> "normal" name/version/release info and re-define
> _rpmfilename, as I want
> to include build setup info in the pkg's internal
> fields and the RPM
> database after installation, not just the output
> file name.
>
> >
> > Valery
> > >
> > > _______________________________________________
> > > Rpm-list mailing list
> > > Rpm-list@redhat.com
> > >
> https://listman.redhat.com/mailman/listinfo/rpm-list
> >
> >
> > __________________________________________________
> > Do you Yahoo!?
> > The New Yahoo! Search - Faster. Easier. Bingo
> > http://search.yahoo.com
> >
> >
> >
> > _______________________________________________
> > Rpm-list mailing list
> > Rpm-list@redhat.com
> >
> https://listman.redhat.com/mailman/listinfo/rpm-list
> >
>
>
I don't know how change srpm name too (I think it's
hardcoded), but You wrote:
> > > The SRPMs, however, will be the same for all
> build
> > > configurations, so I
> > > always want to produce the same output for
> those.
>From this I undestand, that SRPM name will be same, so
why not let srpm name be a standard one and change
binaries ?
Valery
>
> _______________________________________________
> Rpm-list mailing list
> Rpm-list@redhat.com
> https://listman.redhat.com/mailman/listinfo/rpm-list
__________________________________________________
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo
http://search.yahoo.com
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
[]