Re: package for Fedora and EPEL from one spec source?

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

 



Gerd v. Egidy wrote:
> I've seen code like "%if 0%{?rhel}" somewhere on the net, but that didn't
> work for me. I guess the %rhel-macro should be defined in
> /etc/rpm/macros.dist where I usually find stuff like %fedora but that
> doesn't exist on my Centos 5.

%{rhel} is defined in the EPEL build system. If you want to use it in local 
builds, you have to use the EPEL mock configs (which also define this) or 
define it yourself (but normally you're supposed to use mock for builds, not 
rpmbuild directly).

Alternatively, you can use if !0%{?fedora} instead. Fedora always defines 
%{fedora}.

        Kevin Kofler

-- 
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/devel


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux