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-ppc-asm-defs.patch
234 Patch301: 2.6.7-ppc-strncasecmp.patch
235 Patch302: 2.6.7-ppc-cciss-div.patch
236 Patch303: 2.6.7-ppc-saa7146-workaround.patch
237 Patch304: 2.6.7-ppc-ipr-div.patch
238 Patch305: 2.6.7-ppc-proxydict-workaround.patch
240 URL: http://www.kernel.org/
241 BuildRequires: binutils >= 2.14.90.0.7
242 %ifarch sparc sparc64
243 BuildRequires: elftoaout
245 BuildRequires: module-init-tools
246 BuildRequires: perl-base
247 BuildRequires: rpmbuild(macros) >= 1.153
250 PreReq: module-init-tools >= 0.9.9
251 PreReq: geninitrd >= 2.57
252 Provides: %{name}-up = %{epoch}:%{version}-%{release}
253 Provides: module-info
254 Provides: %{name}(netfilter) = %{_netfilter_snap}
255 Obsoletes: kernel-modules
256 Conflicts: util-linux < %{_util_linux_ver}
257 Conflicts: module-init-tool < %{_module_init_tool_ver}
258 Conflicts: e2fsprogs < %{_e2fsprogs_ver}
259 Conflicts: jfsutils < %{_jfsutils_ver}
260 Conflicts: reiserfsprogs < %{_reiserfsprogs_ver}
261 Conflicts: xfsprogs < %{_xfsprogs_ver}
262 Conflicts: quota-tools < %{_quota_tools_ver}
263 Conflicts: PPP < %{_PPP_ver}
264 Conflicts: isdn4k-utils < %{_isdn4k_utils_ver}
265 Conflicts: nfs-utils < %{_nfs_utils_ver}
266 Conflicts: procps < %{_procps_ver}
267 Conflicts: oprofile < %{_oprofile_ver}
268 ExclusiveArch: %{ix86} sparc sparc64 alpha ppc amd64
270 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
273 This package contains the Linux kernel that is used to boot and run
274 your system. It contains few device drivers for specific hardware.
275 Most hardware is instead supported by modules loaded after booting.
278 Das Kernel-Paket enthƤlt den Linux-Kernel (vmlinuz), den Kern des
279 Linux-Betriebssystems. Der Kernel ist fĆ¼r grundliegende
280 Systemfunktionen verantwortlich: Speicherreservierung,
281 ProzeĆ-Management, GerƤte Ein- und Ausgaben, usw.
284 Le package kernel contient le kernel linux (vmlinuz), la partie
285 centrale d'un systĆØme d'exploitation Linux. Le noyau traite les
286 fonctions basiques d'un systĆØme d'exploitation: allocation mĆ©moire,
287 allocation de process, entrƩe/sortie de peripheriques, etc.
290 Pakiet zawiera jĀ±dro Linuksa niezbĆŖdne do prawidĀ³owego dziaĀ³ania
291 Twojego komputera. Zawiera w sobie sterowniki do sprzĆŖtu znajdujĀ±cego
292 siĆŖ w komputerze, takiego jak sterowniki dyskĆ³w itp.
295 Summary: DRM kernel modules
296 Summary(pl): Sterowniki DRM
298 PreReq: %{name}-up = %{epoch}:%{version}-%{release}
299 Requires(postun): %{name}-up = %{epoch}:%{version}-%{release}
300 Provides: %{name}-drm = %{drm_xfree_version}
304 DRM kernel modules (%{drm_xfree_version}).
306 %description drm -l pl
307 Sterowniki DRM (%{drm_xfree_version}).
310 Summary: PCMCIA modules
311 Summary(pl): ModuĀ³y PCMCIA
313 PreReq: %{name}-up = %{epoch}:%{version}-%{release}
314 Requires(postun): %{name}-up = %{epoch}:%{version}-%{release}
315 Provides: %{name}-pcmcia = %{pcmcia_version}
316 Provides: kernel(pcmcia)
317 Conflicts: pcmcia-cs < %{_pcmcia_cs_ver}
321 PCMCIA modules (%{pcmcia_version}).
323 %description pcmcia -l pl
324 ModuĀ³y PCMCIA (%{pcmcia_version}).
327 Summary: ALSA kernel modules
328 Summary(pl): Sterowniki dĀ¼wiĆŖku ALSA
330 PreReq: %{name}-up = %{epoch}:%{version}-%{release}
331 Requires(postun): %{name}-up = %{epoch}:%{version}-%{release}
332 Provides: alsa-driver
333 Obsoletes: alsa-driver
334 Obsoletes: alsa-driver-up
337 %description sound-alsa
338 ALSA (Advanced Linux Sound Architecture) sound drivers.
340 %description sound-alsa -l pl
341 Sterowniki dĀ¼wiĆŖku ALSA (Advanced Linux Sound Architecture).
344 Summary: OSS kernel modules
345 Summary(pl): Sterowniki dĀ¼wiĆŖku OSS
347 PreReq: %{name}-up = %{epoch}:%{version}-%{release}
348 Requires(postun): %{name}-up = %{epoch}:%{version}-%{release}
351 %description sound-oss
352 OSS (Open Sound System) drivers.
354 %description sound-oss -l pl
355 Sterowniki dĀ¼wiĆŖku OSS (Open Sound System).
358 Summary: Kernel version %{version} compiled for SMP machines
359 Summary(de): Kernel version %{version} fĆ¼r Multiprozessor-Maschinen
360 Summary(fr): Kernel version %{version} compiler pour les machine Multi-Processeur
361 Summary(pl): JĀ±dro Linuksa w wersji %{version} dla maszyn wieloprocesorowych
364 PreReq: module-init-tools >= 0.9.9
365 PreReq: geninitrd >= 2.26
366 Provides: %{name} = %{epoch}:%{version}-%{release}
367 Provides: module-info
368 Provides: %{name}(netfilter) = %{_netfilter_snap}
369 Conflicts: util-linux < %{_util_linux_ver}
370 Conflicts: module-init-tool < %{_module_init_tool_ver}
371 Conflicts: e2fsprogs < %{_e2fsprogs_ver}
372 Conflicts: jfsutils < %{_jfsutils_ver}
373 Conflicts: reiserfsprogs < %{_reiserfsprogs_ver}
374 Conflicts: xfsprogs < %{_xfsprogs_ver}
375 Conflicts: quota-tools < %{_quota_tools_ver}
376 Conflicts: PPP < %{_PPP_ver}
377 Conflicts: isdn4k-utils < %{_isdn4k_utils_ver}
378 Conflicts: nfs-utils < %{_nfs_utils_ver}
379 Conflicts: procps < %{_procps_ver}
380 Conflicts: oprofile < %{_oprofile_ver}
384 This package includes a SMP version of the Linux %{version} kernel. It
385 is required only on machines with two or more CPUs, although it should
386 work fine on single-CPU boxes.
388 %description smp -l de
389 Dieses Paket enthƤlt eine SMP (Multiprozessor)-Version von
390 Linux-Kernel %{version}. Es wird fĆ¼r Maschinen mit zwei oder mehr
391 Prozessoren gebraucht, sollte aber auch auf Computern mit nur einer
394 %description smp -l fr
395 Ce package inclu une version SMP du noyau de Linux version {version}.
396 Il et nƩcessaire seulement pour les machine avec deux processeurs ou
397 plus, il peut quand mĆŖme fonctionner pour les systĆØme mono-processeur.
399 %description smp -l pl
400 Pakiet zawiera jĀ±dro SMP Linuksa w wersji %{version}. Jest ono
401 wymagane przez komputery zawierajĀ±ce dwa lub wiĆŖcej procesorĆ³w.
402 Powinno rĆ³wnieĀæ dobrze dziaĀ³aƦ na maszynach z jednym procesorem.
405 Summary: DRM SMP kernel modules
406 Summary(pl): Sterowniki DRM dla maszyn wieloprocesorowych
408 PreReq: %{name}-smp = %{epoch}:%{version}-%{release}
409 Requires(postun): %{name}-smp = %{epoch}:%{version}-%{release}
410 Provides: %{name}-drm = %{drm_xfree_version}
414 DRM SMP kernel modules (%{drm_xfree_version}).
416 %description smp-drm -l pl
417 Sterowniki DRM dla maszyn wieloprocesorowych (%{drm_xfree_version}).
420 Summary: PCMCIA modules for SMP kernel
421 Summary(pl): ModuĀ³y PCMCIA dla maszyn SMP
423 PreReq: %{name}-smp = %{epoch}:%{version}-%{release}
424 Requires(postun): %{name}-smp = %{epoch}:%{version}-%{release}
425 Provides: %{name}-pcmcia = %{pcmcia_version}
426 Provides: kernel(pcmcia)
427 Conflicts: pcmcia-cs < %{_pcmcia_cs_ver}
430 %description smp-pcmcia
431 PCMCIA modules for SMP kernel (%{pcmcia_version}).
433 %description smp-pcmcia -l pl
434 ModuĀ³y PCMCIA dla maszyn SMP (%{pcmcia_version}).
436 %package smp-sound-alsa
437 Summary: ALSA SMP kernel modules
438 Summary(pl): Sterowniki dĀ¼wiĆŖku ALSA dla maszyn wieloprocesorowych
440 PreReq: %{name}-smp = %{epoch}:%{version}-%{release}
441 Requires(postun): %{name}-smp = %{epoch}:%{version}-%{release}
442 Provides: alsa-driver
443 Obsoletes: alsa-driver
444 Obsoletes: alsa-driver-smp
447 %description smp-sound-alsa
448 ALSA (Advanced Linux Sound Architecture) SMP sound drivers.
450 %description smp-sound-alsa -l pl
451 Sterowniki dĀ¼wiĆŖku ALSA (Advanced Linux Sound Architecture) dla maszyn
454 %package smp-sound-oss
455 Summary: OSS SMP kernel modules
456 Summary(pl): Sterowniki dĀ¼wiĆŖku OSS dla maszyn wieloprocesorowych
458 PreReq: %{name}-smp = %{epoch}:%{version}-%{release}
459 Requires(postun): %{name}-smp = %{epoch}:%{version}-%{release}
462 %description smp-sound-oss
463 OSS (Open Sound System) SMP sound drivers.
465 %description smp-sound-oss -l pl
466 Sterowniki OSS (Open Sound System) dla maszyn wieloprocesorowych.
469 Summary: Kernel version %{version} used on the installation boot disks
470 Summary(de): Kernel version %{version} fĆ¼r Installationsdisketten
471 Summary(fr): Kernel version %{version} utiliser pour les disquettes d'installation
472 Summary(pl): JĀ±dro Linuksa w wersji %{version} dla dyskietek startowych
474 PreReq: module-init-tools
478 This package includes a trimmed down version of the Linux %{version}
479 kernel. This kernel is used on the installation boot disks only and
480 should not be used for an installed system, as many features in this
481 kernel are turned off because of the size constraints.
483 %description BOOT -l de
484 Dieses Paket enthƤlt eine verkleinerte Version vom Linux-Kernel
485 version %{version}. Dieser Kernel wird auf den
486 Installations-Bootdisketten benutzt und sollte nicht auf einem
487 installierten System verwendet werden, da viele Funktionen wegen der
488 Platzprobleme abgeschaltet sind.
490 %description BOOT -l pl
491 Pakiet zawiera jĀ±dro Linuksa dedykowane dyskietkom startowym i powinno
492 byƦ uĀæywane jedynie podczas instalacji systemu. Wiele uĀæytecznych
493 opcji zostaĀ³o wyĀ³Ā±czonych, aby jak najbardziej zmniejszyƦ jego
497 Summary: Header files for the Linux kernel
498 Summary(pl): Pliki nagĀ³Ć³wkowe jĀ±dra Linuksa
500 Provides: %{name}-headers(agpgart) = %{version}
501 Provides: %{name}-headers(reiserfs) = %{version}
502 Provides: %{name}-headers(bridging) = %{version}
503 Provides: kernel-i2c-devel
504 Provides: %{name}-headers(netfilter) = %{_netfilter_snap}
505 Provides: %{name}-headers(alsa-drivers)
506 Obsoletes: kernel-i2c-devel
510 These are the C header files for the Linux kernel, which define
511 structures and constants that are needed when rebuilding the kernel
512 or building kernel modules.
514 %description headers -l pl
515 Pakiet zawiera pliki nagĀ³Ć³wkowe jĀ±dra, niezbĆŖdne do rekompilacji jĀ±dra
516 oraz budowania moduĀ³Ć³w jĀ±dra.
518 %package module-build
519 Summary: Development files for building kernel modules
520 Summary(pl): Pliki sĀ³uĀæĀ±ce do budowania moduĀ³Ć³w jĀ±dra
522 Requires: %{name}-headers = %{epoch}:%{version}-%{release}
525 %description module-build
526 Development files from kernel source tree needed to build Linux kernel
527 modules from external packages.
529 %description module-build -l pl
530 Pliki ze drzewa Ā¼rĆ³deĀ³ jĀ±dra potrzebne do budowania moduĀ³Ć³w jĀ±dra
531 Linuksa z zewnĆŖtrznych pakietĆ³w.
534 Summary: Kernel source tree
535 Summary(pl): Kod Ā¼rĆ³dĀ³owy jĀ±dra Linuksa
537 Requires: %{name}-module-build = %{epoch}:%{version}-%{release}
541 This is the source code for the Linux kernel. It is required to build
542 most C programs as they depend on constants defined in here. You can
543 also build a custom kernel that is better tuned to your particular
546 %description source -l de
547 Das Kernel-Source-Paket enthƤlt den source code (C/Assembler-Code) des
548 Linux-Kernels. Die Source-Dateien werden gebraucht, um viele
549 C-Programme zu compilieren, da sie auf Konstanten zurĆ¼ckgreifen, die
550 im Kernel-Source definiert sind. Die Source-Dateien kƶnnen auch
551 benutzt werden, um einen Kernel zu compilieren, der besser auf Ihre
552 Hardware ausgerichtet ist.
554 %description source -l fr
555 Le package pour le kernel-source contient le code source pour le noyau
556 linux. Ces sources sont nƩcessaires pour compiler la plupart des
557 programmes C, car il dƩpend de constantes dƩfinies dans le code
558 source. Les sources peuvent ĆŖtre aussi utilisĆ©e pour compiler un noyau
559 personnalisƩ pour avoir de meilleures performances sur des matƩriels
562 %description source -l pl
563 Pakiet zawiera kod Ā¼rĆ³dĀ³owy jĀ±dra systemu.
566 Summary: Kernel documentation
567 Summary(pl): Dokumentacja do jĀ±dra Linuksa
569 Provides: %{name}-doc = %{version}
573 This is the documentation for the Linux kernel, as found in
574 /usr/src/linux/Documentation directory.
576 %description doc -l pl
577 Pakiet zawiera dokumentacjĆŖ do jĀ±dra Linuksa pochodzĀ±cĀ± z katalogu
578 /usr/src/linux/Documentation.
581 %setup -q -n linux-%{version}%{_rc}
586 %if "%{_apply_cset}" != "0"
587 zcat %{SOURCE3} | patch -p1 -s
615 %if %{with bootsplash}
681 # Philips USB drivers.
685 #cp drivers/usb/media/libpwcx.a_ix86 drivers/usb/media/libpwcx.a_
688 #cp drivers/usb/media/libpwcx.a_powerpc drivers/usb/media/libpwcx.a_
691 #cp drivers/usb/media/libpwcx.a_ppc drivers/usb/media/libpwcx.a_
700 %ifarch alpha %{ix86} ia64 ppc sparc sparc64 amd64
706 %if %{with execshield}
707 install %{PATCH211} exec-shield.patch
709 patch -s exec-shield.patch < %{PATCH212}
711 patch -p1 -s < exec-shield.patch
722 #patch104 -p1 # <- not applayed need checkout
744 # Fix EXTRAVERSION and CC in main Makefile
745 mv -f Makefile Makefile.orig
746 sed -e 's#EXTRAVERSION =.*#EXTRAVERSION =#g' \
747 %ifarch %{ix86} alpha sparc ppc
748 -e 's#CC.*$(CROSS_COMPILE)gcc#CC = %{__cc}#g' \
751 -e 's#CC.*$(CROSS_COMPILE)gcc#CC = sparc64-pld-linux-gcc#g' \
753 Makefile.orig >Makefile
755 sed -i 's:\-pipe::' arch/*/Makefile
760 # is this a special kernel we want to build?
763 [ "$1" = "BOOT" -o "$2" = "BOOT" ] && BOOT=yes
764 [ "$1" = "smp" -o "$2" = "smp" ] && smp=yes
765 if [ "$smp" = "yes" ]; then
766 Config="%{_target_base_arch}-smp"
768 Config="%{_target_base_arch}"
770 if [ "$BOOT" = "yes" ]; then
771 KernelVer=%{version}-%{release}BOOT
773 KernelVer=%{version}-%{release}$1
775 echo "Building config file for KERNEL $1..."
777 cat $RPM_SOURCE_DIR/kernel-$Config.config > arch/%{_target_base_arch}/defconfig
779 echo "CONFIG_M386=y" >> arch/%{_target_base_arch}/defconfig
782 echo "CONFIG_M486=y" >> arch/%{_target_base_arch}/defconfig
785 echo "CONFIG_M586=y" >> arch/%{_target_base_arch}/defconfig
788 echo "CONFIG_M686=y" >> arch/%{_target_base_arch}/defconfig
791 echo "CONFIG_MPENTIUMIII=y" >> arch/%{_target_base_arch}/defconfig
794 echo "CONFIG_MPENTIUM4=y" >> arch/%{_target_base_arch}/defconfig
797 echo "CONFIG_MK7=y" >> arch/%{_target_base_arch}/defconfig
799 %{?with_preemptive:echo "CONFIG_PREEMPT=y" >> arch/%{_target_base_arch}/defconfig}
802 cat %{SOURCE80} >> arch/%{_target_base_arch}/defconfig
805 cat %{SOURCE90} >> arch/%{_target_base_arch}/defconfig
808 %ifarch pentium3 pentium4 athlon
809 # kernel-i386-smp.config contains 64G support by default.
811 sed -i "s:CONFIG_HIGHMEM4G=y:# CONFIG_HIGHMEM4G is not set:" arch/%{_target_base_arch}/defconfig
812 sed -i "s:# CONFIG_HIGHMEM64G is not set:CONFIG_HIGHMEM64G=y\nCONFIG_X86_PAE=y:" arch/%{_target_base_arch}/defconfig
816 %ifarch i386 i486 i586
817 sed -i 's/# CONFIG_MATH_EMULATION is not set/CONFIG_MATH_EMULATION=y/' \
818 arch/%{_target_base_arch}/defconfig
821 ln -sf arch/%{_target_base_arch}/defconfig .config
823 install -d $KERNEL_INSTALL_DIR/usr/src/linux-%{version}/include/linux
824 %{__make} include/linux/autoconf.h
825 if [ "$smp" = "yes" ]; then
826 install include/linux/autoconf.h $KERNEL_INSTALL_DIR/usr/src/linux-%{version}/include/linux/autoconf-smp.h
828 install include/linux/autoconf.h $KERNEL_INSTALL_DIR/usr/src/linux-%{version}/include/linux/autoconf-up.h
834 Config="%{_target_base_arch}"
835 cat $RPM_SOURCE_DIR/kernel-$Config.config > arch/%{_target_base_arch}/defconfig
837 echo "CONFIG_M386=y" >> arch/%{_target_base_arch}/defconfig
840 echo "CONFIG_M486=y" >> arch/%{_target_base_arch}/defconfig
842 %ifarch i386 i486 i586
843 sed -i 's/# CONFIG_MATH_EMULATION is not set/CONFIG_MATH_EMULATION=y/' \
844 arch/%{_target_base_arch}/defconfig
846 cat <<EOF >>arch/%{_target_base_arch}/defconfig
847 # CONFIG_APM is not set
848 # CONFIG_ACPI is not set
849 # CONFIG_ACPI_BOOT is not set
850 # CONFIG_MTD is not set
851 # CONFIG_NETFILTER is not set
852 # CONFIG_WAN is not set
853 # CONFIG_ATM is not set
854 # CONFIG_HOTPLUG_PCI is not set
855 # CONFIG_NET_SCHED is not set
856 # CONFIG_X86_MCE is not set
857 # CONFIG_MTRR is not set
858 # CONFIG_PM is not set
859 # CONFIG_CPU_FREQ is not set
860 # CONFIG_DRM is not set
861 # CONFIG_FTAPE is not set
862 # CONFIG_WATCHDOG is not set
863 # CONFIG_DVB is not set
864 # CONFIG_DVB_CORE is not set
865 # CONFIG_VIDEO_DEV is not set
866 # CONFIG_SECURITY is not set
867 # CONFIG_SOUND is not set
868 # CONFIG_USB_AUDIO is not set
869 # CONFIG_INPUT_JOYSTICK is not set
870 # CONFIG_OMNIBOOK is not set
871 # CONFIG_NET_RADIO is not set
872 # CONFIG_HOTPLUG is not set
873 # CONFIG_QUOTA is not set
874 # CONFIG_REGPARM is not set
875 # CONFIG_SCSI_LOGGING is not set
878 # CONFIG_DEV_APPLETALK is not set
879 # CONFIG_ECONET_AUNUDP is not set
880 # CONFIG_HIPPI is not set
881 # CONFIG_TR is not set
882 # CONFIG_INPUT_MISC is not set
883 # CONFIG_INPUT_TOUCHSCREEN is not set
884 # CONFIG_PROFILING is not set
885 # CONFIG_DEBUG_KERNEL is not set
886 # CONFIG_DEBUG_SPINLOCK_SLEEP is not set
887 # CONFIG_FRAME_POINTER is not set
888 # CONFIG_LBD is not set
889 # CONFIG_SLIP is not set
890 # CONFIG_PPP is not set
891 # CONFIG_PLIP is not set
892 # CONFIG_FDDI is not set
893 # CONFIG_HAMRADIO is not set
894 # CONFIG_NETPOLL_RX is not set
895 # CONFIG_NETPOLL_TRAP is not set
896 # CONFIG_FB is not set
898 ln -sf arch/%{_target_base_arch}/defconfig .config
900 install -d $KERNEL_INSTALL_DIR/usr/src/linux-%{version}/include/linux
901 %{__make} include/linux/autoconf.h
902 if [ "$smp" = "yes" ]; then
903 install include/linux/autoconf.h $KERNEL_INSTALL_DIR/usr/src/linux-%{version}/include/linux/autoconf-smp.h
905 install include/linux/autoconf.h $KERNEL_INSTALL_DIR/usr/src/linux-%{version}/include/linux/autoconf-up.h
911 echo "Building kernel $1 ..."
913 RCS_FIND_IGNORE='-name build-done -prune -o'
914 ln -sf arch/%{_target_base_arch}/defconfig .config
917 sparc32 %{__make} clean \
918 RCS_FIND_IGNORE='-name build-done -prune -o'
921 RCS_FIND_IGNORE='-name build-done -prune -o'
923 %{__make} include/linux/version.h \
926 # make does vmlinux, modules and bzImage at once
927 %ifarch sparc sparc64
947 [ "$1" = "BOOT" -o "$2" = "BOOT" ] && BOOT=yes
948 [ "$1" = "smp" -o "$2" = "smp" ] && smp=yes
949 if [ "$smp" = "yes" ]; then
950 Config="%{_target_base_arch}-smp"
952 Config="%{_target_base_arch}"
954 if [ "$BOOT" = "yes" ]; then
955 KernelVer=%{version}-%{release}BOOT
957 KernelVer=%{version}-%{release}$1
960 mkdir -p $KERNEL_INSTALL_DIR/boot
961 install System.map $KERNEL_INSTALL_DIR/boot/System.map-$KernelVer
962 %ifarch %{ix86} amd64
963 install arch/%{_target_base_arch}/boot/bzImage $KERNEL_INSTALL_DIR/boot/vmlinuz-$KernelVer
965 %ifarch alpha sparc sparc64
966 gzip -cfv vmlinux > vmlinuz
967 install vmlinux $KERNEL_INSTALL_DIR/boot/vmlinux-$KernelVer
968 install vmlinuz $KERNEL_INSTALL_DIR/boot/vmlinuz-$KernelVer
970 elftoaout arch/sparc/boot/image -o vmlinux.aout
971 install vmlinux.aout $KERNEL_INSTALL_DIR/boot/vmlinux.aout-$KernelVer
974 elftoaout arch/sparc64/boot/image -o vmlinux.aout
975 install vmlinux.aout $KERNEL_INSTALL_DIR/boot/vmlinux.aout-$KernelVer
980 install vmlinux $KERNEL_INSTALL_DIR/boot/vmlinux-$KernelVer
981 install vmlinux $KERNEL_INSTALL_DIR/boot/vmlinuz-$KernelVer
983 %{__make} modules_install \
984 %{?with_verbose:V=1} \
985 INSTALL_MOD_PATH=$KERNEL_INSTALL_DIR \
986 KERNELRELEASE=$KernelVer
988 echo "CHECKING DEPENDENCIES FOR KERNEL MODULES"
989 /sbin/depmod --basedir $KERNEL_INSTALL_DIR -ae -F $KERNEL_INSTALL_DIR/boot/System.map-$KernelVer -r $KernelVer || echo
991 echo "KERNEL RELEASE $KernelVer DONE"
995 KERNEL_BUILD_DIR=`pwd`
998 KERNEL_INSTALL_DIR="$KERNEL_BUILD_DIR/build-done/kernel-UP"
999 rm -rf $KERNEL_INSTALL_DIR
1001 %{?with_up:BuildKernel}
1002 %{?with_up:PreInstallKernel}
1005 KERNEL_INSTALL_DIR="$KERNEL_BUILD_DIR/build-done/kernel-SMP"
1006 rm -rf $KERNEL_INSTALL_DIR
1008 %{?with_smp:BuildKernel smp}
1009 %{?with_smp:PreInstallKernel smp}
1012 KERNEL_INSTALL_DIR="$KERNEL_BUILD_DIR/build-done/BOOT"
1013 rm -rf $KERNEL_INSTALL_DIR
1016 PreInstallKernel BOOT
1020 rm -rf $RPM_BUILD_ROOT
1023 install -d $RPM_BUILD_ROOT%{_prefix}/src/linux-%{version}
1025 KERNEL_BUILD_DIR=`pwd`
1027 %if %{with up} || %{with smp}
1028 cp -a $KERNEL_BUILD_DIR/build-done/kernel-*/* $RPM_BUILD_ROOT
1031 for i in "" smp ; do
1032 if [ -e $RPM_BUILD_ROOT/lib/modules/%{version}-%{release}$i ] ; then
1033 rm -f $RPM_BUILD_ROOT/lib/modules/%{version}-%{release}$i/build
1034 ln -sf %{_prefix}/src/linux-%{version} \
1035 $RPM_BUILD_ROOT/lib/modules/%{version}-%{release}$i/build
1039 ln -sf linux-%{version} $RPM_BUILD_ROOT%{_prefix}/src/linux
1041 find . ! -name "build-done" -maxdepth 1 -exec cp -a "{}" "$RPM_BUILD_ROOT/usr/src/linux-%{version}/" ";"
1043 cd $RPM_BUILD_ROOT%{_prefix}/src/linux-%{version}
1045 %{__make} mrproper \
1046 RCS_FIND_IGNORE='-name build-done -prune -o'
1047 find -name "*~" -exec rm -f "{}" ";"
1048 find -name "*.orig" -exec rm -f "{}" ";"
1050 install $RPM_SOURCE_DIR/kernel-%{_target_base_arch}.config .config
1053 echo "CONFIG_M386=y" >> .config
1056 echo "CONFIG_M486=y" >> .config
1059 echo "CONFIG_M586=y" >> .config
1062 echo "CONFIG_M686=y" >> .config
1065 echo "CONFIG_MPENTIUMIII=y" >> .config
1068 echo "CONFIG_MPENTIUM4=y" >> .config
1071 echo "CONFIG_MK7=y" >> .config
1074 cat %{SOURCE80} >> .config
1076 cat %{SOURCE90} >> .config
1078 cp .config config-up
1080 install $RPM_SOURCE_DIR/kernel-%{_target_base_arch}-smp.config .config
1083 echo "CONFIG_M386=y" >> .config
1086 echo "CONFIG_M486=y" >> .config
1089 echo "CONFIG_M586=y" >> .config
1092 echo "CONFIG_M686=y" >> .config
1095 echo "CONFIG_MPENTIUMIII=y" >> .config
1098 echo "CONFIG_MPENTIUM4=y" >> .config
1101 echo "CONFIG_MK7=y" >> .config
1104 cat %{SOURCE80} >> .config
1106 cat %{SOURCE90} >> .config
1108 cp .config config-smp
1110 if [ -e $KERNEL_BUILD_DIR/build-done/kernel-UP/usr/src/linux-%{version}/include/linux/autoconf-up.h ]; then
1111 install $KERNEL_BUILD_DIR/build-done/kernel-UP/usr/src/linux-%{version}/include/linux/autoconf-up.h \
1112 $RPM_BUILD_ROOT/usr/src/linux-%{version}/include/linux
1115 if [ -e $KERNEL_BUILD_DIR/build-done/kernel-SMP/usr/src/linux-%{version}/include/linux/autoconf-smp.h ]; then
1116 install $KERNEL_BUILD_DIR/build-done/kernel-SMP/usr/src/linux-%{version}/include/linux/autoconf-smp.h \
1117 $RPM_BUILD_ROOT/usr/src/linux-%{version}/include/linux
1120 %if %{with up} || %{with smp}
1122 install $KERNEL_BUILD_DIR/build-done/kernel-*/usr/src/linux-%{version}/include/linux/* \
1123 $RPM_BUILD_ROOT/usr/src/linux-%{version}/include/linux
1127 %{__make} include/linux/version.h
1128 install %{SOURCE1} $RPM_BUILD_ROOT%{_prefix}/src/linux-%{version}/include/linux/autoconf.h
1131 rm -rf $RPM_BUILD_ROOT
1134 mv -f /boot/vmlinuz /boot/vmlinuz.old 2> /dev/null > /dev/null
1135 mv -f /boot/System.map /boot/System.map.old 2> /dev/null > /dev/null
1136 ln -sf vmlinuz-%{version}-%{release} /boot/vmlinuz
1137 ln -sf System.map-%{version}-%{release} /boot/System.map
1139 if [ ! -L /lib/modules/%{version} ] ; then
1140 mv -f /lib/modules/%{version} /lib/modules/%{version}.rpmsave > /dev/null 2>&1
1142 rm -f /lib/modules/%{version}
1143 ln -snf %{version}-%{release} /lib/modules/%{version}
1144 %depmod %{version}-%{release}
1146 /sbin/geninitrd -f --initrdfs=rom /boot/initrd-%{version}-%{release}.gz %{version}-%{release}
1147 mv -f /boot/initrd /boot/initrd.old
1148 ln -sf initrd-%{version}-%{release}.gz /boot/initrd
1150 if [ -x /sbin/rc-boot ] ; then
1151 /sbin/rc-boot 1>&2 || :
1155 if [ -L /lib/modules/%{version} ]; then
1156 if [ "`ls -l /lib/modules/%{version} | awk '{ print $10 }'`" = "%{version}-%{release}" ]; then
1157 if [ "$1" = "0" ]; then
1158 rm -f /lib/modules/%{version}
1162 rm -f /boot/initrd-%{version}-%{release}.gz
1165 %depmod %{version}-%{release}
1168 %depmod %{version}-%{release}
1171 %depmod %{version}-%{release}
1174 %depmod %{version}-%{release}
1177 %depmod %{version}-%{release}
1180 %depmod %{version}-%{release}
1183 %depmod %{version}-%{release}
1186 %depmod %{version}-%{release}
1189 mv -f /boot/vmlinuz /boot/vmlinuz.old 2> /dev/null > /dev/null
1190 mv -f /boot/System.map /boot/System.map.old 2> /dev/null > /dev/null
1191 ln -sf vmlinuz-%{version}-%{release}smp /boot/vmlinuz
1192 ln -sf System.map-%{version}-%{release}smp /boot/System.map
1194 if [ ! -L /lib/modules/%{version} ] ; then
1195 mv -f /lib/modules/%{version} /lib/modules/%{version}.rpmsave > /dev/null 2>&1
1197 rm -f /lib/modules/%{version}
1198 ln -snf %{version}-%{release}smp /lib/modules/%{version}
1199 %depmod %{version}-%{release}smp
1201 /sbin/geninitrd -f --initrdfs=rom /boot/initrd-%{version}-%{release}smp.gz %{version}-%{release}smp
1202 mv -f /boot/initrd /boot/initrd.old
1203 ln -sf initrd-%{version}-%{release}smp.gz /boot/initrd
1205 if [ -x /sbin/rc-boot ] ; then
1206 /sbin/rc-boot 1>&2 || :
1210 if [ -L /lib/modules/%{version} ]; then
1211 if [ "`ls -l /lib/modules/%{version} | awk '{ print $10 }'`" = "%{version}-%{release}smp" ]; then
1212 if [ "$1" = "0" ]; then
1213 rm -f /lib/modules/%{version}
1217 rm -f /boot/initrd-%{version}-%{release}smp.gz
1220 if [ ! -L %{_libdir}/bootdisk/lib/modules/%{version} ] ; then
1221 mv -f %{_libdir}/bootdisk/lib/modules/%{version} %{_libdir}/bootdisk/lib/modules/%{version}.rpmsave
1223 if [ ! -L %{_libdir}/bootdisk/boot/vmlinuz-%{version} ] ; then
1224 mv -f %{_libdir}/bootdisk/boot/vmlinuz-%{version} %{_libdir}/bootdisk/boot/vmlinuz-%{version}.rpmsave
1226 rm -f %{_libdir}/bootdisk/lib/modules/%{version}
1227 ln -snf %{version}-%{release}BOOT %{_libdir}/bootdisk/lib/modules/%{version}
1228 rm -f %{_libdir}/bootdisk/boot/vmlinuz-%{version}
1229 ln -snf vmlinuz-%{version}-%{release}BOOT %{_libdir}/bootdisk/boot/vmlinuz-%{version}
1232 %depmod %{version}-%{release}smp
1235 %depmod %{version}-%{release}smp
1238 %depmod %{version}-%{release}smp
1241 %depmod %{version}-%{release}smp
1243 %post smp-sound-alsa
1244 %depmod %{version}-%{release}smp
1246 %postun smp-sound-alsa
1247 %depmod %{version}-%{release}smp
1250 %depmod %{version}-%{release}smp
1252 %postun smp-sound-oss
1253 %depmod %{version}-%{release}smp
1256 if [ -L %{_libdir}/bootdisk/lib/modules/%{version} ]; then
1257 if [ "`ls -l %{_libdir}/bootdisk/lib/modules/%{version} | awk '{ print $10 }'`" = "%{version}-%{release}BOOT" ]; then
1258 if [ "$1" = "0" ]; then
1259 rm -f %{_libdir}/bootdisk/lib/modules/%{version}
1265 rm -f /usr/src/linux
1266 ln -snf linux-%{version} /usr/src/linux
1269 if [ -L %{_prefix}/src/linux ]; then
1270 if [ "`ls -l %{_prefix}/src/linux | awk '{ print $10 }'`" = "linux-%{version}" ]; then
1271 if [ "$1" = "0" ]; then
1272 rm -f %{_prefix}/src/linux
1279 %defattr(644,root,root,755)
1281 /boot/vmlinux-%{version}-%{release}
1283 %ifarch sparc sparc64
1284 /boot/vmlinux-%{version}-%{release}
1285 /boot/vmlinux.aout-%{version}-%{release}
1287 /boot/vmlinuz-%{version}-%{release}
1288 /boot/System.map-%{version}-%{release}
1289 %dir /lib/modules/%{version}-%{release}
1290 /lib/modules/%{version}-%{release}/kernel
1291 %ifnarch sparc sparc64
1293 %exclude /lib/modules/%{version}-%{release}/kernel/drivers/pcmcia
1294 %exclude /lib/modules/%{version}-%{release}/kernel/drivers/*/pcmcia
1295 %exclude /lib/modules/%{version}-%{release}/kernel/drivers/bluetooth/*_cs.ko
1296 %exclude /lib/modules/%{version}-%{release}/kernel/drivers/net/wireless/*_cs.ko
1297 %exclude /lib/modules/%{version}-%{release}/kernel/drivers/parport/parport_cs.ko
1298 %exclude /lib/modules/%{version}-%{release}/kernel/drivers/serial/serial_cs.ko
1300 %ifnarch sparc sparc64
1302 %exclude /lib/modules/%{version}-%{release}/kernel/drivers/char/drm
1304 %ifnarch sparc sparc64
1306 %exclude /lib/modules/%{version}-%{release}/kernel/sound/oss
1309 %exclude /lib/modules/%{version}-%{release}/kernel/sound/core
1310 %exclude /lib/modules/%{version}-%{release}/kernel/sound/drivers
1311 %ifnarch sparc sparc64
1312 %exclude /lib/modules/%{version}-%{release}/kernel/sound/i2c
1313 %exclude /lib/modules/%{version}-%{release}/kernel/sound/isa
1314 %exclude /lib/modules/%{version}-%{release}/kernel/sound/pci
1315 %exclude /lib/modules/%{version}-%{release}/kernel/sound/synth
1316 %exclude /lib/modules/%{version}-%{release}/kernel/sound/usb
1318 %ifarch sparc sparc64
1319 %exclude /lib/modules/%{version}-%{release}/kernel/sound/sparc
1322 /lib/modules/%{version}-%{release}/build
1323 %ghost /lib/modules/%{version}-%{release}/modules.*
1325 %ifnarch sparc sparc64
1327 %defattr(644,root,root,755)
1328 /lib/modules/%{version}-%{release}/kernel/drivers/char/drm
1331 %ifnarch sparc sparc64
1333 %defattr(644,root,root,755)
1334 /lib/modules/%{version}-%{release}/kernel/drivers/pcmcia
1335 /lib/modules/%{version}-%{release}/kernel/drivers/*/pcmcia
1336 /lib/modules/%{version}-%{release}/kernel/drivers/bluetooth/*_cs.ko
1337 /lib/modules/%{version}-%{release}/kernel/drivers/net/wireless/*_cs.ko
1338 /lib/modules/%{version}-%{release}/kernel/drivers/parport/parport_cs.ko
1339 /lib/modules/%{version}-%{release}/kernel/drivers/serial/serial_cs.ko
1343 %defattr(644,root,root,755)
1344 /lib/modules/%{version}-%{release}/kernel/sound/core
1345 /lib/modules/%{version}-%{release}/kernel/sound/drivers
1346 %ifnarch sparc sparc64
1347 /lib/modules/%{version}-%{release}/kernel/sound/i2c
1348 /lib/modules/%{version}-%{release}/kernel/sound/isa
1349 /lib/modules/%{version}-%{release}/kernel/sound/pci
1350 /lib/modules/%{version}-%{release}/kernel/sound/synth
1351 /lib/modules/%{version}-%{release}/kernel/sound/usb
1353 %ifarch sparc sparc64
1354 /lib/modules/%{version}-%{release}/kernel/sound/sparc
1357 %ifnarch sparc sparc64
1359 %defattr(644,root,root,755)
1360 /lib/modules/%{version}-%{release}/kernel/sound/oss
1362 %endif # %%{with up}
1366 %defattr(644,root,root,755)
1367 %ifarch alpha sparc sparc64 ppc
1368 /boot/vmlinux-%{version}-%{release}smp
1370 /boot/vmlinuz-%{version}-%{release}smp
1371 /boot/System.map-%{version}-%{release}smp
1372 %dir /lib/modules/%{version}-%{release}smp
1373 /lib/modules/%{version}-%{release}smp/kernel
1374 %ifnarch sparc sparc64
1376 %exclude /lib/modules/%{version}-%{release}smp/kernel/drivers/pcmcia
1377 %exclude /lib/modules/%{version}-%{release}smp/kernel/drivers/*/pcmcia
1378 %exclude /lib/modules/%{version}-%{release}smp/kernel/drivers/bluetooth/*_cs.ko
1379 %exclude /lib/modules/%{version}-%{release}smp/kernel/drivers/net/wireless/*_cs.ko
1380 %exclude /lib/modules/%{version}-%{release}smp/kernel/drivers/parport/parport_cs.ko
1381 %exclude /lib/modules/%{version}-%{release}smp/kernel/drivers/serial/serial_cs.ko
1383 %ifnarch sparc sparc64
1385 %exclude /lib/modules/%{version}-%{release}smp/kernel/drivers/char/drm
1387 %ifnarch sparc sparc64
1389 %exclude /lib/modules/%{version}-%{release}smp/kernel/sound/oss
1392 %exclude /lib/modules/%{version}-%{release}smp/kernel/sound/core
1393 %exclude /lib/modules/%{version}-%{release}smp/kernel/sound/drivers
1394 %ifnarch sparc sparc64
1395 %exclude /lib/modules/%{version}-%{release}smp/kernel/sound/i2c
1396 %exclude /lib/modules/%{version}-%{release}smp/kernel/sound/isa
1397 %exclude /lib/modules/%{version}-%{release}smp/kernel/sound/pci
1398 %exclude /lib/modules/%{version}-%{release}smp/kernel/sound/synth
1399 %exclude /lib/modules/%{version}-%{release}smp/kernel/sound/usb
1401 %ifarch sparc sparc64
1402 %exclude /lib/modules/%{version}-%{release}smp/kernel/sound/sparc
1405 /lib/modules/%{version}-%{release}smp/build
1406 %ghost /lib/modules/%{version}-%{release}smp/modules.*
1408 %ifnarch sparc sparc64
1410 %defattr(644,root,root,755)
1411 /lib/modules/%{version}-%{release}smp/kernel/drivers/char/drm
1414 %ifnarch sparc sparc64
1416 %defattr(644,root,root,755)
1417 /lib/modules/%{version}-%{release}smp/kernel/drivers/pcmcia
1418 /lib/modules/%{version}-%{release}smp/kernel/drivers/*/pcmcia
1419 /lib/modules/%{version}-%{release}smp/kernel/drivers/bluetooth/*_cs.ko
1420 /lib/modules/%{version}-%{release}smp/kernel/drivers/net/wireless/*_cs.ko
1421 /lib/modules/%{version}-%{release}smp/kernel/drivers/parport/parport_cs.ko
1422 /lib/modules/%{version}-%{release}smp/kernel/drivers/serial/serial_cs.ko
1425 %files smp-sound-alsa
1426 %defattr(644,root,root,755)
1427 /lib/modules/%{version}-%{release}smp/kernel/sound/core
1428 /lib/modules/%{version}-%{release}smp/kernel/sound/drivers
1429 %ifnarch sparc sparc64
1430 /lib/modules/%{version}-%{release}smp/kernel/sound/i2c
1431 /lib/modules/%{version}-%{release}smp/kernel/sound/isa
1432 /lib/modules/%{version}-%{release}smp/kernel/sound/pci
1433 /lib/modules/%{version}-%{release}smp/kernel/sound/synth
1434 /lib/modules/%{version}-%{release}smp/kernel/sound/usb
1436 %ifarch sparc sparc64
1437 /lib/modules/%{version}-%{release}smp/kernel/sound/sparc
1440 %ifnarch sparc sparc64
1441 %files smp-sound-oss
1442 %defattr(644,root,root,755)
1443 /lib/modules/%{version}-%{release}smp/kernel/sound/oss
1445 %endif # %%{with smp}
1449 %defattr(644,root,root,755)
1450 %ifarch alpha sparc sparc64 ppc # arch
1451 %{_libdir}/bootdisk/boot/vmlinux-%{version}-%{release}BOOT
1453 %{_libdir}/bootdisk/boot/vmlinuz-%{version}-%{release}BOOT
1454 %{_libdir}/bootdisk/boot/System.map-%{version}-%{release}BOOT
1455 %dir %{_libdir}/bootdisk/lib/modules/%{version}-%{release}BOOT
1456 %{_libdir}/bootdisk/lib/modules/%{version}-%{release}BOOT/kernel
1457 %{_libdir}/bootdisk/lib/modules/%{version}-%{release}BOOT/build
1458 %ghost %{_libdir}/bootdisk/lib/modules/%{version}-%{release}BOOT/modules.*
1459 %endif # %%{with BOOT}
1462 %defattr(644,root,root,755)
1463 %dir %{_prefix}/src/linux-%{version}
1464 %{_prefix}/src/linux-%{version}/include
1465 %{_prefix}/src/linux-%{version}/config-smp
1466 %{_prefix}/src/linux-%{version}/config-up
1469 %defattr(644,root,root,755)
1470 %{_prefix}/src/linux-%{version}/Makefile
1471 %dir %{_prefix}/src/linux-%{version}/arch
1472 %dir %{_prefix}/src/linux-%{version}/arch/*
1473 %{_prefix}/src/linux-%{version}/arch/*/Makefile*
1474 %dir %{_prefix}/src/linux-%{version}/arch/*/kernel
1475 %{_prefix}/src/linux-%{version}/arch/*/kernel/Makefile
1476 %{_prefix}/src/linux-%{version}/arch/*/kernel/asm-offsets.*
1477 %{_prefix}/src/linux-%{version}/arch/*/kernel/sigframe.h
1478 %dir %{_prefix}/src/linux-%{version}/scripts
1479 %{_prefix}/src/linux-%{version}/scripts/Makefile*
1480 %{_prefix}/src/linux-%{version}/scripts/basic
1481 %{_prefix}/src/linux-%{version}/scripts/*.c
1482 %{_prefix}/src/linux-%{version}/scripts/*.h
1483 %{_prefix}/src/linux-%{version}/scripts/*.sh
1486 %defattr(644,root,root,755)
1487 %{_prefix}/src/linux-%{version}/Documentation
1488 #%%{_prefix}/src/linux-%{version}/netfilter-patch-o-matic
1492 %defattr(644,root,root,755)
1493 %{_prefix}/src/linux-%{version}/arch/*/[!Mk]*
1494 %{_prefix}/src/linux-%{version}/arch/*/kernel/[!M]*
1495 %exclude %{_prefix}/src/linux-%{version}/arch/*/kernel/asm-offsets.*
1496 %exclude %{_prefix}/src/linux-%{version}/arch/*/kernel/sigframe.h
1497 %{_prefix}/src/linux-%{version}/cluster
1498 %{_prefix}/src/linux-%{version}/crypto
1499 %{_prefix}/src/linux-%{version}/drivers
1500 %{_prefix}/src/linux-%{version}/fs
1502 %{_prefix}/src/linux-%{version}/grsecurity
1504 %{_prefix}/src/linux-%{version}/init
1505 %{_prefix}/src/linux-%{version}/ipc
1506 %{_prefix}/src/linux-%{version}/kernel
1507 %{_prefix}/src/linux-%{version}/lib
1508 %{_prefix}/src/linux-%{version}/mm
1509 %{_prefix}/src/linux-%{version}/net
1510 %{_prefix}/src/linux-%{version}/scripts/*
1511 %exclude %{_prefix}/src/linux-%{version}/scripts/Makefile*
1512 %exclude %{_prefix}/src/linux-%{version}/scripts/basic
1513 %exclude %{_prefix}/src/linux-%{version}/scripts/*.c
1514 %exclude %{_prefix}/src/linux-%{version}/scripts/*.h
1515 %exclude %{_prefix}/src/linux-%{version}/scripts/*.sh
1516 %{_prefix}/src/linux-%{version}/sound
1517 %{_prefix}/src/linux-%{version}/security
1518 %{_prefix}/src/linux-%{version}/usr
1519 %{_prefix}/src/linux-%{version}/COPYING
1520 %{_prefix}/src/linux-%{version}/CREDITS
1521 %{_prefix}/src/linux-%{version}/MAINTAINERS
1522 %{_prefix}/src/linux-%{version}/README
1523 %{_prefix}/src/linux-%{version}/REPORTING-BUGS