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


-- Sandro

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

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
  cp X Y C

Or do  I need to check for the dracut version somehow? If so, how can
this be accomplished at package build time?

cloud mailing list