--- kernel-2.6.spec.orig	2004-10-16 23:47:14.000000000 -0300
+++ kernel-2.6.spec	2004-10-17 15:39:40.458180222 -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.alps.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,9 @@
 
 Patch10000: linux-2.6.0-compile.patch
 
+Patch20001: linux-2.6.9-alps.patch
+Patch20002: linux-2.6.9-nops2usbemul.patch
+
 # END OF PATCH DEFINITIONS
 
 BuildRoot: %{_tmppath}/kernel-%{KVERREL}-root
@@ -635,6 +638,15 @@
 
 cp -fv %{all_arch_configs} .
 
+#
+# ALPS Touchpad support
+#
+%patch20001 -p1
+
+#
+# nops2usbemul option to force PS/2 USB emulation off
+#
+%patch20002 -p1
 
 # now run oldconfig over all the config files
 for i in *.config 
@@ -749,8 +761,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 +946,12 @@
 %endif
 
 %changelog
+* Tue Oct 17 2004 Alexandre Oliva <aoliva@redhat.com>
+- Add patch for nops2usbemul option.
+- 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.
