2 # If you define the following as 1, only kernel, -headers and -source
3 # packages will be built
5 %bcond_without smp # don't build SMP kernel
6 %bcond_without up # don't build UP kernel
7 %bcond_without boot # don't build BOOT kernel
8 %bcond_without source # don't build source
9 %bcond_without doc # don't build documentation package
10 %bcond_without grsec # don't apply grsecurity patch
11 %bcond_without kheaders # build without support for glibc-kernel-headers
12 %bcond_with win4lin # apply the Win4lin patches
14 %define base_arch %(echo %{_target_cpu} | sed 's/i.86/i386/;s/athlon/i386/;s/amd64/x86_64/')
15 %define no_install_post_strip 1
16 %define no_install_post_compress_modules 1
18 %define pre_version %{nil}
19 %define netfilter_snap 20031121
20 %define i2c_version 2.8.0
21 Summary: The Linux kernel (the core of the Linux operating system)
22 Summary(de): Der Linux-Kernel (Kern des Linux-Betriebssystems)
23 Summary(es): Núcleo (Kernel) linux genérico
24 Summary(fr): Le Kernel-Linux (La partie centrale du systeme)
25 Summary(pl): J±dro Linuksa
26 Summary(pt_BR): Kernel Linux (a parte central do sistema operacional Linux)
32 Source0: ftp://ftp.kernel.org/pub/linux/kernel/v2.4/linux-%{version}.tar.bz2
33 # Source0-md5: 642af5ab5e1fc63685fde85e9ae601e4
34 Source1: %{name}-autoconf.h
35 Source2: %{name}-BuildASM.sh
36 Source3: http://www.garloff.de/kurt/linux/dc395/dc395-141.tar.gz
37 # Source3-md5: 8ed492197244b6a772270417c66214d3
38 Source7: http://www10.software.ibm.com/developer/opensource/jfs/project/pub/jfs-2.4-1.1.4.tar.gz
39 # Source7-md5: ea33c28ca1d3afa448b20f337b615b48
40 Source20: %{name}-ia32.config
41 Source21: %{name}-ia32-smp.config
42 Source50: %{name}-sparc.config
43 Source51: %{name}-sparc-smp.config
44 Source60: %{name}-sparc64.config
45 Source61: %{name}-sparc64-smp.config
46 Source70: %{name}-alpha.config
47 Source71: %{name}-alpha-smp.config
48 Source73: %{name}-ppc.config
49 Source74: %{name}-ppc-smp.config
50 Source1000: %{name}-addon.config
51 Source1001: %{name}-netfilter.config
52 Source1002: %{name}-grsec.config
53 Source2000: %{name}-win4lin.config
55 # Interesting URLs, patches:
56 # http://www.hardrock.org/kernel/current-updates/
58 # New features/updates/backports
62 Patch0: %{name}-pldfblogo.patch
64 # from ftp://ftp.kernel.org/pub/linux/kernel/people/hvr/testing/
65 Patch10: patch-cryptoloop-jari-2.4.22-rc2.0
66 # from ftp://ftp.xs4all.nl/pub/crypto/freeswan/freeswan-*
67 Patch12: linux-2.4.21-freeswan-2.00.patch.gz
68 Patch15: linux-2.4.23-sched-O1.patch
69 # http://dl.sourceforge.net/user-mode-linux/uml-patch-2.4.20-6.bz2
70 Patch20: uml-patch-2.4.20-6-21.bz2
71 Patch21: linux-2.4.21-uml-o1.patch
72 # http://dl.sourceforge.net/user-mode-linux/host-skas3.patch
73 Patch22: linux-2.4.20-uml-host-skas3.patch
74 # http://www.kernel.org/pub/linux/kernel/people/jgarzik/libata/ (NOT APPLIED YET)
75 Patch23: 2.4.23-libata1.patch.bz2
79 # http://linux-xfs.sgi.com/projects/xfs/
80 #Patch25: linux-2.4.21-core-xfs-1.3.0.patch.gz
81 #Patch26: linux-xfs-1.3.0pre5.patch.gz
82 Patch25: linux-2.4.23-xfs-2003-11-11.patch.gz
83 # http://acl.bestbits.at/
84 Patch31: linux-2.4.21-jfs-acl.patch
85 Patch32: linux-2.4.22-ea+acl+nfsacl-0.8.60.diff.gz
86 # http://dl.sourceforge.net/linux-ntfs/
87 Patch40: linux-2.4.23-ntfs-2.1.5a.patch.bz2
88 # FC01_davfs_0.2.4.patch
89 Patch50: linux-2.4.20-davfs-0.2.4.patch.bz2
90 # FC02_davfs__FUNCTION__.patch
91 Patch55: linux-2.4.20-davfs-_FUNCTION_.patch
92 Patch60: linux-2.4.22-data-loging+quota.patch
93 Patch61: linux-2.4.22-acl+xattr.patch
94 # http://dl.sourceforge.net/squashfs/squashfs-1.3.tar.gz
95 Patch65: squashfs1.3-2.4.21-patch
96 #from http://sci.felk.cvut.cz/nwd/linux/nwd-patch-2.4.19
97 Patch70: nwd-2.4.21.patch
98 Patch80: linux-2.4.22-intermezzo-acl.patch
102 # new version of netfilter.
103 Patch100: linux-2.4.23-netfilter-%{netfilter_snap}.patch.gz
104 Patch101: linux-2.4.23-netfilter-IMQ-target.patch
105 # http://ebtables.sourceforge.net/
106 Patch110: ebtables-brnf-3_vs_2.4.22.diff.gz
107 # http://trash.net/~kaber/imq/
108 Patch120: linux-2.4.21-imq-1.diff
109 # ftp://ftp.samba.org/pub/unpacked/ppp/linux/mppe/
110 Patch125: linux-2.4.18-mppe.patch
111 Patch130: linux-2.4.22-tun-new-style.patch
114 # Patches by Chas Williams <chas@locutus.cmf.nrl.navy.mil>
115 # Included in Chas patch:
116 # http://tulipe.cnam.fr/personne/lizzi/linux/linux-2.3.99-pre6-fore200e-0.2f.tar.gz
117 # http://christophe.lizzi.free.fr/linux/linux-2.4.0-test9-fore200e-0.3.tar.gz
118 # ftp://ftp.cmf.nrl.navy.mil/pub/chas/linux-atm/
119 Patch150: linux-2.4.21-atm_diffs.patch
120 Patch151: ftp://ftp.cmf.nrl.navy.mil/pub/chas/linux-atm/vbr/vbr-kernel-diffs
121 Patch152: linux-2.4.22-fore200e-0.2f.patch
123 # New devices/drivers
125 # http://people.sistina.com/~thornber/patches/2.4-stable/
126 Patch200: linux-2.4.23-dm-3.patch
128 # EVMS additional patches (http://www.sourceforge.net/projects/evms/)
129 Patch205: linux-2.4.22-evms-2.1.1.patch
131 #from http://dl.sourceforge.net/i810fb/linux-2.4.20-i810fb.diff.bz2
132 Patch210: linux-2.4.21-I810FB.patch.gz
134 # Support for CDRW packet writing
135 Patch215: %{name}-cdrw-packet.patch
136 Patch216: %{name}-cd-mrw-2.patch
137 Patch225: wrr-linux-2.4.9.patch
138 Patch226: linux-2.4.18-esfq.diff
139 # http://l7-filter.sourceforge.net/
140 Patch227: layer7-kernel2.4patch-v0.4.1a.patch.gz
142 Patch231: linux-2.4.21-aic7xxx-mmapio.patch
143 Patch235: linux-2.4.20-audigy.patch.bz2
144 Patch240: linux-2.4.20-ecc.patch
145 # i2c - version 2.8.0
146 Patch255: linux-2.4.22-i2c-%{i2c_version}.patch
147 Patch256: linux-2.4.21-i2c-headers.patch
148 Patch257: linux-2.4.21-i2c-sparc64.patch
149 Patch265: linux-2.4.20-e820.patch
151 Patch270: dc395-tab.patch
152 # http://www.qlogic.com/
153 Patch275: linux-2.4.20-qla2x00-v6.04.00-fo.patch.gz
155 # TV stuff from http://bytesex.org/
156 Patch301: 20_v4l2-2.4.23-pre7.diff.gz
157 Patch302: 30_bt832-2.4.23-pre7.diff
158 Patch303: 30_btaudio-2.4.23-pre7.diff
160 # The following go last as they touch a lot of code
161 # and/or are on bcond and/or are ifarch
164 Patch900: linux-2.4.20-Win4Lin.PLD.patch.bz2
165 Patch991: linux-2.4.20-Win4Lin-mki-adapter.patch.bz2
169 # jam - http://giga.cps.unizar.es/~magallon/linux/kernel/
170 Patch1000: jam-04-clone-detached.patch
171 Patch1002: jam-06-force-inline.patch
172 Patch1003: jam-07-scsi-error-tmout.patch
173 Patch1006: jam-10-highpage-init.patch
174 Patch1007: jam-11-self_exec_id.patch
175 Patch1008: jam-15-fast-csum-D.patch
176 Patch1009: jam-21-mem-barriers.patch
177 Patch1010: jam-30-smptimers-A0.patch
179 Patch1102: linux-2.4.20-lvm-updates.patch
181 # IrDA patch for broken IBM Latpops
182 Patch1104: linux-2.4.21-irda-ibm.patch
184 # fix lun probing on multilun RAID chassis
185 Patch1105: linux-2.4.12-scsi_scan.patch
186 Patch1106: linux-scsi-debug-bug.patch
188 # This patch allows to create more than one sound device using alsa
189 # and devfs with two or more sound cards
190 Patch1111: linux-sound_core.patch
192 # rivafb - fix for text background in 16bpp modes
193 Patch1150: linux-rivafb16.patch
194 Patch1152: linux-2.4.20-agp_uninorth.patch
196 Patch1201: linux-2.4.21-cpqfc.patch
197 Patch1203: linux-2.4.20-amd-golem.patch
198 Patch1205: linux-53c7,8xx-build.fix
199 Patch1207: linux-2.4.20-serverworks.patch
200 # this patch adds support for "io" and "irq" options in PCNet32 driver module
201 Patch1209: linux-2.4.19-pcnet-parms.patch
203 # disable some networking printk's
204 Patch1250: linux-2.4.1-netdebug.patch
205 Patch1251: linux-2.4.2-raw-ip.patch
206 Patch1252: linux-2.4.19-netmos_pci_parallel_n_serial.patch
207 Patch1253: linux-proc_net_dev-counter-fix.patch
208 Patch1254: kernel-2.4.17-netsyms-export-fix.patch
209 Patch1255: linux-2.4.20-pre1-nr_frags.patch
211 Patch1301: linux-2.4.18-hpfs.patch
212 Patch1302: linux-2.4.18-nfs-default-size.patch
213 Patch1303: linux-2.4.20-irixnfs.patch
215 Patch1304: linux-2.4.21-tru64nfs.patch
216 Patch1305: linux-2.4.21-nfs-silly-rename.patch
218 Patch1350: linux-2.4.21-nousb.patch
219 # from http://www.noc.uoa.gr/~avel/page.php?page=nokia&lang=en
220 Patch1354: linux-2.4.20-Nokia5510.patch
222 # raid5 xor fix for PIII/P4, should go away shortly
223 Patch1400: linux-2.4.0-raid5xor.patch
224 Patch1401: linux-2.4.0-nonintconfig.patch
225 # Add an ioctl to the block layer so we can be EFI compliant
226 Patch1402: linux-2.4.2-blkioctl-sector.patch
227 Patch1403: linux-2.4.3-pcipenalty.patch
228 Patch1404: linux-2.4.3-rawio.patch
229 Patch1405: linux-2.4.7-suspend.patch
230 Patch1407: kernel-Makefile-include-fix.patch
231 Patch1408: kernel-pswscancode.patch
232 Patch1410: linux-2.4.18-input-35215.patch
233 Patch1411: linux-2.4.18-kiobuf.patch
234 Patch1413: linux-2.4.22-andrea-9980_fix-pausing-6.patch
235 Patch1414: linux-2.4.21-oopsmeharder.patch
236 Patch1415: linux-mtd-missing-include-fix-2.4.7-pre6.patch
237 Patch1416: linux-2.4.21-no-FPU.patch
238 Patch1417: linux-2.4.22-ac4-ide+sata.patch
239 Patch1418: linux-2.4.21-hpt372-chicken-egg-hack.patch
240 Patch1419: linux-2.4.21-agp-num_of_masks.patch
241 # fix spare disk counting for raid 5
242 Patch1420: linux-raid5-spare-counting.patch
243 Patch1421: linux-2.4.21-bttv-typo.patch
244 Patch1422: linux-2.4.21-ipt_TRACE-typo.patch
246 Patch2000: linux-PPC-SMP.patch
247 Patch2001: linux-2.4-ppc-procesor.patch
248 Patch2002: kernel-2.4.18-SPARC64-PLD.patch
249 Patch2003: linux-2.4.20-AXP-avma1_cs.patch
250 Patch2004: linux-2.4.22-ppc-amd8111e.patch
252 Patch3000: linux-2.4.1-compilefailure.patch
253 Patch3002: linux-2.4.20-EXPORT_SYMBOL.patch
254 Patch3003: linux-2.4.20-missing-license-tags.patch
255 Patch3004: linux-2.4.20-sym53c8xx_old.patch
256 Patch3008: linux-drm-4.2.0-force-cmpxchg.patch
257 Patch3010: linux-2.4.21-ipsec-sparc64.patch
258 Patch3011: linux-2.4.22-gcc33-inline.patch
259 Patch3012: linux-2.4.22-gcc-ext3.patch
260 Patch3013: linux-2.4.23-ppc-symbols.patch
261 # Security patches/fixes
263 Patch4000: grsecurity-2.0-rc3-2.4.22-O1.patch
266 URL: http://www.kernel.org/
270 #BuildRequires: %{kgcc_package}
271 BuildRequires: modutils
274 PreReq: geninitrd >= 1354
275 Requires(post,postun): fileutils
276 Requires(postun): awk
277 Provides: %{name}-up = %{version}-%{release}
278 Provides: module-info
279 Provides: i2c = %{i2c_version}
280 Provides: bttv = 0.7.83
281 Provides: %{name}(netfilter) = 1.2.9-%{netfilter_snap}
282 Provides: %{name}(reiserfs) = %{version}
283 Provides: %{name}(agpgart) = %{version}
284 #Provides: %{name}(cdrw)
285 #Provides: %{name}(cdmrw)
287 Obsoletes: kernel-modules
288 Conflicts: iptables < 1.2.9
289 Conflicts: lvm < 1.0.4
290 Conflicts: xfsprogs < 2.1.0
291 Conflicts: reiserfsprogs < 3.6.3
292 Conflicts: e2fsprogs < 1.25
293 Conflicts: jfsutils < 1.0.12
294 Conflicts: util-linux < 2.10o
295 Conflicts: modutils < 2.4.2
296 Conflicts: quota < 3.06
297 Conflicts: linux-atm < 2.4.1
298 Conflicts: device-mapper < 1.00.05
299 ExclusiveArch: %{ix86} sparc sparc64 alpha ppc
300 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
303 This package contains the Linux kernel that is used to boot and run
304 your system. It contains few device drivers for specific hardware.
305 Most hardware is instead supported by modules loaded after booting.
308 Das Kernel-Paket enthält den Linux-Kernel (vmlinuz), den Kern des
309 Linux-Betriebssystems. Der Kernel ist für grundliegende
310 Systemfunktionen verantwortlich: Speicherreservierung,
311 Prozeß-Management, Geräte Ein- und Ausgaben, usw.
314 Este paquete contiene núcleo (kernel) Linux que se usa para arranque y
315 funcionamiento de tu sistema. Contiene soporte a pocos hardwares
316 específicos. La mayoría de los hardwares son soportados, vía módulos
317 que se cargan después del arranque.
320 Le package kernel contient le kernel linux (vmlinuz), la partie
321 centrale d'un système d'exploitation Linux. Le noyau traite les
322 fonctions basiques d'un système d'exploitation: allocation mémoire,
323 allocation de process, entrée/sortie de peripheriques, etc.
326 Pakiet zawiera j±dro Linuksa niezbêdne do prawid³owego dzia³ania
327 Twojego komputera. Zawiera w sobie sterowniki do sprzêtu znajduj±cego
328 siê w komputerze, takich jak karty muzyczne, sterowniki dysków, etc.
330 %description -l pt_BR
331 Este pacote contém o kernel Linux que é usado para inicialização
332 e funcionamento de seu sistema. Contém suporte a poucos hardwares
333 específicos. A maioria dos hardwares são suportados via módulos
334 que são carregados após a inicialização.
337 Summary: Kernel version %{version} compiled for SMP machines
338 Summary(de): Kernel version %{version} für Multiprozessor-Maschinen
339 Summary(es): Núcleo (kernel) compilado para máquinas SMP
340 Summary(fr): Kernel version %{version} compiler pour les machine Multi-Processeur
341 Summary(pl): J±dro Linuksa %{version} skompilowane dla maszyn wieloprocesorowych
342 Summary(pt_BR): Kernel compilado para máquinas SMP
345 PreReq: geninitrd >= 2.21
346 Requires(post,postun): fileutils
347 Requires(postun): awk
348 Provides: %{name}-smp = %{version}-%{release}
349 Provides: module-info
350 Provides: i2c = %{i2c_version}
351 Provides: bttv = 0.7.83
352 Provides: %{name}(netfilter) = 1.2.9-%{netfilter_snap}
353 Provides: %{name}(reiserfs) = %{version}
354 Provides: %{name}(agpgart) = %{version}
355 #Provides: %{name}(cdrw)
356 #Provides: %{name}(cdmrw)
358 Conflicts: iptables < 1.2.9
359 Conflicts: lvm < 1.0.4
360 Conflicts: xfsprogs < 2.1.0
361 Conflicts: reiserfsprogs < 3.6.3
362 Conflicts: e2fsprogs < 1.25
363 Conflicts: jfsutils < 1.0.12
364 Conflicts: util-linux < 2.10o
365 Conflicts: modutils < 2.4.2
366 Conflicts: quota < 3.06
367 Conflicts: linux-atm < 2.4.1
368 Conflicts: device-mapper < 1.00.05
371 This package includes a SMP version of the Linux %{version} kernel. It
372 is required only on machines with two or more CPUs, although it should
373 work fine on single-CPU boxes.
375 %description smp -l de
376 Dieses Paket enthält eine SMP (Multiprozessor)-Version von
377 Linux-Kernel %{version}. Es wird für Maschinen mit zwei oder mehr
378 Prozessoren gebraucht, sollte aber auch auf Computern mit nur einer
381 %description smp -l es
382 Núcleo (kernel) compilado para máquinas SMP
384 %description smp -l fr
385 Ce package inclu une version SMP du noyau de Linux version %{version}.
386 Il et nécessaire seulement pour les machine avec deux processeurs ou
387 plus, il peut quand même fonctionner pour les système mono-processeur.
389 %description smp -l pl
390 Pakiet zawiera j±dro SMP Linuksa w wersji %{version}. Jest ono
391 wymagane przez komputery zawieraj±ce dwa lub wiêcej procesorów.
392 Powinno równie¿ dobrze dzia³aæ na maszynach z jednym procesorem.
394 %description smp -l pt_BR
395 Este pacote inclui uma versão SMP do kernel Linux versão %{version}.
396 Ele deve ser utilizado apenas em máquinas com dois ou mais processadores,
397 apesar de trabalhar perfeitamente em máquinas com apenas um processador.
400 Summary: Kernel version %{version} used on the installation boot disks
401 Summary(de): Kernel version %{version} für Installationsdisketten
402 Summary(es): Núcleo (kernel) de Linux, utilizado en el disco de instalación
403 Summary(fr): Kernel version %{version} utiliser pour les disquettes d'installation
404 Summary(pl): J±dro Linuksa %{version} dla bootkietek instalacyjnych
405 Summary(pt_BR): Kernel Linux utilizado no disco de instalação
408 Requires(post,postun): fileutils
409 Requires(postun): awk
413 This package includes a trimmed down version of the Linux %{version}
414 kernel. This kernel is used on the installation boot disks only and
415 should not be used for an installed system, as many features in this
416 kernel are turned off because of the size constraints.
418 %description BOOT -l de
419 Dieses Paket enthält eine verkleinerte Version vom Linux-Kernel
420 version %{version}. Dieser Kernel wird auf den
421 Installations-Bootdisketten benutzt und sollte nicht auf einem
422 installierten System verwendet werden, da viele Funktionen wegen der
423 Platzprobleme abgeschaltet sind.
425 %description BOOT -l es
426 Núcleo (kernel) de Linux, utilizado en el disco de instalación
428 %description BOOT -l pl
429 Pakiet zawiera j±dro Linuksa dedykowane dyskietkom startowym i powinno
430 byæ u¿ywane jedynie podczas instalacji systemu. Wiele u¿ytecznych
431 opcji zosta³o wy³±czonych, aby jak najbardziej zmniejszyæ jego
434 %description BOOT -l pt_BR
435 Este pacote inclui uma versão minimizada do kernel Linux, criada para
436 ser utilizada *apenas* no disco de instalação, e não deve ser utilizada
437 em máquinas já instaladas, pois várias características do kernel
438 são desabilitadas para diminuir o tamanho final do kernel a ser utilizado.
441 Summary: PCMCIA modules
442 Summary(pl): Modu³y PCMCIA
444 PreReq: %{name}-up = %{version}-%{release}
445 Requires(postun): %{name}-up = %{version}-%{release}
446 Provides: kernel(pcmcia)
449 Kernel PCMCIA modules.
451 %description pcmcia -l pl
452 Modu³y PCMCIA z kernela.
455 Summary: PCMCIA modules for SMP kernel
456 Summary(pl): Modu³y PCMCIA dla maszyn SMP
458 PreReq: %{name}-smp = %{version}-%{release}
459 Requires(postun): %{name}-smp = %{version}-%{release}
460 Provides: kernel(pcmcia)
462 %description smp-pcmcia
463 Kernel PCMCIA modules for SMP kernel.
465 %description smp-pcmcia -l pl
466 Modu³y PCMCIA z kernela dla maszyn SMP.
469 Summary: DRM kernel modules
470 Summary(pl): Sterowniki DRM
472 PreReq: %{name}-up = %{version}-%{release}
473 Requires(postun): %{name}-up = %{version}-%{release}
474 Provides: %{name}-drm = %{drm_xfree_version}
477 DRM kernel modules (%{drm_xfree_version}).
479 %description drm -l pl
480 Sterowniki DRM (%{drm_xfree_version}).
483 Summary: DRM SMP kernel modules
484 Summary(pl): Sterowniki DRM dla maszyn wieloprocesorowych
486 PreReq: %{name}-smp = %{version}-%{release}
487 Requires(postun): %{name}-smp = %{version}-%{release}
488 Provides: %{name}-drm = %{drm_xfree_version}
491 DRM SMP kernel modules (%{drm_xfree_version}).
493 %description smp-drm -l pl
494 Sterowniki DRM dla maszyn wieloprocesorowych (%{drm_xfree_version}).
497 Summary: Header files for the Linux kernel
498 Summary(es): Archivos de inclusión para núcleo (kernel) Linux.
499 Summary(pl): Pliki nag³ówkowe j±dra
500 Summary(pt_BR): Arquivos de inclusão para o kernel Linux.
502 Requires(post,postun): fileutils
503 Requires(postun): awk
504 Provides: %{name}-headers(agpgart) = %{version}
505 Provides: %{name}-headers(reiserfs) = %{version}
506 Provides: %{name}-headers(bridging) = %{version}
507 Provides: i2c-devel = %{i2c_version}
508 Provides: %{name}-headers(netfilter) = 1.2.9-%{netfilter_snap}
512 These are the C header files for the Linux kernel, which define
513 structures and constants that are needed when building most standard
514 programs under Linux, as well as to rebuild the kernel.
516 %description headers -l es
517 Estos son los archivos de inclusión C para núcleo (kernel) Linux, que define
518 estructuras y constantes que son necesarias a la construcción de la
519 mayoría de los programas en el Linux, como también para reconstruir
522 %description headers -l pl
523 Pakiet zawiera pliki nag³ówkowe j±dra, niezbêdne do rekompilacji j±dra
524 oraz niektórych programów.
526 %description headers -l pt_BR
527 Estes são os arquivos de inclusão C para o kernel Linux, os
528 quais definem estruturas e constantes que são necessárias para
529 a construção da maioria dos programas no Linux, bem como para
530 reconstruir o próprio kernel.
533 Summary: Kernel source tree
534 Summary(es): Fuentes del núcleo (kernel) Linux
535 Summary(pl): Kod ¼ród³owy j±dra Linuksa
536 Summary(pt_BR): Fontes do kernel Linux
538 Requires: %{name}-headers = %{version}-%{release}
545 This is the source code for the Linux kernel. It is required to build
546 most C programs as they depend on constants defined in here. You can
547 also build a custom kernel that is better tuned to your particular
550 %description source -l de
551 Das Kernel-Source-Paket enthält den source code (C/Assembler-Code) des
552 Linux-Kernels. Die Source-Dateien werden gebraucht, um viele
553 C-Programme zu compilieren, da sie auf Konstanten zurückgreifen, die
554 im Kernel-Source definiert sind. Die Source-Dateien können auch
555 benutzt werden, um einen Kernel zu compilieren, der besser auf Ihre
556 Hardware ausgerichtet ist.
558 %description source -l es
559 Este es el fuente para el núcleo (kernel) Linux. Se necesita para la
560 construcción de la mayoría de los programas C, pues dependen de
561 constantes definidas en él. Tu puedes también construir un núcleo (kernel)
562 personalizado que será lo mejor configurado para tu hardware en
565 %description source -l fr
566 Le package pour le kernel-source contient le code source pour le noyau
567 linux. Ces sources sont nécessaires pour compiler la plupart des
568 programmes C, car il dépend de constantes définies dans le code
569 source. Les sources peuvent être aussi utilisée pour compiler un noyau
570 personnalisé pour avoir de meilleures performances sur des matériels
573 %description source -l pl
574 Pakiet zawiera kod ¼ród³owy j±dra systemu.
576 %description source -l pt_BR
577 Este é o fonte para o kernel Linux. É necessário para a
578 construção da maioria dos programas C, pois eles dependem de
579 constantes definidas nele. Você também pode construir um kernel
580 personalizado que será melhor configurado para seu hardware particular.
583 Summary: Kernel documentation
584 Summary(es): Documentación para los archivos fuente del núcleo (kernel) de Linux
585 Summary(pl): Dokumentacja do j±dra Linuksa
586 Summary(pt_BR): Documentação para os arquivos fontes do kernel Linux
588 Provides: %{name}-doc = %{version}
592 This is the documentation for the Linux kernel, as found in
593 /usr/src/linux/Documentation directory.
595 %description doc -l es
596 Documentación para los archivos fuente del núcleo (kernel) de Linux
598 %description doc -l pl
599 Pakiet zawiera dokumentacjê j±dra z katalogu
600 /usr/src/linux/Documentation.
602 %description doc -l pt_BR
603 Este pacote contém documentação para o kernel Linux.
606 %setup -q -a3 -n linux-%{version}
609 gzip -dc %{SOURCE7} | tar -xf -
617 #%patch23 -p1 NOT APPLIED, YET
621 # XXX: TODO - update patch
706 # XXX: is there updated one?
712 # XXX: no TRACE in netfilter included here (at this moment)
739 # XXX: finish update (one (not very important) issue with seq_file not resolved)
740 %{?with_grsec:%patch4000 -p1}
742 mv -f drivers/scsi/sym53c8xx.c drivers/scsi/sym53c8xx_old.c
744 # Tekram DC395/315 U/UW SCSI host driver
745 echo Adding Tekram DC395/315 driver
746 patch -p1 -s < dc395/dc395-integ24.diff
747 install dc395/dc395x_trm.? dc395/README.dc395x drivers/scsi/
750 # The following go last as they touch a lot of code
751 # and/or are on bcond and/or are ifarch
755 echo Win4Lin patch ...
761 # Remove -g from drivers/atm/Makefile and net/ipsec/Makefile
762 echo -e ',s/EXTRA_CFLAGS.*-g//g\n,w' | ed net/ipsec/Makefile
764 # Fix EXTRAVERSION and CC in main Makefile
765 echo -e ',s/EXTRAVERSION =.*/EXTRAVERSION =/g\n,w' | ed Makefile
767 echo -e ',s/CC.*$(CROSS_COMPILE)gcc/CC = sparc64-linux-gcc/g\n,w' | ed Makefile
773 # is this a special kernel we want to build?
776 [ "$1" = "BOOT" -o "$2" = "BOOT" ] && BOOT=yes
777 [ "$1" = "smp" -o "$2" = "smp" ] && smp=yes
779 if [ "$smp" = "yes" ]; then
785 if [ "$smp" = "yes" ]; then
786 Config="%{_target_cpu}-smp"
788 Config="%{_target_cpu}"
791 if [ "$BOOT" = "yes" ]; then
792 KernelVer=%{version}-%{release}BOOT
794 KernelVer=%{version}-%{release}$1
796 echo "BUILDING THE NORMAL KERNEL $*..."
797 :> arch/%{base_arch}/defconfig
798 cat $RPM_SOURCE_DIR/kernel-$Config.config >> arch/%{base_arch}/defconfig
800 echo "CONFIG_M386=y" >> arch/%{base_arch}/defconfig
803 echo "CONFIG_M586=y" >> arch/%{base_arch}/defconfig
806 echo "CONFIG_M686=y" >> arch/%{base_arch}/defconfig
809 echo "CONFIG_MK7=y" >> arch/%{base_arch}/defconfig
811 cat %{SOURCE1000} >> arch/%{base_arch}/defconfig
812 cat %{SOURCE1001} >> arch/%{base_arch}/defconfig
815 echo -e ',s/^CONFIG_FB_I810=.*/# CONFIG_FB_I810 is not set/g\n,w' | \
816 ed arch/%{base_arch}/defconfig
817 echo -e ',s/CONFIG_IPSEC_AUTH_HMAC_SHA1=y/# CONFIG_IPSEC_AUTH_HMAC_SHA1 is not set/g\n,w' | \
818 ed arch/%{base_arch}/defconfig
821 if [ "$BOOT" = "yes" ] ; then
822 echo "# CONFIG_GRKERNSEC is not set" >> arch/%{base_arch}/defconfig
826 echo -e ',s/CONFIG_CRYPTO_SHA256=m/CONFIG_CRYPTO_SHA256=y/g\n,w' | \
827 ed arch/%{base_arch}/defconfig
828 cat %{SOURCE1002} >> arch/%{base_arch}/defconfig
832 cat %{SOURCE2000} >> arch/%{base_arch}/defconfig
836 echo -e ',s/# CONFIG_MATH_EMULATION is not set/CONFIG_MATH_EMULATION=y/g\n,w' | \
837 ed arch/%{base_arch}/defconfig
841 ln -sf arch/%{base_arch}/defconfig .config
844 sparc32 %{__make} oldconfig
845 sparc32 %{__make} dep clean
850 %{__make} include/linux/version.h
852 # making table for soundmodem.
853 cd drivers/net/hamradio/soundmodem
854 %{__cc} -o gentbl -lm gentbl.c
862 sparc32 %{__make} boot
869 sparc32 %{__make} modules
874 mkdir -p $KERNEL_INSTALL_DIR/boot
875 install System.map $KERNEL_INSTALL_DIR/boot/System.map-$KernelVer
877 cp arch/i386/boot/bzImage $KERNEL_INSTALL_DIR/boot/vmlinuz-$KernelVer
879 %ifarch alpha sparc sparc64
880 gzip -cfv vmlinux > vmlinuz
881 install vmlinux $KERNEL_INSTALL_DIR/boot/vmlinux-$KernelVer
882 install vmlinuz $KERNEL_INSTALL_DIR/boot/vmlinuz-$KernelVer
885 install vmlinux $KERNEL_INSTALL_DIR/boot/vmlinux-$KernelVer
886 install vmlinux $KERNEL_INSTALL_DIR/boot/vmlinuz-$KernelVer
889 sparc32 %{__make} modules_install \
890 INSTALL_MOD_PATH=$KERNEL_INSTALL_DIR \
891 KERNELRELEASE=$KernelVer
892 echo KERNEL RELEASE $KernelVer
894 %{__make} modules_install \
895 INSTALL_MOD_PATH=$KERNEL_INSTALL_DIR \
896 KERNELRELEASE=$KernelVer
897 echo KERNEL RELEASE $KernelVer
901 KERNEL_BUILD_DIR=`pwd`
902 KERNEL_INSTALL_DIR=$KERNEL_BUILD_DIR-installed
903 rm -rf $KERNEL_INSTALL_DIR
904 install -d $KERNEL_INSTALL_DIR
906 # make drivers/scsi/ missing files
907 # (cd drivers/scsi; make -f M)
910 %{?with_up:BuildKernel}
913 %{?with_smp:BuildKernel smp}
915 %if ! %{with up} && ! %{with smp}
916 # We need include/asm created somewhere
921 %ifnarch i586 i686 athlon
922 KERNEL_INSTALL_DIR="$KERNEL_BUILD_DIR-installed%{_libdir}/bootdisk"
923 rm -rf $KERNEL_INSTALL_DIR
924 %{?with_boot:BuildKernel BOOT}
928 rm -rf $RPM_BUILD_ROOT
931 install -d $RPM_BUILD_ROOT%{_prefix}/{include,src/linux-%{version}}
933 KERNEL_BUILD_DIR=`pwd`
935 KERNEL_BUILD_INSTALL=no
936 %{?with_up:KERNEL_BUILD_INSTALL=yes}
937 %{?with_smp:KERNEL_BUILD_INSTALL=yes}
938 [ "$KERNEL_BUILD_INSTALL" = "yes" ] && cp -a $KERNEL_BUILD_DIR-installed/* $RPM_BUILD_ROOT
941 if [ -e $RPM_BUILD_ROOT/lib/modules/%{version}-%{release}$i ] ; then
942 rm -f $RPM_BUILD_ROOT/lib/modules/%{version}-%{release}$i/build
943 ln -sf %{_prefix}/src/linux-%{version} \
944 $RPM_BUILD_ROOT/lib/modules/%{version}-%{release}$i/build
947 ln -sf ../src/linux/include/linux $RPM_BUILD_ROOT%{_includedir}/linux
948 ln -sf linux-%{version} $RPM_BUILD_ROOT%{_prefix}/src/linux
950 %ifarch sparc sparc64
951 ln -s /usr/src/linux/include/asm-sparc $RPM_BUILD_ROOT%{_includedir}/asm-sparc
952 ln -s ../src/linux/include/asm-sparc64 $RPM_BUILD_ROOT%{_includedir}/asm-sparc64
954 ln -sf ../src/linux/include/asm $RPM_BUILD_ROOT/usr/include/asm
958 cp -a . $RPM_BUILD_ROOT/usr/src/linux-%{version}
960 cp -a {include,scripts,Makefile,Rules.make,Documentation} $RPM_BUILD_ROOT/usr/src/linux-%{version}
963 %ifarch sparc sparc64
964 sh %{SOURCE2} $RPM_BUILD_ROOT%{_includedir}
965 cp -a %{SOURCE2} $RPM_BUILD_ROOT%{_includedir}/asm/BuildASM
968 cd $RPM_BUILD_ROOT%{_prefix}/src/linux-%{version}
970 # remove foreign architecture files
973 mv asm-generic _asm_keep
974 %ifarch sparc sparc64
975 mv asm-sparc* _asm_keep
977 mv `resolvesymlink asm` _asm_keep
989 %ifarch sparc sparc64
990 MYARCH="sparc sparc64"
1002 find -name "*~" -print | xargs rm -f
1003 find -name "*.orig" -print | xargs rm -f
1006 cat $RPM_SOURCE_DIR/kernel-ia32.config > .config
1008 install $RPM_SOURCE_DIR/kernel-%{_target_cpu}.config .config
1012 echo "CONFIG_M386=y" >> .config
1015 echo "CONFIG_M586=y" >> .config
1018 echo "CONFIG_M686=y" >> .config
1021 echo "CONFIG_MK7=y" >> .config
1023 cat %{SOURCE1000} >> .config
1024 cat %{SOURCE1001} >> .config
1025 %{?with_grsec:cat %{SOURCE1002} >> .config}
1028 echo -e ',s/^CONFIG_FB_I810=.*/# CONFIG_FB_I810 is not set/g\n,w' | \
1030 echo -e ',s/CONFIG_IPSEC_AUTH_HMAC_SHA1=y/# CONFIG_IPSEC_AUTH_HMAC_SHA1 is not set/g\n,w' | \
1035 cat %{SOURCE2000} >> .config
1039 sparc32 %{__make} oldconfig
1044 mv include/linux/autoconf.h include/linux/autoconf-up.h
1045 cp .config config-up
1048 cat $RPM_SOURCE_DIR/kernel-ia32-smp.config >> .config
1050 install $RPM_SOURCE_DIR/kernel-%{_target_cpu}-smp.config .config
1054 echo "CONFIG_M386=y" >> .config
1057 echo "CONFIG_M586=y" >> .config
1060 echo "CONFIG_M686=y" >> .config
1063 echo "CONFIG_MK7=y" >> .config
1066 cat %{SOURCE1000} >> .config
1067 cat %{SOURCE1001} >> .config
1068 %{?with_grsec:cat %{SOURCE1002} >> .config}
1071 echo -e ',s/^CONFIG_FB_I810=.*/# CONFIG_FB_I810 is not set/g\n,w' | \
1073 echo -e ',s/CONFIG_IPSEC_AUTH_HMAC_SHA1=y/# CONFIG_IPSEC_AUTH_HMAC_SHA1 is not set/g\n,w' | \
1078 cat %{SOURCE2000} >> .config
1082 sparc32 %{__make} oldconfig
1086 mv include/linux/autoconf.h include/linux/autoconf-smp.h
1087 cp .config config-smp
1090 install %{SOURCE1} $RPM_BUILD_ROOT/usr/src/linux-%{version}/include/linux/autoconf.h
1093 # this generates modversions info which we want to include and we may as
1094 # well include the depends stuff as well
1096 %{__make} include/linux/version.h
1097 #%{__make} "`pwd`/include/linux/modversions.h"
1099 rm -f include/linux/modversions.h
1100 echo "#include <linux/modsetver.h>" > include/linux/modversions.h
1103 # this generates modversions info which we want to include and we may as
1104 # well include the depends stuff as well, after we fix the paths
1108 find $RPM_BUILD_ROOT/usr/src/linux-%{version} -name ".*depend" \
1109 -exec /bin/sh -c "echo -e \",s|$RPM_BUILD_ROOT||g\n,w\" | ed {}" \;
1113 rm -f drivers/net/hamradio/soundmodem/gentbl
1118 %ifnarch i586 i686 athlon
1119 install -d $RPM_BUILD_ROOT%{_libdir}/bootdisk
1120 cp -rdp $KERNEL_BUILD_DIR-installed%{_libdir}/bootdisk/* $RPM_BUILD_ROOT%{_libdir}/bootdisk
1125 rm -rf $RPM_BUILD_ROOT
1126 rm -rf $RPM_BUILD_DIR/linux-%{version}-installed
1129 mv -f /boot/vmlinuz /boot/vmlinuz.old 2> /dev/null > /dev/null
1130 mv -f /boot/System.map /boot/System.map.old 2> /dev/null > /dev/null
1131 ln -sf vmlinuz-%{version}-%{release} /boot/vmlinuz
1132 ln -sf System.map-%{version}-%{release} /boot/System.map
1134 if [ ! -L /lib/modules/%{version} ] ; then
1135 mv -f /lib/modules/%{version} /lib/modules/%{version}.rpmsave > /dev/null 2>&1
1137 rm -f /lib/modules/%{version}
1138 ln -snf %{version}-%{release} /lib/modules/%{version}
1139 /sbin/depmod -a -F /boot/System.map-%{version}-%{release} %{version}-%{release}
1141 /sbin/geninitrd -f --initrdfs=rom /boot/initrd-%{version}-%{release}.gz %{version}-%{release}
1142 mv -f /boot/initrd /boot/initrd.old
1143 ln -sf initrd-%{version}-%{release}.gz /boot/initrd
1145 if [ -f %{_prefix}/src/linux-%{version}/config-up ] ; then
1146 ln -s %{_prefix}/src/linux-%{version}/config-up %{_prefix}/src/linux-%{version}/.config
1149 if [ -x /sbin/rc-boot ] ; then
1150 /sbin/rc-boot 1>&2 || :
1154 mv -f /boot/vmlinuz /boot/vmlinuz.old 2> /dev/null > /dev/null
1155 mv -f /boot/System.map /boot/System.map.old 2> /dev/null > /dev/null
1156 ln -sf vmlinuz-%{version}-%{release}smp /boot/vmlinuz
1157 ln -sf System.map-%{version}-%{release}smp /boot/System.map
1159 if [ ! -L /lib/modules/%{version} ] ; then
1160 mv -f /lib/modules/%{version} /lib/modules/%{version}.rpmsave > /dev/null 2>&1
1162 rm -f /lib/modules/%{version}
1163 ln -snf %{version}-%{release}smp /lib/modules/%{version}
1164 /sbin/depmod -a -F /boot/System.map-%{version}-%{release}smp %{version}-%{release}smp
1166 /sbin/geninitrd -f --initrdfs=rom /boot/initrd-%{version}-%{release}smp.gz %{version}-%{release}smp
1167 mv -f /boot/initrd /boot/initrd.old
1168 ln -sf initrd-%{version}-%{release}smp.gz /boot/initrd
1170 if [ -f %{_prefix}/src/linux-%{version}/config-smp ] ; then
1171 ln -s %{_prefix}/src/linux-%{version}/config-smp %{_prefix}/src/linux-%{version}/.config
1174 if [ -x /sbin/rc-boot ] ; then
1175 /sbin/rc-boot 1>&2 || :
1179 if [ ! -L %{_libdir}/bootdisk/lib/modules/%{version} ] ; then
1180 mv -f %{_libdir}/bootdisk/lib/modules/%{version} %{_libdir}/bootdisk/lib/modules/%{version}.rpmsave
1182 if [ ! -L %{_libdir}/bootdisk/boot/vmlinuz-%{version} ] ; then
1183 mv -f %{_libdir}/bootdisk/boot/vmlinuz-%{version} %{_libdir}/bootdisk/boot/vmlinuz-%{version}.rpmsave
1185 rm -f %{_libdir}/bootdisk/lib/modules/%{version}
1186 ln -snf %{version}-%{release}BOOT %{_libdir}/bootdisk/lib/modules/%{version}
1187 rm -f %{_libdir}/bootdisk/boot/vmlinuz-%{version}
1188 ln -snf vmlinuz-%{version}-%{release}BOOT %{_libdir}/bootdisk/boot/vmlinuz-%{version}
1191 if [ -L /lib/modules/%{version} ]; then
1192 if [ "`ls -l /lib/modules/%{version} | awk '{ print $11 }'`" = "%{version}-%{release}" ]; then
1193 if [ "$1" = "0" ]; then
1194 rm -f /lib/modules/%{version}
1198 rm -f /boot/initrd-%{version}-%{release}.gz
1201 /sbin/depmod -a -F /boot/System.map-%{version}-%{release} %{version}-%{release}
1204 /sbin/depmod -a -F /boot/System.map-%{version}-%{release} %{version}-%{release} > /dev/null 2>&1
1207 /sbin/depmod -a -F /boot/System.map-%{version}-%{release} %{version}-%{release}
1210 /sbin/depmod -a -F /boot/System.map-%{version}-%{release} %{version}-%{release} > /dev/null 2>&1
1213 if [ -L /lib/modules/%{version} ]; then
1214 if [ "`ls -l /lib/modules/%{version} | awk '{ print $11 }'`" = "%{version}-%{release}smp" ]; then
1215 if [ "$1" = "0" ]; then
1216 rm -f /lib/modules/%{version}
1220 rm -f /boot/initrd-%{version}-%{release}smp.gz
1223 /sbin/depmod -a -F /boot/System.map-%{version}-%{release}smp %{version}-%{release}smp
1226 /sbin/depmod -a -F /boot/System.map-%{version}-%{release}smp %{version}-%{release}smp > /dev/null 2>&1
1229 /sbin/depmod -a -F /boot/System.map-%{version}-%{release}smp %{version}-%{release}smp
1232 /sbin/depmod -a -F /boot/System.map-%{version}-%{release}smp %{version}-%{release}smp > /dev/null 2>&1
1235 if [ -L %{_libdir}/bootdisk/lib/modules/%{version} ]; then
1236 if [ "`ls -l %{_libdir}/bootdisk/lib/modules/%{version} | awk '{ print $11 }'`" = "%{version}-%{release}BOOT" ]; then
1237 if [ "$1" = "0" ]; then
1238 rm -f %{_libdir}/bootdisk/lib/modules/%{version}
1244 rm -f /usr/src/linux
1245 ln -snf linux-%{version} /usr/src/linux
1248 if [ -L /usr/src/linux ]; then
1249 if [ "`ls -l /usr/src/linux | awk '{ print $11 }'`" = "linux-%{version}" ]; then
1250 if [ "$1" = "0" ]; then
1251 rm -f /usr/src/linux
1258 %defattr(644,root,root,755)
1259 %ifarch alpha sparc sparc64 ppc
1260 /boot/vmlinux-%{version}-%{release}
1262 /boot/vmlinuz-%{version}-%{release}
1263 /boot/System.map-%{version}-%{release}
1264 %dir /lib/modules/%{version}-%{release}
1265 /lib/modules/%{version}-%{release}/kernel
1266 %ifnarch sparc sparc64
1267 %exclude /lib/modules/%{version}-%{release}/kernel/drivers/pcmcia
1268 %exclude /lib/modules/%{version}-%{release}/kernel/drivers/ide/legacy/*-cs.o*
1269 %exclude /lib/modules/%{version}-%{release}/kernel/drivers/mtd/maps/pcmcia*
1270 %exclude /lib/modules/%{version}-%{release}/kernel/drivers/net/pcmcia
1271 %exclude /lib/modules/%{version}-%{release}/kernel/drivers/scsi/pcmcia
1272 %exclude /lib/modules/%{version}-%{release}/kernel/drivers/char/pcmcia
1273 %exclude /lib/modules/%{version}-%{release}/kernel/drivers/net/wireless/*_cs.o*
1274 %exclude /lib/modules/%{version}-%{release}/kernel/drivers/parport/*_cs.o*
1275 %exclude /lib/modules/%{version}-%{release}/kernel/drivers/bluetooth/*_cs.o*
1277 %ifnarch ppc sparc sparc64
1278 %exclude /lib/modules/%{version}-%{release}/kernel/drivers/isdn/hisax/*_cs.o*
1280 %exclude /lib/modules/%{version}-%{release}/kernel/drivers/isdn/avmb1/avm_cs.o*
1281 %exclude /lib/modules/%{version}-%{release}/kernel/drivers/telephony/*_pcmcia.o*
1285 %exclude /lib/modules/%{version}-%{release}/kernel/drivers/char/drm
1287 /lib/modules/%{version}-%{release}/build
1288 %ghost /lib/modules/%{version}-%{release}/modules.*
1290 %ifnarch sparc sparc64
1292 %defattr(644,root,root,755)
1293 /lib/modules/%{version}-%{release}/kernel/drivers/pcmcia
1294 /lib/modules/%{version}-%{release}/kernel/drivers/ide/legacy/*-cs.o*
1295 /lib/modules/%{version}-%{release}/kernel/drivers/mtd/maps/pcmcia*
1296 /lib/modules/%{version}-%{release}/kernel/drivers/net/pcmcia
1297 /lib/modules/%{version}-%{release}/kernel/drivers/scsi/pcmcia
1298 /lib/modules/%{version}-%{release}/kernel/drivers/char/pcmcia
1299 /lib/modules/%{version}-%{release}/kernel/drivers/net/wireless/*_cs.o*
1300 /lib/modules/%{version}-%{release}/kernel/drivers/parport/*_cs.o*
1301 /lib/modules/%{version}-%{release}/kernel/drivers/bluetooth/*_cs.o*
1303 /lib/modules/%{version}-%{release}/kernel/drivers/isdn/hisax/*_cs.o*
1305 /lib/modules/%{version}-%{release}/kernel/drivers/isdn/avmb1/avm_cs.o*
1306 /lib/modules/%{version}-%{release}/kernel/drivers/telephony/*_pcmcia.o*
1313 %defattr(644,root,root,755)
1314 /lib/modules/%{version}-%{release}/kernel/drivers/char/drm
1315 %endif # %%{with up}
1320 %defattr(644,root,root,755)
1321 %ifarch alpha sparc sparc64 ppc
1322 /boot/vmlinux-%{version}-%{release}smp
1324 /boot/vmlinuz-%{version}-%{release}smp
1325 /boot/System.map-%{version}-%{release}smp
1326 %dir /lib/modules/%{version}-%{release}smp
1327 /lib/modules/%{version}-%{release}smp/kernel
1328 %ifnarch sparc sparc64
1329 %exclude /lib/modules/%{version}-%{release}smp/kernel/drivers/pcmcia
1330 %exclude /lib/modules/%{version}-%{release}smp/kernel/drivers/ide/legacy/*-cs.o*
1331 %exclude /lib/modules/%{version}-%{release}smp/kernel/drivers/mtd/maps/pcmcia*
1332 %exclude /lib/modules/%{version}-%{release}smp/kernel/drivers/net/pcmcia
1333 %exclude /lib/modules/%{version}-%{release}smp/kernel/drivers/scsi/pcmcia
1334 %exclude /lib/modules/%{version}-%{release}smp/kernel/drivers/char/pcmcia
1335 %exclude /lib/modules/%{version}-%{release}smp/kernel/drivers/net/wireless/*_cs.o*
1336 %exclude /lib/modules/%{version}-%{release}smp/kernel/drivers/parport/*_cs.o*
1337 %exclude /lib/modules/%{version}-%{release}smp/kernel/drivers/bluetooth/*_cs.o*
1339 %ifnarch ppc sparc sparc64
1340 %exclude /lib/modules/%{version}-%{release}smp/kernel/drivers/isdn/hisax/*_cs.o*
1342 %exclude /lib/modules/%{version}-%{release}smp/kernel/drivers/isdn/avmb1/avm_cs.o*
1343 %exclude /lib/modules/%{version}-%{release}smp/kernel/drivers/telephony/*_pcmcia.o*
1347 %exclude /lib/modules/%{version}-%{release}smp/kernel/drivers/char/drm
1349 /lib/modules/%{version}-%{release}smp/build
1350 %ghost /lib/modules/%{version}-%{release}smp/modules.*
1352 %ifnarch sparc sparc64
1353 %files -n kernel-smp-pcmcia
1354 %defattr(644,root,root,755)
1355 /lib/modules/%{version}-%{release}smp/kernel/drivers/pcmcia
1356 /lib/modules/%{version}-%{release}smp/kernel/drivers/ide/legacy/*-cs.o*
1357 /lib/modules/%{version}-%{release}smp/kernel/drivers/mtd/maps/pcmcia*
1358 /lib/modules/%{version}-%{release}smp/kernel/drivers/net/pcmcia
1359 /lib/modules/%{version}-%{release}smp/kernel/drivers/scsi/pcmcia
1360 /lib/modules/%{version}-%{release}smp/kernel/drivers/char/pcmcia
1361 /lib/modules/%{version}-%{release}smp/kernel/drivers/net/wireless/*_cs.o*
1362 /lib/modules/%{version}-%{release}smp/kernel/drivers/parport/*_cs.o*
1363 /lib/modules/%{version}-%{release}smp/kernel/drivers/bluetooth/dtl1_cs.o*
1365 /lib/modules/%{version}-%{release}smp/kernel/drivers/isdn/hisax/*_cs.o*
1367 /lib/modules/%{version}-%{release}smp/kernel/drivers/isdn/avmb1/avm_cs.o*
1368 /lib/modules/%{version}-%{release}smp/kernel/drivers/telephony/*_pcmcia.o*
1374 %files -n kernel-smp-drm
1375 %defattr(644,root,root,755)
1376 /lib/modules/%{version}-%{release}smp/kernel/drivers/char/drm
1377 %endif # %%{with smp}
1381 %ifnarch i586 i686 athlon # narch
1383 %defattr(644,root,root,755)
1384 %ifarch alpha sparc sparc64 ppc # arch
1385 %{_libdir}/bootdisk/boot/vmlinux-%{version}-%{release}BOOT
1387 %{_libdir}/bootdisk/boot/vmlinuz-%{version}-%{release}BOOT
1388 %{_libdir}/bootdisk/boot/System.map-%{version}-%{release}BOOT
1389 %dir %{_libdir}/bootdisk/lib/modules/%{version}-%{release}BOOT
1390 %{_libdir}/bootdisk/lib/modules/%{version}-%{release}BOOT/kernel
1391 %{_libdir}/bootdisk/lib/modules/%{version}-%{release}BOOT/build
1392 %ghost %{_libdir}/bootdisk/lib/modules/%{version}-%{release}BOOT/modules.*
1394 %endif # %%{with boot}
1397 %defattr(644,root,root,755)
1398 %dir %{_prefix}/src/linux-%{version}
1399 %{_prefix}/src/linux-%{version}/include
1400 %{!?with_kheaders:%{_includedir}/asm}
1401 %{!?with_kheaders:%{_includedir}/linux}
1405 %defattr(644,root,root,755)
1406 %{_prefix}/src/linux-%{version}/Documentation
1411 %defattr(644,root,root,755)
1412 %{_prefix}/src/linux-%{version}/arch
1413 %{_prefix}/src/linux-%{version}/crypto
1414 %{_prefix}/src/linux-%{version}/drivers
1415 %{_prefix}/src/linux-%{version}/fs
1416 %{_prefix}/src/linux-%{version}/init
1417 %{?with_grsec:%{_prefix}/src/linux-%{version}/grsecurity}
1418 %{_prefix}/src/linux-%{version}/ipc
1419 #%{_prefix}/src/linux-%{version}/kdb
1420 %{_prefix}/src/linux-%{version}/kernel
1421 %{_prefix}/src/linux-%{version}/lib
1422 %{_prefix}/src/linux-%{version}/mm
1423 %{_prefix}/src/linux-%{version}/net
1424 %{_prefix}/src/linux-%{version}/scripts
1425 %{_prefix}/src/linux-%{version}/.config
1426 %{_prefix}/src/linux-%{version}/.depend
1427 %{_prefix}/src/linux-%{version}/.hdepend
1428 %{_prefix}/src/linux-%{version}/COPYING
1429 %{_prefix}/src/linux-%{version}/CREDITS
1430 %{_prefix}/src/linux-%{version}/MAINTAINERS
1431 %{_prefix}/src/linux-%{version}/Makefile
1432 %{_prefix}/src/linux-%{version}/README
1433 %{_prefix}/src/linux-%{version}/REPORTING-BUGS
1434 %{_prefix}/src/linux-%{version}/Rules.make
1435 %{_prefix}/src/linux-%{version}/config*