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
104 Patch1: 2.6.0-t4-PPC-ENODEV.patch
105 Patch2: 2.6.0-t6-usb-irq.patch
106 Patch3: 2.6.0-t7-memleak-lkml.patch
107 Patch4: 2.6.0-t7-memleak2-lkml.patch
108 #Patch5: 2.6.0-t8-swap-include-lkml.patch
109 Patch6: 2.6.0-t8-VLSI-ix86-lkml.patch
110 Patch7: 2.6.0-t8-appletalk-SYSCTL-lkml.patch
111 Patch8: 2.6.0-t8-umsdos-lkml.patch
112 Patch9: 2.6.0-t9-acpi_osl-lkml.patch
113 Patch10: 2.6.0-t11-AIC_and_db4-lkml.patch
114 Patch11: 2.6.1-rc2-ini9100u-lkml.patch
115 Patch12: 2.6.1-rc2-VLAN-NS83820-lkml.patch
116 Patch13: 2.6.2-Initio9100U-Kconfig.patch
117 # http://www.consultmatt.co.uk/downloads/patches/kernel/2.6/
118 Patch14: 2.6.1-all-in-1.patch
121 #Patch24: %{name}-nls_default.patch
122 Patch25: squashfs2.0-patch
123 # rewriten based on: ftp://ftp.suse.com/pub/people/stepan/bootsplash/kernel/bootsplash-3.1.4-2.6.3.diff
124 Patch26: bootsplash-3.1.4-2.6.7.patch
126 Patch30: linux-tdfxfb-fillrect.patch
127 Patch31: linux-fbcon-margins.patch
128 Patch32: linux-tdfxfb-interlace+double.patch
129 Patch33: linux-2.6-rivafb16.patch
131 Patch38: linux-kbuild-extmod.patch
133 Patch40: 2.6.x-PD6729-lkml.patch
135 Patch42: 2.6.x-ppp_mppe.patch
138 Patch46: 2.6.7-pom-ng-%{_netfilter_snap}.patch
139 # http://www.barbara.eu.org/~quaker/ipt_account/
140 Patch47: 2.6.6-ipt_account.patch
142 Patch48: 2.6.3-sparc32-fix.patch
144 # http://www.tahoe.pl/drivers/tahoe9xx-2.6.2.patch
145 #Patch50: tahoe9xx-2.6.2.patch
146 Patch50: http://www.tahoe.pl/drivers/tahoe9xx-2.6.4-5.patch
147 Patch51: linux-tahoe9xx-hdlc-update.patch
149 Patch54: 2.6.x-SGI_VW-fbdev-lkml.patch
151 Patch56: 2.6.x-TGA-fbdev-lkml.patch
153 Patch58: linux-alpha-isa.patch
154 Patch59: 2.6.7-alpha_compile.patch
156 Patch60: 2.6.4-rc1-01-esfq-imq.patch
157 Patch61: 2.6.4-rc1-02-imq-nat-support.patch
159 Patch64: 2.6.4-psion-5mx.patch
162 Patch68: 2.6.5-sparc64-missing-include.patch
164 Patch70: 2.6.5-3C920b-Tornado.patch
166 Patch72: 2.6.5-i386-cmpxchg.patch
168 Patch74: 2.6.4-wrr.patch
170 # http://dl.sourceforge.net/sourceforge/pramfs/pramfs-2.6.4-1.0.2.tar.gz
171 Patch76: pramfs-2.6.4.patch
173 Patch78: ftp://ftp.kernel.org/pub/linux/kernel/people/mbligh/patches/2.6.6-rc3/2.6.6-rc3-mjb1/350-autoswap
175 Patch80: http://www.elektronikschule.de/~genannt/kernel-patche/lirc/lirc-2.6.5-20040404
177 # from http://www.smcc.demon.nl/webcam/pwcx-9.0-beta-2.tar.gz
178 Patch82: 2.6.7-pwcx.patch
180 Patch84: 2.6.6-serial-fifo-lkml.patch
182 Patch88: 2.6.6-qsort-updated-lkml.patch
183 Patch90: 2.6.6-xfs-qsort-lkml.patch
185 #Patch94: grsecurity-2.0-2.6.6-unofficial.patch
186 Patch94: %{name}-grsec.patch
188 Patch96: 2.6.6-lirc_i2c.diff
190 Patch97: %{name}-pts.patch
192 Patch100: %{name}-MAX_INIT_ARGS.patch
194 # frpm http://www.ssi.bg/~ja/#routers
195 Patch102: 00_static_routes-2.6.0-test1-8.diff
196 Patch103: 01_alt_routes-2.5.50-8.diff
197 Patch104: 01_arp_prefsrc-2.5.50-5.diff
198 Patch105: 05_nf_reroute-2.6.7-10.diff
200 Patch108: 2.6.7-bridge_sysfs-lkml.patch
202 Patch110: ftp://ftp.kernel.org/pub/linux/kernel/people/lenb/acpi/patches/release/2.6.7/acpi-20040326-2.6.7.diff.gz
204 Patch112: linux-fbcon-con2fb-crash-workaround.patch
206 Patch114: linux-2.6-netfilter-syms.patch
208 # http://sources.redhat.com/cluster/
209 Patch200: linux-cluster-cman.patch
210 Patch201: linux-cluster-dlm.patch
211 Patch202: linux-cluster-gfs.patch
212 Patch203: linux-cluster-gnbd.patch
214 # http://lkml.org/lkml/2004/6/2/233
215 Patch211: http://people.redhat.com/mingo/exec-shield/exec-shield-nx-2.6.7-A0
216 Patch212: exec-shield-make-peace-with-grsecurity.patch
219 Patch300: 2.6.7-ppc-asm-defs.patch
220 Patch302: 2.6.7-ppc-cciss-div.patch
221 Patch303: 2.6.8-lkml-saa7146-memory-variable.patch
222 Patch304: 2.6.7-ppc-ipr-div.patch
223 Patch305: 2.6.7-ppc-proxydict-workaround.patch
225 Patch310: linux-2.6-sparc-ksyms.patch
227 Patch312: linux-2.6-ppc-ksyms.patch
229 Patch400: 2.6.7-kill-warnings.patch
231 URL: http://www.kernel.org/
232 BuildRequires: binutils >= 2.14.90.0.7
233 %ifarch sparc sparc64
234 BuildRequires: elftoaout
236 BuildRequires: module-init-tools
237 BuildRequires: perl-base
238 BuildRequires: rpmbuild(macros) >= 1.153
241 PreReq: module-init-tools >= 0.9.9
242 PreReq: geninitrd >= 2.57
243 Provides: %{name}-up = %{epoch}:%{version}-%{release}
244 Provides: module-info
245 Provides: %{name}(netfilter) = %{_netfilter_snap}
246 Obsoletes: kernel-modules
247 Conflicts: util-linux < %{_util_linux_ver}
248 Conflicts: module-init-tool < %{_module_init_tool_ver}
249 Conflicts: e2fsprogs < %{_e2fsprogs_ver}
250 Conflicts: jfsutils < %{_jfsutils_ver}
251 Conflicts: reiserfsprogs < %{_reiserfsprogs_ver}
252 Conflicts: xfsprogs < %{_xfsprogs_ver}
253 Conflicts: quota-tools < %{_quota_tools_ver}
254 Conflicts: PPP < %{_PPP_ver}
255 Conflicts: isdn4k-utils < %{_isdn4k_utils_ver}
256 Conflicts: nfs-utils < %{_nfs_utils_ver}
257 Conflicts: procps < %{_procps_ver}
258 Conflicts: oprofile < %{_oprofile_ver}
259 ExclusiveArch: %{ix86} sparc sparc64 alpha ppc amd64
261 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
264 This package contains the Linux kernel that is used to boot and run
265 your system. It contains few device drivers for specific hardware.
266 Most hardware is instead supported by modules loaded after booting.
269 Das Kernel-Paket enthƤlt den Linux-Kernel (vmlinuz), den Kern des
270 Linux-Betriebssystems. Der Kernel ist fĆ¼r grundliegende
271 Systemfunktionen verantwortlich: Speicherreservierung,
272 ProzeĆ-Management, GerƤte Ein- und Ausgaben, usw.
275 Le package kernel contient le kernel linux (vmlinuz), la partie
276 centrale d'un systĆØme d'exploitation Linux. Le noyau traite les
277 fonctions basiques d'un systĆØme d'exploitation: allocation mĆ©moire,
278 allocation de process, entrƩe/sortie de peripheriques, etc.
281 Pakiet zawiera jĀ±dro Linuksa niezbĆŖdne do prawidĀ³owego dziaĀ³ania
282 Twojego komputera. Zawiera w sobie sterowniki do sprzĆŖtu znajdujĀ±cego
283 siĆŖ w komputerze, takiego jak sterowniki dyskĆ³w itp.
286 Summary: DRM kernel modules
287 Summary(pl): Sterowniki DRM
289 PreReq: %{name}-up = %{epoch}:%{version}-%{release}
290 Requires(postun): %{name}-up = %{epoch}:%{version}-%{release}
291 Provides: %{name}-drm = %{drm_xfree_version}
295 DRM kernel modules (%{drm_xfree_version}).
297 %description drm -l pl
298 Sterowniki DRM (%{drm_xfree_version}).
301 Summary: PCMCIA modules
302 Summary(pl): ModuĀ³y PCMCIA
304 PreReq: %{name}-up = %{epoch}:%{version}-%{release}
305 Requires(postun): %{name}-up = %{epoch}:%{version}-%{release}
306 Provides: %{name}-pcmcia = %{pcmcia_version}
307 Provides: kernel(pcmcia)
308 Conflicts: pcmcia-cs < %{_pcmcia_cs_ver}
312 PCMCIA modules (%{pcmcia_version}).
314 %description pcmcia -l pl
315 ModuĀ³y PCMCIA (%{pcmcia_version}).
318 Summary: ALSA kernel modules
319 Summary(pl): Sterowniki dĀ¼wiĆŖku ALSA
321 PreReq: %{name}-up = %{epoch}:%{version}-%{release}
322 Requires(postun): %{name}-up = %{epoch}:%{version}-%{release}
323 Provides: alsa-driver
324 Obsoletes: alsa-driver
325 Obsoletes: alsa-driver-up
328 %description sound-alsa
329 ALSA (Advanced Linux Sound Architecture) sound drivers.
331 %description sound-alsa -l pl
332 Sterowniki dĀ¼wiĆŖku ALSA (Advanced Linux Sound Architecture).
335 Summary: OSS kernel modules
336 Summary(pl): Sterowniki dĀ¼wiĆŖku OSS
338 PreReq: %{name}-up = %{epoch}:%{version}-%{release}
339 Requires(postun): %{name}-up = %{epoch}:%{version}-%{release}
342 %description sound-oss
343 OSS (Open Sound System) drivers.
345 %description sound-oss -l pl
346 Sterowniki dĀ¼wiĆŖku OSS (Open Sound System).
349 Summary: Kernel version %{version} compiled for SMP machines
350 Summary(de): Kernel version %{version} fĆ¼r Multiprozessor-Maschinen
351 Summary(fr): Kernel version %{version} compiler pour les machine Multi-Processeur
352 Summary(pl): JĀ±dro Linuksa w wersji %{version} dla maszyn wieloprocesorowych
355 PreReq: module-init-tools >= 0.9.9
356 PreReq: geninitrd >= 2.26
357 Provides: %{name} = %{epoch}:%{version}-%{release}
358 Provides: module-info
359 Provides: %{name}(netfilter) = %{_netfilter_snap}
360 Conflicts: util-linux < %{_util_linux_ver}
361 Conflicts: module-init-tool < %{_module_init_tool_ver}
362 Conflicts: e2fsprogs < %{_e2fsprogs_ver}
363 Conflicts: jfsutils < %{_jfsutils_ver}
364 Conflicts: reiserfsprogs < %{_reiserfsprogs_ver}
365 Conflicts: xfsprogs < %{_xfsprogs_ver}
366 Conflicts: quota-tools < %{_quota_tools_ver}
367 Conflicts: PPP < %{_PPP_ver}
368 Conflicts: isdn4k-utils < %{_isdn4k_utils_ver}
369 Conflicts: nfs-utils < %{_nfs_utils_ver}
370 Conflicts: procps < %{_procps_ver}
371 Conflicts: oprofile < %{_oprofile_ver}
375 This package includes a SMP version of the Linux %{version} kernel. It
376 is required only on machines with two or more CPUs, although it should
377 work fine on single-CPU boxes.
379 %description smp -l de
380 Dieses Paket enthƤlt eine SMP (Multiprozessor)-Version von
381 Linux-Kernel %{version}. Es wird fĆ¼r Maschinen mit zwei oder mehr
382 Prozessoren gebraucht, sollte aber auch auf Computern mit nur einer
385 %description smp -l fr
386 Ce package inclu une version SMP du noyau de Linux version {version}.
387 Il et nƩcessaire seulement pour les machine avec deux processeurs ou
388 plus, il peut quand mĆŖme fonctionner pour les systĆØme mono-processeur.
390 %description smp -l pl
391 Pakiet zawiera jĀ±dro SMP Linuksa w wersji %{version}. Jest ono
392 wymagane przez komputery zawierajĀ±ce dwa lub wiĆŖcej procesorĆ³w.
393 Powinno rĆ³wnieĀæ dobrze dziaĀ³aƦ na maszynach z jednym procesorem.
396 Summary: DRM SMP kernel modules
397 Summary(pl): Sterowniki DRM dla maszyn wieloprocesorowych
399 PreReq: %{name}-smp = %{epoch}:%{version}-%{release}
400 Requires(postun): %{name}-smp = %{epoch}:%{version}-%{release}
401 Provides: %{name}-drm = %{drm_xfree_version}
405 DRM SMP kernel modules (%{drm_xfree_version}).
407 %description smp-drm -l pl
408 Sterowniki DRM dla maszyn wieloprocesorowych (%{drm_xfree_version}).
411 Summary: PCMCIA modules for SMP kernel
412 Summary(pl): ModuĀ³y PCMCIA dla maszyn SMP
414 PreReq: %{name}-smp = %{epoch}:%{version}-%{release}
415 Requires(postun): %{name}-smp = %{epoch}:%{version}-%{release}
416 Provides: %{name}-pcmcia = %{pcmcia_version}
417 Provides: kernel(pcmcia)
418 Conflicts: pcmcia-cs < %{_pcmcia_cs_ver}
421 %description smp-pcmcia
422 PCMCIA modules for SMP kernel (%{pcmcia_version}).
424 %description smp-pcmcia -l pl
425 ModuĀ³y PCMCIA dla maszyn SMP (%{pcmcia_version}).
427 %package smp-sound-alsa
428 Summary: ALSA SMP kernel modules
429 Summary(pl): Sterowniki dĀ¼wiĆŖku ALSA dla maszyn wieloprocesorowych
431 PreReq: %{name}-smp = %{epoch}:%{version}-%{release}
432 Requires(postun): %{name}-smp = %{epoch}:%{version}-%{release}
433 Provides: alsa-driver
434 Obsoletes: alsa-driver
435 Obsoletes: alsa-driver-smp
438 %description smp-sound-alsa
439 ALSA (Advanced Linux Sound Architecture) SMP sound drivers.
441 %description smp-sound-alsa -l pl
442 Sterowniki dĀ¼wiĆŖku ALSA (Advanced Linux Sound Architecture) dla maszyn
445 %package smp-sound-oss
446 Summary: OSS SMP kernel modules
447 Summary(pl): Sterowniki dĀ¼wiĆŖku OSS dla maszyn wieloprocesorowych
449 PreReq: %{name}-smp = %{epoch}:%{version}-%{release}
450 Requires(postun): %{name}-smp = %{epoch}:%{version}-%{release}
453 %description smp-sound-oss
454 OSS (Open Sound System) SMP sound drivers.
456 %description smp-sound-oss -l pl
457 Sterowniki OSS (Open Sound System) dla maszyn wieloprocesorowych.
460 Summary: Kernel version %{version} used on the installation boot disks
461 Summary(de): Kernel version %{version} fĆ¼r Installationsdisketten
462 Summary(fr): Kernel version %{version} utiliser pour les disquettes d'installation
463 Summary(pl): JĀ±dro Linuksa w wersji %{version} dla dyskietek startowych
465 PreReq: module-init-tools
469 This package includes a trimmed down version of the Linux %{version}
470 kernel. This kernel is used on the installation boot disks only and
471 should not be used for an installed system, as many features in this
472 kernel are turned off because of the size constraints.
474 %description BOOT -l de
475 Dieses Paket enthƤlt eine verkleinerte Version vom Linux-Kernel
476 version %{version}. Dieser Kernel wird auf den
477 Installations-Bootdisketten benutzt und sollte nicht auf einem
478 installierten System verwendet werden, da viele Funktionen wegen der
479 Platzprobleme abgeschaltet sind.
481 %description BOOT -l pl
482 Pakiet zawiera jĀ±dro Linuksa dedykowane dyskietkom startowym i powinno
483 byƦ uĀæywane jedynie podczas instalacji systemu. Wiele uĀæytecznych
484 opcji zostaĀ³o wyĀ³Ā±czonych, aby jak najbardziej zmniejszyƦ jego
488 Summary: Header files for the Linux kernel
489 Summary(pl): Pliki nagĀ³Ć³wkowe jĀ±dra Linuksa
491 Provides: %{name}-headers(agpgart) = %{version}
492 Provides: %{name}-headers(reiserfs) = %{version}
493 Provides: %{name}-headers(bridging) = %{version}
494 Provides: kernel-i2c-devel
495 Provides: %{name}-headers(netfilter) = %{_netfilter_snap}
496 Provides: %{name}-headers(alsa-drivers)
497 Obsoletes: kernel-i2c-devel
501 These are the C header files for the Linux kernel, which define
502 structures and constants that are needed when rebuilding the kernel
503 or building kernel modules.
505 %description headers -l pl
506 Pakiet zawiera pliki nagĀ³Ć³wkowe jĀ±dra, niezbĆŖdne do rekompilacji jĀ±dra
507 oraz budowania moduĀ³Ć³w jĀ±dra.
509 %package module-build
510 Summary: Development files for building kernel modules
511 Summary(pl): Pliki sĀ³uĀæĀ±ce do budowania moduĀ³Ć³w jĀ±dra
513 Requires: %{name}-headers = %{epoch}:%{version}-%{release}
516 %description module-build
517 Development files from kernel source tree needed to build Linux kernel
518 modules from external packages.
520 %description module-build -l pl
521 Pliki ze drzewa Ā¼rĆ³deĀ³ jĀ±dra potrzebne do budowania moduĀ³Ć³w jĀ±dra
522 Linuksa z zewnĆŖtrznych pakietĆ³w.
525 Summary: Kernel source tree
526 Summary(pl): Kod Ā¼rĆ³dĀ³owy jĀ±dra Linuksa
528 Requires: %{name}-module-build = %{epoch}:%{version}-%{release}
532 This is the source code for the Linux kernel. It is required to build
533 most C programs as they depend on constants defined in here. You can
534 also build a custom kernel that is better tuned to your particular
537 %description source -l de
538 Das Kernel-Source-Paket enthƤlt den source code (C/Assembler-Code) des
539 Linux-Kernels. Die Source-Dateien werden gebraucht, um viele
540 C-Programme zu compilieren, da sie auf Konstanten zurĆ¼ckgreifen, die
541 im Kernel-Source definiert sind. Die Source-Dateien kƶnnen auch
542 benutzt werden, um einen Kernel zu compilieren, der besser auf Ihre
543 Hardware ausgerichtet ist.
545 %description source -l fr
546 Le package pour le kernel-source contient le code source pour le noyau
547 linux. Ces sources sont nƩcessaires pour compiler la plupart des
548 programmes C, car il dƩpend de constantes dƩfinies dans le code
549 source. Les sources peuvent ĆŖtre aussi utilisĆ©e pour compiler un noyau
550 personnalisƩ pour avoir de meilleures performances sur des matƩriels
553 %description source -l pl
554 Pakiet zawiera kod Ā¼rĆ³dĀ³owy jĀ±dra systemu.
557 Summary: Kernel documentation
558 Summary(pl): Dokumentacja do jĀ±dra Linuksa
560 Provides: %{name}-doc = %{version}
564 This is the documentation for the Linux kernel, as found in
565 /usr/src/linux/Documentation directory.
567 %description doc -l pl
568 Pakiet zawiera dokumentacjĆŖ do jĀ±dra Linuksa pochodzĀ±cĀ± z katalogu
569 /usr/src/linux/Documentation.
572 %setup -q -n linux-%{version}%{_rc}
575 %if "%{_apply_cset}" != "0"
576 zcat %{SOURCE3} | patch -p1 -s
600 %if %{with bootsplash}
666 # Philips USB drivers.
670 #cp drivers/usb/media/libpwcx.a_ix86 drivers/usb/media/libpwcx.a_
673 #cp drivers/usb/media/libpwcx.a_powerpc drivers/usb/media/libpwcx.a_
676 #cp drivers/usb/media/libpwcx.a_ppc drivers/usb/media/libpwcx.a_
685 %ifarch alpha %{ix86} ia64 ppc sparc sparc64 amd64
691 %if %{with execshield}
692 install %{PATCH211} exec-shield.patch
694 patch -s exec-shield.patch < %{PATCH212}
696 patch -p1 -s < exec-shield.patch
707 #patch104 -p1 # <- not applayed need checkout
736 # Fix EXTRAVERSION and CC in main Makefile
737 mv -f Makefile Makefile.orig
738 sed -e 's#EXTRAVERSION =.*#EXTRAVERSION =#g' \
739 %ifarch %{ix86} alpha sparc ppc
740 -e 's#CC.*$(CROSS_COMPILE)gcc#CC = %{__cc}#g' \
743 -e 's#CC.*$(CROSS_COMPILE)gcc#CC = sparc64-pld-linux-gcc#g' \
745 Makefile.orig >Makefile
747 sed -i 's:\-pipe::' arch/*/Makefile
749 # on sparc this line causes CONFIG_INPUT=m (instead of =y), thus breaking build
750 sed -i -e '/select INPUT/d' net/bluetooth/hidp/Kconfig
753 TuneUpConfigForIX86 () {
756 sed -i 's:# CONFIG_M386 is not set:CONFIG_M386=y:' $1
759 sed -i 's:# CONFIG_M486 is not set:CONFIG_M486=y:' $1
762 sed -i 's:# CONFIG_M586 is not set:CONFIG_M586=y:' $1
765 sed -i 's:# CONFIG_M686 is not set:CONFIG_M686=y:' $1
768 sed -i 's:# CONFIG_MPENTIUMIII is not set:CONFIG_MPENTIUMIII=y:' $1
771 sed -i 's:# CONFIG_MPENTIUM4 is not set:CONFIG_MPENTIUM4=y:' $1
774 sed -i 's:# CONFIG_MK7 is not set:CONFIG_MK7=y:' $1
776 %ifarch pentium3 pentium4 athlon
777 # kernel-i386-smp.config contains 64G support by default.
779 sed -i "s:CONFIG_HIGHMEM4G=y:# CONFIG_HIGHMEM4G is not set:" $1
780 sed -i "s:# CONFIG_HIGHMEM64G is not set:CONFIG_HIGHMEM64G=y\nCONFIG_X86_PAE=y:" $1
783 %ifarch i386 i486 i586
784 sed -i 's:# CONFIG_MATH_EMULATION is not set:CONFIG_MATH_EMULATION=y:' $1
791 # is this a special kernel we want to build?
794 [ "$1" = "BOOT" -o "$2" = "BOOT" ] && BOOT=yes
795 [ "$1" = "smp" -o "$2" = "smp" ] && smp=yes
796 if [ "$smp" = "yes" ]; then
797 Config="%{_target_base_arch}-smp"
799 Config="%{_target_base_arch}"
801 if [ "$BOOT" = "yes" ]; then
802 KernelVer=%{version}-%{release}BOOT
804 KernelVer=%{version}-%{release}$1
806 echo "Building config file for KERNEL $1..."
807 cat $RPM_SOURCE_DIR/kernel-$Config.config > arch/%{_target_base_arch}/defconfig
808 TuneUpConfigForIX86 arch/%{_target_base_arch}/defconfig
810 %if %{with preemptive}
811 sed -i 's:# CONFIG_PREEMPT is not set:CONFIG_PREEMPT=y:' arch/%{_target_base_arch}/defconfig
815 cat %{SOURCE80} >> arch/%{_target_base_arch}/defconfig
817 cat %{SOURCE90} >> arch/%{_target_base_arch}/defconfig
819 ln -sf arch/%{_target_base_arch}/defconfig .config
820 install -d $KERNEL_INSTALL_DIR/usr/src/linux-%{version}/include/linux
821 %{__make} include/linux/autoconf.h
822 if [ "$smp" = "yes" ]; then
823 install include/linux/autoconf.h \
824 $KERNEL_INSTALL_DIR/usr/src/linux-%{version}/include/linux/autoconf-smp.h
826 $KERNEL_INSTALL_DIR/usr/src/linux-%{version}/config-smp
828 install include/linux/autoconf.h \
829 $KERNEL_INSTALL_DIR/usr/src/linux-%{version}/include/linux/autoconf-up.h
831 $KERNEL_INSTALL_DIR/usr/src/linux-%{version}/config-up
837 Config="%{_target_base_arch}"
838 cat $RPM_SOURCE_DIR/kernel-$Config.config > arch/%{_target_base_arch}/defconfig
840 echo "CONFIG_M386=y" >> arch/%{_target_base_arch}/defconfig
843 echo "CONFIG_M486=y" >> arch/%{_target_base_arch}/defconfig
845 %ifarch i386 i486 i586
846 sed -i 's/# CONFIG_MATH_EMULATION is not set/CONFIG_MATH_EMULATION=y/' \
847 arch/%{_target_base_arch}/defconfig
849 cat <<EOF >>arch/%{_target_base_arch}/defconfig
850 # CONFIG_APM is not set
851 # CONFIG_ACPI is not set
852 # CONFIG_ACPI_BOOT is not set
853 # CONFIG_MTD is not set
854 # CONFIG_NETFILTER is not set
855 # CONFIG_WAN is not set
856 # CONFIG_ATM is not set
857 # CONFIG_HOTPLUG_PCI is not set
858 # CONFIG_NET_SCHED is not set
859 # CONFIG_X86_MCE is not set
860 # CONFIG_MTRR is not set
861 # CONFIG_PM is not set
862 # CONFIG_CPU_FREQ is not set
863 # CONFIG_DRM is not set
864 # CONFIG_FTAPE is not set
865 # CONFIG_WATCHDOG is not set
866 # CONFIG_DVB is not set
867 # CONFIG_DVB_CORE is not set
868 # CONFIG_VIDEO_DEV is not set
869 # CONFIG_SECURITY is not set
870 # CONFIG_SOUND is not set
871 # CONFIG_USB_AUDIO is not set
872 # CONFIG_INPUT_JOYSTICK is not set
873 # CONFIG_OMNIBOOK is not set
874 # CONFIG_NET_RADIO is not set
875 # CONFIG_HOTPLUG is not set
876 # CONFIG_QUOTA is not set
877 # CONFIG_REGPARM is not set
878 # CONFIG_SCSI_LOGGING is not set
881 # CONFIG_DEV_APPLETALK is not set
882 # CONFIG_ECONET_AUNUDP is not set
883 # CONFIG_HIPPI is not set
884 # CONFIG_TR is not set
885 # CONFIG_INPUT_MISC is not set
886 # CONFIG_INPUT_TOUCHSCREEN is not set
887 # CONFIG_PROFILING is not set
888 # CONFIG_DEBUG_KERNEL is not set
889 # CONFIG_DEBUG_SPINLOCK_SLEEP is not set
890 # CONFIG_FRAME_POINTER is not set
891 # CONFIG_LBD is not set
892 # CONFIG_SLIP is not set
893 # CONFIG_PPP is not set
894 # CONFIG_PLIP is not set
895 # CONFIG_FDDI is not set
896 # CONFIG_HAMRADIO is not set
897 # CONFIG_NETPOLL_RX is not set
898 # CONFIG_NETPOLL_TRAP is not set
899 # CONFIG_FB is not set
901 ln -sf arch/%{_target_base_arch}/defconfig .config
903 install -d $KERNEL_INSTALL_DIR/usr/src/linux-%{version}/include/linux
904 %{__make} include/linux/autoconf.h
905 if [ "$smp" = "yes" ]; then
906 install include/linux/autoconf.h $KERNEL_INSTALL_DIR/usr/src/linux-%{version}/include/linux/autoconf-smp.h
908 install include/linux/autoconf.h $KERNEL_INSTALL_DIR/usr/src/linux-%{version}/include/linux/autoconf-up.h
914 echo "Building kernel $1 ..."
916 RCS_FIND_IGNORE='-name build-done -prune -o'
917 ln -sf arch/%{_target_base_arch}/defconfig .config
920 sparc32 %{__make} clean \
921 RCS_FIND_IGNORE='-name build-done -prune -o'
924 RCS_FIND_IGNORE='-name build-done -prune -o'
926 %{__make} include/linux/version.h \
929 # make does vmlinux, modules and bzImage at once
930 %ifarch sparc sparc64
950 [ "$1" = "BOOT" -o "$2" = "BOOT" ] && BOOT=yes
951 [ "$1" = "smp" -o "$2" = "smp" ] && smp=yes
952 if [ "$smp" = "yes" ]; then
953 Config="%{_target_base_arch}-smp"
955 Config="%{_target_base_arch}"
957 if [ "$BOOT" = "yes" ]; then
958 KernelVer=%{version}-%{release}BOOT
960 KernelVer=%{version}-%{release}$1
963 mkdir -p $KERNEL_INSTALL_DIR/boot
964 install System.map $KERNEL_INSTALL_DIR/boot/System.map-$KernelVer
965 %ifarch %{ix86} amd64
966 install arch/%{_target_base_arch}/boot/bzImage $KERNEL_INSTALL_DIR/boot/vmlinuz-$KernelVer
968 %ifarch alpha sparc sparc64
969 gzip -cfv vmlinux > vmlinuz
970 install vmlinux $KERNEL_INSTALL_DIR/boot/vmlinux-$KernelVer
971 install vmlinuz $KERNEL_INSTALL_DIR/boot/vmlinuz-$KernelVer
973 elftoaout arch/sparc/boot/image -o vmlinux.aout
974 install vmlinux.aout $KERNEL_INSTALL_DIR/boot/vmlinux.aout-$KernelVer
977 elftoaout arch/sparc64/boot/image -o vmlinux.aout
978 install vmlinux.aout $KERNEL_INSTALL_DIR/boot/vmlinux.aout-$KernelVer
983 install vmlinux $KERNEL_INSTALL_DIR/boot/vmlinux-$KernelVer
984 install vmlinux $KERNEL_INSTALL_DIR/boot/vmlinuz-$KernelVer
986 %{__make} modules_install \
987 %{?with_verbose:V=1} \
988 INSTALL_MOD_PATH=$KERNEL_INSTALL_DIR \
989 KERNELRELEASE=$KernelVer
991 echo "CHECKING DEPENDENCIES FOR KERNEL MODULES"
992 /sbin/depmod --basedir $KERNEL_INSTALL_DIR -ae -F $KERNEL_INSTALL_DIR/boot/System.map-$KernelVer -r $KernelVer || echo
994 echo "KERNEL RELEASE $KernelVer DONE"
998 KERNEL_BUILD_DIR=`pwd`
1001 KERNEL_INSTALL_DIR="$KERNEL_BUILD_DIR/build-done/kernel-UP"
1002 rm -rf $KERNEL_INSTALL_DIR
1004 %{?with_up:BuildKernel}
1005 %{?with_up:PreInstallKernel}
1008 KERNEL_INSTALL_DIR="$KERNEL_BUILD_DIR/build-done/kernel-SMP"
1009 rm -rf $KERNEL_INSTALL_DIR
1011 %{?with_smp:BuildKernel smp}
1012 %{?with_smp:PreInstallKernel smp}
1015 KERNEL_INSTALL_DIR="$KERNEL_BUILD_DIR/build-done/BOOT"
1016 rm -rf $KERNEL_INSTALL_DIR
1019 PreInstallKernel BOOT
1023 rm -rf $RPM_BUILD_ROOT
1026 install -d $RPM_BUILD_ROOT%{_prefix}/src/linux-%{version}
1028 KERNEL_BUILD_DIR=`pwd`
1030 %if %{with up} || %{with smp}
1031 cp -a $KERNEL_BUILD_DIR/build-done/kernel-*/* $RPM_BUILD_ROOT
1034 for i in "" smp ; do
1035 if [ -e $RPM_BUILD_ROOT/lib/modules/%{version}-%{release}$i ] ; then
1036 rm -f $RPM_BUILD_ROOT/lib/modules/%{version}-%{release}$i/build
1037 ln -sf %{_prefix}/src/linux-%{version} \
1038 $RPM_BUILD_ROOT/lib/modules/%{version}-%{release}$i/build
1042 ln -sf linux-%{version} $RPM_BUILD_ROOT%{_prefix}/src/linux
1044 find . ! -name "build-done" ! -name "." -maxdepth 1 -exec cp -a "{}" "$RPM_BUILD_ROOT/usr/src/linux-%{version}/" ";"
1046 cd $RPM_BUILD_ROOT%{_prefix}/src/linux-%{version}
1048 %{__make} mrproper \
1049 RCS_FIND_IGNORE='-name build-done -prune -o'
1050 find -name "*~" -exec rm -f "{}" ";"
1051 find -name "*.orig" -exec rm -f "{}" ";"
1053 if [ -e $KERNEL_BUILD_DIR/build-done/kernel-UP/usr/src/linux-%{version}/include/linux/autoconf-up.h ]; then
1054 install $KERNEL_BUILD_DIR/build-done/kernel-UP/usr/src/linux-%{version}/include/linux/autoconf-up.h \
1055 $RPM_BUILD_ROOT/usr/src/linux-%{version}/include/linux
1056 install $KERNEL_BUILD_DIR/build-done/kernel-UP/usr/src/linux-%{version}/config-up \
1057 $RPM_BUILD_ROOT/usr/src/linux-%{version}/include/linux
1060 if [ -e $KERNEL_BUILD_DIR/build-done/kernel-SMP/usr/src/linux-%{version}/include/linux/autoconf-smp.h ]; then
1061 install $KERNEL_BUILD_DIR/build-done/kernel-SMP/usr/src/linux-%{version}/include/linux/autoconf-smp.h \
1062 $RPM_BUILD_ROOT/usr/src/linux-%{version}/include/linux
1063 install $KERNEL_BUILD_DIR/build-done/kernel-SMP/usr/src/linux-%{version}/config-smp \
1064 $RPM_BUILD_ROOT/usr/src/linux-%{version}/include/linux
1067 %if %{with up} || %{with smp}
1069 install $KERNEL_BUILD_DIR/build-done/kernel-*/usr/src/linux-%{version}/include/linux/* \
1070 $RPM_BUILD_ROOT/usr/src/linux-%{version}/include/linux
1074 %{__make} include/linux/version.h
1075 install %{SOURCE1} $RPM_BUILD_ROOT%{_prefix}/src/linux-%{version}/include/linux/autoconf.h
1078 rm -rf $RPM_BUILD_ROOT
1081 mv -f /boot/vmlinuz /boot/vmlinuz.old 2> /dev/null > /dev/null
1082 mv -f /boot/System.map /boot/System.map.old 2> /dev/null > /dev/null
1083 ln -sf vmlinuz-%{version}-%{release} /boot/vmlinuz
1084 ln -sf System.map-%{version}-%{release} /boot/System.map
1086 if [ ! -L /lib/modules/%{version} ] ; then
1087 mv -f /lib/modules/%{version} /lib/modules/%{version}.rpmsave > /dev/null 2>&1
1089 rm -f /lib/modules/%{version}
1090 ln -snf %{version}-%{release} /lib/modules/%{version}
1091 %depmod %{version}-%{release}
1093 /sbin/geninitrd -f --initrdfs=rom /boot/initrd-%{version}-%{release}.gz %{version}-%{release}
1094 mv -f /boot/initrd /boot/initrd.old
1095 ln -sf initrd-%{version}-%{release}.gz /boot/initrd
1097 if [ -x /sbin/rc-boot ] ; then
1098 /sbin/rc-boot 1>&2 || :
1102 if [ -L /lib/modules/%{version} ]; then
1103 if [ "`ls -l /lib/modules/%{version} | awk '{ print $10 }'`" = "%{version}-%{release}" ]; then
1104 if [ "$1" = "0" ]; then
1105 rm -f /lib/modules/%{version}
1109 rm -f /boot/initrd-%{version}-%{release}.gz
1112 %depmod %{version}-%{release}
1115 %depmod %{version}-%{release}
1118 %depmod %{version}-%{release}
1121 %depmod %{version}-%{release}
1124 %depmod %{version}-%{release}
1127 %depmod %{version}-%{release}
1130 %depmod %{version}-%{release}
1133 %depmod %{version}-%{release}
1136 mv -f /boot/vmlinuz /boot/vmlinuz.old 2> /dev/null > /dev/null
1137 mv -f /boot/System.map /boot/System.map.old 2> /dev/null > /dev/null
1138 ln -sf vmlinuz-%{version}-%{release}smp /boot/vmlinuz
1139 ln -sf System.map-%{version}-%{release}smp /boot/System.map
1141 if [ ! -L /lib/modules/%{version} ] ; then
1142 mv -f /lib/modules/%{version} /lib/modules/%{version}.rpmsave > /dev/null 2>&1
1144 rm -f /lib/modules/%{version}
1145 ln -snf %{version}-%{release}smp /lib/modules/%{version}
1146 %depmod %{version}-%{release}smp
1148 /sbin/geninitrd -f --initrdfs=rom /boot/initrd-%{version}-%{release}smp.gz %{version}-%{release}smp
1149 mv -f /boot/initrd /boot/initrd.old
1150 ln -sf initrd-%{version}-%{release}smp.gz /boot/initrd
1152 if [ -x /sbin/rc-boot ] ; then
1153 /sbin/rc-boot 1>&2 || :
1157 if [ -L /lib/modules/%{version} ]; then
1158 if [ "`ls -l /lib/modules/%{version} | awk '{ print $10 }'`" = "%{version}-%{release}smp" ]; then
1159 if [ "$1" = "0" ]; then
1160 rm -f /lib/modules/%{version}
1164 rm -f /boot/initrd-%{version}-%{release}smp.gz
1167 if [ ! -L %{_libdir}/bootdisk/lib/modules/%{version} ] ; then
1168 mv -f %{_libdir}/bootdisk/lib/modules/%{version} %{_libdir}/bootdisk/lib/modules/%{version}.rpmsave
1170 if [ ! -L %{_libdir}/bootdisk/boot/vmlinuz-%{version} ] ; then
1171 mv -f %{_libdir}/bootdisk/boot/vmlinuz-%{version} %{_libdir}/bootdisk/boot/vmlinuz-%{version}.rpmsave
1173 rm -f %{_libdir}/bootdisk/lib/modules/%{version}
1174 ln -snf %{version}-%{release}BOOT %{_libdir}/bootdisk/lib/modules/%{version}
1175 rm -f %{_libdir}/bootdisk/boot/vmlinuz-%{version}
1176 ln -snf vmlinuz-%{version}-%{release}BOOT %{_libdir}/bootdisk/boot/vmlinuz-%{version}
1179 %depmod %{version}-%{release}smp
1182 %depmod %{version}-%{release}smp
1185 %depmod %{version}-%{release}smp
1188 %depmod %{version}-%{release}smp
1190 %post smp-sound-alsa
1191 %depmod %{version}-%{release}smp
1193 %postun smp-sound-alsa
1194 %depmod %{version}-%{release}smp
1197 %depmod %{version}-%{release}smp
1199 %postun smp-sound-oss
1200 %depmod %{version}-%{release}smp
1203 if [ -L %{_libdir}/bootdisk/lib/modules/%{version} ]; then
1204 if [ "`ls -l %{_libdir}/bootdisk/lib/modules/%{version} | awk '{ print $10 }'`" = "%{version}-%{release}BOOT" ]; then
1205 if [ "$1" = "0" ]; then
1206 rm -f %{_libdir}/bootdisk/lib/modules/%{version}
1212 rm -f /usr/src/linux
1213 ln -snf linux-%{version} /usr/src/linux
1216 if [ -L %{_prefix}/src/linux ]; then
1217 if [ "`ls -l %{_prefix}/src/linux | awk '{ print $10 }'`" = "linux-%{version}" ]; then
1218 if [ "$1" = "0" ]; then
1219 rm -f %{_prefix}/src/linux
1226 %defattr(644,root,root,755)
1228 /boot/vmlinux-%{version}-%{release}
1230 %ifarch sparc sparc64
1231 /boot/vmlinux-%{version}-%{release}
1232 /boot/vmlinux.aout-%{version}-%{release}
1234 /boot/vmlinuz-%{version}-%{release}
1235 /boot/System.map-%{version}-%{release}
1236 %dir /lib/modules/%{version}-%{release}
1237 /lib/modules/%{version}-%{release}/kernel
1238 %ifnarch sparc sparc64
1240 %exclude /lib/modules/%{version}-%{release}/kernel/drivers/pcmcia
1241 %exclude /lib/modules/%{version}-%{release}/kernel/drivers/*/pcmcia
1242 %exclude /lib/modules/%{version}-%{release}/kernel/drivers/bluetooth/*_cs.ko
1243 %exclude /lib/modules/%{version}-%{release}/kernel/drivers/net/wireless/*_cs.ko
1244 %exclude /lib/modules/%{version}-%{release}/kernel/drivers/parport/parport_cs.ko
1245 %exclude /lib/modules/%{version}-%{release}/kernel/drivers/serial/serial_cs.ko
1247 %ifnarch sparc sparc64
1249 %exclude /lib/modules/%{version}-%{release}/kernel/drivers/char/drm
1251 %ifnarch sparc sparc64
1253 %exclude /lib/modules/%{version}-%{release}/kernel/sound/oss
1256 %exclude /lib/modules/%{version}-%{release}/kernel/sound/core
1257 %exclude /lib/modules/%{version}-%{release}/kernel/sound/drivers
1258 %ifnarch sparc sparc64
1259 %exclude /lib/modules/%{version}-%{release}/kernel/sound/i2c
1260 %exclude /lib/modules/%{version}-%{release}/kernel/sound/isa
1261 %exclude /lib/modules/%{version}-%{release}/kernel/sound/pci
1262 %exclude /lib/modules/%{version}-%{release}/kernel/sound/synth
1263 %exclude /lib/modules/%{version}-%{release}/kernel/sound/usb
1265 %ifarch sparc sparc64
1266 %exclude /lib/modules/%{version}-%{release}/kernel/sound/sparc
1269 /lib/modules/%{version}-%{release}/build
1270 %ghost /lib/modules/%{version}-%{release}/modules.*
1272 %ifnarch sparc sparc64
1274 %defattr(644,root,root,755)
1275 /lib/modules/%{version}-%{release}/kernel/drivers/char/drm
1278 %ifnarch sparc sparc64
1280 %defattr(644,root,root,755)
1281 /lib/modules/%{version}-%{release}/kernel/drivers/pcmcia
1282 /lib/modules/%{version}-%{release}/kernel/drivers/*/pcmcia
1283 /lib/modules/%{version}-%{release}/kernel/drivers/bluetooth/*_cs.ko
1284 /lib/modules/%{version}-%{release}/kernel/drivers/net/wireless/*_cs.ko
1285 /lib/modules/%{version}-%{release}/kernel/drivers/parport/parport_cs.ko
1286 /lib/modules/%{version}-%{release}/kernel/drivers/serial/serial_cs.ko
1290 %defattr(644,root,root,755)
1291 /lib/modules/%{version}-%{release}/kernel/sound/core
1292 /lib/modules/%{version}-%{release}/kernel/sound/drivers
1293 %ifnarch sparc sparc64
1294 /lib/modules/%{version}-%{release}/kernel/sound/i2c
1295 /lib/modules/%{version}-%{release}/kernel/sound/isa
1296 /lib/modules/%{version}-%{release}/kernel/sound/pci
1297 /lib/modules/%{version}-%{release}/kernel/sound/synth
1298 /lib/modules/%{version}-%{release}/kernel/sound/usb
1300 %ifarch sparc sparc64
1301 /lib/modules/%{version}-%{release}/kernel/sound/sparc
1304 %ifnarch sparc sparc64
1306 %defattr(644,root,root,755)
1307 /lib/modules/%{version}-%{release}/kernel/sound/oss
1309 %endif # %%{with up}
1313 %defattr(644,root,root,755)
1314 %ifarch alpha sparc sparc64 ppc
1315 /boot/vmlinux-%{version}-%{release}smp
1317 /boot/vmlinuz-%{version}-%{release}smp
1318 /boot/System.map-%{version}-%{release}smp
1319 %dir /lib/modules/%{version}-%{release}smp
1320 /lib/modules/%{version}-%{release}smp/kernel
1321 %ifnarch sparc sparc64
1323 %exclude /lib/modules/%{version}-%{release}smp/kernel/drivers/pcmcia
1324 %exclude /lib/modules/%{version}-%{release}smp/kernel/drivers/*/pcmcia
1325 %exclude /lib/modules/%{version}-%{release}smp/kernel/drivers/bluetooth/*_cs.ko
1326 %exclude /lib/modules/%{version}-%{release}smp/kernel/drivers/net/wireless/*_cs.ko
1327 %exclude /lib/modules/%{version}-%{release}smp/kernel/drivers/parport/parport_cs.ko
1328 %exclude /lib/modules/%{version}-%{release}smp/kernel/drivers/serial/serial_cs.ko
1330 %ifnarch sparc sparc64
1332 %exclude /lib/modules/%{version}-%{release}smp/kernel/drivers/char/drm
1334 %ifnarch sparc sparc64
1336 %exclude /lib/modules/%{version}-%{release}smp/kernel/sound/oss
1339 %exclude /lib/modules/%{version}-%{release}smp/kernel/sound/core
1340 %exclude /lib/modules/%{version}-%{release}smp/kernel/sound/drivers
1341 %ifnarch sparc sparc64
1342 %exclude /lib/modules/%{version}-%{release}smp/kernel/sound/i2c
1343 %exclude /lib/modules/%{version}-%{release}smp/kernel/sound/isa
1344 %exclude /lib/modules/%{version}-%{release}smp/kernel/sound/pci
1345 %exclude /lib/modules/%{version}-%{release}smp/kernel/sound/synth
1346 %exclude /lib/modules/%{version}-%{release}smp/kernel/sound/usb
1348 %ifarch sparc sparc64
1349 %exclude /lib/modules/%{version}-%{release}smp/kernel/sound/sparc
1352 /lib/modules/%{version}-%{release}smp/build
1353 %ghost /lib/modules/%{version}-%{release}smp/modules.*
1355 %ifnarch sparc sparc64
1357 %defattr(644,root,root,755)
1358 /lib/modules/%{version}-%{release}smp/kernel/drivers/char/drm
1361 %ifnarch sparc sparc64
1363 %defattr(644,root,root,755)
1364 /lib/modules/%{version}-%{release}smp/kernel/drivers/pcmcia
1365 /lib/modules/%{version}-%{release}smp/kernel/drivers/*/pcmcia
1366 /lib/modules/%{version}-%{release}smp/kernel/drivers/bluetooth/*_cs.ko
1367 /lib/modules/%{version}-%{release}smp/kernel/drivers/net/wireless/*_cs.ko
1368 /lib/modules/%{version}-%{release}smp/kernel/drivers/parport/parport_cs.ko
1369 /lib/modules/%{version}-%{release}smp/kernel/drivers/serial/serial_cs.ko
1372 %files smp-sound-alsa
1373 %defattr(644,root,root,755)
1374 /lib/modules/%{version}-%{release}smp/kernel/sound/core
1375 /lib/modules/%{version}-%{release}smp/kernel/sound/drivers
1376 %ifnarch sparc sparc64
1377 /lib/modules/%{version}-%{release}smp/kernel/sound/i2c
1378 /lib/modules/%{version}-%{release}smp/kernel/sound/isa
1379 /lib/modules/%{version}-%{release}smp/kernel/sound/pci
1380 /lib/modules/%{version}-%{release}smp/kernel/sound/synth
1381 /lib/modules/%{version}-%{release}smp/kernel/sound/usb
1383 %ifarch sparc sparc64
1384 /lib/modules/%{version}-%{release}smp/kernel/sound/sparc
1387 %ifnarch sparc sparc64
1388 %files smp-sound-oss
1389 %defattr(644,root,root,755)
1390 /lib/modules/%{version}-%{release}smp/kernel/sound/oss
1392 %endif # %%{with smp}
1396 %defattr(644,root,root,755)
1397 %ifarch alpha sparc sparc64 ppc # arch
1398 %{_libdir}/bootdisk/boot/vmlinux-%{version}-%{release}BOOT
1400 %{_libdir}/bootdisk/boot/vmlinuz-%{version}-%{release}BOOT
1401 %{_libdir}/bootdisk/boot/System.map-%{version}-%{release}BOOT
1402 %dir %{_libdir}/bootdisk/lib/modules/%{version}-%{release}BOOT
1403 %{_libdir}/bootdisk/lib/modules/%{version}-%{release}BOOT/kernel
1404 %{_libdir}/bootdisk/lib/modules/%{version}-%{release}BOOT/build
1405 %ghost %{_libdir}/bootdisk/lib/modules/%{version}-%{release}BOOT/modules.*
1406 %endif # %%{with BOOT}
1409 %defattr(644,root,root,755)
1410 %dir %{_prefix}/src/linux-%{version}
1411 %{_prefix}/src/linux-%{version}/include
1412 %{_prefix}/src/linux-%{version}/config-smp
1413 %{_prefix}/src/linux-%{version}/config-up
1416 %defattr(644,root,root,755)
1417 %{_prefix}/src/linux-%{version}/Makefile
1418 %dir %{_prefix}/src/linux-%{version}/arch
1419 %dir %{_prefix}/src/linux-%{version}/arch/*
1420 %{_prefix}/src/linux-%{version}/arch/*/Makefile*
1421 %dir %{_prefix}/src/linux-%{version}/arch/*/kernel
1422 %{_prefix}/src/linux-%{version}/arch/*/kernel/Makefile
1423 %{_prefix}/src/linux-%{version}/arch/*/kernel/asm-offsets.*
1424 %{_prefix}/src/linux-%{version}/arch/*/kernel/sigframe.h
1425 %dir %{_prefix}/src/linux-%{version}/scripts
1426 %{_prefix}/src/linux-%{version}/scripts/Makefile*
1427 %{_prefix}/src/linux-%{version}/scripts/basic
1428 %{_prefix}/src/linux-%{version}/scripts/*.c
1429 %{_prefix}/src/linux-%{version}/scripts/*.h
1430 %{_prefix}/src/linux-%{version}/scripts/*.sh
1433 %defattr(644,root,root,755)
1434 %{_prefix}/src/linux-%{version}/Documentation
1435 #%%{_prefix}/src/linux-%{version}/netfilter-patch-o-matic
1439 %defattr(644,root,root,755)
1440 %{_prefix}/src/linux-%{version}/arch/*/[!Mk]*
1441 %{_prefix}/src/linux-%{version}/arch/*/kernel/[!M]*
1442 %exclude %{_prefix}/src/linux-%{version}/arch/*/kernel/asm-offsets.*
1443 %exclude %{_prefix}/src/linux-%{version}/arch/*/kernel/sigframe.h
1444 %{_prefix}/src/linux-%{version}/cluster
1445 %{_prefix}/src/linux-%{version}/crypto
1446 %{_prefix}/src/linux-%{version}/drivers
1447 %{_prefix}/src/linux-%{version}/fs
1449 %{_prefix}/src/linux-%{version}/grsecurity
1451 %{_prefix}/src/linux-%{version}/init
1452 %{_prefix}/src/linux-%{version}/ipc
1453 %{_prefix}/src/linux-%{version}/kernel
1454 %{_prefix}/src/linux-%{version}/lib
1455 %{_prefix}/src/linux-%{version}/mm
1456 %{_prefix}/src/linux-%{version}/net
1457 %{_prefix}/src/linux-%{version}/scripts/*
1458 %exclude %{_prefix}/src/linux-%{version}/scripts/Makefile*
1459 %exclude %{_prefix}/src/linux-%{version}/scripts/basic
1460 %exclude %{_prefix}/src/linux-%{version}/scripts/*.c
1461 %exclude %{_prefix}/src/linux-%{version}/scripts/*.h
1462 %exclude %{_prefix}/src/linux-%{version}/scripts/*.sh
1463 %{_prefix}/src/linux-%{version}/sound
1464 %{_prefix}/src/linux-%{version}/security
1465 %{_prefix}/src/linux-%{version}/usr
1466 %{_prefix}/src/linux-%{version}/COPYING
1467 %{_prefix}/src/linux-%{version}/CREDITS
1468 %{_prefix}/src/linux-%{version}/MAINTAINERS
1469 %{_prefix}/src/linux-%{version}/README
1470 %{_prefix}/src/linux-%{version}/REPORTING-BUGS