Handling differences between EPEL and Fedora

Sandro "red" Mathys red at fedoraproject.org
Fri Feb 22 09:11:45 UTC 2013


To make life easier, the buildsystems provide some convenient helper
variables for exactly that use case.

See https://fedoraproject.org/wiki/Packaging:DistTag#Conditionals

-- Sandro



On Fri, Feb 22, 2013 at 9:51 AM, Juerg Haefliger <juergh at gmail.com> wrote:

> All,
>
> I'm in the process of building the dracut package that goes along with
> cloud-utils. I need to install different files for Fedora vs. EPEL
> (due to the different versions of dracut). How is this best handled?
> Can I just key off of a macro in the spec file?
>
> %if fedora  <-- What goes here?
>   cp A B C
> %else
>   cp X Y C
> %endif
>
> Or do  I need to check for the dracut version somehow? If so, how can
> this be accomplished at package build time?
>
> Thanks
> ...Juerg
> _______________________________________________
> cloud mailing list
> cloud at lists.fedoraproject.org
> https://admin.fedoraproject.org/mailman/listinfo/cloud
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.fedoraproject.org/pipermail/cloud/attachments/20130222/a6b78834/attachment.html>


More information about the cloud mailing list