DEVEL153X-rhel3-disable-fedorakmod-20080707

LICENSE IPL10
FIXES 102673

if we're building for 2.4.x we need to disable fedorakmod. do so here in our
packaging.


(cherry picked from commit 9946c027a3)
This commit is contained in:
Simon Wilkinson 2008-07-07 17:42:44 +00:00 committed by Derrick Brashear
parent 6a180af0ea
commit f776e8e16e

View File

@ -28,6 +28,15 @@
%define kernvers %(%{_sourcedir}/openafs-kernel-version.sh)
%endif
# If we're building for a 2.4 series kernel, then fedora style kmods aren't
# appropriate - disable them.
%define kern24 %([ `echo "%{kernvers}" | sed -e 's/^\([0-9]*\.[0-9]*\)\..*/\1/'` = "2.4" ] && echo 1 || echo 0)
%if %{kern24}
%define fedorakmod 0
%endif
%if %{fedorakmod}
%define kmodtool bash %{_sourcedir}/openafs-kmodtool