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 20040712_1813
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: http://kernel.org/pub/linux/kernel/v2.6/testing/linux-%{version}%{_rc}.tar.bz2
79 # Source0-md5: d7fd3f81651f6f2caae229a8f4d3f954
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: d3543e48a05042b1801e8e883ea8782e
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
105 # from http://dl.sf.net/sourceforge/squashfs/
106 Patch4: squashfs2.0-patch
108 Patch6: 2.6.0-t4-PPC-ENODEV.patch
110 Patch8: 2.6.0-t6-usb-irq.patch
112 Patch10: 2.6.0-t7-memleak-lkml.patch
113 Patch11: 2.6.0-t7-memleak2-lkml.patch
115 Patch14: 2.6.0-t8-swap-include-lkml.patch
117 Patch16: 2.6.0-t8-VLSI-ix86-lkml.patch
119 Patch18: 2.6.0-t8-appletalk-SYSCTL-lkml.patch
121 Patch20: 2.6.0-t8-umsdos-lkml.patch
123 Patch22: 2.6.0-t9-acpi_osl-lkml.patch
125 Patch24: %{name}-nls_default.patch
127 # rewriten based on: ftp://ftp.suse.com/pub/people/stepan/bootsplash/kernel/bootsplash-3.1.4-2.6.3.diff
128 Patch26: bootsplash-3.1.4-2.6.7.patch
130 Patch28: 2.6.0-t11-AIC_and_db4-lkml.patch
132 Patch30: linux-tdfxfb-fillrect.patch
133 Patch31: linux-fbcon-margins.patch
134 Patch32: linux-tdfxfb-interlace+double.patch
135 Patch33: linux-2.6-rivafb16.patch
137 Patch34: 2.6.1-rc2-ini9100u-lkml.patch
139 Patch36: 2.6.1-rc2-VLAN-NS83820-lkml.patch
141 Patch38: linux-kbuild-extmod.patch
143 Patch40: 2.6.x-PD6729-lkml.patch
145 Patch42: 2.6.x-ppp_mppe.patch
147 Patch44: 2.6.2-Initio9100U-Kconfig.patch
150 Patch46: 2.6.7-pom-ng-%{_netfilter_snap}.patch
151 # http://www.barbara.eu.org/~quaker/ipt_account/
152 Patch47: 2.6.6-ipt_account.patch
154 Patch48: 2.6.3-sparc32-fix.patch
156 # http://www.tahoe.pl/drivers/tahoe9xx-2.6.2.patch
157 #Patch50: tahoe9xx-2.6.2.patch
158 Patch50: http://www.tahoe.pl/drivers/tahoe9xx-2.6.4-5.patch
159 Patch51: linux-tahoe9xx-hdlc-update.patch
161 Patch54: 2.6.x-SGI_VW-fbdev-lkml.patch
163 Patch56: 2.6.x-TGA-fbdev-lkml.patch
165 Patch58: linux-alpha-isa.patch
166 Patch59: 2.6.7-alpha_compile.patch
168 Patch60: 2.6.4-rc1-01-esfq-imq.patch
169 Patch61: 2.6.4-rc1-02-imq-nat-support.patch
171 Patch64: 2.6.4-psion-5mx.patch
173 #from: http://www.consultmatt.co.uk/downloads/patches/kernel/2.6/
174 Patch66: 2.6.1-all-in-1.patch
176 Patch68: 2.6.5-sparc64-missing-include.patch
178 Patch70: 2.6.5-3C920b-Tornado.patch
180 Patch72: 2.6.5-i386-cmpxchg.patch
182 Patch74: 2.6.4-wrr.patch
184 # http://dl.sourceforge.net/sourceforge/pramfs/pramfs-2.6.4-1.0.2.tar.gz
185 Patch76: pramfs-2.6.4.patch
187 Patch78: ftp://ftp.kernel.org/pub/linux/kernel/people/mbligh/patches/2.6.6-rc3/2.6.6-rc3-mjb1/350-autoswap
189 Patch80: http://www.elektronikschule.de/~genannt/kernel-patche/lirc/lirc-2.6.5-20040404
191 # from http://www.smcc.demon.nl/webcam/pwcx-9.0-beta-2.tar.gz
192 Patch82: 2.6.7-pwcx.patch
194 Patch84: 2.6.6-serial-fifo-lkml.patch
196 Patch88: 2.6.6-qsort-updated-lkml.patch
197 Patch90: 2.6.6-xfs-qsort-lkml.patch
199 #Patch94: grsecurity-2.0-2.6.6-unofficial.patch
200 Patch94: %{name}-grsec.patch
202 Patch96: 2.6.6-lirc_i2c.diff
204 Patch97: %{name}-pts.patch
206 Patch100: %{name}-MAX_INIT_ARGS.patch
208 # frpm http://www.ssi.bg/~ja/#routers
209 Patch102: 00_static_routes-2.6.0-test1-8.diff
210 Patch103: 01_alt_routes-2.5.50-8.diff
211 Patch104: 01_arp_prefsrc-2.5.50-5.diff
212 Patch105: 05_nf_reroute-2.6.7-10.diff
214 Patch108: 2.6.7-bridge_sysfs-lkml.patch
216 Patch110: ftp://ftp.kernel.org/pub/linux/kernel/people/lenb/acpi/patches/release/2.6.7/acpi-20040326-2.6.7.diff.gz
218 Patch112: linux-fbcon-con2fb-crash-workaround.patch
220 Patch114: linux-2.6-netfilter-syms.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 Patch302: 2.6.7-ppc-cciss-div.patch
235 Patch303: 2.6.8-lkml-saa7146-memory-variable.patch
236 Patch304: 2.6.7-ppc-ipr-div.patch
237 Patch305: 2.6.7-ppc-proxydict-workaround.patch
239 Patch310: linux-2.6-sparc-ksyms.patch
241 Patch312: linux-2.6-ppc-ksyms.patch
243 Patch400: 2.6.7-kill-warnings.patch
245 URL: http://www.kernel.org/
246 BuildRequires: binutils >= 2.14.90.0.7
247 %ifarch sparc sparc64
248 BuildRequires: elftoaout
250 BuildRequires: module-init-tools
251 BuildRequires: perl-base
252 BuildRequires: rpmbuild(macros) >= 1.153
255 PreReq: module-init-tools >= 0.9.9
256 PreReq: geninitrd >= 2.57
257 Provides: %{name}-up = %{epoch}:%{version}-%{release}
258 Provides: module-info
259 Provides: %{name}(netfilter) = %{_netfilter_snap}
260 Obsoletes: kernel-modules
261 Conflicts: util-linux < %{_util_linux_ver}
262 Conflicts: module-init-tool < %{_module_init_tool_ver}
263 Conflicts: e2fsprogs < %{_e2fsprogs_ver}
264 Conflicts: jfsutils < %{_jfsutils_ver}
265 Conflicts: reiserfsprogs < %{_reiserfsprogs_ver}
266 Conflicts: xfsprogs < %{_xfsprogs_ver}
267 Conflicts: quota-tools < %{_quota_tools_ver}
268 Conflicts: PPP < %{_PPP_ver}
269 Conflicts: isdn4k-utils < %{_isdn4k_utils_ver}
270 Conflicts: nfs-utils < %{_nfs_utils_ver}
271 Conflicts: procps < %{_procps_ver}
272 Conflicts: oprofile < %{_oprofile_ver}
273 ExclusiveArch: %{ix86} sparc sparc64 alpha ppc amd64
275 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
278 This package contains the Linux kernel that is used to boot and run
279 your system. It contains few device drivers for specific hardware.
280 Most hardware is instead supported by modules loaded after booting.
283 Das Kernel-Paket enthƤlt den Linux-Kernel (vmlinuz), den Kern des
284 Linux-Betriebssystems. Der Kernel ist fĆ¼r grundliegende
285 Systemfunktionen verantwortlich: Speicherreservierung,
286 ProzeĆ-Management, GerƤte Ein- und Ausgaben, usw.
289 Le package kernel contient le kernel linux (vmlinuz), la partie
290 centrale d'un systĆØme d'exploitation Linux. Le noyau traite les
291 fonctions basiques d'un systĆØme d'exploitation: allocation mĆ©moire,
292 allocation de process, entrƩe/sortie de peripheriques, etc.
295 Pakiet zawiera jĀ±dro Linuksa niezbĆŖdne do prawidĀ³owego dziaĀ³ania
296 Twojego komputera. Zawiera w sobie sterowniki do sprzĆŖtu znajdujĀ±cego
297 siĆŖ w komputerze, takiego jak sterowniki dyskĆ³w itp.
300 Summary: DRM kernel modules
301 Summary(pl): Sterowniki DRM
303 PreReq: %{name}-up = %{epoch}:%{version}-%{release}
304 Requires(postun): %{name}-up = %{epoch}:%{version}-%{release}
305 Provides: %{name}-drm = %{drm_xfree_version}
309 DRM kernel modules (%{drm_xfree_version}).
311 %description drm -l pl
312 Sterowniki DRM (%{drm_xfree_version}).
315 Summary: PCMCIA modules
316 Summary(pl): ModuĀ³y PCMCIA
318 PreReq: %{name}-up = %{epoch}:%{version}-%{release}
319 Requires(postun): %{name}-up = %{epoch}:%{version}-%{release}
320 Provides: %{name}-pcmcia = %{pcmcia_version}
321 Provides: kernel(pcmcia)
322 Conflicts: pcmcia-cs < %{_pcmcia_cs_ver}
326 PCMCIA modules (%{pcmcia_version}).
328 %description pcmcia -l pl
329 ModuĀ³y PCMCIA (%{pcmcia_version}).
332 Summary: ALSA kernel modules
333 Summary(pl): Sterowniki dĀ¼wiĆŖku ALSA
335 PreReq: %{name}-up = %{epoch}:%{version}-%{release}
336 Requires(postun): %{name}-up = %{epoch}:%{version}-%{release}
337 Provides: alsa-driver
338 Obsoletes: alsa-driver
339 Obsoletes: alsa-driver-up
342 %description sound-alsa
343 ALSA (Advanced Linux Sound Architecture) sound drivers.
345 %description sound-alsa -l pl
346 Sterowniki dĀ¼wiĆŖku ALSA (Advanced Linux Sound Architecture).
349 Summary: OSS kernel modules
350 Summary(pl): Sterowniki dĀ¼wiĆŖku OSS
352 PreReq: %{name}-up = %{epoch}:%{version}-%{release}
353 Requires(postun): %{name}-up = %{epoch}:%{version}-%{release}
356 %description sound-oss
357 OSS (Open Sound System) drivers.
359 %description sound-oss -l pl
360 Sterowniki dĀ¼wiĆŖku OSS (Open Sound System).
363 Summary: Kernel version %{version} compiled for SMP machines
364 Summary(de): Kernel version %{version} fĆ¼r Multiprozessor-Maschinen
365 Summary(fr): Kernel version %{version} compiler pour les machine Multi-Processeur
366 Summary(pl): JĀ±dro Linuksa w wersji %{version} dla maszyn wieloprocesorowych
369 PreReq: module-init-tools >= 0.9.9
370 PreReq: geninitrd >= 2.26
371 Provides: %{name} = %{epoch}:%{version}-%{release}
372 Provides: module-info
373 Provides: %{name}(netfilter) = %{_netfilter_snap}
374 Conflicts: util-linux < %{_util_linux_ver}
375 Conflicts: module-init-tool < %{_module_init_tool_ver}
376 Conflicts: e2fsprogs < %{_e2fsprogs_ver}
377 Conflicts: jfsutils < %{_jfsutils_ver}
378 Conflicts: reiserfsprogs < %{_reiserfsprogs_ver}
379 Conflicts: xfsprogs < %{_xfsprogs_ver}
380 Conflicts: quota-tools < %{_quota_tools_ver}
381 Conflicts: PPP < %{_PPP_ver}
382 Conflicts: isdn4k-utils < %{_isdn4k_utils_ver}
383 Conflicts: nfs-utils < %{_nfs_utils_ver}
384 Conflicts: procps < %{_procps_ver}
385 Conflicts: oprofile < %{_oprofile_ver}
389 This package includes a SMP version of the Linux %{version} kernel. It
390 is required only on machines with two or more CPUs, although it should
391 work fine on single-CPU boxes.
393 %description smp -l de
394 Dieses Paket enthƤlt eine SMP (Multiprozessor)-Version von
395 Linux-Kernel %{version}. Es wird fĆ¼r Maschinen mit zwei oder mehr
396 Prozessoren gebraucht, sollte aber auch auf Computern mit nur einer
399 %description smp -l fr
400 Ce package inclu une version SMP du noyau de Linux version {version}.
401 Il et nƩcessaire seulement pour les machine avec deux processeurs ou
402 plus, il peut quand mĆŖme fonctionner pour les systĆØme mono-processeur.
404 %description smp -l pl
405 Pakiet zawiera jĀ±dro SMP Linuksa w wersji %{version}. Jest ono
406 wymagane przez komputery zawierajĀ±ce dwa lub wiĆŖcej procesorĆ³w.
407 Powinno rĆ³wnieĀæ dobrze dziaĀ³aƦ na maszynach z jednym procesorem.
410 Summary: DRM SMP kernel modules
411 Summary(pl): Sterowniki DRM dla maszyn wieloprocesorowych
413 PreReq: %{name}-smp = %{epoch}:%{version}-%{release}
414 Requires(postun): %{name}-smp = %{epoch}:%{version}-%{release}
415 Provides: %{name}-drm = %{drm_xfree_version}
419 DRM SMP kernel modules (%{drm_xfree_version}).
421 %description smp-drm -l pl
422 Sterowniki DRM dla maszyn wieloprocesorowych (%{drm_xfree_version}).
425 Summary: PCMCIA modules for SMP kernel
426 Summary(pl): ModuĀ³y PCMCIA dla maszyn SMP
428 PreReq: %{name}-smp = %{epoch}:%{version}-%{release}
429 Requires(postun): %{name}-smp = %{epoch}:%{version}-%{release}
430 Provides: %{name}-pcmcia = %{pcmcia_version}
431 Provides: kernel(pcmcia)
432 Conflicts: pcmcia-cs < %{_pcmcia_cs_ver}
435 %description smp-pcmcia
436 PCMCIA modules for SMP kernel (%{pcmcia_version}).
438 %description smp-pcmcia -l pl
439 ModuĀ³y PCMCIA dla maszyn SMP (%{pcmcia_version}).
441 %package smp-sound-alsa
442 Summary: ALSA SMP kernel modules
443 Summary(pl): Sterowniki dĀ¼wiĆŖku ALSA dla maszyn wieloprocesorowych
445 PreReq: %{name}-smp = %{epoch}:%{version}-%{release}
446 Requires(postun): %{name}-smp = %{epoch}:%{version}-%{release}
447 Provides: alsa-driver
448 Obsoletes: alsa-driver
449 Obsoletes: alsa-driver-smp
452 %description smp-sound-alsa
453 ALSA (Advanced Linux Sound Architecture) SMP sound drivers.
455 %description smp-sound-alsa -l pl
456 Sterowniki dĀ¼wiĆŖku ALSA (Advanced Linux Sound Architecture) dla maszyn
459 %package smp-sound-oss
460 Summary: OSS SMP kernel modules
461 Summary(pl): Sterowniki dĀ¼wiĆŖku OSS dla maszyn wieloprocesorowych
463 PreReq: %{name}-smp = %{epoch}:%{version}-%{release}
464 Requires(postun): %{name}-smp = %{epoch}:%{version}-%{release}
467 %description smp-sound-oss
468 OSS (Open Sound System) SMP sound drivers.
470 %description smp-sound-oss -l pl
471 Sterowniki OSS (Open Sound System) dla maszyn wieloprocesorowych.
474 Summary: Kernel version %{version} used on the installation boot disks
475 Summary(de): Kernel version %{version} fĆ¼r Installationsdisketten
476 Summary(fr): Kernel version %{version} utiliser pour les disquettes d'installation
477 Summary(pl): JĀ±dro Linuksa w wersji %{version} dla dyskietek startowych
479 PreReq: module-init-tools
483 This package includes a trimmed down version of the Linux %{version}
484 kernel. This kernel is used on the installation boot disks only and
485 should not be used for an installed system, as many features in this
486 kernel are turned off because of the size constraints.
488 %description BOOT -l de
489 Dieses Paket enthƤlt eine verkleinerte Version vom Linux-Kernel
490 version %{version}. Dieser Kernel wird auf den
491 Installations-Bootdisketten benutzt und sollte nicht auf einem
492 installierten System verwendet werden, da viele Funktionen wegen der
493 Platzprobleme abgeschaltet sind.
495 %description BOOT -l pl
496 Pakiet zawiera jĀ±dro Linuksa dedykowane dyskietkom startowym i powinno
497 byƦ uĀæywane jedynie podczas instalacji systemu. Wiele uĀæytecznych
498 opcji zostaĀ³o wyĀ³Ā±czonych, aby jak najbardziej zmniejszyƦ jego
502 Summary: Header files for the Linux kernel
503 Summary(pl): Pliki nagĀ³Ć³wkowe jĀ±dra Linuksa
505 Provides: %{name}-headers(agpgart) = %{version}
506 Provides: %{name}-headers(reiserfs) = %{version}
507 Provides: %{name}-headers(bridging) = %{version}
508 Provides: kernel-i2c-devel
509 Provides: %{name}-headers(netfilter) = %{_netfilter_snap}
510 Provides: %{name}-headers(alsa-drivers)
511 Obsoletes: kernel-i2c-devel
515 These are the C header files for the Linux kernel, which define
516 structures and constants that are needed when rebuilding the kernel
517 or building kernel modules.
519 %description headers -l pl
520 Pakiet zawiera pliki nagĀ³Ć³wkowe jĀ±dra, niezbĆŖdne do rekompilacji jĀ±dra
521 oraz budowania moduĀ³Ć³w jĀ±dra.
523 %package module-build
524 Summary: Development files for building kernel modules
525 Summary(pl): Pliki sĀ³uĀæĀ±ce do budowania moduĀ³Ć³w jĀ±dra
527 Requires: %{name}-headers = %{epoch}:%{version}-%{release}
530 %description module-build
531 Development files from kernel source tree needed to build Linux kernel
532 modules from external packages.
534 %description module-build -l pl
535 Pliki ze drzewa Ā¼rĆ³deĀ³ jĀ±dra potrzebne do budowania moduĀ³Ć³w jĀ±dra
536 Linuksa z zewnĆŖtrznych pakietĆ³w.
539 Summary: Kernel source tree
540 Summary(pl): Kod Ā¼rĆ³dĀ³owy jĀ±dra Linuksa
542 Requires: %{name}-module-build = %{epoch}:%{version}-%{release}
546 This is the source code for the Linux kernel. It is required to build
547 most C programs as they depend on constants defined in here. You can
548 also build a custom kernel that is better tuned to your particular
551 %description source -l de
552 Das Kernel-Source-Paket enthƤlt den source code (C/Assembler-Code) des
553 Linux-Kernels. Die Source-Dateien werden gebraucht, um viele
554 C-Programme zu compilieren, da sie auf Konstanten zurĆ¼ckgreifen, die
555 im Kernel-Source definiert sind. Die Source-Dateien kƶnnen auch
556 benutzt werden, um einen Kernel zu compilieren, der besser auf Ihre
557 Hardware ausgerichtet ist.
559 %description source -l fr
560 Le package pour le kernel-source contient le code source pour le noyau
561 linux. Ces sources sont nƩcessaires pour compiler la plupart des
562 programmes C, car il dƩpend de constantes dƩfinies dans le code
563 source. Les sources peuvent ĆŖtre aussi utilisĆ©e pour compiler un noyau
564 personnalisƩ pour avoir de meilleures performances sur des matƩriels
567 %description source -l pl
568 Pakiet zawiera kod Ā¼rĆ³dĀ³owy jĀ±dra systemu.
571 Summary: Kernel documentation
572 Summary(pl): Dokumentacja do jĀ±dra Linuksa
574 Provides: %{name}-doc = %{version}
578 This is the documentation for the Linux kernel, as found in
579 /usr/src/linux/Documentation directory.
581 %description doc -l pl
582 Pakiet zawiera dokumentacjĆŖ do jĀ±dra Linuksa pochodzĀ±cĀ± z katalogu
583 /usr/src/linux/Documentation.
586 %setup -q -n linux-%{version}%{_rc}
591 %if "%{_apply_cset}" != "0"
592 zcat %{SOURCE3} | patch -p1 -s
618 %if %{with bootsplash}
684 # Philips USB drivers.
688 #cp drivers/usb/media/libpwcx.a_ix86 drivers/usb/media/libpwcx.a_
691 #cp drivers/usb/media/libpwcx.a_powerpc drivers/usb/media/libpwcx.a_
694 #cp drivers/usb/media/libpwcx.a_ppc drivers/usb/media/libpwcx.a_
703 %ifarch alpha %{ix86} ia64 ppc sparc sparc64 amd64
709 %if %{with execshield}
710 install %{PATCH211} exec-shield.patch
712 patch -s exec-shield.patch < %{PATCH212}
714 patch -p1 -s < exec-shield.patch
725 #patch104 -p1 # <- not applayed need checkout
754 # Fix EXTRAVERSION and CC in main Makefile
755 mv -f Makefile Makefile.orig
756 sed -e 's#EXTRAVERSION =.*#EXTRAVERSION =#g' \
757 %ifarch %{ix86} alpha sparc ppc
758 -e 's#CC.*$(CROSS_COMPILE)gcc#CC = %{__cc}#g' \
761 -e 's#CC.*$(CROSS_COMPILE)gcc#CC = sparc64-pld-linux-gcc#g' \
763 Makefile.orig >Makefile
765 sed -i 's:\-pipe::' arch/*/Makefile
767 # on sparc this line causes CONFIG_INPUT=m (instead of =y), thus breaking build
768 sed -i -e '/select INPUT/d' net/bluetooth/hidp/Kconfig
771 TuneUpConfigForIX86 () {
774 sed -i 's:# CONFIG_M386 is not set:CONFIG_M386=y:' $1
777 sed -i 's:# CONFIG_M486 is not set:CONFIG_M486=y:' $1
780 sed -i 's:# CONFIG_M586 is not set:CONFIG_M586=y:' $1
783 sed -i 's:# CONFIG_M686 is not set:CONFIG_M686=y:' $1
786 sed -i 's:# CONFIG_MPENTIUMIII is not set:CONFIG_MPENTIUMIII=y:' $1
789 sed -i 's:# CONFIG_MPENTIUM4 is not set:CONFIG_MPENTIUM4=y:' $1
792 sed -i 's:# CONFIG_MK7 is not set:CONFIG_MK7=y:' $1
794 %ifarch pentium3 pentium4 athlon
795 # kernel-i386-smp.config contains 64G support by default.
797 sed -i "s:CONFIG_HIGHMEM4G=y:# CONFIG_HIGHMEM4G is not set:" $1
798 sed -i "s:# CONFIG_HIGHMEM64G is not set:CONFIG_HIGHMEM64G=y\nCONFIG_X86_PAE=y:" $1
801 %ifarch i386 i486 i586
802 sed -i 's:# CONFIG_MATH_EMULATION is not set:CONFIG_MATH_EMULATION=y:' $1
809 # is this a special kernel we want to build?
812 [ "$1" = "BOOT" -o "$2" = "BOOT" ] && BOOT=yes
813 [ "$1" = "smp" -o "$2" = "smp" ] && smp=yes
814 if [ "$smp" = "yes" ]; then
815 Config="%{_target_base_arch}-smp"
817 Config="%{_target_base_arch}"
819 if [ "$BOOT" = "yes" ]; then
820 KernelVer=%{version}-%{release}BOOT
822 KernelVer=%{version}-%{release}$1
824 echo "Building config file for KERNEL $1..."
825 cat $RPM_SOURCE_DIR/kernel-$Config.config > arch/%{_target_base_arch}/defconfig
826 TuneUpConfigForIX86 arch/%{_target_base_arch}/defconfig
828 %if %{with preemptive}
829 sed -i 's:# CONFIG_PREEMPT is not set:CONFIG_PREEMPT=y:' arch/%{_target_base_arch}/defconfig
833 cat %{SOURCE80} >> arch/%{_target_base_arch}/defconfig
835 cat %{SOURCE90} >> arch/%{_target_base_arch}/defconfig
837 ln -sf arch/%{_target_base_arch}/defconfig .config
838 install -d $KERNEL_INSTALL_DIR/usr/src/linux-%{version}/include/linux
839 %{__make} include/linux/autoconf.h
840 if [ "$smp" = "yes" ]; then
841 install include/linux/autoconf.h \
842 $KERNEL_INSTALL_DIR/usr/src/linux-%{version}/include/linux/autoconf-smp.h
844 $KERNEL_INSTALL_DIR/usr/src/linux-%{version}/config-smp
846 install include/linux/autoconf.h \
847 $KERNEL_INSTALL_DIR/usr/src/linux-%{version}/include/linux/autoconf-up.h
849 $KERNEL_INSTALL_DIR/usr/src/linux-%{version}/config-up
855 Config="%{_target_base_arch}"
856 cat $RPM_SOURCE_DIR/kernel-$Config.config > arch/%{_target_base_arch}/defconfig
858 echo "CONFIG_M386=y" >> arch/%{_target_base_arch}/defconfig
861 echo "CONFIG_M486=y" >> arch/%{_target_base_arch}/defconfig
863 %ifarch i386 i486 i586
864 sed -i 's/# CONFIG_MATH_EMULATION is not set/CONFIG_MATH_EMULATION=y/' \
865 arch/%{_target_base_arch}/defconfig
867 cat <<EOF >>arch/%{_target_base_arch}/defconfig
868 # CONFIG_APM is not set
869 # CONFIG_ACPI is not set
870 # CONFIG_ACPI_BOOT is not set
871 # CONFIG_MTD is not set
872 # CONFIG_NETFILTER is not set
873 # CONFIG_WAN is not set
874 # CONFIG_ATM is not set
875 # CONFIG_HOTPLUG_PCI is not set
876 # CONFIG_NET_SCHED is not set
877 # CONFIG_X86_MCE is not set
878 # CONFIG_MTRR is not set
879 # CONFIG_PM is not set
880 # CONFIG_CPU_FREQ is not set
881 # CONFIG_DRM is not set
882 # CONFIG_FTAPE is not set
883 # CONFIG_WATCHDOG is not set
884 # CONFIG_DVB is not set
885 # CONFIG_DVB_CORE is not set
886 # CONFIG_VIDEO_DEV is not set
887 # CONFIG_SECURITY is not set
888 # CONFIG_SOUND is not set
889 # CONFIG_USB_AUDIO is not set
890 # CONFIG_INPUT_JOYSTICK is not set
891 # CONFIG_OMNIBOOK is not set
892 # CONFIG_NET_RADIO is not set
893 # CONFIG_HOTPLUG is not set
894 # CONFIG_QUOTA is not set
895 # CONFIG_REGPARM is not set
896 # CONFIG_SCSI_LOGGING is not set
899 # CONFIG_DEV_APPLETALK is not set
900 # CONFIG_ECONET_AUNUDP is not set
901 # CONFIG_HIPPI is not set
902 # CONFIG_TR is not set
903 # CONFIG_INPUT_MISC is not set
904 # CONFIG_INPUT_TOUCHSCREEN is not set
905 # CONFIG_PROFILING is not set
906 # CONFIG_DEBUG_KERNEL is not set
907 # CONFIG_DEBUG_SPINLOCK_SLEEP is not set
908 # CONFIG_FRAME_POINTER is not set
909 # CONFIG_LBD is not set
910 # CONFIG_SLIP is not set
911 # CONFIG_PPP is not set
912 # CONFIG_PLIP is not set
913 # CONFIG_FDDI is not set
914 # CONFIG_HAMRADIO is not set
915 # CONFIG_NETPOLL_RX is not set
916 # CONFIG_NETPOLL_TRAP is not set
917 # CONFIG_FB is not set
919 ln -sf arch/%{_target_base_arch}/defconfig .config
921 install -d $KERNEL_INSTALL_DIR/usr/src/linux-%{version}/include/linux
922 %{__make} include/linux/autoconf.h
923 if [ "$smp" = "yes" ]; then
924 install include/linux/autoconf.h $KERNEL_INSTALL_DIR/usr/src/linux-%{version}/include/linux/autoconf-smp.h
926 install include/linux/autoconf.h $KERNEL_INSTALL_DIR/usr/src/linux-%{version}/include/linux/autoconf-up.h
932 echo "Building kernel $1 ..."
934 RCS_FIND_IGNORE='-name build-done -prune -o'
935 ln -sf arch/%{_target_base_arch}/defconfig .config
938 sparc32 %{__make} clean \
939 RCS_FIND_IGNORE='-name build-done -prune -o'
942 RCS_FIND_IGNORE='-name build-done -prune -o'
944 %{__make} include/linux/version.h \
947 # make does vmlinux, modules and bzImage at once
948 %ifarch sparc sparc64
968 [ "$1" = "BOOT" -o "$2" = "BOOT" ] && BOOT=yes
969 [ "$1" = "smp" -o "$2" = "smp" ] && smp=yes
970 if [ "$smp" = "yes" ]; then
971 Config="%{_target_base_arch}-smp"
973 Config="%{_target_base_arch}"
975 if [ "$BOOT" = "yes" ]; then
976 KernelVer=%{version}-%{release}BOOT
978 KernelVer=%{version}-%{release}$1
981 mkdir -p $KERNEL_INSTALL_DIR/boot
982 install System.map $KERNEL_INSTALL_DIR/boot/System.map-$KernelVer
983 %ifarch %{ix86} amd64
984 install arch/%{_target_base_arch}/boot/bzImage $KERNEL_INSTALL_DIR/boot/vmlinuz-$KernelVer
986 %ifarch alpha sparc sparc64
987 gzip -cfv vmlinux > vmlinuz
988 install vmlinux $KERNEL_INSTALL_DIR/boot/vmlinux-$KernelVer
989 install vmlinuz $KERNEL_INSTALL_DIR/boot/vmlinuz-$KernelVer
991 elftoaout arch/sparc/boot/image -o vmlinux.aout
992 install vmlinux.aout $KERNEL_INSTALL_DIR/boot/vmlinux.aout-$KernelVer
995 elftoaout arch/sparc64/boot/image -o vmlinux.aout
996 install vmlinux.aout $KERNEL_INSTALL_DIR/boot/vmlinux.aout-$KernelVer
1001 install vmlinux $KERNEL_INSTALL_DIR/boot/vmlinux-$KernelVer
1002 install vmlinux $KERNEL_INSTALL_DIR/boot/vmlinuz-$KernelVer
1004 %{__make} modules_install \
1005 %{?with_verbose:V=1} \
1006 INSTALL_MOD_PATH=$KERNEL_INSTALL_DIR \
1007 KERNELRELEASE=$KernelVer
1009 echo "CHECKING DEPENDENCIES FOR KERNEL MODULES"
1010 /sbin/depmod --basedir $KERNEL_INSTALL_DIR -ae -F $KERNEL_INSTALL_DIR/boot/System.map-$KernelVer -r $KernelVer || echo
1012 echo "KERNEL RELEASE $KernelVer DONE"
1016 KERNEL_BUILD_DIR=`pwd`
1019 KERNEL_INSTALL_DIR="$KERNEL_BUILD_DIR/build-done/kernel-UP"
1020 rm -rf $KERNEL_INSTALL_DIR
1022 %{?with_up:BuildKernel}
1023 %{?with_up:PreInstallKernel}
1026 KERNEL_INSTALL_DIR="$KERNEL_BUILD_DIR/build-done/kernel-SMP"
1027 rm -rf $KERNEL_INSTALL_DIR
1029 %{?with_smp:BuildKernel smp}
1030 %{?with_smp:PreInstallKernel smp}
1033 KERNEL_INSTALL_DIR="$KERNEL_BUILD_DIR/build-done/BOOT"
1034 rm -rf $KERNEL_INSTALL_DIR
1037 PreInstallKernel BOOT
1041 rm -rf $RPM_BUILD_ROOT
1044 install -d $RPM_BUILD_ROOT%{_prefix}/src/linux-%{version}
1046 KERNEL_BUILD_DIR=`pwd`
1048 %if %{with up} || %{with smp}
1049 cp -a $KERNEL_BUILD_DIR/build-done/kernel-*/* $RPM_BUILD_ROOT
1052 for i in "" smp ; do
1053 if [ -e $RPM_BUILD_ROOT/lib/modules/%{version}-%{release}$i ] ; then
1054 rm -f $RPM_BUILD_ROOT/lib/modules/%{version}-%{release}$i/build
1055 ln -sf %{_prefix}/src/linux-%{version} \
1056 $RPM_BUILD_ROOT/lib/modules/%{version}-%{release}$i/build
1060 ln -sf linux-%{version} $RPM_BUILD_ROOT%{_prefix}/src/linux
1062 find . ! -name "build-done" ! -name "." -maxdepth 1 -exec cp -a "{}" "$RPM_BUILD_ROOT/usr/src/linux-%{version}/" ";"
1064 cd $RPM_BUILD_ROOT%{_prefix}/src/linux-%{version}
1066 %{__make} mrproper \
1067 RCS_FIND_IGNORE='-name build-done -prune -o'
1068 find -name "*~" -exec rm -f "{}" ";"
1069 find -name "*.orig" -exec rm -f "{}" ";"
1071 if [ -e $KERNEL_BUILD_DIR/build-done/kernel-UP/usr/src/linux-%{version}/include/linux/autoconf-up.h ]; then
1072 install $KERNEL_BUILD_DIR/build-done/kernel-UP/usr/src/linux-%{version}/include/linux/autoconf-up.h \
1073 $RPM_BUILD_ROOT/usr/src/linux-%{version}/include/linux
1074 install $KERNEL_BUILD_DIR/build-done/kernel-UP/usr/src/linux-%{version}/config-up \
1075 $RPM_BUILD_ROOT/usr/src/linux-%{version}/include/linux
1078 if [ -e $KERNEL_BUILD_DIR/build-done/kernel-SMP/usr/src/linux-%{version}/include/linux/autoconf-smp.h ]; then
1079 install $KERNEL_BUILD_DIR/build-done/kernel-SMP/usr/src/linux-%{version}/include/linux/autoconf-smp.h \
1080 $RPM_BUILD_ROOT/usr/src/linux-%{version}/include/linux
1081 install $KERNEL_BUILD_DIR/build-done/kernel-SMP/usr/src/linux-%{version}/config-smp \
1082 $RPM_BUILD_ROOT/usr/src/linux-%{version}/include/linux
1085 %if %{with up} || %{with smp}
1087 install $KERNEL_BUILD_DIR/build-done/kernel-*/usr/src/linux-%{version}/include/linux/* \
1088 $RPM_BUILD_ROOT/usr/src/linux-%{version}/include/linux
1092 %{__make} include/linux/version.h
1093 install %{SOURCE1} $RPM_BUILD_ROOT%{_prefix}/src/linux-%{version}/include/linux/autoconf.h
1096 rm -rf $RPM_BUILD_ROOT
1099 mv -f /boot/vmlinuz /boot/vmlinuz.old 2> /dev/null > /dev/null
1100 mv -f /boot/System.map /boot/System.map.old 2> /dev/null > /dev/null
1101 ln -sf vmlinuz-%{version}-%{release} /boot/vmlinuz
1102 ln -sf System.map-%{version}-%{release} /boot/System.map
1104 if [ ! -L /lib/modules/%{version} ] ; then
1105 mv -f /lib/modules/%{version} /lib/modules/%{version}.rpmsave > /dev/null 2>&1
1107 rm -f /lib/modules/%{version}
1108 ln -snf %{version}-%{release} /lib/modules/%{version}
1109 %depmod %{version}-%{release}
1111 /sbin/geninitrd -f --initrdfs=rom /boot/initrd-%{version}-%{release}.gz %{version}-%{release}
1112 mv -f /boot/initrd /boot/initrd.old
1113 ln -sf initrd-%{version}-%{release}.gz /boot/initrd
1115 if [ -x /sbin/rc-boot ] ; then
1116 /sbin/rc-boot 1>&2 || :
1120 if [ -L /lib/modules/%{version} ]; then
1121 if [ "`ls -l /lib/modules/%{version} | awk '{ print $10 }'`" = "%{version}-%{release}" ]; then
1122 if [ "$1" = "0" ]; then
1123 rm -f /lib/modules/%{version}
1127 rm -f /boot/initrd-%{version}-%{release}.gz
1130 %depmod %{version}-%{release}
1133 %depmod %{version}-%{release}
1136 %depmod %{version}-%{release}
1139 %depmod %{version}-%{release}
1142 %depmod %{version}-%{release}
1145 %depmod %{version}-%{release}
1148 %depmod %{version}-%{release}
1151 %depmod %{version}-%{release}
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 %depmod %{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 [ -x /sbin/rc-boot ] ; then
1171 /sbin/rc-boot 1>&2 || :
1175 if [ -L /lib/modules/%{version} ]; then
1176 if [ "`ls -l /lib/modules/%{version} | awk '{ print $10 }'`" = "%{version}-%{release}smp" ]; then
1177 if [ "$1" = "0" ]; then
1178 rm -f /lib/modules/%{version}
1182 rm -f /boot/initrd-%{version}-%{release}smp.gz
1185 if [ ! -L %{_libdir}/bootdisk/lib/modules/%{version} ] ; then
1186 mv -f %{_libdir}/bootdisk/lib/modules/%{version} %{_libdir}/bootdisk/lib/modules/%{version}.rpmsave
1188 if [ ! -L %{_libdir}/bootdisk/boot/vmlinuz-%{version} ] ; then
1189 mv -f %{_libdir}/bootdisk/boot/vmlinuz-%{version} %{_libdir}/bootdisk/boot/vmlinuz-%{version}.rpmsave
1191 rm -f %{_libdir}/bootdisk/lib/modules/%{version}
1192 ln -snf %{version}-%{release}BOOT %{_libdir}/bootdisk/lib/modules/%{version}
1193 rm -f %{_libdir}/bootdisk/boot/vmlinuz-%{version}
1194 ln -snf vmlinuz-%{version}-%{release}BOOT %{_libdir}/bootdisk/boot/vmlinuz-%{version}
1197 %depmod %{version}-%{release}smp
1200 %depmod %{version}-%{release}smp
1203 %depmod %{version}-%{release}smp
1206 %depmod %{version}-%{release}smp
1208 %post smp-sound-alsa
1209 %depmod %{version}-%{release}smp
1211 %postun smp-sound-alsa
1212 %depmod %{version}-%{release}smp
1215 %depmod %{version}-%{release}smp
1217 %postun smp-sound-oss
1218 %depmod %{version}-%{release}smp
1221 if [ -L %{_libdir}/bootdisk/lib/modules/%{version} ]; then
1222 if [ "`ls -l %{_libdir}/bootdisk/lib/modules/%{version} | awk '{ print $10 }'`" = "%{version}-%{release}BOOT" ]; then
1223 if [ "$1" = "0" ]; then
1224 rm -f %{_libdir}/bootdisk/lib/modules/%{version}
1230 rm -f /usr/src/linux
1231 ln -snf linux-%{version} /usr/src/linux
1234 if [ -L %{_prefix}/src/linux ]; then
1235 if [ "`ls -l %{_prefix}/src/linux | awk '{ print $10 }'`" = "linux-%{version}" ]; then
1236 if [ "$1" = "0" ]; then
1237 rm -f %{_prefix}/src/linux
1244 %defattr(644,root,root,755)
1246 /boot/vmlinux-%{version}-%{release}
1248 %ifarch sparc sparc64
1249 /boot/vmlinux-%{version}-%{release}
1250 /boot/vmlinux.aout-%{version}-%{release}
1252 /boot/vmlinuz-%{version}-%{release}
1253 /boot/System.map-%{version}-%{release}
1254 %dir /lib/modules/%{version}-%{release}
1255 /lib/modules/%{version}-%{release}/kernel
1256 %ifnarch sparc sparc64
1258 %exclude /lib/modules/%{version}-%{release}/kernel/drivers/pcmcia
1259 %exclude /lib/modules/%{version}-%{release}/kernel/drivers/*/pcmcia
1260 %exclude /lib/modules/%{version}-%{release}/kernel/drivers/bluetooth/*_cs.ko
1261 %exclude /lib/modules/%{version}-%{release}/kernel/drivers/net/wireless/*_cs.ko
1262 %exclude /lib/modules/%{version}-%{release}/kernel/drivers/parport/parport_cs.ko
1263 %exclude /lib/modules/%{version}-%{release}/kernel/drivers/serial/serial_cs.ko
1265 %ifnarch sparc sparc64
1267 %exclude /lib/modules/%{version}-%{release}/kernel/drivers/char/drm
1269 %ifnarch sparc sparc64
1271 %exclude /lib/modules/%{version}-%{release}/kernel/sound/oss
1274 %exclude /lib/modules/%{version}-%{release}/kernel/sound/core
1275 %exclude /lib/modules/%{version}-%{release}/kernel/sound/drivers
1276 %ifnarch sparc sparc64
1277 %exclude /lib/modules/%{version}-%{release}/kernel/sound/i2c
1278 %exclude /lib/modules/%{version}-%{release}/kernel/sound/isa
1279 %exclude /lib/modules/%{version}-%{release}/kernel/sound/pci
1280 %exclude /lib/modules/%{version}-%{release}/kernel/sound/synth
1281 %exclude /lib/modules/%{version}-%{release}/kernel/sound/usb
1283 %ifarch sparc sparc64
1284 %exclude /lib/modules/%{version}-%{release}/kernel/sound/sparc
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/char/drm
1296 %ifnarch sparc sparc64
1298 %defattr(644,root,root,755)
1299 /lib/modules/%{version}-%{release}/kernel/drivers/pcmcia
1300 /lib/modules/%{version}-%{release}/kernel/drivers/*/pcmcia
1301 /lib/modules/%{version}-%{release}/kernel/drivers/bluetooth/*_cs.ko
1302 /lib/modules/%{version}-%{release}/kernel/drivers/net/wireless/*_cs.ko
1303 /lib/modules/%{version}-%{release}/kernel/drivers/parport/parport_cs.ko
1304 /lib/modules/%{version}-%{release}/kernel/drivers/serial/serial_cs.ko
1308 %defattr(644,root,root,755)
1309 /lib/modules/%{version}-%{release}/kernel/sound/core
1310 /lib/modules/%{version}-%{release}/kernel/sound/drivers
1311 %ifnarch sparc sparc64
1312 /lib/modules/%{version}-%{release}/kernel/sound/i2c
1313 /lib/modules/%{version}-%{release}/kernel/sound/isa
1314 /lib/modules/%{version}-%{release}/kernel/sound/pci
1315 /lib/modules/%{version}-%{release}/kernel/sound/synth
1316 /lib/modules/%{version}-%{release}/kernel/sound/usb
1318 %ifarch sparc sparc64
1319 /lib/modules/%{version}-%{release}/kernel/sound/sparc
1322 %ifnarch sparc sparc64
1324 %defattr(644,root,root,755)
1325 /lib/modules/%{version}-%{release}/kernel/sound/oss
1327 %endif # %%{with up}
1331 %defattr(644,root,root,755)
1332 %ifarch alpha sparc sparc64 ppc
1333 /boot/vmlinux-%{version}-%{release}smp
1335 /boot/vmlinuz-%{version}-%{release}smp
1336 /boot/System.map-%{version}-%{release}smp
1337 %dir /lib/modules/%{version}-%{release}smp
1338 /lib/modules/%{version}-%{release}smp/kernel
1339 %ifnarch sparc sparc64
1341 %exclude /lib/modules/%{version}-%{release}smp/kernel/drivers/pcmcia
1342 %exclude /lib/modules/%{version}-%{release}smp/kernel/drivers/*/pcmcia
1343 %exclude /lib/modules/%{version}-%{release}smp/kernel/drivers/bluetooth/*_cs.ko
1344 %exclude /lib/modules/%{version}-%{release}smp/kernel/drivers/net/wireless/*_cs.ko
1345 %exclude /lib/modules/%{version}-%{release}smp/kernel/drivers/parport/parport_cs.ko
1346 %exclude /lib/modules/%{version}-%{release}smp/kernel/drivers/serial/serial_cs.ko
1348 %ifnarch sparc sparc64
1350 %exclude /lib/modules/%{version}-%{release}smp/kernel/drivers/char/drm
1352 %ifnarch sparc sparc64
1354 %exclude /lib/modules/%{version}-%{release}smp/kernel/sound/oss
1357 %exclude /lib/modules/%{version}-%{release}smp/kernel/sound/core
1358 %exclude /lib/modules/%{version}-%{release}smp/kernel/sound/drivers
1359 %ifnarch sparc sparc64
1360 %exclude /lib/modules/%{version}-%{release}smp/kernel/sound/i2c
1361 %exclude /lib/modules/%{version}-%{release}smp/kernel/sound/isa
1362 %exclude /lib/modules/%{version}-%{release}smp/kernel/sound/pci
1363 %exclude /lib/modules/%{version}-%{release}smp/kernel/sound/synth
1364 %exclude /lib/modules/%{version}-%{release}smp/kernel/sound/usb
1366 %ifarch sparc sparc64
1367 %exclude /lib/modules/%{version}-%{release}smp/kernel/sound/sparc
1370 /lib/modules/%{version}-%{release}smp/build
1371 %ghost /lib/modules/%{version}-%{release}smp/modules.*
1373 %ifnarch sparc sparc64
1375 %defattr(644,root,root,755)
1376 /lib/modules/%{version}-%{release}smp/kernel/drivers/char/drm
1379 %ifnarch sparc sparc64
1381 %defattr(644,root,root,755)
1382 /lib/modules/%{version}-%{release}smp/kernel/drivers/pcmcia
1383 /lib/modules/%{version}-%{release}smp/kernel/drivers/*/pcmcia
1384 /lib/modules/%{version}-%{release}smp/kernel/drivers/bluetooth/*_cs.ko
1385 /lib/modules/%{version}-%{release}smp/kernel/drivers/net/wireless/*_cs.ko
1386 /lib/modules/%{version}-%{release}smp/kernel/drivers/parport/parport_cs.ko
1387 /lib/modules/%{version}-%{release}smp/kernel/drivers/serial/serial_cs.ko
1390 %files smp-sound-alsa
1391 %defattr(644,root,root,755)
1392 /lib/modules/%{version}-%{release}smp/kernel/sound/core
1393 /lib/modules/%{version}-%{release}smp/kernel/sound/drivers
1394 %ifnarch sparc sparc64
1395 /lib/modules/%{version}-%{release}smp/kernel/sound/i2c
1396 /lib/modules/%{version}-%{release}smp/kernel/sound/isa
1397 /lib/modules/%{version}-%{release}smp/kernel/sound/pci
1398 /lib/modules/%{version}-%{release}smp/kernel/sound/synth
1399 /lib/modules/%{version}-%{release}smp/kernel/sound/usb
1401 %ifarch sparc sparc64
1402 /lib/modules/%{version}-%{release}smp/kernel/sound/sparc
1405 %ifnarch sparc sparc64
1406 %files smp-sound-oss
1407 %defattr(644,root,root,755)
1408 /lib/modules/%{version}-%{release}smp/kernel/sound/oss
1410 %endif # %%{with smp}
1414 %defattr(644,root,root,755)
1415 %ifarch alpha sparc sparc64 ppc # arch
1416 %{_libdir}/bootdisk/boot/vmlinux-%{version}-%{release}BOOT
1418 %{_libdir}/bootdisk/boot/vmlinuz-%{version}-%{release}BOOT
1419 %{_libdir}/bootdisk/boot/System.map-%{version}-%{release}BOOT
1420 %dir %{_libdir}/bootdisk/lib/modules/%{version}-%{release}BOOT
1421 %{_libdir}/bootdisk/lib/modules/%{version}-%{release}BOOT/kernel
1422 %{_libdir}/bootdisk/lib/modules/%{version}-%{release}BOOT/build
1423 %ghost %{_libdir}/bootdisk/lib/modules/%{version}-%{release}BOOT/modules.*
1424 %endif # %%{with BOOT}
1427 %defattr(644,root,root,755)
1428 %dir %{_prefix}/src/linux-%{version}
1429 %{_prefix}/src/linux-%{version}/include
1430 %{_prefix}/src/linux-%{version}/config-smp
1431 %{_prefix}/src/linux-%{version}/config-up
1434 %defattr(644,root,root,755)
1435 %{_prefix}/src/linux-%{version}/Makefile
1436 %dir %{_prefix}/src/linux-%{version}/arch
1437 %dir %{_prefix}/src/linux-%{version}/arch/*
1438 %{_prefix}/src/linux-%{version}/arch/*/Makefile*
1439 %dir %{_prefix}/src/linux-%{version}/arch/*/kernel
1440 %{_prefix}/src/linux-%{version}/arch/*/kernel/Makefile
1441 %{_prefix}/src/linux-%{version}/arch/*/kernel/asm-offsets.*
1442 %{_prefix}/src/linux-%{version}/arch/*/kernel/sigframe.h
1443 %dir %{_prefix}/src/linux-%{version}/scripts
1444 %{_prefix}/src/linux-%{version}/scripts/Makefile*
1445 %{_prefix}/src/linux-%{version}/scripts/basic
1446 %{_prefix}/src/linux-%{version}/scripts/*.c
1447 %{_prefix}/src/linux-%{version}/scripts/*.h
1448 %{_prefix}/src/linux-%{version}/scripts/*.sh
1451 %defattr(644,root,root,755)
1452 %{_prefix}/src/linux-%{version}/Documentation
1453 #%%{_prefix}/src/linux-%{version}/netfilter-patch-o-matic
1457 %defattr(644,root,root,755)
1458 %{_prefix}/src/linux-%{version}/arch/*/[!Mk]*
1459 %{_prefix}/src/linux-%{version}/arch/*/kernel/[!M]*
1460 %exclude %{_prefix}/src/linux-%{version}/arch/*/kernel/asm-offsets.*
1461 %exclude %{_prefix}/src/linux-%{version}/arch/*/kernel/sigframe.h
1462 %{_prefix}/src/linux-%{version}/cluster
1463 %{_prefix}/src/linux-%{version}/crypto
1464 %{_prefix}/src/linux-%{version}/drivers
1465 %{_prefix}/src/linux-%{version}/fs
1467 %{_prefix}/src/linux-%{version}/grsecurity
1469 %{_prefix}/src/linux-%{version}/init
1470 %{_prefix}/src/linux-%{version}/ipc
1471 %{_prefix}/src/linux-%{version}/kernel
1472 %{_prefix}/src/linux-%{version}/lib
1473 %{_prefix}/src/linux-%{version}/mm
1474 %{_prefix}/src/linux-%{version}/net
1475 %{_prefix}/src/linux-%{version}/scripts/*
1476 %exclude %{_prefix}/src/linux-%{version}/scripts/Makefile*
1477 %exclude %{_prefix}/src/linux-%{version}/scripts/basic
1478 %exclude %{_prefix}/src/linux-%{version}/scripts/*.c
1479 %exclude %{_prefix}/src/linux-%{version}/scripts/*.h
1480 %exclude %{_prefix}/src/linux-%{version}/scripts/*.sh
1481 %{_prefix}/src/linux-%{version}/sound
1482 %{_prefix}/src/linux-%{version}/security
1483 %{_prefix}/src/linux-%{version}/usr
1484 %{_prefix}/src/linux-%{version}/COPYING
1485 %{_prefix}/src/linux-%{version}/CREDITS
1486 %{_prefix}/src/linux-%{version}/MAINTAINERS
1487 %{_prefix}/src/linux-%{version}/README
1488 %{_prefix}/src/linux-%{version}/REPORTING-BUGS