2 # SEE PLD-doc/maintainers file before you edit this file!!
4 # If you define the following as 1, only kernel, -headers and -source
5 # packages will be built
11 %bcond_without BOOT # don't build BOOT kernel
12 %bcond_without smp # don't build SMP kernel
13 %bcond_without up # don't build UP kernel
14 %bcond_without source # don't build kernel-source package
15 %bcond_without grsec # build without grsec
16 %bcond_with execshield # build without exec-shield
17 %bcond_with pramfs # build pramfs support (EXPERIMENTAL)
18 %bcond_with verbose # verbose build (V=1)
19 %bcond_with preemptive # build preemptive kernel
20 %bcond_with bootsplash # build with bootsplash
22 %{?debug:%define with_verbose 1}
25 # sparc32 is missing important updates from 2.5 cycle - won't build
29 %ifarch i586 i686 pentium3 pentium4 athlon
32 # temporary as BOOT is not finished yet
35 ## Program required by kernel to work.
36 %define _binutils_ver 2.12
37 %define _util_linux_ver 2.10o
38 %define _module_init_tool_ver 0.9.10
39 %define _e2fsprogs_ver 1.29
40 %define _jfsutils_ver 1.1.3
41 %define _reiserfsprogs_ver 3.6.3
42 %define _xfsprogs_ver 2.6.0
43 %define _pcmcia_cs_ver 3.1.21
44 %define _quota_tools_ver 3.09
45 %define _PPP_ver 2.4.0
46 %define _isdn4k_utils_ver 3.1pre1
47 %define _nfs_utils_ver 1.0.5
48 %define _procps_ver 3.2.0
49 %define _oprofile_ver 0.5.3
52 %define _cset 20040705_1909
55 %define _netfilter_snap 20040629
57 %define _enable_debug_packages 0
58 %define no_install_post_strip 1
59 %define no_install_post_compress_modules 1
60 %define no_install_post_chrpath 1
62 %define pcmcia_version 3.1.22
63 %define drm_xfree_version 4.3.0
65 Summary: The Linux kernel (the core of the Linux operating system)
66 Summary(de): Der Linux-Kernel (Kern des Linux-Betriebssystems)
67 Summary(fr): Le Kernel-Linux (La partie centrale du systeme)
68 Summary(pl): JĀ±dro Linuksa
77 Source0: ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-%{version}.tar.bz2
78 # Source0-md5: a74671ea68b0e3c609e8785ed8497c14
79 #Source0: ftp://ftp.kernel.org/pub/linux/kernel/v2.6/testing/linux-%{version}%{_rc}.tar.bz2
80 Source1: %{name}-autoconf.h
81 Source2: 2.6.6-pwcx.tar.bz2
82 Source3: http://ftp.kernel.org/pub/linux/kernel/v2.6/testing/cset/cset-%{_cset}.txt.gz
83 # Source3-md5: 6684b3e625fbc2d4d3ea6f1bc7df67a5
84 # http://lkml.org/lkml/2004/6/2/228
85 ## Source6: http://prdownloads.sourceforge.net/swsusp/software-suspend-2.0.0.81-for-2.6.6.tar.bz2
86 Source20: %{name}-i386.config
87 Source21: %{name}-i386-smp.config
88 Source30: %{name}-x86_64.config
89 Source31: %{name}-x86_64-smp.config
90 Source50: %{name}-sparc.config
91 Source51: %{name}-sparc-smp.config
92 Source60: %{name}-sparc64.config
93 Source61: %{name}-sparc64-smp.config
94 Source70: %{name}-alpha.config
95 Source71: %{name}-alpha-smp.config
96 Source73: %{name}-ppc.config
97 Source74: %{name}-ppc-smp.config
99 Source80: %{name}-netfilter.config
101 Source90: %{name}-grsec.config
103 Patch0: 2.6.0-ksyms-add.patch
104 Patch1: %{name}-isofs-128GB.patch
105 Patch2: linux-2.6-isofs-4G.patch
107 # from http://dl.sf.net/sourceforge/squashfs/
108 Patch4: squashfs2.0-patch
110 Patch6: 2.6.0-t4-PPC-ENODEV.patch
112 Patch8: 2.6.0-t6-usb-irq.patch
114 Patch10: 2.6.0-t7-memleak-lkml.patch
115 Patch11: 2.6.0-t7-memleak2-lkml.patch
117 Patch14: 2.6.0-t8-swap-include-lkml.patch
119 Patch16: 2.6.0-t8-VLSI-ix86-lkml.patch
121 Patch18: 2.6.0-t8-appletalk-SYSCTL-lkml.patch
123 Patch20: 2.6.0-t8-umsdos-lkml.patch
125 Patch22: 2.6.0-t9-acpi_osl-lkml.patch
127 Patch24: %{name}-nls_default.patch
129 # rewriten based on: ftp://ftp.suse.com/pub/people/stepan/bootsplash/kernel/bootsplash-3.1.4-2.6.3.diff
130 Patch26: bootsplash-3.1.4-2.6.7.patch
132 Patch28: 2.6.0-t11-AIC_and_db4-lkml.patch
134 Patch30: linux-tdfxfb-fillrect.patch
135 Patch31: linux-fbcon-margins.patch
136 Patch32: linux-tdfxfb-interlace+double.patch
137 Patch33: linux-2.6-rivafb16.patch
139 Patch34: 2.6.1-rc2-ini9100u-lkml.patch
141 Patch36: 2.6.1-rc2-VLAN-NS83820-lkml.patch
143 Patch38: linux-kbuild-extmod.patch
145 Patch40: 2.6.x-PD6729-lkml.patch
147 Patch42: 2.6.x-ppp_mppe.patch
149 Patch44: 2.6.2-Initio9100U-Kconfig.patch
152 Patch46: 2.6.7-pom-ng-%{_netfilter_snap}.patch
153 # http://www.barbara.eu.org/~quaker/ipt_account/
154 Patch47: 2.6.6-ipt_account.patch
156 Patch48: 2.6.3-sparc32-fix.patch
158 # http://www.tahoe.pl/drivers/tahoe9xx-2.6.2.patch
159 #Patch50: tahoe9xx-2.6.2.patch
160 Patch50: http://www.tahoe.pl/drivers/tahoe9xx-2.6.4-5.patch
161 Patch51: linux-tahoe9xx-hdlc-update.patch
163 Patch54: 2.6.x-SGI_VW-fbdev-lkml.patch
165 Patch56: 2.6.x-TGA-fbdev-lkml.patch
167 Patch58: linux-alpha-isa.patch
168 Patch59: 2.6.7-alpha_compile.patch
170 Patch60: 2.6.4-rc1-01-esfq-imq.patch
171 Patch61: 2.6.4-rc1-02-imq-nat-support.patch
173 Patch64: 2.6.4-psion-5mx.patch
175 #from: http://www.consultmatt.co.uk/downloads/patches/kernel/2.6/
176 Patch66: 2.6.1-all-in-1.patch
178 Patch68: 2.6.5-sparc64-missing-include.patch
180 Patch70: 2.6.5-3C920b-Tornado.patch
182 Patch72: 2.6.5-i386-cmpxchg.patch
184 Patch74: 2.6.4-wrr.patch
186 # http://dl.sourceforge.net/sourceforge/pramfs/pramfs-2.6.4-1.0.2.tar.gz
187 Patch76: pramfs-2.6.4.patch
189 Patch78: ftp://ftp.kernel.org/pub/linux/kernel/people/mbligh/patches/2.6.6-rc3/2.6.6-rc3-mjb1/350-autoswap
191 Patch80: http://www.elektronikschule.de/~genannt/kernel-patche/lirc/lirc-2.6.5-20040404
193 # from http://www.smcc.demon.nl/webcam/pwcx-9.0-beta-2.tar.gz
194 Patch82: 2.6.7-pwcx.patch
196 Patch84: 2.6.6-serial-fifo-lkml.patch
198 Patch88: 2.6.6-qsort-updated-lkml.patch
199 Patch90: 2.6.6-xfs-qsort-lkml.patch
201 #Patch94: grsecurity-2.0-2.6.6-unofficial.patch
202 Patch94: %{name}-grsec.patch
204 Patch96: 2.6.6-lirc_i2c.diff
206 Patch97: %{name}-pts.patch
208 Patch100: %{name}-MAX_INIT_ARGS.patch
210 # frpm http://www.ssi.bg/~ja/#routers
211 Patch102: 00_static_routes-2.6.0-test1-8.diff
212 Patch103: 01_alt_routes-2.5.50-8.diff
213 Patch104: 01_arp_prefsrc-2.5.50-5.diff
214 Patch105: 05_nf_reroute-2.6.7-10.diff
216 Patch108: 2.6.7-bridge_sysfs-lkml.patch
218 Patch110: ftp://ftp.kernel.org/pub/linux/kernel/people/lenb/acpi/patches/release/2.6.7/acpi-20040326-2.6.7.diff.gz
220 Patch112: linux-fbcon-con2fb-crash-workaround.patch
222 # http://sources.redhat.com/cluster/
223 Patch200: linux-cluster-cman.patch
224 Patch201: linux-cluster-dlm.patch
225 Patch202: linux-cluster-gfs.patch
226 Patch203: linux-cluster-gnbd.patch
228 # http://lkml.org/lkml/2004/6/2/233
229 Patch211: http://people.redhat.com/mingo/exec-shield/exec-shield-nx-2.6.7-A0
230 Patch212: exec-shield-make-peace-with-grsecurity.patch
233 Patch300: 2.6.7-remote-iptables-DoS.patch
235 URL: http://www.kernel.org/
236 BuildRequires: binutils >= 2.14.90.0.7
237 %ifarch sparc sparc64
238 BuildRequires: elftoaout
240 BuildRequires: module-init-tools
241 BuildRequires: perl-base
242 BuildRequires: rpmbuild(macros) >= 1.153
245 PreReq: module-init-tools >= 0.9.9
246 PreReq: geninitrd >= 2.57
247 Provides: %{name}-up = %{epoch}:%{version}-%{release}
248 Provides: module-info
249 Provides: %{name}(netfilter) = %{_netfilter_snap}
250 Obsoletes: kernel-modules
251 Conflicts: util-linux < %{_util_linux_ver}
252 Conflicts: module-init-tool < %{_module_init_tool_ver}
253 Conflicts: e2fsprogs < %{_e2fsprogs_ver}
254 Conflicts: jfsutils < %{_jfsutils_ver}
255 Conflicts: reiserfsprogs < %{_reiserfsprogs_ver}
256 Conflicts: xfsprogs < %{_xfsprogs_ver}
257 Conflicts: quota-tools < %{_quota_tools_ver}
258 Conflicts: PPP < %{_PPP_ver}
259 Conflicts: isdn4k-utils < %{_isdn4k_utils_ver}
260 Conflicts: nfs-utils < %{_nfs_utils_ver}
261 Conflicts: procps < %{_procps_ver}
262 Conflicts: oprofile < %{_oprofile_ver}
263 ExclusiveArch: %{ix86} sparc sparc64 alpha ppc amd64
265 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
268 This package contains the Linux kernel that is used to boot and run
269 your system. It contains few device drivers for specific hardware.
270 Most hardware is instead supported by modules loaded after booting.
273 Das Kernel-Paket enthƤlt den Linux-Kernel (vmlinuz), den Kern des
274 Linux-Betriebssystems. Der Kernel ist fĆ¼r grundliegende
275 Systemfunktionen verantwortlich: Speicherreservierung,
276 ProzeĆ-Management, GerƤte Ein- und Ausgaben, usw.
279 Le package kernel contient le kernel linux (vmlinuz), la partie
280 centrale d'un systĆØme d'exploitation Linux. Le noyau traite les
281 fonctions basiques d'un systĆØme d'exploitation: allocation mĆ©moire,
282 allocation de process, entrƩe/sortie de peripheriques, etc.
285 Pakiet zawiera jĀ±dro Linuksa niezbĆŖdne do prawidĀ³owego dziaĀ³ania
286 Twojego komputera. Zawiera w sobie sterowniki do sprzĆŖtu znajdujĀ±cego
287 siĆŖ w komputerze, takiego jak sterowniki dyskĆ³w itp.
290 Summary: DRM kernel modules
291 Summary(pl): Sterowniki DRM
293 PreReq: %{name}-up = %{epoch}:%{version}-%{release}
294 Requires(postun): %{name}-up = %{epoch}:%{version}-%{release}
295 Provides: %{name}-drm = %{drm_xfree_version}
299 DRM kernel modules (%{drm_xfree_version}).
301 %description drm -l pl
302 Sterowniki DRM (%{drm_xfree_version}).
305 Summary: PCMCIA modules
306 Summary(pl): ModuĀ³y PCMCIA
308 PreReq: %{name}-up = %{epoch}:%{version}-%{release}
309 Requires(postun): %{name}-up = %{epoch}:%{version}-%{release}
310 Provides: %{name}-pcmcia = %{pcmcia_version}
311 Provides: kernel(pcmcia)
312 Conflicts: pcmcia-cs < %{_pcmcia_cs_ver}
316 PCMCIA modules (%{pcmcia_version}).
318 %description pcmcia -l pl
319 ModuĀ³y PCMCIA (%{pcmcia_version}).
322 Summary: ALSA kernel modules
323 Summary(pl): Sterowniki dĀ¼wiĆŖku ALSA
325 PreReq: %{name}-up = %{epoch}:%{version}-%{release}
326 Requires(postun): %{name}-up = %{epoch}:%{version}-%{release}
327 Provides: alsa-driver
328 Obsoletes: alsa-driver
329 Obsoletes: alsa-driver-up
332 %description sound-alsa
333 ALSA (Advanced Linux Sound Architecture) sound drivers.
335 %description sound-alsa -l pl
336 Sterowniki dĀ¼wiĆŖku ALSA (Advanced Linux Sound Architecture).
339 Summary: OSS kernel modules
340 Summary(pl): Sterowniki dĀ¼wiĆŖku OSS
342 PreReq: %{name}-up = %{epoch}:%{version}-%{release}
343 Requires(postun): %{name}-up = %{epoch}:%{version}-%{release}
346 %description sound-oss
347 OSS (Open Sound System) drivers.
349 %description sound-oss -l pl
350 Sterowniki dĀ¼wiĆŖku OSS (Open Sound System).
353 Summary: Kernel version %{version} compiled for SMP machines
354 Summary(de): Kernel version %{version} fĆ¼r Multiprozessor-Maschinen
355 Summary(fr): Kernel version %{version} compiler pour les machine Multi-Processeur
356 Summary(pl): JĀ±dro Linuksa w wersji %{version} dla maszyn wieloprocesorowych
359 PreReq: module-init-tools >= 0.9.9
360 PreReq: geninitrd >= 2.26
361 Provides: %{name} = %{epoch}:%{version}-%{release}
362 Provides: module-info
363 Provides: %{name}(netfilter) = %{_netfilter_snap}
364 Conflicts: util-linux < %{_util_linux_ver}
365 Conflicts: module-init-tool < %{_module_init_tool_ver}
366 Conflicts: e2fsprogs < %{_e2fsprogs_ver}
367 Conflicts: jfsutils < %{_jfsutils_ver}
368 Conflicts: reiserfsprogs < %{_reiserfsprogs_ver}
369 Conflicts: xfsprogs < %{_xfsprogs_ver}
370 Conflicts: quota-tools < %{_quota_tools_ver}
371 Conflicts: PPP < %{_PPP_ver}
372 Conflicts: isdn4k-utils < %{_isdn4k_utils_ver}
373 Conflicts: nfs-utils < %{_nfs_utils_ver}
374 Conflicts: procps < %{_procps_ver}
375 Conflicts: oprofile < %{_oprofile_ver}
379 This package includes a SMP version of the Linux %{version} kernel. It
380 is required only on machines with two or more CPUs, although it should
381 work fine on single-CPU boxes.
383 %description smp -l de
384 Dieses Paket enthƤlt eine SMP (Multiprozessor)-Version von
385 Linux-Kernel %{version}. Es wird fĆ¼r Maschinen mit zwei oder mehr
386 Prozessoren gebraucht, sollte aber auch auf Computern mit nur einer
389 %description smp -l fr
390 Ce package inclu une version SMP du noyau de Linux version {version}.
391 Il et nƩcessaire seulement pour les machine avec deux processeurs ou
392 plus, il peut quand mĆŖme fonctionner pour les systĆØme mono-processeur.
394 %description smp -l pl
395 Pakiet zawiera jĀ±dro SMP Linuksa w wersji %{version}. Jest ono
396 wymagane przez komputery zawierajĀ±ce dwa lub wiĆŖcej procesorĆ³w.
397 Powinno rĆ³wnieĀæ dobrze dziaĀ³aƦ na maszynach z jednym procesorem.
400 Summary: DRM SMP kernel modules
401 Summary(pl): Sterowniki DRM dla maszyn wieloprocesorowych
403 PreReq: %{name}-smp = %{epoch}:%{version}-%{release}
404 Requires(postun): %{name}-smp = %{epoch}:%{version}-%{release}
405 Provides: %{name}-drm = %{drm_xfree_version}
409 DRM SMP kernel modules (%{drm_xfree_version}).
411 %description smp-drm -l pl
412 Sterowniki DRM dla maszyn wieloprocesorowych (%{drm_xfree_version}).
415 Summary: PCMCIA modules for SMP kernel
416 Summary(pl): ModuĀ³y PCMCIA dla maszyn SMP
418 PreReq: %{name}-smp = %{epoch}:%{version}-%{release}
419 Requires(postun): %{name}-smp = %{epoch}:%{version}-%{release}
420 Provides: %{name}-pcmcia = %{pcmcia_version}
421 Provides: kernel(pcmcia)
422 Conflicts: pcmcia-cs < %{_pcmcia_cs_ver}
425 %description smp-pcmcia
426 PCMCIA modules for SMP kernel (%{pcmcia_version}).
428 %description smp-pcmcia -l pl
429 ModuĀ³y PCMCIA dla maszyn SMP (%{pcmcia_version}).
431 %package smp-sound-alsa
432 Summary: ALSA SMP kernel modules
433 Summary(pl): Sterowniki dĀ¼wiĆŖku ALSA dla maszyn wieloprocesorowych
435 PreReq: %{name}-smp = %{epoch}:%{version}-%{release}
436 Requires(postun): %{name}-smp = %{epoch}:%{version}-%{release}
437 Provides: alsa-driver
438 Obsoletes: alsa-driver
439 Obsoletes: alsa-driver-smp
442 %description smp-sound-alsa
443 ALSA (Advanced Linux Sound Architecture) SMP sound drivers.
445 %description smp-sound-alsa -l pl
446 Sterowniki dĀ¼wiĆŖku ALSA (Advanced Linux Sound Architecture) dla maszyn
449 %package smp-sound-oss
450 Summary: OSS SMP kernel modules
451 Summary(pl): Sterowniki dĀ¼wiĆŖku OSS dla maszyn wieloprocesorowych
453 PreReq: %{name}-smp = %{epoch}:%{version}-%{release}
454 Requires(postun): %{name}-smp = %{epoch}:%{version}-%{release}
457 %description smp-sound-oss
458 OSS (Open Sound System) SMP sound drivers.
460 %description smp-sound-oss -l pl
461 Sterowniki OSS (Open Sound System) dla maszyn wieloprocesorowych.
464 Summary: Kernel version %{version} used on the installation boot disks
465 Summary(de): Kernel version %{version} fĆ¼r Installationsdisketten
466 Summary(fr): Kernel version %{version} utiliser pour les disquettes d'installation
467 Summary(pl): JĀ±dro Linuksa w wersji %{version} dla dyskietek startowych
469 PreReq: module-init-tools
473 This package includes a trimmed down version of the Linux %{version}
474 kernel. This kernel is used on the installation boot disks only and
475 should not be used for an installed system, as many features in this
476 kernel are turned off because of the size constraints.
478 %description BOOT -l de
479 Dieses Paket enthƤlt eine verkleinerte Version vom Linux-Kernel
480 version %{version}. Dieser Kernel wird auf den
481 Installations-Bootdisketten benutzt und sollte nicht auf einem
482 installierten System verwendet werden, da viele Funktionen wegen der
483 Platzprobleme abgeschaltet sind.
485 %description BOOT -l pl
486 Pakiet zawiera jĀ±dro Linuksa dedykowane dyskietkom startowym i powinno
487 byƦ uĀæywane jedynie podczas instalacji systemu. Wiele uĀæytecznych
488 opcji zostaĀ³o wyĀ³Ā±czonych, aby jak najbardziej zmniejszyƦ jego
492 Summary: Header files for the Linux kernel
493 Summary(pl): Pliki nagĀ³Ć³wkowe jĀ±dra Linuksa
495 Provides: %{name}-headers(agpgart) = %{version}
496 Provides: %{name}-headers(reiserfs) = %{version}
497 Provides: %{name}-headers(bridging) = %{version}
498 Provides: kernel-i2c-devel
499 Provides: %{name}-headers(netfilter) = %{_netfilter_snap}
500 Provides: %{name}-headers(alsa-drivers)
501 Obsoletes: kernel-i2c-devel
505 These are the C header files for the Linux kernel, which define
506 structures and constants that are needed when rebuilding the kernel
507 or building kernel modules.
509 %description headers -l pl
510 Pakiet zawiera pliki nagĀ³Ć³wkowe jĀ±dra, niezbĆŖdne do rekompilacji jĀ±dra
511 oraz budowania moduĀ³Ć³w jĀ±dra.
513 %package module-build
514 Summary: Development files for building kernel modules
515 Summary(pl): Pliki sĀ³uĀæĀ±ce do budowania moduĀ³Ć³w jĀ±dra
517 Requires: %{name}-headers = %{epoch}:%{version}-%{release}
520 %description module-build
521 Development files from kernel source tree needed to build Linux kernel
522 modules from external packages.
524 %description module-build -l pl
525 Pliki ze drzewa Ā¼rĆ³deĀ³ jĀ±dra potrzebne do budowania moduĀ³Ć³w jĀ±dra
526 Linuksa z zewnĆŖtrznych pakietĆ³w.
529 Summary: Kernel source tree
530 Summary(pl): Kod Ā¼rĆ³dĀ³owy jĀ±dra Linuksa
532 Requires: %{name}-module-build = %{epoch}:%{version}-%{release}
536 This is the source code for the Linux kernel. It is required to build
537 most C programs as they depend on constants defined in here. You can
538 also build a custom kernel that is better tuned to your particular
541 %description source -l de
542 Das Kernel-Source-Paket enthƤlt den source code (C/Assembler-Code) des
543 Linux-Kernels. Die Source-Dateien werden gebraucht, um viele
544 C-Programme zu compilieren, da sie auf Konstanten zurĆ¼ckgreifen, die
545 im Kernel-Source definiert sind. Die Source-Dateien kƶnnen auch
546 benutzt werden, um einen Kernel zu compilieren, der besser auf Ihre
547 Hardware ausgerichtet ist.
549 %description source -l fr
550 Le package pour le kernel-source contient le code source pour le noyau
551 linux. Ces sources sont nƩcessaires pour compiler la plupart des
552 programmes C, car il dƩpend de constantes dƩfinies dans le code
553 source. Les sources peuvent ĆŖtre aussi utilisĆ©e pour compiler un noyau
554 personnalisƩ pour avoir de meilleures performances sur des matƩriels
557 %description source -l pl
558 Pakiet zawiera kod Ā¼rĆ³dĀ³owy jĀ±dra systemu.
561 Summary: Kernel documentation
562 Summary(pl): Dokumentacja do jĀ±dra Linuksa
564 Provides: %{name}-doc = %{version}
568 This is the documentation for the Linux kernel, as found in
569 /usr/src/linux/Documentation directory.
571 %description doc -l pl
572 Pakiet zawiera dokumentacjĆŖ do jĀ±dra Linuksa pochodzĀ±cĀ± z katalogu
573 /usr/src/linux/Documentation.
576 %setup -q -n linux-%{version}%{_rc}
581 %if "%{_apply_cset}" != "0"
582 zcat %{SOURCE3} | patch -p1 -s
610 %if %{with bootsplash}
676 # Philips USB drivers.
680 #cp drivers/usb/media/libpwcx.a_ix86 drivers/usb/media/libpwcx.a_
683 #cp drivers/usb/media/libpwcx.a_powerpc drivers/usb/media/libpwcx.a_
686 #cp drivers/usb/media/libpwcx.a_ppc drivers/usb/media/libpwcx.a_
695 %ifarch alpha %{ix86} ia64 ppc sparc sparc64 amd64
701 %if %{with execshield}
702 install %{PATCH211} exec-shield.patch
704 patch -s exec-shield.patch < %{PATCH212}
706 patch -p1 -s < exec-shield.patch
717 #patch104 -p1 # <- not applayed need checkout
731 #patch300 -p1 included in cset
733 # Fix EXTRAVERSION and CC in main Makefile
734 mv -f Makefile Makefile.orig
735 sed -e 's#EXTRAVERSION =.*#EXTRAVERSION =#g' \
736 %ifarch %{ix86} alpha sparc ppc
737 -e 's#CC.*$(CROSS_COMPILE)gcc#CC = %{__cc}#g' \
740 -e 's#CC.*$(CROSS_COMPILE)gcc#CC = sparc64-pld-linux-gcc#g' \
742 Makefile.orig >Makefile
744 sed -i 's:\-pipe::' arch/*/Makefile
749 # is this a special kernel we want to build?
752 [ "$1" = "BOOT" -o "$2" = "BOOT" ] && BOOT=yes
753 [ "$1" = "smp" -o "$2" = "smp" ] && smp=yes
754 if [ "$smp" = "yes" ]; then
755 Config="%{_target_base_arch}-smp"
757 Config="%{_target_base_arch}"
759 if [ "$BOOT" = "yes" ]; then
760 KernelVer=%{version}-%{release}BOOT
762 KernelVer=%{version}-%{release}$1
764 echo "Building config file for KERNEL $1..."
766 cat $RPM_SOURCE_DIR/kernel-$Config.config > arch/%{_target_base_arch}/defconfig
768 echo "CONFIG_M386=y" >> arch/%{_target_base_arch}/defconfig
771 echo "CONFIG_M486=y" >> arch/%{_target_base_arch}/defconfig
774 echo "CONFIG_M586=y" >> arch/%{_target_base_arch}/defconfig
777 echo "CONFIG_M686=y" >> arch/%{_target_base_arch}/defconfig
780 echo "CONFIG_MPENTIUMIII=y" >> arch/%{_target_base_arch}/defconfig
783 echo "CONFIG_MPENTIUM4=y" >> arch/%{_target_base_arch}/defconfig
786 echo "CONFIG_MK7=y" >> arch/%{_target_base_arch}/defconfig
788 %{?with_preemptive:echo "CONFIG_PREEMPT=y" >> arch/%{_target_base_arch}/defconfig}
791 cat %{SOURCE80} >> arch/%{_target_base_arch}/defconfig
794 cat %{SOURCE90} >> arch/%{_target_base_arch}/defconfig
797 %ifarch pentium3 pentium4 athlon
798 # kernel-i386-smp.config contains 64G support by default.
800 sed -i "s:CONFIG_HIGHMEM4G=y:# CONFIG_HIGHMEM4G is not set:" arch/%{_target_base_arch}/defconfig
801 sed -i "s:# CONFIG_HIGHMEM64G is not set:CONFIG_HIGHMEM64G=y\nCONFIG_X86_PAE=y:" arch/%{_target_base_arch}/defconfig
805 %ifarch i386 i486 i586
806 sed -i 's/# CONFIG_MATH_EMULATION is not set/CONFIG_MATH_EMULATION=y/' \
807 arch/%{_target_base_arch}/defconfig
810 ln -sf arch/%{_target_base_arch}/defconfig .config
812 install -d $KERNEL_INSTALL_DIR/usr/src/linux-%{version}/include/linux
813 %{__make} include/linux/autoconf.h
814 if [ "$smp" = "yes" ]; then
815 install include/linux/autoconf.h $KERNEL_INSTALL_DIR/usr/src/linux-%{version}/include/linux/autoconf-smp.h
817 install include/linux/autoconf.h $KERNEL_INSTALL_DIR/usr/src/linux-%{version}/include/linux/autoconf-up.h
823 Config="%{_target_base_arch}"
824 cat $RPM_SOURCE_DIR/kernel-$Config.config > arch/%{_target_base_arch}/defconfig
826 echo "CONFIG_M386=y" >> arch/%{_target_base_arch}/defconfig
829 echo "CONFIG_M486=y" >> arch/%{_target_base_arch}/defconfig
831 %ifarch i386 i486 i586
832 sed -i 's/# CONFIG_MATH_EMULATION is not set/CONFIG_MATH_EMULATION=y/' \
833 arch/%{_target_base_arch}/defconfig
835 cat <<EOF >>arch/%{_target_base_arch}/defconfig
836 # CONFIG_APM is not set
837 # CONFIG_ACPI is not set
838 # CONFIG_ACPI_BOOT is not set
839 # CONFIG_MTD is not set
840 # CONFIG_NETFILTER is not set
841 # CONFIG_WAN is not set
842 # CONFIG_ATM is not set
843 # CONFIG_HOTPLUG_PCI is not set
844 # CONFIG_NET_SCHED is not set
845 # CONFIG_X86_MCE is not set
846 # CONFIG_MTRR is not set
847 # CONFIG_PM is not set
848 # CONFIG_CPU_FREQ is not set
849 # CONFIG_DRM is not set
850 # CONFIG_FTAPE is not set
851 # CONFIG_WATCHDOG is not set
852 # CONFIG_DVB is not set
853 # CONFIG_DVB_CORE is not set
854 # CONFIG_VIDEO_DEV is not set
855 # CONFIG_SECURITY is not set
856 # CONFIG_SOUND is not set
857 # CONFIG_USB_AUDIO is not set
858 # CONFIG_INPUT_JOYSTICK is not set
859 # CONFIG_OMNIBOOK is not set
860 # CONFIG_NET_RADIO is not set
861 # CONFIG_HOTPLUG is not set
862 # CONFIG_QUOTA is not set
863 # CONFIG_REGPARM is not set
864 # CONFIG_SCSI_LOGGING is not set
867 # CONFIG_DEV_APPLETALK is not set
868 # CONFIG_ECONET_AUNUDP is not set
869 # CONFIG_HIPPI is not set
870 # CONFIG_TR is not set
871 # CONFIG_INPUT_MISC is not set
872 # CONFIG_INPUT_TOUCHSCREEN is not set
873 # CONFIG_PROFILING is not set
874 # CONFIG_DEBUG_KERNEL is not set
875 # CONFIG_DEBUG_SPINLOCK_SLEEP is not set
876 # CONFIG_FRAME_POINTER is not set
877 # CONFIG_LBD is not set
878 # CONFIG_SLIP is not set
879 # CONFIG_PPP is not set
880 # CONFIG_PLIP is not set
881 # CONFIG_FDDI is not set
882 # CONFIG_HAMRADIO is not set
883 # CONFIG_NETPOLL_RX is not set
884 # CONFIG_NETPOLL_TRAP is not set
885 # CONFIG_FB is not set
887 ln -sf arch/%{_target_base_arch}/defconfig .config
889 install -d $KERNEL_INSTALL_DIR/usr/src/linux-%{version}/include/linux
890 %{__make} include/linux/autoconf.h
891 if [ "$smp" = "yes" ]; then
892 install include/linux/autoconf.h $KERNEL_INSTALL_DIR/usr/src/linux-%{version}/include/linux/autoconf-smp.h
894 install include/linux/autoconf.h $KERNEL_INSTALL_DIR/usr/src/linux-%{version}/include/linux/autoconf-up.h
900 echo "Building kernel $1 ..."
902 RCS_FIND_IGNORE='-name build-done -prune -o'
903 ln -sf arch/%{_target_base_arch}/defconfig .config
906 sparc32 %{__make} clean \
907 RCS_FIND_IGNORE='-name build-done -prune -o'
910 RCS_FIND_IGNORE='-name build-done -prune -o'
912 %{__make} include/linux/version.h \
915 # make does vmlinux, modules and bzImage at once
916 %ifarch sparc sparc64
936 [ "$1" = "BOOT" -o "$2" = "BOOT" ] && BOOT=yes
937 [ "$1" = "smp" -o "$2" = "smp" ] && smp=yes
938 if [ "$smp" = "yes" ]; then
939 Config="%{_target_base_arch}-smp"
941 Config="%{_target_base_arch}"
943 if [ "$BOOT" = "yes" ]; then
944 KernelVer=%{version}-%{release}BOOT
946 KernelVer=%{version}-%{release}$1
949 mkdir -p $KERNEL_INSTALL_DIR/boot
950 install System.map $KERNEL_INSTALL_DIR/boot/System.map-$KernelVer
951 %ifarch %{ix86} amd64
952 install arch/%{_target_base_arch}/boot/bzImage $KERNEL_INSTALL_DIR/boot/vmlinuz-$KernelVer
954 %ifarch alpha sparc sparc64
955 gzip -cfv vmlinux > vmlinuz
956 install vmlinux $KERNEL_INSTALL_DIR/boot/vmlinux-$KernelVer
957 install vmlinuz $KERNEL_INSTALL_DIR/boot/vmlinuz-$KernelVer
959 elftoaout arch/sparc/boot/image -o vmlinux.aout
960 install vmlinux.aout $KERNEL_INSTALL_DIR/boot/vmlinux.aout-$KernelVer
963 elftoaout arch/sparc64/boot/image -o vmlinux.aout
964 install vmlinux.aout $KERNEL_INSTALL_DIR/boot/vmlinux.aout-$KernelVer
969 install vmlinux $KERNEL_INSTALL_DIR/boot/vmlinux-$KernelVer
970 install vmlinux $KERNEL_INSTALL_DIR/boot/vmlinuz-$KernelVer
972 %{__make} modules_install \
973 %{?with_verbose:V=1} \
974 INSTALL_MOD_PATH=$KERNEL_INSTALL_DIR \
975 KERNELRELEASE=$KernelVer
977 echo "CHECKING DEPENDENCIES FOR KERNEL MODULES"
978 /sbin/depmod --basedir $KERNEL_INSTALL_DIR -ae -F $KERNEL_INSTALL_DIR/boot/System.map-$KernelVer -r $KernelVer || echo
980 echo "KERNEL RELEASE $KernelVer DONE"
984 KERNEL_BUILD_DIR=`pwd`
987 KERNEL_INSTALL_DIR="$KERNEL_BUILD_DIR/build-done/kernel-UP"
988 rm -rf $KERNEL_INSTALL_DIR
990 %{?with_up:BuildKernel}
991 %{?with_up:PreInstallKernel}
994 KERNEL_INSTALL_DIR="$KERNEL_BUILD_DIR/build-done/kernel-SMP"
995 rm -rf $KERNEL_INSTALL_DIR
997 %{?with_smp:BuildKernel smp}
998 %{?with_smp:PreInstallKernel smp}
1001 KERNEL_INSTALL_DIR="$KERNEL_BUILD_DIR/build-done/BOOT"
1002 rm -rf $KERNEL_INSTALL_DIR
1005 PreInstallKernel BOOT
1009 rm -rf $RPM_BUILD_ROOT
1012 install -d $RPM_BUILD_ROOT%{_prefix}/src/linux-%{version}
1014 KERNEL_BUILD_DIR=`pwd`
1016 %if %{with up} || %{with smp}
1017 cp -a $KERNEL_BUILD_DIR/build-done/kernel-*/* $RPM_BUILD_ROOT
1020 for i in "" smp ; do
1021 if [ -e $RPM_BUILD_ROOT/lib/modules/%{version}-%{release}$i ] ; then
1022 rm -f $RPM_BUILD_ROOT/lib/modules/%{version}-%{release}$i/build
1023 ln -sf %{_prefix}/src/linux-%{version} \
1024 $RPM_BUILD_ROOT/lib/modules/%{version}-%{release}$i/build
1028 ln -sf linux-%{version} $RPM_BUILD_ROOT%{_prefix}/src/linux
1030 find . ! -name "build-done" -maxdepth 1 -exec cp -a "{}" "$RPM_BUILD_ROOT/usr/src/linux-%{version}/" ";"
1032 cd $RPM_BUILD_ROOT%{_prefix}/src/linux-%{version}
1034 %{__make} mrproper \
1035 RCS_FIND_IGNORE='-name build-done -prune -o'
1036 find -name "*~" -exec rm -f "{}" ";"
1037 find -name "*.orig" -exec rm -f "{}" ";"
1039 install $RPM_SOURCE_DIR/kernel-%{_target_base_arch}.config .config
1042 echo "CONFIG_M386=y" >> .config
1045 echo "CONFIG_M486=y" >> .config
1048 echo "CONFIG_M586=y" >> .config
1051 echo "CONFIG_M686=y" >> .config
1054 echo "CONFIG_MPENTIUMIII=y" >> .config
1057 echo "CONFIG_MPENTIUM4=y" >> .config
1060 echo "CONFIG_MK7=y" >> .config
1063 cat %{SOURCE80} >> .config
1065 cat %{SOURCE90} >> .config
1067 cp .config config-up
1069 install $RPM_SOURCE_DIR/kernel-%{_target_base_arch}-smp.config .config
1072 echo "CONFIG_M386=y" >> .config
1075 echo "CONFIG_M486=y" >> .config
1078 echo "CONFIG_M586=y" >> .config
1081 echo "CONFIG_M686=y" >> .config
1084 echo "CONFIG_MPENTIUMIII=y" >> .config
1087 echo "CONFIG_MPENTIUM4=y" >> .config
1090 echo "CONFIG_MK7=y" >> .config
1093 cat %{SOURCE80} >> .config
1095 cat %{SOURCE90} >> .config
1097 cp .config config-smp
1099 if [ -e $KERNEL_BUILD_DIR/build-done/kernel-UP/usr/src/linux-%{version}/include/linux/autoconf-up.h ]; then
1100 install $KERNEL_BUILD_DIR/build-done/kernel-UP/usr/src/linux-%{version}/include/linux/autoconf-up.h \
1101 $RPM_BUILD_ROOT/usr/src/linux-%{version}/include/linux
1104 if [ -e $KERNEL_BUILD_DIR/build-done/kernel-SMP/usr/src/linux-%{version}/include/linux/autoconf-smp.h ]; then
1105 install $KERNEL_BUILD_DIR/build-done/kernel-SMP/usr/src/linux-%{version}/include/linux/autoconf-smp.h \
1106 $RPM_BUILD_ROOT/usr/src/linux-%{version}/include/linux
1109 %if %{with up} || %{with smp}
1111 install $KERNEL_BUILD_DIR/build-done/kernel-*/usr/src/linux-%{version}/include/linux/* \
1112 $RPM_BUILD_ROOT/usr/src/linux-%{version}/include/linux
1116 %{__make} include/linux/version.h
1117 install %{SOURCE1} $RPM_BUILD_ROOT%{_prefix}/src/linux-%{version}/include/linux/autoconf.h
1120 rm -rf $RPM_BUILD_ROOT
1123 mv -f /boot/vmlinuz /boot/vmlinuz.old 2> /dev/null > /dev/null
1124 mv -f /boot/System.map /boot/System.map.old 2> /dev/null > /dev/null
1125 ln -sf vmlinuz-%{version}-%{release} /boot/vmlinuz
1126 ln -sf System.map-%{version}-%{release} /boot/System.map
1128 if [ ! -L /lib/modules/%{version} ] ; then
1129 mv -f /lib/modules/%{version} /lib/modules/%{version}.rpmsave > /dev/null 2>&1
1131 rm -f /lib/modules/%{version}
1132 ln -snf %{version}-%{release} /lib/modules/%{version}
1133 %depmod %{version}-%{release}
1135 /sbin/geninitrd -f --initrdfs=rom /boot/initrd-%{version}-%{release}.gz %{version}-%{release}
1136 mv -f /boot/initrd /boot/initrd.old
1137 ln -sf initrd-%{version}-%{release}.gz /boot/initrd
1139 if [ -x /sbin/rc-boot ] ; then
1140 /sbin/rc-boot 1>&2 || :
1144 if [ -L /lib/modules/%{version} ]; then
1145 if [ "`ls -l /lib/modules/%{version} | awk '{ print $10 }'`" = "%{version}-%{release}" ]; then
1146 if [ "$1" = "0" ]; then
1147 rm -f /lib/modules/%{version}
1151 rm -f /boot/initrd-%{version}-%{release}.gz
1154 %depmod %{version}-%{release}
1157 %depmod %{version}-%{release}
1160 %depmod %{version}-%{release}
1163 %depmod %{version}-%{release}
1166 %depmod %{version}-%{release}
1169 %depmod %{version}-%{release}
1172 %depmod %{version}-%{release}
1175 %depmod %{version}-%{release}
1178 mv -f /boot/vmlinuz /boot/vmlinuz.old 2> /dev/null > /dev/null
1179 mv -f /boot/System.map /boot/System.map.old 2> /dev/null > /dev/null
1180 ln -sf vmlinuz-%{version}-%{release}smp /boot/vmlinuz
1181 ln -sf System.map-%{version}-%{release}smp /boot/System.map
1183 if [ ! -L /lib/modules/%{version} ] ; then
1184 mv -f /lib/modules/%{version} /lib/modules/%{version}.rpmsave > /dev/null 2>&1
1186 rm -f /lib/modules/%{version}
1187 ln -snf %{version}-%{release}smp /lib/modules/%{version}
1188 %depmod %{version}-%{release}smp
1190 /sbin/geninitrd -f --initrdfs=rom /boot/initrd-%{version}-%{release}smp.gz %{version}-%{release}smp
1191 mv -f /boot/initrd /boot/initrd.old
1192 ln -sf initrd-%{version}-%{release}smp.gz /boot/initrd
1194 if [ -x /sbin/rc-boot ] ; then
1195 /sbin/rc-boot 1>&2 || :
1199 if [ -L /lib/modules/%{version} ]; then
1200 if [ "`ls -l /lib/modules/%{version} | awk '{ print $10 }'`" = "%{version}-%{release}smp" ]; then
1201 if [ "$1" = "0" ]; then
1202 rm -f /lib/modules/%{version}
1206 rm -f /boot/initrd-%{version}-%{release}smp.gz
1209 if [ ! -L %{_libdir}/bootdisk/lib/modules/%{version} ] ; then
1210 mv -f %{_libdir}/bootdisk/lib/modules/%{version} %{_libdir}/bootdisk/lib/modules/%{version}.rpmsave
1212 if [ ! -L %{_libdir}/bootdisk/boot/vmlinuz-%{version} ] ; then
1213 mv -f %{_libdir}/bootdisk/boot/vmlinuz-%{version} %{_libdir}/bootdisk/boot/vmlinuz-%{version}.rpmsave
1215 rm -f %{_libdir}/bootdisk/lib/modules/%{version}
1216 ln -snf %{version}-%{release}BOOT %{_libdir}/bootdisk/lib/modules/%{version}
1217 rm -f %{_libdir}/bootdisk/boot/vmlinuz-%{version}
1218 ln -snf vmlinuz-%{version}-%{release}BOOT %{_libdir}/bootdisk/boot/vmlinuz-%{version}
1221 %depmod %{version}-%{release}smp
1224 %depmod %{version}-%{release}smp
1227 %depmod %{version}-%{release}smp
1230 %depmod %{version}-%{release}smp
1232 %post smp-sound-alsa
1233 %depmod %{version}-%{release}smp
1235 %postun smp-sound-alsa
1236 %depmod %{version}-%{release}smp
1239 %depmod %{version}-%{release}smp
1241 %postun smp-sound-oss
1242 %depmod %{version}-%{release}smp
1245 if [ -L %{_libdir}/bootdisk/lib/modules/%{version} ]; then
1246 if [ "`ls -l %{_libdir}/bootdisk/lib/modules/%{version} | awk '{ print $10 }'`" = "%{version}-%{release}BOOT" ]; then
1247 if [ "$1" = "0" ]; then
1248 rm -f %{_libdir}/bootdisk/lib/modules/%{version}
1254 rm -f /usr/src/linux
1255 ln -snf linux-%{version} /usr/src/linux
1258 if [ -L %{_prefix}/src/linux ]; then
1259 if [ "`ls -l %{_prefix}/src/linux | awk '{ print $10 }'`" = "linux-%{version}" ]; then
1260 if [ "$1" = "0" ]; then
1261 rm -f %{_prefix}/src/linux
1268 %defattr(644,root,root,755)
1270 /boot/vmlinux-%{version}-%{release}
1272 %ifarch sparc sparc64
1273 /boot/vmlinux-%{version}-%{release}
1274 /boot/vmlinux.aout-%{version}-%{release}
1276 /boot/vmlinuz-%{version}-%{release}
1277 /boot/System.map-%{version}-%{release}
1278 %dir /lib/modules/%{version}-%{release}
1279 /lib/modules/%{version}-%{release}/kernel
1280 %ifnarch sparc sparc64
1282 %exclude /lib/modules/%{version}-%{release}/kernel/drivers/pcmcia
1283 %exclude /lib/modules/%{version}-%{release}/kernel/drivers/*/pcmcia
1284 %exclude /lib/modules/%{version}-%{release}/kernel/drivers/bluetooth/*_cs.ko
1285 %exclude /lib/modules/%{version}-%{release}/kernel/drivers/net/wireless/*_cs.ko
1286 %exclude /lib/modules/%{version}-%{release}/kernel/drivers/parport/parport_cs.ko
1287 %exclude /lib/modules/%{version}-%{release}/kernel/drivers/serial/serial_cs.ko
1289 %ifnarch sparc sparc64
1291 %exclude /lib/modules/%{version}-%{release}/kernel/drivers/char/drm
1293 %ifnarch sparc sparc64
1295 %exclude /lib/modules/%{version}-%{release}/kernel/sound/oss
1298 %exclude /lib/modules/%{version}-%{release}/kernel/sound/core
1299 %exclude /lib/modules/%{version}-%{release}/kernel/sound/drivers
1300 %ifnarch sparc sparc64
1301 %exclude /lib/modules/%{version}-%{release}/kernel/sound/i2c
1302 %exclude /lib/modules/%{version}-%{release}/kernel/sound/isa
1303 %exclude /lib/modules/%{version}-%{release}/kernel/sound/pci
1304 %exclude /lib/modules/%{version}-%{release}/kernel/sound/synth
1305 %exclude /lib/modules/%{version}-%{release}/kernel/sound/usb
1307 %ifarch sparc sparc64
1308 %exclude /lib/modules/%{version}-%{release}/kernel/sound/sparc
1311 /lib/modules/%{version}-%{release}/build
1312 %ghost /lib/modules/%{version}-%{release}/modules.*
1314 %ifnarch sparc sparc64
1316 %defattr(644,root,root,755)
1317 /lib/modules/%{version}-%{release}/kernel/drivers/char/drm
1320 %ifnarch sparc sparc64
1322 %defattr(644,root,root,755)
1323 /lib/modules/%{version}-%{release}/kernel/drivers/pcmcia
1324 /lib/modules/%{version}-%{release}/kernel/drivers/*/pcmcia
1325 /lib/modules/%{version}-%{release}/kernel/drivers/bluetooth/*_cs.ko
1326 /lib/modules/%{version}-%{release}/kernel/drivers/net/wireless/*_cs.ko
1327 /lib/modules/%{version}-%{release}/kernel/drivers/parport/parport_cs.ko
1328 /lib/modules/%{version}-%{release}/kernel/drivers/serial/serial_cs.ko
1332 %defattr(644,root,root,755)
1333 /lib/modules/%{version}-%{release}/kernel/sound/core
1334 /lib/modules/%{version}-%{release}/kernel/sound/drivers
1335 %ifnarch sparc sparc64
1336 /lib/modules/%{version}-%{release}/kernel/sound/i2c
1337 /lib/modules/%{version}-%{release}/kernel/sound/isa
1338 /lib/modules/%{version}-%{release}/kernel/sound/pci
1339 /lib/modules/%{version}-%{release}/kernel/sound/synth
1340 /lib/modules/%{version}-%{release}/kernel/sound/usb
1342 %ifarch sparc sparc64
1343 /lib/modules/%{version}-%{release}/kernel/sound/sparc
1346 %ifnarch sparc sparc64
1348 %defattr(644,root,root,755)
1349 /lib/modules/%{version}-%{release}/kernel/sound/oss
1351 %endif # %%{with up}
1355 %defattr(644,root,root,755)
1356 %ifarch alpha sparc sparc64 ppc
1357 /boot/vmlinux-%{version}-%{release}smp
1359 /boot/vmlinuz-%{version}-%{release}smp
1360 /boot/System.map-%{version}-%{release}smp
1361 %dir /lib/modules/%{version}-%{release}smp
1362 /lib/modules/%{version}-%{release}smp/kernel
1363 %ifnarch sparc sparc64
1365 %exclude /lib/modules/%{version}-%{release}smp/kernel/drivers/pcmcia
1366 %exclude /lib/modules/%{version}-%{release}smp/kernel/drivers/*/pcmcia
1367 %exclude /lib/modules/%{version}-%{release}smp/kernel/drivers/bluetooth/*_cs.ko
1368 %exclude /lib/modules/%{version}-%{release}smp/kernel/drivers/net/wireless/*_cs.ko
1369 %exclude /lib/modules/%{version}-%{release}smp/kernel/drivers/parport/parport_cs.ko
1370 %exclude /lib/modules/%{version}-%{release}smp/kernel/drivers/serial/serial_cs.ko
1372 %ifnarch sparc sparc64
1374 %exclude /lib/modules/%{version}-%{release}smp/kernel/drivers/char/drm
1376 %ifnarch sparc sparc64
1378 %exclude /lib/modules/%{version}-%{release}smp/kernel/sound/oss
1381 %exclude /lib/modules/%{version}-%{release}smp/kernel/sound/core
1382 %exclude /lib/modules/%{version}-%{release}smp/kernel/sound/drivers
1383 %ifnarch sparc sparc64
1384 %exclude /lib/modules/%{version}-%{release}smp/kernel/sound/i2c
1385 %exclude /lib/modules/%{version}-%{release}smp/kernel/sound/isa
1386 %exclude /lib/modules/%{version}-%{release}smp/kernel/sound/pci
1387 %exclude /lib/modules/%{version}-%{release}smp/kernel/sound/synth
1388 %exclude /lib/modules/%{version}-%{release}smp/kernel/sound/usb
1390 %ifarch sparc sparc64
1391 %exclude /lib/modules/%{version}-%{release}smp/kernel/sound/sparc
1394 /lib/modules/%{version}-%{release}smp/build
1395 %ghost /lib/modules/%{version}-%{release}smp/modules.*
1397 %ifnarch sparc sparc64
1399 %defattr(644,root,root,755)
1400 /lib/modules/%{version}-%{release}smp/kernel/drivers/char/drm
1403 %ifnarch sparc sparc64
1405 %defattr(644,root,root,755)
1406 /lib/modules/%{version}-%{release}smp/kernel/drivers/pcmcia
1407 /lib/modules/%{version}-%{release}smp/kernel/drivers/*/pcmcia
1408 /lib/modules/%{version}-%{release}smp/kernel/drivers/bluetooth/*_cs.ko
1409 /lib/modules/%{version}-%{release}smp/kernel/drivers/net/wireless/*_cs.ko
1410 /lib/modules/%{version}-%{release}smp/kernel/drivers/parport/parport_cs.ko
1411 /lib/modules/%{version}-%{release}smp/kernel/drivers/serial/serial_cs.ko
1414 %files smp-sound-alsa
1415 %defattr(644,root,root,755)
1416 /lib/modules/%{version}-%{release}smp/kernel/sound/core
1417 /lib/modules/%{version}-%{release}smp/kernel/sound/drivers
1418 %ifnarch sparc sparc64
1419 /lib/modules/%{version}-%{release}smp/kernel/sound/i2c
1420 /lib/modules/%{version}-%{release}smp/kernel/sound/isa
1421 /lib/modules/%{version}-%{release}smp/kernel/sound/pci
1422 /lib/modules/%{version}-%{release}smp/kernel/sound/synth
1423 /lib/modules/%{version}-%{release}smp/kernel/sound/usb
1425 %ifarch sparc sparc64
1426 /lib/modules/%{version}-%{release}smp/kernel/sound/sparc
1429 %ifnarch sparc sparc64
1430 %files smp-sound-oss
1431 %defattr(644,root,root,755)
1432 /lib/modules/%{version}-%{release}smp/kernel/sound/oss
1434 %endif # %%{with smp}
1438 %defattr(644,root,root,755)
1439 %ifarch alpha sparc sparc64 ppc # arch
1440 %{_libdir}/bootdisk/boot/vmlinux-%{version}-%{release}BOOT
1442 %{_libdir}/bootdisk/boot/vmlinuz-%{version}-%{release}BOOT
1443 %{_libdir}/bootdisk/boot/System.map-%{version}-%{release}BOOT
1444 %dir %{_libdir}/bootdisk/lib/modules/%{version}-%{release}BOOT
1445 %{_libdir}/bootdisk/lib/modules/%{version}-%{release}BOOT/kernel
1446 %{_libdir}/bootdisk/lib/modules/%{version}-%{release}BOOT/build
1447 %ghost %{_libdir}/bootdisk/lib/modules/%{version}-%{release}BOOT/modules.*
1448 %endif # %%{with BOOT}
1451 %defattr(644,root,root,755)
1452 %dir %{_prefix}/src/linux-%{version}
1453 %{_prefix}/src/linux-%{version}/include
1454 %{_prefix}/src/linux-%{version}/config-smp
1455 %{_prefix}/src/linux-%{version}/config-up
1458 %defattr(644,root,root,755)
1459 %{_prefix}/src/linux-%{version}/Makefile
1460 %dir %{_prefix}/src/linux-%{version}/arch
1461 %dir %{_prefix}/src/linux-%{version}/arch/*
1462 %{_prefix}/src/linux-%{version}/arch/*/Makefile*
1463 %dir %{_prefix}/src/linux-%{version}/arch/*/kernel
1464 %{_prefix}/src/linux-%{version}/arch/*/kernel/Makefile
1465 %{_prefix}/src/linux-%{version}/arch/*/kernel/asm-offsets.*
1466 %{_prefix}/src/linux-%{version}/arch/*/kernel/sigframe.h
1467 %dir %{_prefix}/src/linux-%{version}/scripts
1468 %{_prefix}/src/linux-%{version}/scripts/Makefile*
1469 %{_prefix}/src/linux-%{version}/scripts/basic
1470 %{_prefix}/src/linux-%{version}/scripts/*.c
1471 %{_prefix}/src/linux-%{version}/scripts/*.h
1472 %{_prefix}/src/linux-%{version}/scripts/*.sh
1475 %defattr(644,root,root,755)
1476 %{_prefix}/src/linux-%{version}/Documentation
1477 #%%{_prefix}/src/linux-%{version}/netfilter-patch-o-matic
1481 %defattr(644,root,root,755)
1482 %{_prefix}/src/linux-%{version}/arch/*/[!Mk]*
1483 %{_prefix}/src/linux-%{version}/arch/*/kernel/[!M]*
1484 %exclude %{_prefix}/src/linux-%{version}/arch/*/kernel/asm-offsets.*
1485 %exclude %{_prefix}/src/linux-%{version}/arch/*/kernel/sigframe.h
1486 %{_prefix}/src/linux-%{version}/cluster
1487 %{_prefix}/src/linux-%{version}/crypto
1488 %{_prefix}/src/linux-%{version}/drivers
1489 %{_prefix}/src/linux-%{version}/fs
1491 %{_prefix}/src/linux-%{version}/grsecurity
1493 %{_prefix}/src/linux-%{version}/init
1494 %{_prefix}/src/linux-%{version}/ipc
1495 %{_prefix}/src/linux-%{version}/kernel
1496 %{_prefix}/src/linux-%{version}/lib
1497 %{_prefix}/src/linux-%{version}/mm
1498 %{_prefix}/src/linux-%{version}/net
1499 %{_prefix}/src/linux-%{version}/scripts/*
1500 %exclude %{_prefix}/src/linux-%{version}/scripts/Makefile*
1501 %exclude %{_prefix}/src/linux-%{version}/scripts/basic
1502 %exclude %{_prefix}/src/linux-%{version}/scripts/*.c
1503 %exclude %{_prefix}/src/linux-%{version}/scripts/*.h
1504 %exclude %{_prefix}/src/linux-%{version}/scripts/*.sh
1505 %{_prefix}/src/linux-%{version}/sound
1506 %{_prefix}/src/linux-%{version}/security
1507 %{_prefix}/src/linux-%{version}/usr
1508 %{_prefix}/src/linux-%{version}/COPYING
1509 %{_prefix}/src/linux-%{version}/CREDITS
1510 %{_prefix}/src/linux-%{version}/MAINTAINERS
1511 %{_prefix}/src/linux-%{version}/README
1512 %{_prefix}/src/linux-%{version}/REPORTING-BUGS