<div dir="ltr"><div style>To make life easier, the buildsystems provide some convenient helper variables for exactly that use case.</div><div style><br></div>See <a href="https://fedoraproject.org/wiki/Packaging:DistTag#Conditionals">https://fedoraproject.org/wiki/Packaging:DistTag#Conditionals</a><br>
<div><br></div><div style>-- Sandro</div><div style><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Feb 22, 2013 at 9:51 AM, Juerg Haefliger <span dir="ltr">&lt;<a href="mailto:juergh@gmail.com" target="_blank">juergh@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">All,<br>
<br>
I&#39;m in the process of building the dracut package that goes along with<br>
cloud-utils. I need to install different files for Fedora vs. EPEL<br>
(due to the different versions of dracut). How is this best handled?<br>
Can I just key off of a macro in the spec file?<br>
<br>
%if fedora  &lt;-- What goes here?<br>
  cp A B C<br>
%else<br>
  cp X Y C<br>
%endif<br>
<br>
Or do  I need to check for the dracut version somehow? If so, how can<br>
this be accomplished at package build time?<br>
<br>
Thanks<br>
...Juerg<br>
_______________________________________________<br>
cloud mailing list<br>
<a href="mailto:cloud@lists.fedoraproject.org">cloud@lists.fedoraproject.org</a><br>
<a href="https://admin.fedoraproject.org/mailman/listinfo/cloud" target="_blank">https://admin.fedoraproject.org/mailman/listinfo/cloud</a><br>
</blockquote></div><br></div>