Re: is this valid?

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

 



On Tue, Feb 17, 2004 at 05:12:26PM -0500, Gene C. wrote:
> In the spec file for a package, should I be able to specify somthing like:
> 
> Requires: samba-common = %{epoch}:%{version}
> 
> and have it work properly?
> 
> Right now the =%{version} is converted properly but %{epoch} is still %{epoch}
> 
> Is it a) you can't do that or b) rpm is broken?

Is epoch set? Better use something like %{?epoch:%{epoch}:}%{version}
that always works. For readablity you could define a macro for this
and reuse it throughout the specfile. I find the followinf definitions
handy:

%eversion       %{?epoch:%{epoch}:}%{version}
%evr            %{?epoch:%{epoch}:}%{version}-%{release}

-- 
Axel.Thimm@xxxxxxxxxxxxxxxxxxx

Attachment: pgp00031.pgp
Description: PGP signature


[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