Re: .spec file for multiple target distros

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

 



On Mon, Jul 31, 2006 at 07:46:22AM -0400, Jeff Johnson wrote:
> and some rather simple code in rpm to use RPMTAG_DISTTAG as a
> tie-breaker if it exists,

That would be perfect, e.g. having rpmvercmp extend to evrd comparison
where d is the optional RPMTAG_DISTTAG.

> would seem to achieve the intended
> result much more effectively than trying to convince everyone to  
> incorporate
>     Release: 1.2.3.4.5.foo.bar.%{dist}
> as their packaging style.

I agree. And even better: If RPMTAG_DISTTAG could be passed to the
rpmbuild process from the outside, then no changes in macros/specfiles
would be needed at all, e.g.

rpmbuild --define 'disttag superfoo5' ...

would set a default value for Disttag: which would be used as the tie
breaker.

A non-empty Disttag would have to possibly still enter the package
name (otherwise the same package file will exist in different releases
with different content), e.g. something like

 %{NAME}-%{VERSION}-%{RELEASE}%{?DISTTAG:.%{DISTTAG}}.%{ARCH}.rpm

-- 
Axel.Thimm at ATrpms.net

Attachment: pgpKkccwr5pUx.pgp
Description: PGP signature

_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/rpm-list

[Index of Archives]     [RPM Ecosystem]     [Linux Kernel]     [Red Hat Install]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Red Hat]     [Gimp]     [Yosemite News]     [IETF Discussion]

  Powered by Linux