Support debug and debug-devel sub packages
authorPrakash Surya <surya1@llnl.gov>
Fri, 11 May 2012 19:12:08 +0000 (12:12 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Mon, 2 Jul 2012 18:32:19 +0000 (11:32 -0700)
commit1a3a73d5d3910bc5b1231c1c3c6b813cec5089a6
treedcdbc7971452178b0733754f303a303784315d5c
parentb6ad9671acdd245385744bcc1fe6c0f21f252570
Support debug and debug-devel sub packages

This commit adds support for building debug and debug-devel sub packages
of the zfs-modules main package. This is to allow building packages
which are built against a debug kernel. By default, only packages are
built against a regular non-debug kernel. This can be toggled by passing
the '--with kernel-debug' parameter to rpmbuild.

Examples:

    # To build packages against only the non-debug kernel
    $ rpmbuild --rebuild --with kernel --without kernel-debug $SRPM

    # To build packages against only the debug kernel
    $ rpmbuild --rebuild --without kernel --with kernel-debug $SRPM

    # To build packages against debug and non-debug kernel
    $ rpmbuild --rebuild --with kernel --with kernel-debug $SRPM

Note: Only the RHEL 5/6, CHAOS 5, and Fedora distributions are supported
      for building the debug and debug-devel packages.

Signed-off-by: Prakash Surya <surya1@llnl.gov>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
zfs-modules.spec.in