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
31 %ifarch i586 i686 pentium3 pentium4 athlon
34 # temporary as BOOT is not finished yet
37 ## Program required by kernel to work.
38 %define _binutils_ver 2.12
39 %define _util_linux_ver 2.10o
40 %define _module_init_tool_ver 0.9.10
41 %define _e2fsprogs_ver 1.29
42 %define _jfsutils_ver 1.1.3
43 %define _reiserfsprogs_ver 3.6.3
44 %define _xfsprogs_ver 2.6.0
45 %define _pcmcia_cs_ver 3.1.21
46 %define _quota_tools_ver 3.09
47 %define _PPP_ver 2.4.0
48 %define _isdn4k_utils_ver 3.1pre1
49 %define _nfs_utils_ver 1.0.5
50 %define _procps_ver 3.2.0
51 %define _oprofile_ver 0.5.3
54 %define _cset 20040705_1909
57 %define _netfilter_snap 20040629
59 %define _enable_debug_packages 0
60 %define no_install_post_strip 1
61 %define no_install_post_compress_modules 1
62 %define no_install_post_chrpath 1
64 %define pcmcia_version 3.1.22
65 %define drm_xfree_version 4.3.0
67 Summary: The Linux kernel (the core of the Linux operating system)
68 Summary(de): Der Linux-Kernel (Kern des Linux-Betriebssystems)
69 Summary(fr): Le Kernel-Linux (La partie centrale du systeme)
70 Summary(pl): JĀ±dro Linuksa
79 Source0: ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-%{version}.tar.bz2
80 # Source0-md5: a74671ea68b0e3c609e8785ed8497c14
81 #Source0: ftp://ftp.kernel.org/pub/linux/kernel/v2.6/testing/linux-%{version}%{_rc}.tar.bz2
82 Source1: %{name}-autoconf.h
83 Source2: 2.6.6-pwcx.tar.bz2
84 Source3: http://ftp.kernel.org/pub/linux/kernel/v2.6/testing/cset/cset-%{_cset}.txt.gz
85 # Source3-md5: 6684b3e625fbc2d4d3ea6f1bc7df67a5
86 # http://lkml.org/lkml/2004/6/2/228
87 ## Source6: http://prdownloads.sourceforge.net/swsusp/software-suspend-2.0.0.81-for-2.6.6.tar.bz2
88 Source20: %{name}-i386.config
89 Source21: %{name}-i386-smp.config
90 Source30: %{name}-x86_64.config
91 Source31: %{name}-x86_64-smp.config
92 Source50: %{name}-sparc.config
93 Source51: %{name}-sparc-smp.config
94 Source60: %{name}-sparc64.config
95 Source61: %{name}-sparc64-smp.config
96 Source70: %{name}-alpha.config
97 Source71: %{name}-alpha-smp.config
98 Source73: %{name}-ppc.config
99 Source74: %{name}-ppc-smp.config
101 Source80: %{name}-netfilter.config
103 Source90: %{name}-grsec.config
105 Patch0: 2.6.0-ksyms-add.patch
106 Patch1: %{name}-isofs-128GB.patch
107 Patch2: linux-2.6-isofs-4G.patch
109 # from http://dl.sf.net/sourceforge/squashfs/
110 Patch4: squashfs2.0-patch
112 Patch6: 2.6.0-t4-PPC-ENODEV.patch
114 Patch8: 2.6.0-t6-usb-irq.patch
116 Patch10: 2.6.0-t7-memleak-lkml.patch
117 Patch11: 2.6.0-t7-memleak2-lkml.patch
119 Patch14: 2.6.0-t8-swap-include-lkml.patch
121 Patch16: 2.6.0-t8-VLSI-ix86-lkml.patch
123 Patch18: 2.6.0-t8-appletalk-SYSCTL-lkml.patch
125 Patch20: 2.6.0-t8-umsdos-lkml.patch
127 Patch22: 2.6.0-t9-acpi_osl-lkml.patch
129 Patch24: %{name}-nls_default.patch
131 # rewriten based on: ftp://ftp.suse.com/pub/people/stepan/bootsplash/kernel/bootsplash-3.1.4-2.6.3.diff
132 Patch26: bootsplash-3.1.4-2.6.7.patch
134 Patch28: 2.6.0-t11-AIC_and_db4-lkml.patch
136 Patch30: linux-tdfxfb-fillrect.patch
137 Patch31: linux-fbcon-margins.patch
138 Patch32: linux-tdfxfb-interlace+double.patch
139 Patch33: linux-2.6-rivafb16.patch
141 Patch34: 2.6.1-rc2-ini9100u-lkml.patch
143 Patch36: 2.6.1-rc2-VLAN-NS83820-lkml.patch
145 Patch38: linux-kbuild-extmod.patch
147 Patch40: 2.6.x-PD6729-lkml.patch
149 Patch42: 2.6.x-ppp_mppe.patch
151 Patch44: 2.6.2-Initio9100U-Kconfig.patch
154 Patch46: 2.6.7-pom-ng-%{_netfilter_snap}.patch
155 # http://www.barbara.eu.org/~quaker/ipt_account/
156 Patch47: 2.6.6-ipt_account.patch
158 Patch48: 2.6.3-sparc32-fix.patch
160 # http://www.tahoe.pl/drivers/tahoe9xx-2.6.2.patch
161 #Patch50: tahoe9xx-2.6.2.patch
162 Patch50: http://www.tahoe.pl/drivers/tahoe9xx-2.6.4-5.patch
163 Patch51: linux-tahoe9xx-hdlc-update.patch
165 Patch54: 2.6.x-SGI_VW-fbdev-lkml.patch
167 Patch56: 2.6.x-TGA-fbdev-lkml.patch
169 Patch58: linux-alpha-isa.patch
170 Patch59: 2.6.7-alpha_compile.patch
172 Patch60: 2.6.4-rc1-01-esfq-imq.patch
173 Patch61: 2.6.4-rc1-02-imq-nat-support.patch
175 Patch64: 2.6.4-psion-5mx.patch
177 #from: http://www.consultmatt.co.uk/downloads/patches/kernel/2.6/
178 Patch66: 2.6.1-all-in-1.patch
180 Patch68: 2.6.5-sparc64-missing-include.patch
182 Patch70: 2.6.5-3C920b-Tornado.patch
184 Patch72: 2.6.5-i386-cmpxchg.patch
186 Patch74: 2.6.4-wrr.patch
188 # http://dl.sourceforge.net/sourceforge/pramfs/pramfs-2.6.4-1.0.2.tar.gz
189 Patch76: pramfs-2.6.4.patch
191 Patch78: ftp://ftp.kernel.org/pub/linux/kernel/people/mbligh/patches/2.6.6-rc3/2.6.6-rc3-mjb1/350-autoswap
193 Patch80: http://www.elektronikschule.de/~genannt/kernel-patche/lirc/lirc-2.6.5-20040404
195 # from http://www.smcc.demon.nl/webcam/pwcx-9.0-beta-2.tar.gz
196 Patch82: 2.6.7-pwcx.patch
198 Patch84: 2.6.6-serial-fifo-lkml.patch
200 Patch88: 2.6.6-qsort-updated-lkml.patch
201 Patch90: 2.6.6-xfs-qsort-lkml.patch
203 #Patch94: grsecurity-2.0-2.6.6-unofficial.patch
204 Patch94: %{name}-grsec.patch
206 Patch96: 2.6.6-lirc_i2c.diff
208 Patch97: %{name}-pts.patch
210 Patch100: %{name}-MAX_INIT_ARGS.patch
212 # frpm http://www.ssi.bg/~ja/#routers
213 Patch102: 00_static_routes-2.6.0-test1-8.diff
214 Patch103: 01_alt_routes-2.5.50-8.diff
215 Patch104: 01_arp_prefsrc-2.5.50-5.diff
216 Patch105: 05_nf_reroute-2.6.7-10.diff
218 Patch108: 2.6.7-bridge_sysfs-lkml.patch
220 Patch110: ftp://ftp.kernel.org/pub/linux/kernel/people/lenb/acpi/patches/release/2.6.7/acpi-20040326-2.6.7.diff.gz
222 Patch112: linux-fbcon-con2fb-crash-workaround.patch
224 # http://sources.redhat.com/cluster/
225 Patch200: linux-cluster-cman.patch
226 Patch201: linux-cluster-dlm.patch
227 Patch202: linux-cluster-gfs.patch
228 Patch203: linux-cluster-gnbd.patch
230 # http://lkml.org/lkml/2004/6/2/233
231 Patch211: http://people.redhat.com/mingo/exec-shield/exec-shield-nx-2.6.7-A0
232 Patch212: exec-shield-make-peace-with-grsecurity.patch
235 Patch300: 2.6.7-ppc-asm-defs.patch
236 Patch301: 2.6.7-ppc-strncasecmp.patch
237 Patch302: 2.6.7-ppc-cciss-div.patch
238 Patch303: 2.6.7-ppc-saa7146-workaround.patch
239 Patch304: 2.6.7-ppc-ipr-div.patch
240 Patch305: 2.6.7-ppc-proxydict-workaround.patch
242 Patch400: 2.6.7-kill-warnings.patch
244 URL: http://www.kernel.org/
245 BuildRequires: binutils >= 2.14.90.0.7
246 %ifarch sparc sparc64
247 BuildRequires: elftoaout
249 BuildRequires: module-init-tools
250 BuildRequires: perl-base
251 BuildRequires: rpmbuild(macros) >= 1.153
254 PreReq: module-init-tools >= 0.9.9
255 PreReq: geninitrd >= 2.57
256 Provides: %{name}-up = %{epoch}:%{version}-%{release}
257 Provides: module-info
258 Provides: %{name}(netfilter) = %{_netfilter_snap}
259 Obsoletes: kernel-modules
260 Conflicts: util-linux < %{_util_linux_ver}
261 Conflicts: module-init-tool < %{_module_init_tool_ver}
262 Conflicts: e2fsprogs < %{_e2fsprogs_ver}
263 Conflicts: jfsutils < %{_jfsutils_ver}
264 Conflicts: reiserfsprogs < %{_reiserfsprogs_ver}
265 Conflicts: xfsprogs < %{_xfsprogs_ver}
266 Conflicts: quota-tools < %{_quota_tools_ver}
267 Conflicts: PPP < %{_PPP_ver}
268 Conflicts: isdn4k-utils < %{_isdn4k_utils_ver}
269 Conflicts: nfs-utils < %{_nfs_utils_ver}
270 Conflicts: procps < %{_procps_ver}
271 Conflicts: oprofile < %{_oprofile_ver}
272 ExclusiveArch: %{ix86} sparc sparc64 alpha ppc amd64
274 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
277 This package contains the Linux kernel that is used to boot and run
278 your system. It contains few device drivers for specific hardware.
279 Most hardware is instead supported by modules loaded after booting.
282 Das Kernel-Paket enthƤlt den Linux-Kernel (vmlinuz), den Kern des
283 Linux-Betriebssystems. Der Kernel ist fĆ¼r grundliegende
284 Systemfunktionen verantwortlich: Speicherreservierung,
285 ProzeĆ-Management, GerƤte Ein- und Ausgaben, usw.
288 Le package kernel contient le kernel linux (vmlinuz), la partie
289 centrale d'un systĆØme d'exploitation Linux. Le noyau traite les
290 fonctions basiques d'un systĆØme d'exploitation: allocation mĆ©moire,
291 allocation de process, entrƩe/sortie de peripheriques, etc.
294 Pakiet zawiera jĀ±dro Linuksa niezbĆŖdne do prawidĀ³owego dziaĀ³ania
295 Twojego komputera. Zawiera w sobie sterowniki do sprzĆŖtu znajdujĀ±cego
296 siĆŖ w komputerze, takiego jak sterowniki dyskĆ³w itp.
299 Summary: DRM kernel modules
300 Summary(pl): Sterowniki DRM
302 PreReq: %{name}-up = %{epoch}:%{version}-%{release}
303 Requires(postun): %{name}-up = %{epoch}:%{version}-%{release}
304 Provides: %{name}-drm = %{drm_xfree_version}
308 DRM kernel modules (%{drm_xfree_version}).
310 %description drm -l pl
311 Sterowniki DRM (%{drm_xfree_version}).
314 Summary: PCMCIA modules
315 Summary(pl): ModuĀ³y PCMCIA
317 PreReq: %{name}-up = %{epoch}:%{version}-%{release}
318 Requires(postun): %{name}-up = %{epoch}:%{version}-%{release}
319 Provides: %{name}-pcmcia = %{pcmcia_version}
320 Provides: kernel(pcmcia)
321 Conflicts: pcmcia-cs < %{_pcmcia_cs_ver}
325 PCMCIA modules (%{pcmcia_version}).
327 %description pcmcia -l pl
328 ModuĀ³y PCMCIA (%{pcmcia_version}).
331 Summary: ALSA kernel modules
332 Summary(pl): Sterowniki dĀ¼wiĆŖku ALSA
334 PreReq: %{name}-up = %{epoch}:%{version}-%{release}
335 Requires(postun): %{name}-up = %{epoch}:%{version}-%{release}
336 Provides: alsa-driver
337 Obsoletes: alsa-driver
338 Obsoletes: alsa-driver-up
341 %description sound-alsa
342 ALSA (Advanced Linux Sound Architecture) sound drivers.
344 %description sound-alsa -l pl
345 Sterowniki dĀ¼wiĆŖku ALSA (Advanced Linux Sound Architecture).
348 Summary: OSS kernel modules
349 Summary(pl): Sterowniki dĀ¼wiĆŖku OSS
351 PreReq: %{name}-up = %{epoch}:%{version}-%{release}
352 Requires(postun): %{name}-up = %{epoch}:%{version}-%{release}
355 %description sound-oss
356 OSS (Open Sound System) drivers.
358 %description sound-oss -l pl
359 Sterowniki dĀ¼wiĆŖku OSS (Open Sound System).
362 Summary: Kernel version %{version} compiled for SMP machines
363 Summary(de): Kernel version %{version} fĆ¼r Multiprozessor-Maschinen
364 Summary(fr): Kernel version %{version} compiler pour les machine Multi-Processeur
365 Summary(pl): JĀ±dro Linuksa w wersji %{version} dla maszyn wieloprocesorowych
368 PreReq: module-init-tools >= 0.9.9
369 PreReq: geninitrd >= 2.26
370 Provides: %{name} = %{epoch}:%{version}-%{release}
371 Provides: module-info
372 Provides: %{name}(netfilter) = %{_netfilter_snap}
373 Conflicts: util-linux < %{_util_linux_ver}
374 Conflicts: module-init-tool < %{_module_init_tool_ver}
375 Conflicts: e2fsprogs < %{_e2fsprogs_ver}
376 Conflicts: jfsutils < %{_jfsutils_ver}
377 Conflicts: reiserfsprogs < %{_reiserfsprogs_ver}
378 Conflicts: xfsprogs < %{_xfsprogs_ver}
379 Conflicts: quota-tools < %{_quota_tools_ver}
380 Conflicts: PPP < %{_PPP_ver}
381 Conflicts: isdn4k-utils < %{_isdn4k_utils_ver}
382 Conflicts: nfs-utils < %{_nfs_utils_ver}
383 Conflicts: procps < %{_procps_ver}
384 Conflicts: oprofile < %{_oprofile_ver}
388 This package includes a SMP version of the Linux %{version} kernel. It
389 is required only on machines with two or more CPUs, although it should
390 work fine on single-CPU boxes.
392 %description smp -l de
393 Dieses Paket enthƤlt eine SMP (Multiprozessor)-Version von
394 Linux-Kernel %{version}. Es wird fĆ¼r Maschinen mit zwei oder mehr
395 Prozessoren gebraucht, sollte aber auch auf Computern mit nur einer
398 %description smp -l fr
399 Ce package inclu une version SMP du noyau de Linux version {version}.
400 Il et nƩcessaire seulement pour les machine avec deux processeurs ou
401 plus, il peut quand mĆŖme fonctionner pour les systĆØme mono-processeur.
403 %description smp -l pl
404 Pakiet zawiera jĀ±dro SMP Linuksa w wersji %{version}. Jest ono
405 wymagane przez komputery zawierajĀ±ce dwa lub wiĆŖcej procesorĆ³w.
406 Powinno rĆ³wnieĀæ dobrze dziaĀ³aƦ na maszynach z jednym procesorem.
409 Summary: DRM SMP kernel modules
410 Summary(pl): Sterowniki DRM dla maszyn wieloprocesorowych
412 PreReq: %{name}-smp = %{epoch}:%{version}-%{release}
413 Requires(postun): %{name}-smp = %{epoch}:%{version}-%{release}
414 Provides: %{name}-drm = %{drm_xfree_version}
418 DRM SMP kernel modules (%{drm_xfree_version}).
420 %description smp-drm -l pl
421 Sterowniki DRM dla maszyn wieloprocesorowych (%{drm_xfree_version}).
424 Summary: PCMCIA modules for SMP kernel
425 Summary(pl): ModuĀ³y PCMCIA dla maszyn SMP
427 PreReq: %{name}-smp = %{epoch}:%{version}-%{release}
428 Requires(postun): %{name}-smp = %{epoch}:%{version}-%{release}
429 Provides: %{name}-pcmcia = %{pcmcia_version}
430 Provides: kernel(pcmcia)
431 Conflicts: pcmcia-cs < %{_pcmcia_cs_ver}
434 %description smp-pcmcia
435 PCMCIA modules for SMP kernel (%{pcmcia_version}).
437 %description smp-pcmcia -l pl
438 ModuĀ³y PCMCIA dla maszyn SMP (%{pcmcia_version}).
440 %package smp-sound-alsa
441 Summary: ALSA SMP kernel modules
442 Summary(pl): Sterowniki dĀ¼wiĆŖku ALSA dla maszyn wieloprocesorowych
444 PreReq: %{name}-smp = %{epoch}:%{version}-%{release}
445 Requires(postun): %{name}-smp = %{epoch}:%{version}-%{release}
446 Provides: alsa-driver
447 Obsoletes: alsa-driver
448 Obsoletes: alsa-driver-smp
451 %description smp-sound-alsa
452 ALSA (Advanced Linux Sound Architecture) SMP sound drivers.
454 %description smp-sound-alsa -l pl
455 Sterowniki dĀ¼wiĆŖku ALSA (Advanced Linux Sound Architecture) dla maszyn
458 %package smp-sound-oss
459 Summary: OSS SMP kernel modules
460 Summary(pl): Sterowniki dĀ¼wiĆŖku OSS dla maszyn wieloprocesorowych
462 PreReq: %{name}-smp = %{epoch}:%{version}-%{release}
463 Requires(postun): %{name}-smp = %{epoch}:%{version}-%{release}
466 %description smp-sound-oss
467 OSS (Open Sound System) SMP sound drivers.
469 %description smp-sound-oss -l pl
470 Sterowniki OSS (Open Sound System) dla maszyn wieloprocesorowych.
473 Summary: Kernel version %{version} used on the installation boot disks
474 Summary(de): Kernel version %{version} fĆ¼r Installationsdisketten
475 Summary(fr): Kernel version %{version} utiliser pour les disquettes d'installation
476 Summary(pl): JĀ±dro Linuksa w wersji %{version} dla dyskietek startowych
478 PreReq: module-init-tools
482 This package includes a trimmed down version of the Linux %{version}
483 kernel. This kernel is used on the installation boot disks only and
484 should not be used for an installed system, as many features in this
485 kernel are turned off because of the size constraints.
487 %description BOOT -l de
488 Dieses Paket enthƤlt eine verkleinerte Version vom Linux-Kernel
489 version %{version}. Dieser Kernel wird auf den
490 Installations-Bootdisketten benutzt und sollte nicht auf einem
491 installierten System verwendet werden, da viele Funktionen wegen der
492 Platzprobleme abgeschaltet sind.
494 %description BOOT -l pl
495 Pakiet zawiera jĀ±dro Linuksa dedykowane dyskietkom startowym i powinno
496 byƦ uĀæywane jedynie podczas instalacji systemu. Wiele uĀæytecznych
497 opcji zostaĀ³o wyĀ³Ā±czonych, aby jak najbardziej zmniejszyƦ jego
501 Summary: Header files for the Linux kernel
502 Summary(pl): Pliki nagĀ³Ć³wkowe jĀ±dra Linuksa
504 Provides: %{name}-headers(agpgart) = %{version}
505 Provides: %{name}-headers(reiserfs) = %{version}
506 Provides: %{name}-headers(bridging) = %{version}
507 Provides: kernel-i2c-devel
508 Provides: %{name}-headers(netfilter) = %{_netfilter_snap}
509 Provides: %{name}-headers(alsa-drivers)
510 Obsoletes: kernel-i2c-devel
514 These are the C header files for the Linux kernel, which define
515 structures and constants that are needed when rebuilding the kernel
516 or building kernel modules.
518 %description headers -l pl
519 Pakiet zawiera pliki nagĀ³Ć³wkowe jĀ±dra, niezbĆŖdne do rekompilacji jĀ±dra
520 oraz budowania moduĀ³Ć³w jĀ±dra.
522 %package module-build
523 Summary: Development files for building kernel modules
524 Summary(pl): Pliki sĀ³uĀæĀ±ce do budowania moduĀ³Ć³w jĀ±dra
526 Requires: %{name}-headers = %{epoch}:%{version}-%{release}
529 %description module-build
530 Development files from kernel source tree needed to build Linux kernel
531 modules from external packages.
533 %description module-build -l pl
534 Pliki ze drzewa Ā¼rĆ³deĀ³ jĀ±dra potrzebne do budowania moduĀ³Ć³w jĀ±dra
535 Linuksa z zewnĆŖtrznych pakietĆ³w.
538 Summary: Kernel source tree
539 Summary(pl): Kod Ā¼rĆ³dĀ³owy jĀ±dra Linuksa
541 Requires: %{name}-module-build = %{epoch}:%{version}-%{release}
545 This is the source code for the Linux kernel. It is required to build
546 most C programs as they depend on constants defined in here. You can
547 also build a custom kernel that is better tuned to your particular
550 %description source -l de
551 Das Kernel-Source-Paket enthƤlt den source code (C/Assembler-Code) des
552 Linux-Kernels. Die Source-Dateien werden gebraucht, um viele
553 C-Programme zu compilieren, da sie auf Konstanten zurĆ¼ckgreifen, die
554 im Kernel-Source definiert sind. Die Source-Dateien kƶnnen auch
555 benutzt werden, um einen Kernel zu compilieren, der besser auf Ihre
556 Hardware ausgerichtet ist.
558 %description source -l fr
559 Le package pour le kernel-source contient le code source pour le noyau
560 linux. Ces sources sont nƩcessaires pour compiler la plupart des
561 programmes C, car il dƩpend de constantes dƩfinies dans le code
562 source. Les sources peuvent ĆŖtre aussi utilisĆ©e pour compiler un noyau
563 personnalisƩ pour avoir de meilleures performances sur des matƩriels
566 %description source -l pl
567 Pakiet zawiera kod Ā¼rĆ³dĀ³owy jĀ±dra systemu.
570 Summary: Kernel documentation
571 Summary(pl): Dokumentacja do jĀ±dra Linuksa
573 Provides: %{name}-doc = %{version}
577 This is the documentation for the Linux kernel, as found in
578 /usr/src/linux/Documentation directory.
580 %description doc -l pl
581 Pakiet zawiera dokumentacjĆŖ do jĀ±dra Linuksa pochodzĀ±cĀ± z katalogu
582 /usr/src/linux/Documentation.
585 %setup -q -n linux-%{version}%{_rc}
590 %if "%{_apply_cset}" != "0"
591 zcat %{SOURCE3} | patch -p1 -s
619 %if %{with bootsplash}
685 # Philips USB drivers.
689 #cp drivers/usb/media/libpwcx.a_ix86 drivers/usb/media/libpwcx.a_
692 #cp drivers/usb/media/libpwcx.a_powerpc drivers/usb/media/libpwcx.a_
695 #cp drivers/usb/media/libpwcx.a_ppc drivers/usb/media/libpwcx.a_
704 %ifarch alpha %{ix86} ia64 ppc sparc sparc64 amd64
710 %if %{with execshield}
711 install %{PATCH211} exec-shield.patch
713 patch -s exec-shield.patch < %{PATCH212}
715 patch -p1 -s < exec-shield.patch
726 #patch104 -p1 # <- not applayed need checkout
750 # Fix EXTRAVERSION and CC in main Makefile
751 mv -f Makefile Makefile.orig
752 sed -e 's#EXTRAVERSION =.*#EXTRAVERSION =#g' \
753 %ifarch %{ix86} alpha sparc ppc
754 -e 's#CC.*$(CROSS_COMPILE)gcc#CC = %{__cc}#g' \
757 -e 's#CC.*$(CROSS_COMPILE)gcc#CC = sparc64-pld-linux-gcc#g' \
759 Makefile.orig >Makefile
761 sed -i 's:\-pipe::' arch/*/Makefile
766 # is this a special kernel we want to build?
769 [ "$1" = "BOOT" -o "$2" = "BOOT" ] && BOOT=yes
770 [ "$1" = "smp" -o "$2" = "smp" ] && smp=yes
771 if [ "$smp" = "yes" ]; then
772 Config="%{_target_base_arch}-smp"
774 Config="%{_target_base_arch}"
776 if [ "$BOOT" = "yes" ]; then
777 KernelVer=%{version}-%{release}BOOT
779 KernelVer=%{version}-%{release}$1
781 echo "Building config file for KERNEL $1..."
783 cat $RPM_SOURCE_DIR/kernel-$Config.config > arch/%{_target_base_arch}/defconfig
785 echo "CONFIG_M386=y" >> arch/%{_target_base_arch}/defconfig
788 echo "CONFIG_M486=y" >> arch/%{_target_base_arch}/defconfig
791 echo "CONFIG_M586=y" >> arch/%{_target_base_arch}/defconfig
794 echo "CONFIG_M686=y" >> arch/%{_target_base_arch}/defconfig
797 echo "CONFIG_MPENTIUMIII=y" >> arch/%{_target_base_arch}/defconfig
800 echo "CONFIG_MPENTIUM4=y" >> arch/%{_target_base_arch}/defconfig
803 echo "CONFIG_MK7=y" >> arch/%{_target_base_arch}/defconfig
805 %{?with_preemptive:echo "CONFIG_PREEMPT=y" >> arch/%{_target_base_arch}/defconfig}
808 cat %{SOURCE80} >> arch/%{_target_base_arch}/defconfig
811 cat %{SOURCE90} >> arch/%{_target_base_arch}/defconfig
814 %ifarch pentium3 pentium4 athlon
815 # kernel-i386-smp.config contains 64G support by default.
817 sed -i "s:CONFIG_HIGHMEM4G=y:# CONFIG_HIGHMEM4G is not set:" arch/%{_target_base_arch}/defconfig
818 sed -i "s:# CONFIG_HIGHMEM64G is not set:CONFIG_HIGHMEM64G=y\nCONFIG_X86_PAE=y:" arch/%{_target_base_arch}/defconfig
822 %ifarch i386 i486 i586
823 sed -i 's/# CONFIG_MATH_EMULATION is not set/CONFIG_MATH_EMULATION=y/' \
824 arch/%{_target_base_arch}/defconfig
827 ln -sf arch/%{_target_base_arch}/defconfig .config
829 install -d $KERNEL_INSTALL_DIR/usr/src/linux-%{version}/include/linux
830 %{__make} include/linux/autoconf.h
831 if [ "$smp" = "yes" ]; then
832 install include/linux/autoconf.h $KERNEL_INSTALL_DIR/usr/src/linux-%{version}/include/linux/autoconf-smp.h
834 install include/linux/autoconf.h $KERNEL_INSTALL_DIR/usr/src/linux-%{version}/include/linux/autoconf-up.h
840 Config="%{_target_base_arch}"
841 cat $RPM_SOURCE_DIR/kernel-$Config.config > arch/%{_target_base_arch}/defconfig
843 echo "CONFIG_M386=y" >> arch/%{_target_base_arch}/defconfig
846 echo "CONFIG_M486=y" >> arch/%{_target_base_arch}/defconfig
848 %ifarch i386 i486 i586
849 sed -i 's/# CONFIG_MATH_EMULATION is not set/CONFIG_MATH_EMULATION=y/' \
850 arch/%{_target_base_arch}/defconfig
852 cat <<EOF >>arch/%{_target_base_arch}/defconfig
853 # CONFIG_APM is not set
854 # CONFIG_ACPI is not set
855 # CONFIG_ACPI_BOOT is not set
856 # CONFIG_MTD is not set
857 # CONFIG_NETFILTER is not set
858 # CONFIG_WAN is not set
859 # CONFIG_ATM is not set
860 # CONFIG_HOTPLUG_PCI is not set
861 # CONFIG_NET_SCHED is not set
862 # CONFIG_X86_MCE is not set
863 # CONFIG_MTRR is not set
864 # CONFIG_PM is not set
865 # CONFIG_CPU_FREQ is not set
866 # CONFIG_DRM is not set
867 # CONFIG_FTAPE is not set
868 # CONFIG_WATCHDOG is not set
869 # CONFIG_DVB is not set
870 # CONFIG_DVB_CORE is not set
871 # CONFIG_VIDEO_DEV is not set
872 # CONFIG_SECURITY is not set
873 # CONFIG_SOUND is not set
874 # CONFIG_USB_AUDIO is not set
875 # CONFIG_INPUT_JOYSTICK is not set
876 # CONFIG_OMNIBOOK is not set
877 # CONFIG_NET_RADIO is not set
878 # CONFIG_HOTPLUG is not set
879 # CONFIG_QUOTA is not set
880 # CONFIG_REGPARM is not set
881 # CONFIG_SCSI_LOGGING is not set
884 # CONFIG_DEV_APPLETALK is not set
885 # CONFIG_ECONET_AUNUDP is not set
886 # CONFIG_HIPPI is not set
887 # CONFIG_TR is not set
888 # CONFIG_INPUT_MISC is not set
889 # CONFIG_INPUT_TOUCHSCREEN is not set
890 # CONFIG_PROFILING is not set
891 # CONFIG_DEBUG_KERNEL is not set
892 # CONFIG_DEBUG_SPINLOCK_SLEEP is not set
893 # CONFIG_FRAME_POINTER is not set
894 # CONFIG_LBD is not set
895 # CONFIG_SLIP is not set
896 # CONFIG_PPP is not set
897 # CONFIG_PLIP is not set
898 # CONFIG_FDDI is not set
899 # CONFIG_HAMRADIO is not set
900 # CONFIG_NETPOLL_RX is not set
901 # CONFIG_NETPOLL_TRAP is not set
902 # CONFIG_FB is not set
904 ln -sf arch/%{_target_base_arch}/defconfig .config
906 install -d $KERNEL_INSTALL_DIR/usr/src/linux-%{version}/include/linux
907 %{__make} include/linux/autoconf.h
908 if [ "$smp" = "yes" ]; then
909 install include/linux/autoconf.h $KERNEL_INSTALL_DIR/usr/src/linux-%{version}/include/linux/autoconf-smp.h
911 install include/linux/autoconf.h $KERNEL_INSTALL_DIR/usr/src/linux-%{version}/include/linux/autoconf-up.h
917 echo "Building kernel $1 ..."
919 RCS_FIND_IGNORE='-name build-done -prune -o'
920 ln -sf arch/%{_target_base_arch}/defconfig .config
923 sparc32 %{__make} clean \
924 RCS_FIND_IGNORE='-name build-done -prune -o'
927 RCS_FIND_IGNORE='-name build-done -prune -o'
929 %{__make} include/linux/version.h \
932 # make does vmlinux, modules and bzImage at once
933 %ifarch sparc sparc64
953 [ "$1" = "BOOT" -o "$2" = "BOOT" ] && BOOT=yes
954 [ "$1" = "smp" -o "$2" = "smp" ] && smp=yes
955 if [ "$smp" = "yes" ]; then
956 Config="%{_target_base_arch}-smp"
958 Config="%{_target_base_arch}"
960 if [ "$BOOT" = "yes" ]; then
961 KernelVer=%{version}-%{release}BOOT
963 KernelVer=%{version}-%{release}$1
966 mkdir -p $KERNEL_INSTALL_DIR/boot
967 install System.map $KERNEL_INSTALL_DIR/boot/System.map-$KernelVer
968 %ifarch %{ix86} amd64
969 install arch/%{_target_base_arch}/boot/bzImage $KERNEL_INSTALL_DIR/boot/vmlinuz-$KernelVer
971 %ifarch alpha sparc sparc64
972 gzip -cfv vmlinux > vmlinuz
973 install vmlinux $KERNEL_INSTALL_DIR/boot/vmlinux-$KernelVer
974 install vmlinuz $KERNEL_INSTALL_DIR/boot/vmlinuz-$KernelVer
976 elftoaout arch/sparc/boot/image -o vmlinux.aout
977 install vmlinux.aout $KERNEL_INSTALL_DIR/boot/vmlinux.aout-$KernelVer
980 elftoaout arch/sparc64/boot/image -o vmlinux.aout
981 install vmlinux.aout $KERNEL_INSTALL_DIR/boot/vmlinux.aout-$KernelVer
986 install vmlinux $KERNEL_INSTALL_DIR/boot/vmlinux-$KernelVer
987 install vmlinux $KERNEL_INSTALL_DIR/boot/vmlinuz-$KernelVer
989 %{__make} modules_install \
990 %{?with_verbose:V=1} \
991 INSTALL_MOD_PATH=$KERNEL_INSTALL_DIR \
992 KERNELRELEASE=$KernelVer
994 echo "CHECKING DEPENDENCIES FOR KERNEL MODULES"
995 /sbin/depmod --basedir $KERNEL_INSTALL_DIR -ae -F $KERNEL_INSTALL_DIR/boot/System.map-$KernelVer -r $KernelVer || echo
997 echo "KERNEL RELEASE $KernelVer DONE"
1001 KERNEL_BUILD_DIR=`pwd`
1004 KERNEL_INSTALL_DIR="$KERNEL_BUILD_DIR/build-done/kernel-UP"
1005 rm -rf $KERNEL_INSTALL_DIR
1007 %{?with_up:BuildKernel}
1008 %{?with_up:PreInstallKernel}
1011 KERNEL_INSTALL_DIR="$KERNEL_BUILD_DIR/build-done/kernel-SMP"
1012 rm -rf $KERNEL_INSTALL_DIR
1014 %{?with_smp:BuildKernel smp}
1015 %{?with_smp:PreInstallKernel smp}
1018 KERNEL_INSTALL_DIR="$KERNEL_BUILD_DIR/build-done/BOOT"
1019 rm -rf $KERNEL_INSTALL_DIR
1022 PreInstallKernel BOOT
1026 rm -rf $RPM_BUILD_ROOT
1029 install -d $RPM_BUILD_ROOT%{_prefix}/src/linux-%{version}
1031 KERNEL_BUILD_DIR=`pwd`
1033 %if %{with up} || %{with smp}
1034 cp -a $KERNEL_BUILD_DIR/build-done/kernel-*/* $RPM_BUILD_ROOT
1037 for i in "" smp ; do
1038 if [ -e $RPM_BUILD_ROOT/lib/modules/%{version}-%{release}$i ] ; then
1039 rm -f $RPM_BUILD_ROOT/lib/modules/%{version}-%{release}$i/build
1040 ln -sf %{_prefix}/src/linux-%{version} \
1041 $RPM_BUILD_ROOT/lib/modules/%{version}-%{release}$i/build
1045 ln -sf linux-%{version} $RPM_BUILD_ROOT%{_prefix}/src/linux
1047 find . ! -name "build-done" -maxdepth 1 -exec cp -a "{}" "$RPM_BUILD_ROOT/usr/src/linux-%{version}/" ";"
1049 cd $RPM_BUILD_ROOT%{_prefix}/src/linux-%{version}
1051 %{__make} mrproper \
1052 RCS_FIND_IGNORE='-name build-done -prune -o'
1053 find -name "*~" -exec rm -f "{}" ";"
1054 find -name "*.orig" -exec rm -f "{}" ";"
1056 install $RPM_SOURCE_DIR/kernel-%{_target_base_arch}.config .config
1059 echo "CONFIG_M386=y" >> .config
1062 echo "CONFIG_M486=y" >> .config
1065 echo "CONFIG_M586=y" >> .config
1068 echo "CONFIG_M686=y" >> .config
1071 echo "CONFIG_MPENTIUMIII=y" >> .config
1074 echo "CONFIG_MPENTIUM4=y" >> .config
1077 echo "CONFIG_MK7=y" >> .config
1080 cat %{SOURCE80} >> .config
1082 cat %{SOURCE90} >> .config
1084 cp .config config-up
1086 install $RPM_SOURCE_DIR/kernel-%{_target_base_arch}-smp.config .config
1089 echo "CONFIG_M386=y" >> .config
1092 echo "CONFIG_M486=y" >> .config
1095 echo "CONFIG_M586=y" >> .config
1098 echo "CONFIG_M686=y" >> .config
1101 echo "CONFIG_MPENTIUMIII=y" >> .config
1104 echo "CONFIG_MPENTIUM4=y" >> .config
1107 echo "CONFIG_MK7=y" >> .config
1110 cat %{SOURCE80} >> .config
1112 cat %{SOURCE90} >> .config
1114 cp .config config-smp
1116 if [ -e $KERNEL_BUILD_DIR/build-done/kernel-UP/usr/src/linux-%{version}/include/linux/autoconf-up.h ]; then
1117 install $KERNEL_BUILD_DIR/build-done/kernel-UP/usr/src/linux-%{version}/include/linux/autoconf-up.h \
1118 $RPM_BUILD_ROOT/usr/src/linux-%{version}/include/linux
1121 if [ -e $KERNEL_BUILD_DIR/build-done/kernel-SMP/usr/src/linux-%{version}/include/linux/autoconf-smp.h ]; then
1122 install $KERNEL_BUILD_DIR/build-done/kernel-SMP/usr/src/linux-%{version}/include/linux/autoconf-smp.h \
1123 $RPM_BUILD_ROOT/usr/src/linux-%{version}/include/linux
1126 %if %{with up} || %{with smp}
1128 install $KERNEL_BUILD_DIR/build-done/kernel-*/usr/src/linux-%{version}/include/linux/* \
1129 $RPM_BUILD_ROOT/usr/src/linux-%{version}/include/linux
1133 %{__make} include/linux/version.h
1134 install %{SOURCE1} $RPM_BUILD_ROOT%{_prefix}/src/linux-%{version}/include/linux/autoconf.h
1137 rm -rf $RPM_BUILD_ROOT
1140 mv -f /boot/vmlinuz /boot/vmlinuz.old 2> /dev/null > /dev/null
1141 mv -f /boot/System.map /boot/System.map.old 2> /dev/null > /dev/null
1142 ln -sf vmlinuz-%{version}-%{release} /boot/vmlinuz
1143 ln -sf System.map-%{version}-%{release} /boot/System.map
1145 if [ ! -L /lib/modules/%{version} ] ; then
1146 mv -f /lib/modules/%{version} /lib/modules/%{version}.rpmsave > /dev/null 2>&1
1148 rm -f /lib/modules/%{version}
1149 ln -snf %{version}-%{release} /lib/modules/%{version}
1150 %depmod %{version}-%{release}
1152 /sbin/geninitrd -f --initrdfs=rom /boot/initrd-%{version}-%{release}.gz %{version}-%{release}
1153 mv -f /boot/initrd /boot/initrd.old
1154 ln -sf initrd-%{version}-%{release}.gz /boot/initrd
1156 if [ -x /sbin/rc-boot ] ; then
1157 /sbin/rc-boot 1>&2 || :
1161 if [ -L /lib/modules/%{version} ]; then
1162 if [ "`ls -l /lib/modules/%{version} | awk '{ print $10 }'`" = "%{version}-%{release}" ]; then
1163 if [ "$1" = "0" ]; then
1164 rm -f /lib/modules/%{version}
1168 rm -f /boot/initrd-%{version}-%{release}.gz
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 %depmod %{version}-%{release}
1192 %depmod %{version}-%{release}
1195 mv -f /boot/vmlinuz /boot/vmlinuz.old 2> /dev/null > /dev/null
1196 mv -f /boot/System.map /boot/System.map.old 2> /dev/null > /dev/null
1197 ln -sf vmlinuz-%{version}-%{release}smp /boot/vmlinuz
1198 ln -sf System.map-%{version}-%{release}smp /boot/System.map
1200 if [ ! -L /lib/modules/%{version} ] ; then
1201 mv -f /lib/modules/%{version} /lib/modules/%{version}.rpmsave > /dev/null 2>&1
1203 rm -f /lib/modules/%{version}
1204 ln -snf %{version}-%{release}smp /lib/modules/%{version}
1205 %depmod %{version}-%{release}smp
1207 /sbin/geninitrd -f --initrdfs=rom /boot/initrd-%{version}-%{release}smp.gz %{version}-%{release}smp
1208 mv -f /boot/initrd /boot/initrd.old
1209 ln -sf initrd-%{version}-%{release}smp.gz /boot/initrd
1211 if [ -x /sbin/rc-boot ] ; then
1212 /sbin/rc-boot 1>&2 || :
1216 if [ -L /lib/modules/%{version} ]; then
1217 if [ "`ls -l /lib/modules/%{version} | awk '{ print $10 }'`" = "%{version}-%{release}smp" ]; then
1218 if [ "$1" = "0" ]; then
1219 rm -f /lib/modules/%{version}
1223 rm -f /boot/initrd-%{version}-%{release}smp.gz
1226 if [ ! -L %{_libdir}/bootdisk/lib/modules/%{version} ] ; then
1227 mv -f %{_libdir}/bootdisk/lib/modules/%{version} %{_libdir}/bootdisk/lib/modules/%{version}.rpmsave
1229 if [ ! -L %{_libdir}/bootdisk/boot/vmlinuz-%{version} ] ; then
1230 mv -f %{_libdir}/bootdisk/boot/vmlinuz-%{version} %{_libdir}/bootdisk/boot/vmlinuz-%{version}.rpmsave
1232 rm -f %{_libdir}/bootdisk/lib/modules/%{version}
1233 ln -snf %{version}-%{release}BOOT %{_libdir}/bootdisk/lib/modules/%{version}
1234 rm -f %{_libdir}/bootdisk/boot/vmlinuz-%{version}
1235 ln -snf vmlinuz-%{version}-%{release}BOOT %{_libdir}/bootdisk/boot/vmlinuz-%{version}
1238 %depmod %{version}-%{release}smp
1241 %depmod %{version}-%{release}smp
1244 %depmod %{version}-%{release}smp
1247 %depmod %{version}-%{release}smp
1249 %post smp-sound-alsa
1250 %depmod %{version}-%{release}smp
1252 %postun smp-sound-alsa
1253 %depmod %{version}-%{release}smp
1256 %depmod %{version}-%{release}smp
1258 %postun smp-sound-oss
1259 %depmod %{version}-%{release}smp
1262 if [ -L %{_libdir}/bootdisk/lib/modules/%{version} ]; then
1263 if [ "`ls -l %{_libdir}/bootdisk/lib/modules/%{version} | awk '{ print $10 }'`" = "%{version}-%{release}BOOT" ]; then
1264 if [ "$1" = "0" ]; then
1265 rm -f %{_libdir}/bootdisk/lib/modules/%{version}
1271 rm -f /usr/src/linux
1272 ln -snf linux-%{version} /usr/src/linux
1275 if [ -L %{_prefix}/src/linux ]; then
1276 if [ "`ls -l %{_prefix}/src/linux | awk '{ print $10 }'`" = "linux-%{version}" ]; then
1277 if [ "$1" = "0" ]; then
1278 rm -f %{_prefix}/src/linux
1285 %defattr(644,root,root,755)
1287 /boot/vmlinux-%{version}-%{release}
1289 %ifarch sparc sparc64
1290 /boot/vmlinux-%{version}-%{release}
1291 /boot/vmlinux.aout-%{version}-%{release}
1293 /boot/vmlinuz-%{version}-%{release}
1294 /boot/System.map-%{version}-%{release}
1295 %dir /lib/modules/%{version}-%{release}
1296 /lib/modules/%{version}-%{release}/kernel
1297 %ifnarch sparc sparc64
1299 %exclude /lib/modules/%{version}-%{release}/kernel/drivers/pcmcia
1300 %exclude /lib/modules/%{version}-%{release}/kernel/drivers/*/pcmcia
1301 %exclude /lib/modules/%{version}-%{release}/kernel/drivers/bluetooth/*_cs.ko
1302 %exclude /lib/modules/%{version}-%{release}/kernel/drivers/net/wireless/*_cs.ko
1303 %exclude /lib/modules/%{version}-%{release}/kernel/drivers/parport/parport_cs.ko
1304 %exclude /lib/modules/%{version}-%{release}/kernel/drivers/serial/serial_cs.ko
1306 %ifnarch sparc sparc64
1308 %exclude /lib/modules/%{version}-%{release}/kernel/drivers/char/drm
1310 %ifnarch sparc sparc64
1312 %exclude /lib/modules/%{version}-%{release}/kernel/sound/oss
1315 %exclude /lib/modules/%{version}-%{release}/kernel/sound/core
1316 %exclude /lib/modules/%{version}-%{release}/kernel/sound/drivers
1317 %ifnarch sparc sparc64
1318 %exclude /lib/modules/%{version}-%{release}/kernel/sound/i2c
1319 %exclude /lib/modules/%{version}-%{release}/kernel/sound/isa
1320 %exclude /lib/modules/%{version}-%{release}/kernel/sound/pci
1321 %exclude /lib/modules/%{version}-%{release}/kernel/sound/synth
1322 %exclude /lib/modules/%{version}-%{release}/kernel/sound/usb
1324 %ifarch sparc sparc64
1325 %exclude /lib/modules/%{version}-%{release}/kernel/sound/sparc
1328 /lib/modules/%{version}-%{release}/build
1329 %ghost /lib/modules/%{version}-%{release}/modules.*
1331 %ifnarch sparc sparc64
1333 %defattr(644,root,root,755)
1334 /lib/modules/%{version}-%{release}/kernel/drivers/char/drm
1337 %ifnarch sparc sparc64
1339 %defattr(644,root,root,755)
1340 /lib/modules/%{version}-%{release}/kernel/drivers/pcmcia
1341 /lib/modules/%{version}-%{release}/kernel/drivers/*/pcmcia
1342 /lib/modules/%{version}-%{release}/kernel/drivers/bluetooth/*_cs.ko
1343 /lib/modules/%{version}-%{release}/kernel/drivers/net/wireless/*_cs.ko
1344 /lib/modules/%{version}-%{release}/kernel/drivers/parport/parport_cs.ko
1345 /lib/modules/%{version}-%{release}/kernel/drivers/serial/serial_cs.ko
1349 %defattr(644,root,root,755)
1350 /lib/modules/%{version}-%{release}/kernel/sound/core
1351 /lib/modules/%{version}-%{release}/kernel/sound/drivers
1352 %ifnarch sparc sparc64
1353 /lib/modules/%{version}-%{release}/kernel/sound/i2c
1354 /lib/modules/%{version}-%{release}/kernel/sound/isa
1355 /lib/modules/%{version}-%{release}/kernel/sound/pci
1356 /lib/modules/%{version}-%{release}/kernel/sound/synth
1357 /lib/modules/%{version}-%{release}/kernel/sound/usb
1359 %ifarch sparc sparc64
1360 /lib/modules/%{version}-%{release}/kernel/sound/sparc
1363 %ifnarch sparc sparc64
1365 %defattr(644,root,root,755)
1366 /lib/modules/%{version}-%{release}/kernel/sound/oss
1368 %endif # %%{with up}
1372 %defattr(644,root,root,755)
1373 %ifarch alpha sparc sparc64 ppc
1374 /boot/vmlinux-%{version}-%{release}smp
1376 /boot/vmlinuz-%{version}-%{release}smp
1377 /boot/System.map-%{version}-%{release}smp
1378 %dir /lib/modules/%{version}-%{release}smp
1379 /lib/modules/%{version}-%{release}smp/kernel
1380 %ifnarch sparc sparc64
1382 %exclude /lib/modules/%{version}-%{release}smp/kernel/drivers/pcmcia
1383 %exclude /lib/modules/%{version}-%{release}smp/kernel/drivers/*/pcmcia
1384 %exclude /lib/modules/%{version}-%{release}smp/kernel/drivers/bluetooth/*_cs.ko
1385 %exclude /lib/modules/%{version}-%{release}smp/kernel/drivers/net/wireless/*_cs.ko
1386 %exclude /lib/modules/%{version}-%{release}smp/kernel/drivers/parport/parport_cs.ko
1387 %exclude /lib/modules/%{version}-%{release}smp/kernel/drivers/serial/serial_cs.ko
1389 %ifnarch sparc sparc64
1391 %exclude /lib/modules/%{version}-%{release}smp/kernel/drivers/char/drm
1393 %ifnarch sparc sparc64
1395 %exclude /lib/modules/%{version}-%{release}smp/kernel/sound/oss
1398 %exclude /lib/modules/%{version}-%{release}smp/kernel/sound/core
1399 %exclude /lib/modules/%{version}-%{release}smp/kernel/sound/drivers
1400 %ifnarch sparc sparc64
1401 %exclude /lib/modules/%{version}-%{release}smp/kernel/sound/i2c
1402 %exclude /lib/modules/%{version}-%{release}smp/kernel/sound/isa
1403 %exclude /lib/modules/%{version}-%{release}smp/kernel/sound/pci
1404 %exclude /lib/modules/%{version}-%{release}smp/kernel/sound/synth
1405 %exclude /lib/modules/%{version}-%{release}smp/kernel/sound/usb
1407 %ifarch sparc sparc64
1408 %exclude /lib/modules/%{version}-%{release}smp/kernel/sound/sparc
1411 /lib/modules/%{version}-%{release}smp/build
1412 %ghost /lib/modules/%{version}-%{release}smp/modules.*
1414 %ifnarch sparc sparc64
1416 %defattr(644,root,root,755)
1417 /lib/modules/%{version}-%{release}smp/kernel/drivers/char/drm
1420 %ifnarch sparc sparc64
1422 %defattr(644,root,root,755)
1423 /lib/modules/%{version}-%{release}smp/kernel/drivers/pcmcia
1424 /lib/modules/%{version}-%{release}smp/kernel/drivers/*/pcmcia
1425 /lib/modules/%{version}-%{release}smp/kernel/drivers/bluetooth/*_cs.ko
1426 /lib/modules/%{version}-%{release}smp/kernel/drivers/net/wireless/*_cs.ko
1427 /lib/modules/%{version}-%{release}smp/kernel/drivers/parport/parport_cs.ko
1428 /lib/modules/%{version}-%{release}smp/kernel/drivers/serial/serial_cs.ko
1431 %files smp-sound-alsa
1432 %defattr(644,root,root,755)
1433 /lib/modules/%{version}-%{release}smp/kernel/sound/core
1434 /lib/modules/%{version}-%{release}smp/kernel/sound/drivers
1435 %ifnarch sparc sparc64
1436 /lib/modules/%{version}-%{release}smp/kernel/sound/i2c
1437 /lib/modules/%{version}-%{release}smp/kernel/sound/isa
1438 /lib/modules/%{version}-%{release}smp/kernel/sound/pci
1439 /lib/modules/%{version}-%{release}smp/kernel/sound/synth
1440 /lib/modules/%{version}-%{release}smp/kernel/sound/usb
1442 %ifarch sparc sparc64
1443 /lib/modules/%{version}-%{release}smp/kernel/sound/sparc
1446 %ifnarch sparc sparc64
1447 %files smp-sound-oss
1448 %defattr(644,root,root,755)
1449 /lib/modules/%{version}-%{release}smp/kernel/sound/oss
1451 %endif # %%{with smp}
1455 %defattr(644,root,root,755)
1456 %ifarch alpha sparc sparc64 ppc # arch
1457 %{_libdir}/bootdisk/boot/vmlinux-%{version}-%{release}BOOT
1459 %{_libdir}/bootdisk/boot/vmlinuz-%{version}-%{release}BOOT
1460 %{_libdir}/bootdisk/boot/System.map-%{version}-%{release}BOOT
1461 %dir %{_libdir}/bootdisk/lib/modules/%{version}-%{release}BOOT
1462 %{_libdir}/bootdisk/lib/modules/%{version}-%{release}BOOT/kernel
1463 %{_libdir}/bootdisk/lib/modules/%{version}-%{release}BOOT/build
1464 %ghost %{_libdir}/bootdisk/lib/modules/%{version}-%{release}BOOT/modules.*
1465 %endif # %%{with BOOT}
1468 %defattr(644,root,root,755)
1469 %dir %{_prefix}/src/linux-%{version}
1470 %{_prefix}/src/linux-%{version}/include
1471 %{_prefix}/src/linux-%{version}/config-smp
1472 %{_prefix}/src/linux-%{version}/config-up
1475 %defattr(644,root,root,755)
1476 %{_prefix}/src/linux-%{version}/Makefile
1477 %dir %{_prefix}/src/linux-%{version}/arch
1478 %dir %{_prefix}/src/linux-%{version}/arch/*
1479 %{_prefix}/src/linux-%{version}/arch/*/Makefile*
1480 %dir %{_prefix}/src/linux-%{version}/arch/*/kernel
1481 %{_prefix}/src/linux-%{version}/arch/*/kernel/Makefile
1482 %{_prefix}/src/linux-%{version}/arch/*/kernel/asm-offsets.*
1483 %{_prefix}/src/linux-%{version}/arch/*/kernel/sigframe.h
1484 %dir %{_prefix}/src/linux-%{version}/scripts
1485 %{_prefix}/src/linux-%{version}/scripts/Makefile*
1486 %{_prefix}/src/linux-%{version}/scripts/basic
1487 %{_prefix}/src/linux-%{version}/scripts/*.c
1488 %{_prefix}/src/linux-%{version}/scripts/*.h
1489 %{_prefix}/src/linux-%{version}/scripts/*.sh
1492 %defattr(644,root,root,755)
1493 %{_prefix}/src/linux-%{version}/Documentation
1494 #%%{_prefix}/src/linux-%{version}/netfilter-patch-o-matic
1498 %defattr(644,root,root,755)
1499 %{_prefix}/src/linux-%{version}/arch/*/[!Mk]*
1500 %{_prefix}/src/linux-%{version}/arch/*/kernel/[!M]*
1501 %exclude %{_prefix}/src/linux-%{version}/arch/*/kernel/asm-offsets.*
1502 %exclude %{_prefix}/src/linux-%{version}/arch/*/kernel/sigframe.h
1503 %{_prefix}/src/linux-%{version}/cluster
1504 %{_prefix}/src/linux-%{version}/crypto
1505 %{_prefix}/src/linux-%{version}/drivers
1506 %{_prefix}/src/linux-%{version}/fs
1508 %{_prefix}/src/linux-%{version}/grsecurity
1510 %{_prefix}/src/linux-%{version}/init
1511 %{_prefix}/src/linux-%{version}/ipc
1512 %{_prefix}/src/linux-%{version}/kernel
1513 %{_prefix}/src/linux-%{version}/lib
1514 %{_prefix}/src/linux-%{version}/mm
1515 %{_prefix}/src/linux-%{version}/net
1516 %{_prefix}/src/linux-%{version}/scripts/*
1517 %exclude %{_prefix}/src/linux-%{version}/scripts/Makefile*
1518 %exclude %{_prefix}/src/linux-%{version}/scripts/basic
1519 %exclude %{_prefix}/src/linux-%{version}/scripts/*.c
1520 %exclude %{_prefix}/src/linux-%{version}/scripts/*.h
1521 %exclude %{_prefix}/src/linux-%{version}/scripts/*.sh
1522 %{_prefix}/src/linux-%{version}/sound
1523 %{_prefix}/src/linux-%{version}/security
1524 %{_prefix}/src/linux-%{version}/usr
1525 %{_prefix}/src/linux-%{version}/COPYING
1526 %{_prefix}/src/linux-%{version}/CREDITS
1527 %{_prefix}/src/linux-%{version}/MAINTAINERS
1528 %{_prefix}/src/linux-%{version}/README
1529 %{_prefix}/src/linux-%{version}/REPORTING-BUGS