aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--configure.in4
-rw-r--r--mpio.spec.in4
3 files changed, 11 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 5161784..a5117db 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2002-09-22 Andreas Buesching <crunchy@tzi.de>
+
+ * configure.in (SPEC_PATH): needed for the spec file to find the
+ kernel module
+
2002-09-22 Markus Germeier <mager@tzi.de>
* mpiosh/callback.c (mpiosh_cmd_mdel):
fixed logical error in abort handling which corrupted
diff --git a/configure.in b/configure.in
index 061f826..51d14e2 100644
--- a/configure.in
+++ b/configure.in
@@ -32,12 +32,16 @@ fi
MODULE_PATH="/lib/modules/${kernel_version}"
if test -d "${MODULE_PATH}/kernel/drivers/usb"; then
MODULE_PATH="${MODULE_PATH}/kernel/drivers/usb"
+ SPEC_PATH="kernel/drivers/usb"
else
MODULE_PATH="${MODULE_PATH}/misc"
+ SPEC_PATH="misc"
fi
+
AC_MSG_RESULT(Using module path ${MODULE_PATH}.)
AC_SUBST(MODULE_PATH)
+AC_SUBST(SPEC_PATH)
dnl Checks for header files.
diff --git a/mpio.spec.in b/mpio.spec.in
index 8f0dce1..b363e48 100644
--- a/mpio.spec.in
+++ b/mpio.spec.in
@@ -1,5 +1,5 @@
%define version @VERSION@
-%define release 1
+%define release 2
%define name mpio
Version: %version
@@ -44,7 +44,7 @@ mkmpiodev -r
%defattr(700,root,root)
%prefix/sbin/mkmpiodev
%defattr(644,root,root)
-@MODULE_PATH@/mpio.o
+/lib/modules/*/@SPEC_PATH@/mpio.o
%doc COPYING ChangeLog INSTALL NEWS
%doc README TODO