2 # If you define the following as 1, only kernel, -headers and -source
3 # packages will be built
5 # _without_smp - don't build SMP kernel
6 # _without_up - don't build UP kernel
7 # _without_boot - don't build BOOT kernel
8 # _without_source - don't build source
9 # _without_doc - don't build documentation package
10 # _without_grsec - don't apply grsecurity patch
11 # _without_kheaders - build without support for glibc-kernel-headers
13 %define base_arch %(echo %{_target_cpu} | sed 's/i.86/i386/;s/athlon/i386/')
14 %define no_install_post_strip 1
15 %define no_install_post_compress_modules 1
17 %define pre_version rc6
18 %define drm_xfree_version 4.3.0
19 %define netfilter_snap 20031009
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: 75dc85149b06ac9432106b8941eb9f7b
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 Source4: linux-2.4.22-netfilter-%{netfilter_snap}.tar.gz
39 # Source4-md5: 20c49be2eaf88622f52cb985989ac1d7
40 Source5: linux-2.4.19-netfilter-IMQ.patch.tar.bz2
41 # Source5-md5: b8f2f7a268a5cb75fabcaec3b5d45fcd
42 Source7: http://www10.software.ibm.com/developer/opensource/jfs/project/pub/jfs-2.4-1.1.2.tar.gz
43 # Source7-md5: 2473f345c66683a03ad27ff132d405b7
44 Source8: http://www.xfree86.org/~alanh/linux-drm-%{drm_xfree_version}-kernelsource.tar.gz
45 # Source8-md5: 34515784c7b67f6cc9169aa9eed982c7
46 Source10: linux-2.4.20-aacraid.tar.bz2
47 # Source10-md5: 3da1f4b229685766cb4f2f5ce242c0d2
48 Source20: %{name}-ia32.config
49 Source21: %{name}-ia32-smp.config
50 Source50: %{name}-sparc.config
51 Source51: %{name}-sparc-smp.config
52 Source60: %{name}-sparc64.config
53 Source61: %{name}-sparc64-smp.config
54 Source70: %{name}-alpha.config
55 Source71: %{name}-alpha-smp.config
56 Source73: %{name}-ppc.config
57 Source74: %{name}-ppc-smp.config
58 Source1000: %{name}-addon.config
59 Source1001: %{name}-netfilter.config
60 Source1002: %{name}-grsec.config
61 Source2000: %{name}-win4lin.config
63 # New features/updates/backports
67 Patch0: %{name}-pldfblogo.patch
68 # from ftp://ftp.kernel.org/pub/linux/kernel/people/hvr/testing/
69 Patch10: patch-cryptoloop-jari-2.4.22-rc2.0
70 # from ftp://ftp.xs4all.nl/pub/crypto/freeswan/freeswan-*
71 Patch12: linux-2.4.21-freeswan-2.00.patch.gz
72 Patch15: linux-2.4.21-sched-O1.patch
73 # http://dl.sourceforge.net/user-mode-linux/uml-patch-2.4.20-6.bz2
74 Patch20: uml-patch-2.4.20-6-21.bz2
75 Patch21: linux-2.4.21-uml-o1.patch
76 # http://dl.sourceforge.net/user-mode-linux/host-skas3.patch
77 Patch22: linux-2.4.20-uml-host-skas3.patch
78 Patch23: linux-bigger-printk-buffer.patch
82 # http://linux-xfs.sgi.com/projects/xfs/
83 #Patch25: linux-2.4.21-core-xfs-1.3.0.patch.gz
84 #Patch26: linux-xfs-1.3.0pre5.patch.gz
85 Patch25: linux-2.4.22-xfs-2003-09-03.patch.gz
86 # http://acl.bestbits.at/
87 Patch30: linux-2.4.21-jfs-xattr.patch
88 Patch31: linux-2.4.21-jfs-acl.patch
89 Patch32: linux-2.4.22-ea+acl+nfsacl-0.8.60.diff.gz
90 # http://dl.sourceforge.net/linux-ntfs/
91 Patch40: linux-2.4.22-ntfs-2.1.4c.patch.gz
92 # FC01_davfs_0.2.4.patch
93 Patch50: linux-2.4.20-davfs-0.2.4.patch.bz2
94 # FC02_davfs__FUNCTION__.patch
95 Patch55: linux-2.4.20-davfs-_FUNCTION_.patch
96 Patch60: linux-2.4.22-data-loging+quota.patch
97 Patch61: linux-2.4.22-acl+xattr.patch
98 # http://dl.sourceforge.net/squashfs/squashfs-1.3.tar.gz
99 Patch65: squashfs1.3-2.4.21-patch
100 #from http://sci.felk.cvut.cz/nwd/linux/nwd-patch-2.4.19
101 Patch70: nwd-2.4.21.patch
102 Patch80: linux-2.4.22-intermezzo-acl.patch
106 # new version of netfilter.
107 Patch100: linux-2.4.22-netfilter-%{netfilter_snap}.patch.gz
108 # http://ebtables.sourceforge.net/
109 Patch110: ebtables-brnf-2_vs_2.4.22.diff.gz
110 # http://www.linuxvirtualserver.org/software/kernel-2.4/linux-2.4.18-ipvs-%{ipvs_version}.patch.gz
111 Patch115: linux-2.4.22-ipvs-1.0.9.patch.gz
112 # http://trash.net/~kaber/imq/
113 Patch120: imq-2.4.18.diff-10
114 # ftp://ftp.samba.org/pub/unpacked/ppp/linux/mppe/
115 Patch125: linux-2.4.18-mppe.patch
116 Patch130: linux-2.4.22-tun-new-style.patch
117 # ftp://ftp.pm.waw.pl/pub/Linux/hdlc/hdlc-2.4.21-1.14a.patch
118 Patch132: hdlc-2.4.21-1.14a.patch
121 # Patches by Chas Williams <chas@locutus.cmf.nrl.navy.mil>
122 # Included in Chas patch:
123 # http://tulipe.cnam.fr/personne/lizzi/linux/linux-2.3.99-pre6-fore200e-0.2f.tar.gz
124 # http://christophe.lizzi.free.fr/linux/linux-2.4.0-test9-fore200e-0.3.tar.gz
125 # ftp://ftp.cmf.nrl.navy.mil/pub/chas/linux-atm/
126 Patch150: linux-2.4.21-atm_diffs.patch
127 Patch151: ftp://ftp.cmf.nrl.navy.mil/pub/chas/linux-atm/vbr/vbr-kernel-diffs
128 Patch152: linux-2.4.22-fore200e-0.2f.patch
130 # New devices/drivers
132 # http://people.sistina.com/~thornber/patches/2.4-stable/
133 Patch200: linux-2.4.22-dm-1.patch
135 # EVMS support (http://www.sourceforge.net/projects/evms/)
136 # Disabled due to conflicts with LVM2 and device mapper tools
137 Patch205: linux-2.4.22-evms-2.1.1.patch
139 #from http://dl.sourceforge.net/i810fb/linux-2.4.20-i810fb.diff.bz2
140 Patch210: linux-2.4.21-I810FB.patch.gz
142 # Support for CDRW packet writing
143 Patch215: %{name}-cdrw-packet.patch
144 Patch216: %{name}-cd-mrw-2.patch
145 Patch225: wrr-linux-2.4.9.patch
146 Patch226: linux-2.4.18-esfq.diff
147 Patch227: layer7-kernel2.4patch-v0.1.4.patch
149 Patch231: linux-2.4.21-aic7xxx-mmapio.patch
150 Patch235: linux-2.4.20-audigy.patch.bz2
151 Patch240: linux-2.4.20-ecc.patch
152 Patch245: linux-2.4.20-01-edd.patch
153 Patch246: linux-2.4.20-02-edd-allocate.patch
154 # i2c - version 2.8.0
155 Patch255: linux-2.4.22-i2c-%{i2c_version}.patch
156 Patch256: linux-2.4.21-i2c-headers.patch
157 Patch257: linux-2.4.21-i2c-sparc64.patch
158 Patch265: linux-2.4.20-e820.patch
160 Patch270: dc395-tab.patch
161 # http://www.qlogic.com/
162 Patch275: linux-2.4.20-qla2x00-v6.04.00-fo.patch.gz
163 # ftp://ftp.lsil.com/pub/linux-megaraid/drivers/version-1.18j/megaraid-v1.18j.tgz
164 Patch280: %{name}-megaraid.patch
166 # TV stuff from http://bytesex.org/
167 Patch300: 19_videodev25-2.4.22.diff
168 Patch301: 20_v4l2-2.4.22.diff.gz
169 Patch302: 30_bt832-2.4.22.diff
170 Patch303: 30_btaudio-2.4.22.diff
172 # The following go last as they touch a lot of code
173 # and/or are on bcond and/or are ifarch
176 Patch900: linux-2.4.20-Win4Lin.PLD.patch.bz2
177 Patch991: linux-2.4.20-Win4Lin-mki-adapter.patch.bz2
181 # jam - http://giga.cps.unizar.es/~magallon/linux/kernel/
182 Patch1000: jam-04-clone-detached.patch
183 Patch1002: jam-06-force-inline.patch
184 Patch1003: jam-07-scsi-error-tmout.patch
185 Patch1006: jam-10-highpage-init.patch
186 Patch1007: jam-11-self_exec_id.patch
187 Patch1008: jam-15-fast-csum-D.patch
188 Patch1009: jam-21-mem-barriers.patch
189 Patch1010: jam-30-smptimers-A0.patch
191 Patch1102: linux-2.4.20-lvm-updates.patch
193 # IrDA patch for broken IBM Latpops
194 Patch1104: linux-2.4.21-irda-ibm.patch
196 # fix lun probing on multilun RAID chassis
197 Patch1105: linux-2.4.12-scsi_scan.patch
198 Patch1106: linux-scsi-debug-bug.patch
200 # This patch allows to create more than one sound device using alsa
201 # and devfs with two or more sound cards
202 Patch1111: linux-sound_core.patch
204 # rivafb - fix for text background in 16bpp modes
205 Patch1150: linux-rivafb16.patch
206 Patch1152: linux-2.4.20-agp_uninorth.patch
207 Patch1154: linux-2.4.20-drm-Makefile.patch
209 Patch1201: linux-2.4.21-cpqfc.patch
210 Patch1203: linux-2.4.20-amd-golem.patch
211 Patch1205: linux-53c7,8xx-build.fix
212 Patch1207: linux-2.4.20-serverworks.patch
213 # this patch adds support for "io" and "irq" options in PCNet32 driver module
214 Patch1209: linux-2.4.19-pcnet-parms.patch
216 # disable some networking printk's
217 Patch1250: linux-2.4.1-netdebug.patch
218 Patch1251: linux-2.4.2-raw-ip.patch
219 Patch1252: linux-2.4.19-netmos_pci_parallel_n_serial.patch
220 Patch1253: linux-proc_net_dev-counter-fix.patch
221 Patch1254: kernel-2.4.17-netsyms-export-fix.patch
222 Patch1255: linux-2.4.20-pre1-nr_frags.patch
224 Patch1301: linux-2.4.18-hpfs.patch
225 Patch1302: linux-2.4.18-nfs-default-size.patch
226 Patch1303: linux-2.4.20-irixnfs.patch
228 Patch1304: linux-2.4.21-tru64nfs.patch
229 Patch1305: linux-2.4.21-nfs-silly-rename.patch
231 Patch1350: linux-2.4.21-nousb.patch
232 # from http://www.noc.uoa.gr/~avel/page.php?page=nokia&lang=en
233 Patch1354: linux-2.4.20-Nokia5510.patch
235 # raid5 xor fix for PIII/P4, should go away shortly
236 Patch1400: linux-2.4.0-raid5xor.patch
237 Patch1401: linux-2.4.0-nonintconfig.patch
238 # Add an ioctl to the block layer so we can be EFI compliant
239 Patch1402: linux-2.4.2-blkioctl-sector.patch
240 Patch1403: linux-2.4.3-pcipenalty.patch
241 Patch1404: linux-2.4.3-rawio.patch
242 Patch1405: linux-2.4.7-suspend.patch
243 Patch1407: kernel-Makefile-include-fix.patch
244 Patch1408: kernel-pswscancode.patch
245 Patch1410: linux-2.4.18-input-35215.patch
246 Patch1411: linux-2.4.18-kiobuf.patch
247 Patch1413: linux-2.4.22-andrea-9980_fix-pausing-6.patch
248 Patch1414: linux-2.4.21-oopsmeharder.patch
249 Patch1415: linux-mtd-missing-include-fix-2.4.7-pre6.patch
250 Patch1416: linux-2.4.21-no-FPU.patch
251 Patch1417: linux-2.4.22-ac4-ide+sata.patch
252 Patch1418: linux-2.4.21-hpt372-chicken-egg-hack.patch
253 Patch1419: linux-2.4.21-agp-num_of_masks.patch
254 # fix spare disk counting for raid 5
255 Patch1420: linux-raid5-spare-counting.patch
256 Patch1421: linux-2.4.21-bttv-typo.patch
257 Patch1422: linux-2.4.21-ipt_TRACE-typo.patch
258 Patch1423: linux-2.4.22-alpha-kmap_types.patch
260 # http://www.hardrock.org/kernel/current-updates/
261 # taken at 20031008 (update this date if you update patch)
262 # also rememver to remove EXTRAVERSION from this patch
263 Patch1424: linux-2.4.22-updates.patch
266 # http://luxik.cdi.cz/~devik/qos/htb/v3/
267 Patch1501: htb_killdbg_2421.diff
269 Patch2000: linux-PPC-SMP.patch
270 Patch2001: linux-2.4-ppc-procesor.patch
271 Patch2002: kernel-2.4.18-SPARC64-PLD.patch
272 Patch2003: linux-2.4.20-AXP-avma1_cs.patch
273 Patch2004: linux-2.4.22-ppc-amd8111e.patch
275 Patch3000: linux-2.4.1-compilefailure.patch
276 Patch3002: linux-2.4.20-EXPORT_SYMBOL.patch
277 Patch3003: linux-2.4.20-missing-license-tags.patch
278 Patch3004: linux-2.4.20-sym53c8xx_old.patch
279 Patch3005: linux-2.4.21-gcc33.patch
280 Patch3006: linux-2.4.21-sparc-gcc3.patch
281 Patch3008: linux-drm-4.2.0-force-cmpxchg.patch
282 Patch3009: linux-2.4.21-alpha-gcc33.patch
283 Patch3010: linux-2.4.21-ipsec-sparc64.patch
284 Patch3011: linux-2.4.22-gcc33-inline.patch
285 Patch3012: linux-2.4.22-gcc-ext3.patch
287 # Security patches/fixes
289 Patch4000: linux-2.4.22-ow1-stack.patch
290 Patch4001: grsecurity-nopax-2.0-rc3-2.4.22.patch
292 Patch5000: linux-2.4.22-security.patch
294 #Patch10000: ftp://ftp.kernel.org/pub/linux/kernel/v2.4/testing/patch-2.4.21-rc6.bz2
297 URL: http://www.kernel.org/
301 #BuildRequires: %{kgcc_package}
302 BuildRequires: modutils
306 PreReq: geninitrd >= 2.40
307 Requires(post,postun): fileutils
308 Requires(postun): awk
309 Provides: %{name}-up = %{version}-%{release}
310 Provides: module-info
311 Provides: i2c = %{i2c_version}
312 Provides: bttv = 0.7.83
313 Provides: %{name}(netfilter) = 1.2.9rc1-%{netfilter_snap}
314 Provides: %{name}(reiserfs) = %{version}
315 Provides: %{name}(agpgart) = %{version}
316 #Provides: %{name}(cdrw)
317 #Provides: %{name}(cdmrw)
318 Obsoletes: kernel-modules
319 ExclusiveArch: %{ix86} sparc sparc64 alpha ppc
320 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
321 Conflicts: iptables < 1.2.9rc1
322 Conflicts: lvm < 1.0.4
323 Conflicts: xfsprogs < 2.1.0
324 Conflicts: reiserfsprogs < 3.6.3
325 Conflicts: e2fsprogs < 1.25
326 Conflicts: jfsutils < 1.0.12
327 Conflicts: util-linux < 2.10o
328 Conflicts: modutils < 2.4.2
329 Conflicts: quota < 3.06
330 Conflicts: linux-atm < 2.4.1
331 Conflicts: device-mapper < 1.00.05
334 This package contains the Linux kernel that is used to boot and run
335 your system. It contains few device drivers for specific hardware.
336 Most hardware is instead supported by modules loaded after booting.
339 Das Kernel-Paket enthält den Linux-Kernel (vmlinuz), den Kern des
340 Linux-Betriebssystems. Der Kernel ist für grundliegende
341 Systemfunktionen verantwortlich: Speicherreservierung,
342 Prozeß-Management, Geräte Ein- und Ausgaben, usw.
345 Este paquete contiene núcleo (kernel) Linux que se usa para arranque y
346 funcionamiento de tu sistema. Contiene soporte a pocos hardwares
347 específicos. La mayoría de los hardwares son soportados, vía módulos
348 que se cargan después del arranque.
351 Le package kernel contient le kernel linux (vmlinuz), la partie
352 centrale d'un système d'exploitation Linux. Le noyau traite les
353 fonctions basiques d'un système d'exploitation: allocation mémoire,
354 allocation de process, entrée/sortie de peripheriques, etc.
357 Pakiet zawiera j±dro Linuksa niezbêdne do prawid³owego dzia³ania
358 Twojego komputera. Zawiera w sobie sterowniki do sprzêtu znajduj±cego
359 siê w komputerze, takich jak karty muzyczne, sterowniki dysków, etc.
361 %description -l pt_BR
362 Este pacote contém o kernel Linux que é usado para inicialização
363 e funcionamento de seu sistema. Contém suporte a poucos hardwares
364 específicos. A maioria dos hardwares são suportados via módulos
365 que são carregados após a inicialização.
368 Summary: Kernel version %{version} compiled for SMP machines
369 Summary(de): Kernel version %{version} für Multiprozessor-Maschinen
370 Summary(es): Núcleo (kernel) compilado para máquinas SMP
371 Summary(fr): Kernel version %{version} compiler pour les machine Multi-Processeur
372 Summary(pl): J±dro Linuksa %{version} skompilowane dla maszyn wieloprocesorowych
373 Summary(pt_BR): Kernel compilado para máquinas SMP
377 PreReq: geninitrd >= 2.21
378 Requires(post,postun): fileutils
379 Requires(postun): awk
380 Provides: %{name}-smp = %{version}-%{release}
381 Provides: module-info
382 Provides: i2c = %{i2c_version}
383 Provides: bttv = 0.7.83
384 Provides: %{name}(netfilter) = 1.2.9rc1-%{netfilter_snap}
385 Provides: %{name}(reiserfs) = %{version}
386 Provides: %{name}(agpgart) = %{version}
387 #Provides: %{name}(cdrw)
388 #Provides: %{name}(cdmrw)
389 Conflicts: iptables < 1.2.9rc1
390 Conflicts: lvm < 1.0.4
391 Conflicts: xfsprogs < 2.1.0
392 Conflicts: reiserfsprogs < 3.6.3
393 Conflicts: e2fsprogs < 1.25
394 Conflicts: jfsutils < 1.0.12
395 Conflicts: util-linux < 2.10o
396 Conflicts: modutils < 2.4.2
397 Conflicts: quota < 3.06
398 Conflicts: linux-atm < 2.4.1
399 Conflicts: device-mapper < 1.00.05
402 This package includes a SMP version of the Linux %{version} kernel. It
403 is required only on machines with two or more CPUs, although it should
404 work fine on single-CPU boxes.
406 %description smp -l de
407 Dieses Paket enthält eine SMP (Multiprozessor)-Version von
408 Linux-Kernel %{version}. Es wird für Maschinen mit zwei oder mehr
409 Prozessoren gebraucht, sollte aber auch auf Computern mit nur einer
412 %description smp -l es
413 Núcleo (kernel) compilado para máquinas SMP
415 %description smp -l fr
416 Ce package inclu une version SMP du noyau de Linux version %{version}.
417 Il et nécessaire seulement pour les machine avec deux processeurs ou
418 plus, il peut quand même fonctionner pour les système mono-processeur.
420 %description smp -l pl
421 Pakiet zawiera j±dro SMP Linuksa w wersji %{version}. Jest ono
422 wymagane przez komputery zawieraj±ce dwa lub wiêcej procesorów.
423 Powinno równie¿ dobrze dzia³aæ na maszynach z jednym procesorem.
425 %description smp -l pt_BR
426 Este pacote inclui uma versão SMP do kernel Linux versão %{version}.
427 Ele deve ser utilizado apenas em máquinas com dois ou mais processadores,
428 apesar de trabalhar perfeitamente em máquinas com apenas um processador.
431 Summary: Kernel version %{version} used on the installation boot disks
432 Summary(de): Kernel version %{version} für Installationsdisketten
433 Summary(es): Núcleo (kernel) de Linux, utilizado en el disco de instalación
434 Summary(fr): Kernel version %{version} utiliser pour les disquettes d'installation
435 Summary(pl): J±dro Linuksa %{version} dla bootkietek instalacyjnych
436 Summary(pt_BR): Kernel Linux utilizado no disco de instalação
440 Requires(post,postun): fileutils
441 Requires(postun): awk
444 This package includes a trimmed down version of the Linux %{version}
445 kernel. This kernel is used on the installation boot disks only and
446 should not be used for an installed system, as many features in this
447 kernel are turned off because of the size constraints.
449 %description BOOT -l de
450 Dieses Paket enthält eine verkleinerte Version vom Linux-Kernel
451 version %{version}. Dieser Kernel wird auf den
452 Installations-Bootdisketten benutzt und sollte nicht auf einem
453 installierten System verwendet werden, da viele Funktionen wegen der
454 Platzprobleme abgeschaltet sind.
456 %description BOOT -l es
457 Núcleo (kernel) de Linux, utilizado en el disco de instalación
459 %description BOOT -l pl
460 Pakiet zawiera j±dro Linuksa dedykowane dyskietkom startowym i powinno
461 byæ u¿ywane jedynie podczas instalacji systemu. Wiele u¿ytecznych
462 opcji zosta³o wy³±czonych, aby jak najbardziej zmniejszyæ jego
465 %description BOOT -l pt_BR
466 Este pacote inclui uma versão minimizada do kernel Linux, criada para
467 ser utilizada *apenas* no disco de instalação, e não deve ser utilizada
468 em máquinas já instaladas, pois várias características do kernel
469 são desabilitadas para diminuir o tamanho final do kernel a ser utilizado.
472 Summary: PCMCIA modules
473 Summary(pl): Modu³y PCMCIA
475 PreReq: %{name}-up = %{version}-%{release}
476 Requires(postun): %{name}-up = %{version}-%{release}
477 Provides: kernel(pcmcia)
480 Kernel PCMCIA modules.
482 %description pcmcia -l pl
483 Modu³y PCMCIA z kernela.
486 Summary: PCMCIA modules for SMP kernel
487 Summary(pl): Modu³y PCMCIA dla maszyn SMP
489 PreReq: %{name}-smp = %{version}-%{release}
490 Requires(postun): %{name}-smp = %{version}-%{release}
491 Provides: kernel(pcmcia)
493 %description smp-pcmcia
494 Kernel PCMCIA modules for SMP kernel.
496 %description smp-pcmcia -l pl
497 Modu³y PCMCIA z kernela dla maszyn SMP.
500 Summary: DRM kernel modules
501 Summary(pl): Sterowniki DRM
503 PreReq: %{name}-up = %{version}-%{release}
504 Requires(postun): %{name}-up = %{version}-%{release}
505 Provides: %{name}-drm = %{drm_xfree_version}
508 DRM kernel modules (%{drm_xfree_version}).
510 %description drm -l pl
511 Sterowniki DRM (%{drm_xfree_version}).
514 Summary: DRM SMP kernel modules
515 Summary(pl): Sterowniki DRM dla maszyn wieloprocesorowych
517 PreReq: %{name}-smp = %{version}-%{release}
518 Requires(postun): %{name}-smp = %{version}-%{release}
519 Provides: %{name}-drm = %{drm_xfree_version}
522 DRM SMP kernel modules (%{drm_xfree_version}).
524 %description smp-drm -l pl
525 Sterowniki DRM dla maszyn wieloprocesorowych (%{drm_xfree_version}).
528 Summary: Header files for the Linux kernel
529 Summary(es): Archivos de inclusión para núcleo (kernel) Linux.
530 Summary(pl): Pliki nag³ówkowe j±dra
531 Summary(pt_BR): Arquivos de inclusão para o kernel Linux.
534 Requires(post,postun): fileutils
535 Requires(postun): awk
536 Provides: %{name}-headers(agpgart) = %{version}
537 Provides: %{name}-headers(reiserfs) = %{version}
538 Provides: %{name}-headers(bridging) = %{version}
539 Provides: i2c-devel = %{i2c_version}
540 Provides: %{name}-headers(netfilter) = 1.2.9rc1-%{netfilter_snap}
543 These are the C header files for the Linux kernel, which define
544 structures and constants that are needed when building most standard
545 programs under Linux, as well as to rebuild the kernel.
547 %description headers -l es
548 Estos son los archivos de inclusión C para núcleo (kernel) Linux, que define
549 estructuras y constantes que son necesarias a la construcción de la
550 mayoría de los programas en el Linux, como también para reconstruir
553 %description headers -l pl
554 Pakiet zawiera pliki nag³ówkowe j±dra, niezbêdne do rekompilacji j±dra
555 oraz niektórych programów.
557 %description headers -l pt_BR
558 Estes são os arquivos de inclusão C para o kernel Linux, os
559 quais definem estruturas e constantes que são necessárias para
560 a construção da maioria dos programas no Linux, bem como para
561 reconstruir o próprio kernel.
564 Summary: Kernel source tree
565 Summary(es): Fuentes del núcleo (kernel) Linux
566 Summary(pl): Kod ¼ród³owy j±dra Linuksa
567 Summary(pt_BR): Fontes do kernel Linux
570 Requires: %{name}-headers = %{version}-%{release}
576 This is the source code for the Linux kernel. It is required to build
577 most C programs as they depend on constants defined in here. You can
578 also build a custom kernel that is better tuned to your particular
581 %description source -l de
582 Das Kernel-Source-Paket enthält den source code (C/Assembler-Code) des
583 Linux-Kernels. Die Source-Dateien werden gebraucht, um viele
584 C-Programme zu compilieren, da sie auf Konstanten zurückgreifen, die
585 im Kernel-Source definiert sind. Die Source-Dateien können auch
586 benutzt werden, um einen Kernel zu compilieren, der besser auf Ihre
587 Hardware ausgerichtet ist.
589 %description source -l es
590 Este es el fuente para el núcleo (kernel) Linux. Se necesita para la
591 construcción de la mayoría de los programas C, pues dependen de
592 constantes definidas en él. Tu puedes también construir un núcleo (kernel)
593 personalizado que será lo mejor configurado para tu hardware en
596 %description source -l fr
597 Le package pour le kernel-source contient le code source pour le noyau
598 linux. Ces sources sont nécessaires pour compiler la plupart des
599 programmes C, car il dépend de constantes définies dans le code
600 source. Les sources peuvent être aussi utilisée pour compiler un noyau
601 personnalisé pour avoir de meilleures performances sur des matériels
604 %description source -l pl
605 Pakiet zawiera kod ¼ród³owy j±dra systemu.
607 %description source -l pt_BR
608 Este é o fonte para o kernel Linux. É necessário para a
609 construção da maioria dos programas C, pois eles dependem de
610 constantes definidas nele. Você também pode construir um kernel
611 personalizado que será melhor configurado para seu hardware particular.
614 Summary: Kernel documentation
615 Summary(es): Documentación para los archivos fuente del núcleo (kernel) de Linux
616 Summary(pl): Dokumentacja do j±dra Linuksa
617 Summary(pt_BR): Documentação para os arquivos fontes do kernel Linux
619 Provides: %{name}-doc = %{version}
623 This is the documentation for the Linux kernel, as found in
624 /usr/src/linux/Documentation directory.
626 %description doc -l es
627 Documentación para los archivos fuente del núcleo (kernel) de Linux
629 %description doc -l pl
630 Pakiet zawiera dokumentacjê j±dra z katalogu
631 /usr/src/linux/Documentation.
633 %description doc -l pt_BR
634 Este pacote contém documentação para o kernel Linux.
637 %setup -q -a3 -a8 -n linux-%{version}
640 gzip -dc %{SOURCE7} | tar -xf -
641 # Adaptec AACRaid new drivers
642 rm -fr drivers/scsi/aacraid
643 bzip2 -dc %{SOURCE10} | tar -xf - -C drivers/scsi/
644 # Changing DRM source ....
645 cp -f drm/*.{c,h} drivers/char/drm/
789 %{!?_without_grsec:%patch4001 -p1}
791 mv -f drivers/scsi/sym53c8xx.c drivers/scsi/sym53c8xx_old.c
793 # Tekram DC395/315 U/UW SCSI host driver
794 echo Adding Tekram DC395/315 driver
795 patch -p1 -s <dc395/dc395-integ24.diff
796 install dc395/dc395x_trm.? dc395/README.dc395x drivers/scsi/
799 # The following go last as they touch a lot of code
800 # and/or are on bcond and/or are ifarch
803 %{?_with_win4lin:echo Win4Lin patch ...}
804 %{?_with_win4lin:%patch900 -p1}
805 %{?_with_win4lin:%patch991 -p1}
808 # Remove -g from drivers/atm/Makefile and net/ipsec/Makefile
809 echo -e ',s/EXTRA_CFLAGS.*//g\n,w' | ed drivers/atm/Makefile
810 echo -e ',s/EXTRA_CFLAGS.*-g//g\n,w' | ed net/ipsec/Makefile
812 # Fix EXTRAVERSION and CC in main Makefile
813 echo -e ',s/EXTRAVERSION =.*/EXTRAVERSION =/g\n,w' | ed Makefile
815 echo -e ',s/CC.*$(CROSS_COMPILE)gcc/CC = sparc64-linux-gcc/g\n,w' | ed Makefile
821 # is this a special kernel we want to build?
824 [ "$1" = "BOOT" -o "$2" = "BOOT" ] && BOOT=yes
825 [ "$1" = "smp" -o "$2" = "smp" ] && smp=yes
827 if [ "$smp" = "yes" ]; then
833 if [ "$smp" = "yes" ]; then
834 Config="%{_target_cpu}-smp"
836 Config="%{_target_cpu}"
839 if [ "$BOOT" = "yes" ]; then
840 KernelVer=%{version}-%{release}BOOT
842 KernelVer=%{version}-%{release}$1
844 echo "BUILDING THE NORMAL KERNEL $*..."
845 :> arch/%{base_arch}/defconfig
846 cat $RPM_SOURCE_DIR/kernel-$Config.config >> arch/%{base_arch}/defconfig
848 echo "CONFIG_M386=y" >> arch/%{base_arch}/defconfig
851 echo "CONFIG_M586=y" >> arch/%{base_arch}/defconfig
854 echo "CONFIG_M686=y" >> arch/%{base_arch}/defconfig
857 echo "CONFIG_MK7=y" >> arch/%{base_arch}/defconfig
859 cat %{SOURCE1000} >> arch/%{base_arch}/defconfig
860 cat %{SOURCE1001} >> arch/%{base_arch}/defconfig
863 echo -e ',s/^CONFIG_FB_I810=.*/# CONFIG_FB_I810 is not set/g\n,w' | \
864 ed arch/%{base_arch}/defconfig
865 echo -e ',s/CONFIG_IPSEC_AUTH_HMAC_SHA1=y/# CONFIG_IPSEC_AUTH_HMAC_SHA1 is not set/g\n,w' | \
866 ed arch/%{base_arch}/defconfig
869 if [ "$BOOT" = "yes" ] ; then
870 echo "# CONFIG_GRKERNSEC is not set" >> arch/%{base_arch}/defconfig
873 %if %{?_without_grsec:0}%{!?_without_grsec:1}
874 echo -e ',s/CONFIG_CRYPTO_SHA256=m/CONFIG_CRYPTO_SHA256=y/g\n,w' | \
875 ed arch/%{base_arch}/defconfig
876 cat %{SOURCE1002} >> arch/%{base_arch}/defconfig
880 cat %{SOURCE2000} >> arch/%{base_arch}/defconfig
884 echo -e ',s/# CONFIG_MATH_EMULATION is not set/CONFIG_MATH_EMULATION=y/g\n,w' | \
885 ed arch/%{base_arch}/defconfig
889 ln -sf arch/%{base_arch}/defconfig .config
892 sparc32 %{__make} oldconfig
893 sparc32 %{__make} dep clean
898 %{__make} include/linux/version.h
900 # making table for soundmodem.
901 cd drivers/net/hamradio/soundmodem
902 %{__cc} -o gentbl -lm gentbl.c
910 sparc32 %{__make} boot
917 sparc32 %{__make} modules
922 mkdir -p $KERNEL_INSTALL_DIR/boot
923 install System.map $KERNEL_INSTALL_DIR/boot/System.map-$KernelVer
925 cp arch/i386/boot/bzImage $KERNEL_INSTALL_DIR/boot/vmlinuz-$KernelVer
927 %ifarch alpha sparc sparc64
928 gzip -cfv vmlinux > vmlinuz
929 install vmlinux $KERNEL_INSTALL_DIR/boot/vmlinux-$KernelVer
930 install vmlinuz $KERNEL_INSTALL_DIR/boot/vmlinuz-$KernelVer
933 install vmlinux $KERNEL_INSTALL_DIR/boot/vmlinux-$KernelVer
934 install vmlinux $KERNEL_INSTALL_DIR/boot/vmlinuz-$KernelVer
937 sparc32 %{__make} modules_install \
938 INSTALL_MOD_PATH=$KERNEL_INSTALL_DIR \
939 KERNELRELEASE=$KernelVer
940 echo KERNEL RELEASE $KernelVer
942 %{__make} modules_install \
943 INSTALL_MOD_PATH=$KERNEL_INSTALL_DIR \
944 KERNELRELEASE=$KernelVer
945 echo KERNEL RELEASE $KernelVer
949 KERNEL_BUILD_DIR=`pwd`
950 KERNEL_INSTALL_DIR=$KERNEL_BUILD_DIR-installed
951 rm -rf $KERNEL_INSTALL_DIR
952 install -d $KERNEL_INSTALL_DIR
954 # make drivers/scsi/ missing files
955 # (cd drivers/scsi; make -f M)
958 %{!?_without_up:BuildKernel}
961 %{!?_without_smp:BuildKernel smp}
964 %ifnarch i586 i686 athlon
965 KERNEL_INSTALL_DIR="$KERNEL_BUILD_DIR-installed%{_libdir}/bootdisk"
966 rm -rf $KERNEL_INSTALL_DIR
967 %{!?_without_boot:BuildKernel BOOT}
971 rm -rf $RPM_BUILD_ROOT
974 install -d $RPM_BUILD_ROOT%{_prefix}/{include,src/linux-%{version}}
976 KERNEL_BUILD_DIR=`pwd`
978 KERNEL_BUILD_INSTALL=no
979 %{!?_without_up:KERNEL_BUILD_INSTALL=yes}
980 %{!?_without_smp:KERNEL_BUILD_INSTALL=yes}
981 [ "$KERNEL_BUILD_INSTALL" = "yes" ] && cp -a $KERNEL_BUILD_DIR-installed/* $RPM_BUILD_ROOT
984 if [ -e $RPM_BUILD_ROOT/lib/modules/%{version}-%{release}$i ] ; then
985 rm -f $RPM_BUILD_ROOT/lib/modules/%{version}-%{release}$i/build
986 ln -sf %{_prefix}/src/linux-%{version} \
987 $RPM_BUILD_ROOT/lib/modules/%{version}-%{release}$i/build
990 ln -sf ../src/linux/include/linux $RPM_BUILD_ROOT%{_includedir}/linux
991 ln -sf linux-%{version} $RPM_BUILD_ROOT%{_prefix}/src/linux
993 %ifarch sparc sparc64
994 ln -s /usr/src/linux/include/asm-sparc $RPM_BUILD_ROOT%{_includedir}/asm-sparc
995 ln -s ../src/linux/include/asm-sparc64 $RPM_BUILD_ROOT%{_includedir}/asm-sparc64
997 ln -sf ../src/linux/include/asm $RPM_BUILD_ROOT/usr/include/asm
1000 %if %{?_without_source:0}%{!?_without_source:1}
1001 cp -a . $RPM_BUILD_ROOT/usr/src/linux-%{version}
1003 cp -a {include,scripts,Makefile,Rules.make,Documentation} $RPM_BUILD_ROOT/usr/src/linux-%{version}
1006 %ifarch sparc sparc64
1007 sh %{SOURCE2} $RPM_BUILD_ROOT%{_includedir}
1008 cp -a %{SOURCE2} $RPM_BUILD_ROOT%{_includedir}/asm/BuildASM
1011 cd $RPM_BUILD_ROOT%{_prefix}/src/linux-%{version}
1013 %if %{?_without_source:0}%{!?_without_source:1}
1016 find -name "*~" -print | xargs rm -f
1017 find -name "*.orig" -print | xargs rm -f
1020 cat $RPM_SOURCE_DIR/kernel-ia32.config > .config
1022 install $RPM_SOURCE_DIR/kernel-%{_target_cpu}.config .config
1026 echo "CONFIG_M386=y" >> .config
1029 echo "CONFIG_M586=y" >> .config
1032 echo "CONFIG_M686=y" >> .config
1035 echo "CONFIG_MK7=y" >> .config
1037 cat %{SOURCE1000} >> .config
1038 cat %{SOURCE1001} >> .config
1039 %{!?_without_grsec:cat %{SOURCE1002} >> .config}
1042 echo -e ',s/^CONFIG_FB_I810=.*/# CONFIG_FB_I810 is not set/g\n,w' | \
1044 echo -e ',s/CONFIG_IPSEC_AUTH_HMAC_SHA1=y/# CONFIG_IPSEC_AUTH_HMAC_SHA1 is not set/g\n,w' | \
1049 cat %{SOURCE2000} >> .config
1053 sparc32 %{__make} oldconfig
1058 mv include/linux/autoconf.h include/linux/autoconf-up.h
1059 cp .config config-up
1062 cat $RPM_SOURCE_DIR/kernel-ia32-smp.config >> .config
1064 install $RPM_SOURCE_DIR/kernel-%{_target_cpu}-smp.config .config
1068 echo "CONFIG_M386=y" >> .config
1071 echo "CONFIG_M586=y" >> .config
1074 echo "CONFIG_M686=y" >> .config
1077 echo "CONFIG_MK7=y" >> .config
1080 cat %{SOURCE1000} >> .config
1081 cat %{SOURCE1001} >> .config
1082 %{!?_without_grsec:cat %{SOURCE1002} >> .config}
1085 echo -e ',s/^CONFIG_FB_I810=.*/# CONFIG_FB_I810 is not set/g\n,w' | \
1087 echo -e ',s/CONFIG_IPSEC_AUTH_HMAC_SHA1=y/# CONFIG_IPSEC_AUTH_HMAC_SHA1 is not set/g\n,w' | \
1092 cat %{SOURCE2000} >> .config
1096 sparc32 %{__make} oldconfig
1100 mv include/linux/autoconf.h include/linux/autoconf-smp.h
1101 cp .config config-smp
1104 install %{SOURCE1} $RPM_BUILD_ROOT/usr/src/linux-%{version}/include/linux/autoconf.h
1106 %if %{?_without_source:0}%{!?_without_source:1}
1107 # this generates modversions info which we want to include and we may as
1108 # well include the depends stuff as well
1110 %{__make} include/linux/version.h
1111 #%{__make} "`pwd`/include/linux/modversions.h"
1113 rm -f include/linux/modversions.h
1114 echo "#include <linux/modsetver.h>" > include/linux/modversions.h
1117 # this generates modversions info which we want to include and we may as
1118 # well include the depends stuff as well, after we fix the paths
1120 %if %{?_without_source:0}%{!?_without_source:1}
1122 find $RPM_BUILD_ROOT/usr/src/linux-%{version} -name ".*depend" \
1123 -exec /bin/sh -c "echo -e \",s|$RPM_BUILD_ROOT||g\n,w\" | ed {}" \;
1127 rm -f drivers/net/hamradio/soundmodem/gentbl
1131 %if %{?_without_boot:0}%{!?_without_boot:1}
1132 %ifnarch i586 i686 athlon
1133 install -d $RPM_BUILD_ROOT%{_libdir}/bootdisk
1134 cp -rdp $KERNEL_BUILD_DIR-installed%{_libdir}/bootdisk/* $RPM_BUILD_ROOT%{_libdir}/bootdisk
1139 rm -rf $RPM_BUILD_ROOT
1140 rm -rf $RPM_BUILD_DIR/linux-%{version}-installed
1143 mv -f /boot/vmlinuz /boot/vmlinuz.old 2> /dev/null > /dev/null
1144 mv -f /boot/System.map /boot/System.map.old 2> /dev/null > /dev/null
1145 ln -sf vmlinuz-%{version}-%{release} /boot/vmlinuz
1146 ln -sf System.map-%{version}-%{release} /boot/System.map
1148 if [ ! -L /lib/modules/%{version} ] ; then
1149 mv -f /lib/modules/%{version} /lib/modules/%{version}.rpmsave > /dev/null 2>&1
1151 rm -f /lib/modules/%{version}
1152 ln -snf %{version}-%{release} /lib/modules/%{version}
1153 /sbin/depmod -a -F /boot/System.map-%{version}-%{release} %{version}-%{release}
1155 /sbin/geninitrd -f --initrdfs=rom /boot/initrd-%{version}-%{release}.gz %{version}-%{release}
1156 mv -f /boot/initrd /boot/initrd.old
1157 ln -sf initrd-%{version}-%{release}.gz /boot/initrd
1159 if [ -f %{_prefix}/src/linux-%{version}/config-up ] ; then
1160 ln -s %{_prefix}/src/linux-%{version}/config-up %{_prefix}/src/linux-%{version}/.config
1163 if [ -x /sbin/rc-boot ] ; then
1164 /sbin/rc-boot 1>&2 || :
1168 mv -f /boot/vmlinuz /boot/vmlinuz.old 2> /dev/null > /dev/null
1169 mv -f /boot/System.map /boot/System.map.old 2> /dev/null > /dev/null
1170 ln -sf vmlinuz-%{version}-%{release}smp /boot/vmlinuz
1171 ln -sf System.map-%{version}-%{release}smp /boot/System.map
1173 if [ ! -L /lib/modules/%{version} ] ; then
1174 mv -f /lib/modules/%{version} /lib/modules/%{version}.rpmsave > /dev/null 2>&1
1176 rm -f /lib/modules/%{version}
1177 ln -snf %{version}-%{release}smp /lib/modules/%{version}
1178 /sbin/depmod -a -F /boot/System.map-%{version}-%{release}smp %{version}-%{release}smp
1180 /sbin/geninitrd -f --initrdfs=rom /boot/initrd-%{version}-%{release}smp.gz %{version}-%{release}smp
1181 mv -f /boot/initrd /boot/initrd.old
1182 ln -sf initrd-%{version}-%{release}smp.gz /boot/initrd
1184 if [ -f %{_prefix}/src/linux-%{version}/config-smp ] ; then
1185 ln -s %{_prefix}/src/linux-%{version}/config-smp %{_prefix}/src/linux-%{version}/.config
1188 if [ -x /sbin/rc-boot ] ; then
1189 /sbin/rc-boot 1>&2 || :
1193 if [ ! -L %{_libdir}/bootdisk/lib/modules/%{version} ] ; then
1194 mv -f %{_libdir}/bootdisk/lib/modules/%{version} %{_libdir}/bootdisk/lib/modules/%{version}.rpmsave
1196 if [ ! -L %{_libdir}/bootdisk/boot/vmlinuz-%{version} ] ; then
1197 mv -f %{_libdir}/bootdisk/boot/vmlinuz-%{version} %{_libdir}/bootdisk/boot/vmlinuz-%{version}.rpmsave
1199 rm -f %{_libdir}/bootdisk/lib/modules/%{version}
1200 ln -snf %{version}-%{release}BOOT %{_libdir}/bootdisk/lib/modules/%{version}
1201 rm -f %{_libdir}/bootdisk/boot/vmlinuz-%{version}
1202 ln -snf vmlinuz-%{version}-%{release}BOOT %{_libdir}/bootdisk/boot/vmlinuz-%{version}
1205 if [ -L /lib/modules/%{version} ]; then
1206 if [ "`ls -l /lib/modules/%{version} | awk '{ print $11 }'`" = "%{version}-%{release}" ]; then
1207 if [ "$1" = "0" ]; then
1208 rm -f /lib/modules/%{version}
1212 rm -f /boot/initrd-%{version}-%{release}.gz
1215 /sbin/depmod -a -F /boot/System.map-%{version}-%{release} %{version}-%{release}
1218 /sbin/depmod -a -F /boot/System.map-%{version}-%{release} %{version}-%{release} > /dev/null 2>&1
1221 /sbin/depmod -a -F /boot/System.map-%{version}-%{release} %{version}-%{release}
1224 /sbin/depmod -a -F /boot/System.map-%{version}-%{release} %{version}-%{release} > /dev/null 2>&1
1227 if [ -L /lib/modules/%{version} ]; then
1228 if [ "`ls -l /lib/modules/%{version} | awk '{ print $11 }'`" = "%{version}-%{release}smp" ]; then
1229 if [ "$1" = "0" ]; then
1230 rm -f /lib/modules/%{version}
1234 rm -f /boot/initrd-%{version}-%{release}smp.gz
1237 /sbin/depmod -a -F /boot/System.map-%{version}-%{release}smp %{version}-%{release}smp
1240 /sbin/depmod -a -F /boot/System.map-%{version}-%{release}smp %{version}-%{release}smp > /dev/null 2>&1
1243 /sbin/depmod -a -F /boot/System.map-%{version}-%{release}smp %{version}-%{release}smp
1246 /sbin/depmod -a -F /boot/System.map-%{version}-%{release}smp %{version}-%{release}smp > /dev/null 2>&1
1249 if [ -L %{_libdir}/bootdisk/lib/modules/%{version} ]; then
1250 if [ "`ls -l %{_libdir}/bootdisk/lib/modules/%{version} | awk '{ print $11 }'`" = "%{version}-%{release}BOOT" ]; then
1251 if [ "$1" = "0" ]; then
1252 rm -f %{_libdir}/bootdisk/lib/modules/%{version}
1258 rm -f /usr/src/linux
1259 ln -snf linux-%{version} /usr/src/linux
1262 if [ -L /usr/src/linux ]; then
1263 if [ "`ls -l /usr/src/linux | awk '{ print $11 }'`" = "linux-%{version}" ]; then
1264 if [ "$1" = "0" ]; then
1265 rm -f /usr/src/linux
1270 %if %{?_without_up:0}%{!?_without_up:1}
1272 %defattr(644,root,root,755)
1273 %ifarch alpha sparc sparc64 ppc
1274 /boot/vmlinux-%{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
1281 %exclude /lib/modules/%{version}-%{release}/kernel/drivers/pcmcia
1282 %exclude /lib/modules/%{version}-%{release}/kernel/drivers/ide/legacy/*-cs.o*
1283 %exclude /lib/modules/%{version}-%{release}/kernel/drivers/mtd/maps/pcmcia*
1284 %exclude /lib/modules/%{version}-%{release}/kernel/drivers/net/pcmcia
1285 %exclude /lib/modules/%{version}-%{release}/kernel/drivers/scsi/pcmcia
1286 %exclude /lib/modules/%{version}-%{release}/kernel/drivers/char/pcmcia
1287 %exclude /lib/modules/%{version}-%{release}/kernel/drivers/net/wireless/*_cs.o*
1288 %exclude /lib/modules/%{version}-%{release}/kernel/drivers/parport/*_cs.o*
1289 %exclude /lib/modules/%{version}-%{release}/kernel/drivers/bluetooth/*_cs.o*
1291 %ifnarch ppc sparc sparc64
1292 %exclude /lib/modules/%{version}-%{release}/kernel/drivers/isdn/hisax/*_cs.o*
1294 %exclude /lib/modules/%{version}-%{release}/kernel/drivers/isdn/avmb1/avm_cs.o*
1295 %exclude /lib/modules/%{version}-%{release}/kernel/drivers/telephony/*_pcmcia.o*
1299 %exclude /lib/modules/%{version}-%{release}/kernel/drivers/char/drm
1301 /lib/modules/%{version}-%{release}/build
1302 %ghost /lib/modules/%{version}-%{release}/modules.*
1304 %ifnarch sparc sparc64
1306 %defattr(644,root,root,755)
1307 /lib/modules/%{version}-%{release}/kernel/drivers/pcmcia
1308 /lib/modules/%{version}-%{release}/kernel/drivers/ide/legacy/*-cs.o*
1309 /lib/modules/%{version}-%{release}/kernel/drivers/mtd/maps/pcmcia*
1310 /lib/modules/%{version}-%{release}/kernel/drivers/net/pcmcia
1311 /lib/modules/%{version}-%{release}/kernel/drivers/scsi/pcmcia
1312 /lib/modules/%{version}-%{release}/kernel/drivers/char/pcmcia
1313 /lib/modules/%{version}-%{release}/kernel/drivers/net/wireless/*_cs.o*
1314 /lib/modules/%{version}-%{release}/kernel/drivers/parport/*_cs.o*
1315 /lib/modules/%{version}-%{release}/kernel/drivers/bluetooth/*_cs.o*
1317 /lib/modules/%{version}-%{release}/kernel/drivers/isdn/hisax/*_cs.o*
1319 /lib/modules/%{version}-%{release}/kernel/drivers/isdn/avmb1/avm_cs.o*
1320 /lib/modules/%{version}-%{release}/kernel/drivers/telephony/*_pcmcia.o*
1327 %defattr(644,root,root,755)
1328 /lib/modules/%{version}-%{release}/kernel/drivers/char/drm
1329 %endif # %%{_without_up}
1332 %if %{?_without_smp:0}%{!?_without_smp:1}
1334 %defattr(644,root,root,755)
1335 %ifarch alpha sparc sparc64 ppc
1336 /boot/vmlinux-%{version}-%{release}smp
1338 /boot/vmlinuz-%{version}-%{release}smp
1339 /boot/System.map-%{version}-%{release}smp
1340 %dir /lib/modules/%{version}-%{release}smp
1341 /lib/modules/%{version}-%{release}smp/kernel
1342 %ifnarch sparc sparc64
1343 %exclude /lib/modules/%{version}-%{release}smp/kernel/drivers/pcmcia
1344 %exclude /lib/modules/%{version}-%{release}smp/kernel/drivers/ide/legacy/*-cs.o*
1345 %exclude /lib/modules/%{version}-%{release}smp/kernel/drivers/mtd/maps/pcmcia*
1346 %exclude /lib/modules/%{version}-%{release}smp/kernel/drivers/net/pcmcia
1347 %exclude /lib/modules/%{version}-%{release}smp/kernel/drivers/scsi/pcmcia
1348 %exclude /lib/modules/%{version}-%{release}smp/kernel/drivers/char/pcmcia
1349 %exclude /lib/modules/%{version}-%{release}smp/kernel/drivers/net/wireless/*_cs.o*
1350 %exclude /lib/modules/%{version}-%{release}smp/kernel/drivers/parport/*_cs.o*
1351 %exclude /lib/modules/%{version}-%{release}smp/kernel/drivers/bluetooth/*_cs.o*
1353 %ifnarch ppc sparc sparc64
1354 %exclude /lib/modules/%{version}-%{release}smp/kernel/drivers/isdn/hisax/*_cs.o*
1356 %exclude /lib/modules/%{version}-%{release}smp/kernel/drivers/isdn/avmb1/avm_cs.o*
1357 %exclude /lib/modules/%{version}-%{release}smp/kernel/drivers/telephony/*_pcmcia.o*
1361 %exclude /lib/modules/%{version}-%{release}smp/kernel/drivers/char/drm
1363 /lib/modules/%{version}-%{release}smp/build
1364 %ghost /lib/modules/%{version}-%{release}smp/modules.*
1366 %ifnarch sparc sparc64
1367 %files -n kernel-smp-pcmcia
1368 %defattr(644,root,root,755)
1369 /lib/modules/%{version}-%{release}smp/kernel/drivers/pcmcia
1370 /lib/modules/%{version}-%{release}smp/kernel/drivers/ide/legacy/*-cs.o*
1371 /lib/modules/%{version}-%{release}smp/kernel/drivers/mtd/maps/pcmcia*
1372 /lib/modules/%{version}-%{release}smp/kernel/drivers/net/pcmcia
1373 /lib/modules/%{version}-%{release}smp/kernel/drivers/scsi/pcmcia
1374 /lib/modules/%{version}-%{release}smp/kernel/drivers/char/pcmcia
1375 /lib/modules/%{version}-%{release}smp/kernel/drivers/net/wireless/*_cs.o*
1376 /lib/modules/%{version}-%{release}smp/kernel/drivers/parport/*_cs.o*
1377 /lib/modules/%{version}-%{release}smp/kernel/drivers/bluetooth/dtl1_cs.o*
1379 /lib/modules/%{version}-%{release}smp/kernel/drivers/isdn/hisax/*_cs.o*
1381 /lib/modules/%{version}-%{release}smp/kernel/drivers/isdn/avmb1/avm_cs.o*
1382 /lib/modules/%{version}-%{release}smp/kernel/drivers/telephony/*_pcmcia.o*
1388 %files -n kernel-smp-drm
1389 %defattr(644,root,root,755)
1390 /lib/modules/%{version}-%{release}smp/kernel/drivers/char/drm
1391 %endif # %%{_without_smp}
1394 %if %{?_without_boot:0}%{!?_without_boot:1}
1395 %ifnarch i586 i686 athlon # narch
1397 %defattr(644,root,root,755)
1398 %ifarch alpha sparc sparc64 ppc # arch
1399 %{_libdir}/bootdisk/boot/vmlinux-%{version}-%{release}BOOT
1401 %{_libdir}/bootdisk/boot/vmlinuz-%{version}-%{release}BOOT
1402 %{_libdir}/bootdisk/boot/System.map-%{version}-%{release}BOOT
1403 %dir %{_libdir}/bootdisk/lib/modules/%{version}-%{release}BOOT
1404 %{_libdir}/bootdisk/lib/modules/%{version}-%{release}BOOT/kernel
1405 %{_libdir}/bootdisk/lib/modules/%{version}-%{release}BOOT/build
1406 %ghost %{_libdir}/bootdisk/lib/modules/%{version}-%{release}BOOT/modules.*
1408 %endif # %%{_without_boot}
1411 %defattr(644,root,root,755)
1412 %dir %{_prefix}/src/linux-%{version}
1413 %{_prefix}/src/linux-%{version}/include
1414 %{?_without_kheaders:%{_includedir}/asm}
1415 %{?_without_kheaders:%{_includedir}/linux}
1417 %if %{?_without_doc:0}%{!?_without_doc:1}
1420 %defattr(644,root,root,755)
1421 %{_prefix}/src/linux-%{version}/Documentation
1424 %if %{?_without_source:0}%{!?_without_source:1}
1426 %defattr(644,root,root,755)
1427 %{_prefix}/src/linux-%{version}/arch
1428 %{_prefix}/src/linux-%{version}/crypto
1429 %{_prefix}/src/linux-%{version}/drivers
1430 %{_prefix}/src/linux-%{version}/fs
1431 %{_prefix}/src/linux-%{version}/init
1432 %{!?_without_grsec:%{_prefix}/src/linux-%{version}/grsecurity}
1433 %{_prefix}/src/linux-%{version}/ipc
1434 #%{_prefix}/src/linux-%{version}/kdb
1435 %{_prefix}/src/linux-%{version}/kernel
1436 %{_prefix}/src/linux-%{version}/lib
1437 %{_prefix}/src/linux-%{version}/mm
1438 %{_prefix}/src/linux-%{version}/net
1439 %{_prefix}/src/linux-%{version}/scripts
1440 %{_prefix}/src/linux-%{version}/.config
1441 %{_prefix}/src/linux-%{version}/.depend
1442 %{_prefix}/src/linux-%{version}/.hdepend
1443 %{_prefix}/src/linux-%{version}/COPYING
1444 %{_prefix}/src/linux-%{version}/CREDITS
1445 %{_prefix}/src/linux-%{version}/MAINTAINERS
1446 %{_prefix}/src/linux-%{version}/Makefile
1447 %{_prefix}/src/linux-%{version}/README
1448 %{_prefix}/src/linux-%{version}/REPORTING-BUGS
1449 %{_prefix}/src/linux-%{version}/Rules.make
1450 %{_prefix}/src/linux-%{version}/config*