Cleanly remove zfs-modules-devel headers
authorBrian Behlendorf <behlendorf1@llnl.gov>
Mon, 13 Aug 2012 22:47:18 +0000 (15:47 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Mon, 13 Aug 2012 23:35:26 +0000 (16:35 -0700)
commit9ca431763e2db4c05858ed7dc578a8d6dbcc54d6
tree6510f759eba79241a80ba43f2c6e493f964d309b
parentbafc4e9e2ac3b4783a598afb1d2f048ab30c903c
Cleanly remove zfs-modules-devel headers

Add the /usr/src/zfs-<version>-<release>/<kernel> directory to
the zfs-modules-devel package.  This ensures that this directory
will be removed when the package is removed.

We do not include the higher level /usr/src/zfs-<version>-<release>
directory since there may be builds for multiple kernels.  Instead,
a %postun rmdir is added which attempts to remove this directory.
It will only succeed when the last zfs-modules-devel-* package
for this specific release is removed.

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