--- kernel-2.6.spec.orig	2004-10-16 23:47:14.000000000 -0300
+++ kernel-2.6.spec	2004-10-16 23:49:06.000000000 -0300
@@ -4,7 +4,7 @@
 # These are the kernels that are built IF the architecture allows it.
 
 %define buildup 1
-%define buildsmp 1
+%define buildsmp 0
 %define buildsource 0
 %define builddoc 0
 
@@ -20,7 +20,7 @@
 %define sublevel 8
 %define kversion 2.6.%{sublevel}
 %define rpmversion 2.6.%{sublevel}
-%define rhbsys  %([ -r /etc/beehive-root -o -n "%{?__beehive_build}" ] && echo || echo .`whoami`)
+%define rhbsys  %([ -r /etc/beehive-root -o -n "%{?__beehive_build}" ] && echo || echo .0.mousemod.1)
 %define release %(R="$Revision: 1.624 $"; RR="${R##: }"; echo ${RR%%?})%{rhbsys}
 %define signmodules 0
 %define make_target bzImage
@@ -51,7 +51,7 @@
 %ifarch x86_64
 %define all_arch_configs $RPM_SOURCE_DIR/kernel-%{kversion}-x86_64*.config
 %define image_install_path boot
-%define signmodules 1
+%define signmodules 0
 %endif
 
 %ifarch ppc64
@@ -297,6 +297,8 @@
 
 Patch10000: linux-2.6.0-compile.patch
 
+Patch20001: linux-2.6.9-alps.patch
+
 # END OF PATCH DEFINITIONS
 
 BuildRoot: %{_tmppath}/kernel-%{KVERREL}-root
@@ -635,6 +637,10 @@
 
 cp -fv %{all_arch_configs} .
 
+#
+# ALPS Touchpad support
+#
+%patch20001 -p1
 
 # now run oldconfig over all the config files
 for i in *.config 
@@ -749,8 +755,8 @@
     #
     # save the vmlinux file for kernel debugging into the kernel-debuginfo rpm
     #
-    mkdir -p $RPM_BUILD_ROOT/usr/lib/debug/lib/modules/$KernelVer
-    cp vmlinux $RPM_BUILD_ROOT/usr/lib/debug/lib/modules/$KernelVer
+    # mkdir -p $RPM_BUILD_ROOT/usr/lib/debug/lib/modules/$KernelVer
+    # cp vmlinux $RPM_BUILD_ROOT/usr/lib/debug/lib/modules/$KernelVer
 
     # gpg sign the modules
 %if %{signmodules}
@@ -934,6 +940,12 @@
 %endif
 
 %changelog
+* Tue Oct 16 2004 Alexandre Oliva <aoliva@redhat.com>
+- Build psmouse as a module.
+- Add patch for ALPS Touchpad support.
+- Disable smp.
+- Disable module signing.
+
 * Thu Oct 14 2004 Dave Jones <davej@redhat.com>
 - Rebase to 2.6.9-rc4-bk2
 - librtas needs to work around the /dev/mem restrictions.
--- ../SOURCES/kernel-2.6.8-x86_64.config.orig	2004-10-16 23:47:14.000000000 -0300
+++ ../SOURCES/kernel-2.6.8-x86_64.config	2004-10-16 23:48:20.000000000 -0300
@@ -1255,7 +1255,7 @@
 # CONFIG_KEYBOARD_NEWTON is not set
 # CONFIG_KEYBOARD_LKKBD is not set
 CONFIG_INPUT_MOUSE=y
-CONFIG_MOUSE_PS2=y
+CONFIG_MOUSE_PS2=m
 CONFIG_MOUSE_SERIAL=m
 CONFIG_MOUSE_INPORT=m
 CONFIG_MOUSE_ATIXL=y
