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
12 %bcond_without BOOT # don't build BOOT kernel
13 %bcond_without smp # don't build SMP kernel
14 %bcond_without up # don't build UP kernel
15 %bcond_without source # don't build kernel-source package
16 %bcond_without grsec # build without grsec
17 %bcond_with execshield # build without exec-shield
18 %bcond_with pramfs # build pramfs support (EXPERIMENTAL)
19 %bcond_with verbose # verbose build (V=1)
20 %bcond_with preemptive # build preemptive kernel
21 %bcond_with bootsplash # build with bootsplash
23 %{?debug:%define with_verbose 1}
26 # sparc32 is missing important updates from 2.5 cycle - won't build
30 %ifarch i586 i686 pentium3 pentium4 athlon
33 # temporary as BOOT is not finished yet
36 ## Program required by kernel to work.
37 %define _binutils_ver 2.12
38 %define _util_linux_ver 2.10o
39 %define _module_init_tool_ver 0.9.10
40 %define _e2fsprogs_ver 1.29
41 %define _jfsutils_ver 1.1.3
42 %define _reiserfsprogs_ver 3.6.3
43 %define _xfsprogs_ver 2.6.0
44 %define _pcmcia_cs_ver 3.1.21
45 %define _quota_tools_ver 3.09
46 %define _PPP_ver 2.4.0
47 %define _isdn4k_utils_ver 3.1pre1
48 %define _nfs_utils_ver 1.0.5
49 %define _procps_ver 3.2.0
50 %define _oprofile_ver 0.5.3
53 %define _cset 20040716_1706
56 %define _netfilter_snap 20040629
58 %define _enable_debug_packages 0
59 %define no_install_post_strip 1
60 %define no_install_post_compress_modules 1
61 %define no_install_post_chrpath 1
63 %define pcmcia_version 3.1.22
64 %define drm_xfree_version 4.3.0
66 Summary: The Linux kernel (the core of the Linux operating system)
67 Summary(de): Der Linux-Kernel (Kern des Linux-Betriebssystems)
68 Summary(fr): Le Kernel-Linux (La partie centrale du systeme)
69 Summary(pl): JĀ±dro Linuksa
78 #Source0: ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-%{version}.tar.bz2
79 Source0: http://kernel.org/pub/linux/kernel/v2.6/testing/linux-%{version}%{_rc}.tar.bz2
80 # Source0-md5: d7fd3f81651f6f2caae229a8f4d3f954
81 Source1: %{name}-autoconf.h
82 Source2: 2.6.6-pwcx.tar.bz2
83 Source3: http://ftp.kernel.org/pub/linux/kernel/v2.6/testing/cset/cset-%{_cset}.txt.gz
84 # Source3-md5: d3543e48a05042b1801e8e883ea8782e
85 # http://lkml.org/lkml/2004/6/2/228
86 ## Source6: http://prdownloads.sourceforge.net/swsusp/software-suspend-2.0.0.81-for-2.6.6.tar.bz2
87 Source20: %{name}-i386.config
88 Source21: %{name}-i386-smp.config
89 Source30: %{name}-x86_64.config
90 Source31: %{name}-x86_64-smp.config
91 Source50: %{name}-sparc.config
92 Source51: %{name}-sparc-smp.config
93 Source60: %{name}-sparc64.config
94 Source61: %{name}-sparc64-smp.config
95 Source70: %{name}-alpha.config
96 Source71: %{name}-alpha-smp.config
97 Source73: %{name}-ppc.config
98 Source74: %{name}-ppc-smp.config
99 Source80: %{name}-netfilter.config
100 Source90: %{name}-grsec.config
102 Patch0: 2.6.0-ksyms-add.patch
103 Patch1: 2.6.0-t4-PPC-ENODEV.patch
104 Patch2: 2.6.0-t6-usb-irq.patch
105 Patch3: 2.6.0-t7-memleak-lkml.patch
106 Patch4: 2.6.0-t7-memleak2-lkml.patch
107 #Patch5: 2.6.0-t8-swap-include-lkml.patch
108 Patch6: 2.6.0-t8-VLSI-ix86-lkml.patch
109 Patch7: 2.6.0-t8-appletalk-SYSCTL-lkml.patch
110 Patch8: 2.6.0-t8-umsdos-lkml.patch
111 Patch9: 2.6.0-t9-acpi_osl-lkml.patch
112 Patch10: 2.6.0-t11-AIC_and_db4-lkml.patch
113 Patch11: 2.6.1-rc2-ini9100u-lkml.patch
114 Patch12: 2.6.1-rc2-VLAN-NS83820-lkml.patch
115 Patch13: 2.6.2-Initio9100U-Kconfig.patch
116 # http://www.consultmatt.co.uk/downloads/patches/kernel/2.6/
117 Patch14: 2.6.1-all-in-1.patch
119 Patch16: linux-alpha-isa.patch
120 Patch17: 2.6.4-psion-5mx.patch
121 Patch18: 2.6.5-sparc64-missing-include.patch
122 Patch19: 2.6.5-3C920b-Tornado.patch
123 Patch20: 2.6.5-i386-cmpxchg.patch
124 Patch21: 2.6.6-serial-fifo-lkml.patch
125 Patch22: 2.6.6-qsort-updated-lkml.patch
126 Patch23: 2.6.6-xfs-qsort-lkml.patch
127 Patch24: 2.6.7-bridge_sysfs-lkml.patch
128 Patch25: 2.6.7-alpha_compile.patch
129 Patch26: 2.6.7-ppc-asm-defs.patch
130 Patch27: 2.6.7-ppc-cciss-div.patch
131 Patch28: 2.6.7-ppc-ipr-div.patch
133 Patch30: 2.6.x-ppp_mppe.patch
134 Patch31: 2.6.x-SGI_VW-fbdev-lkml.patch
135 Patch32: 2.6.x-TGA-fbdev-lkml.patch
136 Patch33: linux-kbuild-extmod.patch
139 Patch40: linux-tdfxfb-fillrect.patch
140 Patch41: linux-fbcon-margins.patch
141 Patch42: linux-tdfxfb-interlace+double.patch
142 Patch43: linux-2.6-rivafb16.patch
143 Patch44: linux-fbcon-con2fb-crash-workaround.patch
146 Patch50: 2.6.7-pom-ng-%{_netfilter_snap}.patch
147 # http://www.barbara.eu.org/~quaker/ipt_account/
148 Patch51: 2.6.6-ipt_account.patch
149 # http://l7-filter.sourceforge.net/
150 Patch52: 2.6.8-ipt_layer7.patch
151 Patch53: 2.6.4-rc1-01-esfq-imq.patch
152 Patch54: 2.6.4-rc1-02-imq-nat-support.patch
153 Patch55: 2.6.4-wrr.patch
154 Patch56: linux-2.6-netfilter-syms.patch
156 # pseudo terminal fix for older glibc
157 Patch60: %{name}-pts.patch
158 Patch61: %{name}-MAX_INIT_ARGS.patch
160 # http://tahoe.pl/patch.htm
161 Patch70: http://www.tahoe.pl/drivers/tahoe9xx-2.6.4-5.patch
162 Patch71: linux-tahoe9xx-hdlc-update.patch
163 # rewriten based on: ftp://ftp.suse.com/pub/people/stepan/bootsplash/kernel/bootsplash-3.1.4-2.6.3.diff
164 Patch72: bootsplash-3.1.4-2.6.7.patch
165 Patch73: squashfs2.0-patch
166 # http://dl.sourceforge.net/sourceforge/pramfs/
167 Patch74: pramfs-2.6.4.patch
168 Patch75: ftp://ftp.kernel.org/pub/linux/kernel/people/mbligh/patches/2.6.6-rc3/2.6.6-rc3-mjb1/350-autoswap
169 Patch76: http://www.elektronikschule.de/~genannt/kernel-patche/lirc/lirc-2.6.5-20040404
170 Patch77: 2.6.6-lirc_i2c.diff
171 # from http://www.smcc.demon.nl/webcam/pwcx-9.0-beta-2.tar.gz
172 Patch78: 2.6.7-pwcx.patch
174 # derived from grsecurity-2.0-2.6.6-unofficial.patch
175 Patch90: %{name}-grsec.patch
176 # http://lkml.org/lkml/2004/6/2/233
177 Patch91: http://people.redhat.com/mingo/exec-shield/exec-shield-nx-2.6.7-A0
178 Patch92: exec-shield-make-peace-with-grsecurity.patch
180 # frpm http://www.ssi.bg/~ja/#routers
181 Patch100: 00_static_routes-2.6.0-test1-8.diff
182 Patch101: 01_alt_routes-2.5.50-8.diff
183 #Patch102: 01_arp_prefsrc-2.5.50-5.diff <- not applied. needs checkout
184 Patch103: 05_nf_reroute-2.6.7-10.diff
187 #Patch110: ftp://ftp.kernel.org/pub/linux/kernel/people/lenb/acpi/patches/release/2.6.7/acpi-20040326-2.6.7.diff.gz
189 # http://sources.redhat.com/cluster/
190 Patch200: linux-cluster-cman.patch
191 Patch201: linux-cluster-dlm.patch
192 Patch202: linux-cluster-gfs.patch
193 Patch203: linux-cluster-gnbd.patch
196 Patch300: linux-2.6-sparc-ksyms.patch
197 Patch301: linux-2.6-ppc-ksyms.patch
198 Patch302: 2.6.7-kill-warnings.patch
200 URL: http://www.kernel.org/
201 BuildRequires: binutils >= 2.14.90.0.7
202 %ifarch sparc sparc64
203 BuildRequires: elftoaout
205 BuildRequires: module-init-tools
206 BuildRequires: perl-base
207 BuildRequires: rpmbuild(macros) >= 1.153
210 PreReq: module-init-tools >= 0.9.9
211 PreReq: geninitrd >= 2.57
212 Provides: %{name}-up = %{epoch}:%{version}-%{release}
213 Provides: module-info
214 Provides: %{name}(netfilter) = %{_netfilter_snap}
215 Obsoletes: kernel-modules
216 Conflicts: util-linux < %{_util_linux_ver}
217 Conflicts: module-init-tool < %{_module_init_tool_ver}
218 Conflicts: e2fsprogs < %{_e2fsprogs_ver}
219 Conflicts: jfsutils < %{_jfsutils_ver}
220 Conflicts: reiserfsprogs < %{_reiserfsprogs_ver}
221 Conflicts: xfsprogs < %{_xfsprogs_ver}
222 Conflicts: quota-tools < %{_quota_tools_ver}
223 Conflicts: PPP < %{_PPP_ver}
224 Conflicts: isdn4k-utils < %{_isdn4k_utils_ver}
225 Conflicts: nfs-utils < %{_nfs_utils_ver}
226 Conflicts: procps < %{_procps_ver}
227 Conflicts: oprofile < %{_oprofile_ver}
228 ExclusiveArch: %{ix86} sparc sparc64 alpha ppc amd64
230 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
233 This package contains the Linux kernel that is used to boot and run
234 your system. It contains few device drivers for specific hardware.
235 Most hardware is instead supported by modules loaded after booting.
238 Das Kernel-Paket enthƤlt den Linux-Kernel (vmlinuz), den Kern des
239 Linux-Betriebssystems. Der Kernel ist fĆ¼r grundliegende
240 Systemfunktionen verantwortlich: Speicherreservierung,
241 ProzeĆ-Management, GerƤte Ein- und Ausgaben, usw.
244 Le package kernel contient le kernel linux (vmlinuz), la partie
245 centrale d'un systĆØme d'exploitation Linux. Le noyau traite les
246 fonctions basiques d'un systĆØme d'exploitation: allocation mĆ©moire,
247 allocation de process, entrƩe/sortie de peripheriques, etc.
250 Pakiet zawiera jĀ±dro Linuksa niezbĆŖdne do prawidĀ³owego dziaĀ³ania
251 Twojego komputera. Zawiera w sobie sterowniki do sprzĆŖtu znajdujĀ±cego
252 siĆŖ w komputerze, takiego jak sterowniki dyskĆ³w itp.
255 Summary: DRM kernel modules
256 Summary(pl): Sterowniki DRM
258 PreReq: %{name}-up = %{epoch}:%{version}-%{release}
259 Requires(postun): %{name}-up = %{epoch}:%{version}-%{release}
260 Provides: %{name}-drm = %{drm_xfree_version}
264 DRM kernel modules (%{drm_xfree_version}).
266 %description drm -l pl
267 Sterowniki DRM (%{drm_xfree_version}).
270 Summary: PCMCIA modules
271 Summary(pl): ModuĀ³y PCMCIA
273 PreReq: %{name}-up = %{epoch}:%{version}-%{release}
274 Requires(postun): %{name}-up = %{epoch}:%{version}-%{release}
275 Provides: %{name}-pcmcia = %{pcmcia_version}
276 Provides: kernel(pcmcia)
277 Conflicts: pcmcia-cs < %{_pcmcia_cs_ver}
281 PCMCIA modules (%{pcmcia_version}).
283 %description pcmcia -l pl
284 ModuĀ³y PCMCIA (%{pcmcia_version}).
287 Summary: ALSA kernel modules
288 Summary(pl): Sterowniki dĀ¼wiĆŖku ALSA
290 PreReq: %{name}-up = %{epoch}:%{version}-%{release}
291 Requires(postun): %{name}-up = %{epoch}:%{version}-%{release}
292 Provides: alsa-driver
293 Obsoletes: alsa-driver
294 Obsoletes: alsa-driver-up
297 %description sound-alsa
298 ALSA (Advanced Linux Sound Architecture) sound drivers.
300 %description sound-alsa -l pl
301 Sterowniki dĀ¼wiĆŖku ALSA (Advanced Linux Sound Architecture).
304 Summary: OSS kernel modules
305 Summary(pl): Sterowniki dĀ¼wiĆŖku OSS
307 PreReq: %{name}-up = %{epoch}:%{version}-%{release}
308 Requires(postun): %{name}-up = %{epoch}:%{version}-%{release}
311 %description sound-oss
312 OSS (Open Sound System) drivers.
314 %description sound-oss -l pl
315 Sterowniki dĀ¼wiĆŖku OSS (Open Sound System).
318 Summary: Kernel version %{version} compiled for SMP machines
319 Summary(de): Kernel version %{version} fĆ¼r Multiprozessor-Maschinen
320 Summary(fr): Kernel version %{version} compiler pour les machine Multi-Processeur
321 Summary(pl): JĀ±dro Linuksa w wersji %{version} dla maszyn wieloprocesorowych
324 PreReq: module-init-tools >= 0.9.9
325 PreReq: geninitrd >= 2.26
326 Provides: %{name} = %{epoch}:%{version}-%{release}
327 Provides: module-info
328 Provides: %{name}(netfilter) = %{_netfilter_snap}
329 Conflicts: util-linux < %{_util_linux_ver}
330 Conflicts: module-init-tool < %{_module_init_tool_ver}
331 Conflicts: e2fsprogs < %{_e2fsprogs_ver}
332 Conflicts: jfsutils < %{_jfsutils_ver}
333 Conflicts: reiserfsprogs < %{_reiserfsprogs_ver}
334 Conflicts: xfsprogs < %{_xfsprogs_ver}
335 Conflicts: quota-tools < %{_quota_tools_ver}
336 Conflicts: PPP < %{_PPP_ver}
337 Conflicts: isdn4k-utils < %{_isdn4k_utils_ver}
338 Conflicts: nfs-utils < %{_nfs_utils_ver}
339 Conflicts: procps < %{_procps_ver}
340 Conflicts: oprofile < %{_oprofile_ver}
344 This package includes a SMP version of the Linux %{version} kernel. It
345 is required only on machines with two or more CPUs, although it should
346 work fine on single-CPU boxes.
348 %description smp -l de
349 Dieses Paket enthƤlt eine SMP (Multiprozessor)-Version von
350 Linux-Kernel %{version}. Es wird fĆ¼r Maschinen mit zwei oder mehr
351 Prozessoren gebraucht, sollte aber auch auf Computern mit nur einer
354 %description smp -l fr
355 Ce package inclu une version SMP du noyau de Linux version {version}.
356 Il et nƩcessaire seulement pour les machine avec deux processeurs ou
357 plus, il peut quand mĆŖme fonctionner pour les systĆØme mono-processeur.
359 %description smp -l pl
360 Pakiet zawiera jĀ±dro SMP Linuksa w wersji %{version}. Jest ono
361 wymagane przez komputery zawierajĀ±ce dwa lub wiĆŖcej procesorĆ³w.
362 Powinno rĆ³wnieĀæ dobrze dziaĀ³aƦ na maszynach z jednym procesorem.
365 Summary: DRM SMP kernel modules
366 Summary(pl): Sterowniki DRM dla maszyn wieloprocesorowych
368 PreReq: %{name}-smp = %{epoch}:%{version}-%{release}
369 Requires(postun): %{name}-smp = %{epoch}:%{version}-%{release}
370 Provides: %{name}-drm = %{drm_xfree_version}
374 DRM SMP kernel modules (%{drm_xfree_version}).
376 %description smp-drm -l pl
377 Sterowniki DRM dla maszyn wieloprocesorowych (%{drm_xfree_version}).
380 Summary: PCMCIA modules for SMP kernel
381 Summary(pl): ModuĀ³y PCMCIA dla maszyn SMP
383 PreReq: %{name}-smp = %{epoch}:%{version}-%{release}
384 Requires(postun): %{name}-smp = %{epoch}:%{version}-%{release}
385 Provides: %{name}-pcmcia = %{pcmcia_version}
386 Provides: kernel(pcmcia)
387 Conflicts: pcmcia-cs < %{_pcmcia_cs_ver}
390 %description smp-pcmcia
391 PCMCIA modules for SMP kernel (%{pcmcia_version}).
393 %description smp-pcmcia -l pl
394 ModuĀ³y PCMCIA dla maszyn SMP (%{pcmcia_version}).
396 %package smp-sound-alsa
397 Summary: ALSA SMP kernel modules
398 Summary(pl): Sterowniki dĀ¼wiĆŖku ALSA dla maszyn wieloprocesorowych
400 PreReq: %{name}-smp = %{epoch}:%{version}-%{release}
401 Requires(postun): %{name}-smp = %{epoch}:%{version}-%{release}
402 Provides: alsa-driver
403 Obsoletes: alsa-driver
404 Obsoletes: alsa-driver-smp
407 %description smp-sound-alsa
408 ALSA (Advanced Linux Sound Architecture) SMP sound drivers.
410 %description smp-sound-alsa -l pl
411 Sterowniki dĀ¼wiĆŖku ALSA (Advanced Linux Sound Architecture) dla maszyn
414 %package smp-sound-oss
415 Summary: OSS SMP kernel modules
416 Summary(pl): Sterowniki dĀ¼wiĆŖku OSS dla maszyn wieloprocesorowych
418 PreReq: %{name}-smp = %{epoch}:%{version}-%{release}
419 Requires(postun): %{name}-smp = %{epoch}:%{version}-%{release}
422 %description smp-sound-oss
423 OSS (Open Sound System) SMP sound drivers.
425 %description smp-sound-oss -l pl
426 Sterowniki OSS (Open Sound System) dla maszyn wieloprocesorowych.
429 Summary: Kernel version %{version} used on the installation boot disks
430 Summary(de): Kernel version %{version} fĆ¼r Installationsdisketten
431 Summary(fr): Kernel version %{version} utiliser pour les disquettes d'installation
432 Summary(pl): JĀ±dro Linuksa w wersji %{version} dla dyskietek startowych
434 PreReq: module-init-tools
438 This package includes a trimmed down version of the Linux %{version}
439 kernel. This kernel is used on the installation boot disks only and
440 should not be used for an installed system, as many features in this
441 kernel are turned off because of the size constraints.
443 %description BOOT -l de
444 Dieses Paket enthƤlt eine verkleinerte Version vom Linux-Kernel
445 version %{version}. Dieser Kernel wird auf den
446 Installations-Bootdisketten benutzt und sollte nicht auf einem
447 installierten System verwendet werden, da viele Funktionen wegen der
448 Platzprobleme abgeschaltet sind.
450 %description BOOT -l pl
451 Pakiet zawiera jĀ±dro Linuksa dedykowane dyskietkom startowym i powinno
452 byƦ uĀæywane jedynie podczas instalacji systemu. Wiele uĀæytecznych
453 opcji zostaĀ³o wyĀ³Ā±czonych, aby jak najbardziej zmniejszyƦ jego
457 Summary: Header files for the Linux kernel
458 Summary(pl): Pliki nagĀ³Ć³wkowe jĀ±dra Linuksa
460 Provides: %{name}-headers(agpgart) = %{version}
461 Provides: %{name}-headers(reiserfs) = %{version}
462 Provides: %{name}-headers(bridging) = %{version}
463 Provides: kernel-i2c-devel
464 Provides: %{name}-headers(netfilter) = %{_netfilter_snap}
465 Provides: %{name}-headers(alsa-drivers)
466 Obsoletes: kernel-i2c-devel
470 These are the C header files for the Linux kernel, which define
471 structures and constants that are needed when rebuilding the kernel
472 or building kernel modules.
474 %description headers -l pl
475 Pakiet zawiera pliki nagĀ³Ć³wkowe jĀ±dra, niezbĆŖdne do rekompilacji jĀ±dra
476 oraz budowania moduĀ³Ć³w jĀ±dra.
478 %package module-build
479 Summary: Development files for building kernel modules
480 Summary(pl): Pliki sĀ³uĀæĀ±ce do budowania moduĀ³Ć³w jĀ±dra
482 Requires: %{name}-headers = %{epoch}:%{version}-%{release}
485 %description module-build
486 Development files from kernel source tree needed to build Linux kernel
487 modules from external packages.
489 %description module-build -l pl
490 Pliki ze drzewa Ā¼rĆ³deĀ³ jĀ±dra potrzebne do budowania moduĀ³Ć³w jĀ±dra
491 Linuksa z zewnĆŖtrznych pakietĆ³w.
494 Summary: Kernel source tree
495 Summary(pl): Kod Ā¼rĆ³dĀ³owy jĀ±dra Linuksa
497 Requires: %{name}-module-build = %{epoch}:%{version}-%{release}
501 This is the source code for the Linux kernel. It is required to build
502 most C programs as they depend on constants defined in here. You can
503 also build a custom kernel that is better tuned to your particular
506 %description source -l de
507 Das Kernel-Source-Paket enthƤlt den source code (C/Assembler-Code) des
508 Linux-Kernels. Die Source-Dateien werden gebraucht, um viele
509 C-Programme zu compilieren, da sie auf Konstanten zurĆ¼ckgreifen, die
510 im Kernel-Source definiert sind. Die Source-Dateien kƶnnen auch
511 benutzt werden, um einen Kernel zu compilieren, der besser auf Ihre
512 Hardware ausgerichtet ist.
514 %description source -l fr
515 Le package pour le kernel-source contient le code source pour le noyau
516 linux. Ces sources sont nƩcessaires pour compiler la plupart des
517 programmes C, car il dƩpend de constantes dƩfinies dans le code
518 source. Les sources peuvent ĆŖtre aussi utilisĆ©e pour compiler un noyau
519 personnalisƩ pour avoir de meilleures performances sur des matƩriels
522 %description source -l pl
523 Pakiet zawiera kod Ā¼rĆ³dĀ³owy jĀ±dra systemu.
526 Summary: Kernel documentation
527 Summary(pl): Dokumentacja do jĀ±dra Linuksa
529 Provides: %{name}-doc = %{version}
533 This is the documentation for the Linux kernel, as found in
534 /usr/src/linux/Documentation directory.
536 %description doc -l pl
537 Pakiet zawiera dokumentacjĆŖ do jĀ±dra Linuksa pochodzĀ±cĀ± z katalogu
538 /usr/src/linux/Documentation.
541 %setup -q -n linux-%{version}%{_rc}
544 %if "%{_apply_cset}" != "0"
545 zcat %{SOURCE3} | patch -p1 -s
605 %if %{with bootsplash}
617 # Philips USB drivers.
621 #cp drivers/usb/media/libpwcx.a_ix86 drivers/usb/media/libpwcx.a_
624 #cp drivers/usb/media/libpwcx.a_powerpc drivers/usb/media/libpwcx.a_
627 #cp drivers/usb/media/libpwcx.a_ppc drivers/usb/media/libpwcx.a_
631 %ifarch alpha %{ix86} ia64 ppc sparc sparc64 amd64
637 %if %{with execshield}
638 install %{PATCH91} exec-shield.patch
640 patch -s exec-shield.patch < %{PATCH92}
642 patch -p1 -s < exec-shield.patch
648 #patch102 -p1 # <- not applayed need checkout
666 # Fix EXTRAVERSION and CC in main Makefile
667 mv -f Makefile Makefile.orig
668 sed -e 's#EXTRAVERSION =.*#EXTRAVERSION =#g' \
669 %ifarch %{ix86} alpha sparc ppc
670 -e 's#CC.*$(CROSS_COMPILE)gcc#CC = %{__cc}#g' \
673 -e 's#CC.*$(CROSS_COMPILE)gcc#CC = sparc64-pld-linux-gcc#g' \
675 Makefile.orig >Makefile
677 sed -i 's:\-pipe::' arch/*/Makefile
679 # on sparc this line causes CONFIG_INPUT=m (instead of =y), thus breaking build
680 sed -i -e '/select INPUT/d' net/bluetooth/hidp/Kconfig
683 TuneUpConfigForIX86 () {
686 sed -i 's:# CONFIG_M386 is not set:CONFIG_M386=y:' $1
689 sed -i 's:# CONFIG_M486 is not set:CONFIG_M486=y:' $1
692 sed -i 's:# CONFIG_M586 is not set:CONFIG_M586=y:' $1
695 sed -i 's:# CONFIG_M686 is not set:CONFIG_M686=y:' $1
698 sed -i 's:# CONFIG_MPENTIUMIII is not set:CONFIG_MPENTIUMIII=y:' $1
701 sed -i 's:# CONFIG_MPENTIUM4 is not set:CONFIG_MPENTIUM4=y:' $1
704 sed -i 's:# CONFIG_MK7 is not set:CONFIG_MK7=y:' $1
706 %ifarch pentium3 pentium4 athlon
707 # kernel-i386-smp.config contains 64G support by default.
709 sed -i "s:CONFIG_HIGHMEM4G=y:# CONFIG_HIGHMEM4G is not set:" $1
710 sed -i "s:# CONFIG_HIGHMEM64G is not set:CONFIG_HIGHMEM64G=y\nCONFIG_X86_PAE=y:" $1
713 %ifarch i386 i486 i586
714 sed -i 's:# CONFIG_MATH_EMULATION is not set:CONFIG_MATH_EMULATION=y:' $1
721 # is this a special kernel we want to build?
724 [ "$1" = "BOOT" -o "$2" = "BOOT" ] && BOOT=yes
725 [ "$1" = "smp" -o "$2" = "smp" ] && smp=yes
726 if [ "$smp" = "yes" ]; then
727 Config="%{_target_base_arch}-smp"
729 Config="%{_target_base_arch}"
731 if [ "$BOOT" = "yes" ]; then
732 KernelVer=%{version}-%{release}BOOT
734 KernelVer=%{version}-%{release}$1
736 echo "Building config file for KERNEL $1..."
737 cat $RPM_SOURCE_DIR/kernel-$Config.config > arch/%{_target_base_arch}/defconfig
738 TuneUpConfigForIX86 arch/%{_target_base_arch}/defconfig
740 %if %{with preemptive}
741 sed -i 's:# CONFIG_PREEMPT is not set:CONFIG_PREEMPT=y:' arch/%{_target_base_arch}/defconfig
745 cat %{SOURCE80} >> arch/%{_target_base_arch}/defconfig
747 cat %{SOURCE90} >> arch/%{_target_base_arch}/defconfig
749 ln -sf arch/%{_target_base_arch}/defconfig .config
750 install -d $KERNEL_INSTALL_DIR/usr/src/linux-%{version}/include/linux
751 %{__make} include/linux/autoconf.h
752 if [ "$smp" = "yes" ]; then
753 install include/linux/autoconf.h \
754 $KERNEL_INSTALL_DIR/usr/src/linux-%{version}/include/linux/autoconf-smp.h
756 $KERNEL_INSTALL_DIR/usr/src/linux-%{version}/config-smp
758 install include/linux/autoconf.h \
759 $KERNEL_INSTALL_DIR/usr/src/linux-%{version}/include/linux/autoconf-up.h
761 $KERNEL_INSTALL_DIR/usr/src/linux-%{version}/config-up
767 Config="%{_target_base_arch}"
768 cat $RPM_SOURCE_DIR/kernel-$Config.config > arch/%{_target_base_arch}/defconfig
770 echo "CONFIG_M386=y" >> arch/%{_target_base_arch}/defconfig
773 echo "CONFIG_M486=y" >> arch/%{_target_base_arch}/defconfig
775 %ifarch i386 i486 i586
776 sed -i 's/# CONFIG_MATH_EMULATION is not set/CONFIG_MATH_EMULATION=y/' \
777 arch/%{_target_base_arch}/defconfig
779 cat <<EOF >>arch/%{_target_base_arch}/defconfig
780 # CONFIG_APM is not set
781 # CONFIG_ACPI is not set
782 # CONFIG_ACPI_BOOT is not set
783 # CONFIG_MTD is not set
784 # CONFIG_NETFILTER is not set
785 # CONFIG_WAN is not set
786 # CONFIG_ATM is not set
787 # CONFIG_HOTPLUG_PCI is not set
788 # CONFIG_NET_SCHED is not set
789 # CONFIG_X86_MCE is not set
790 # CONFIG_MTRR is not set
791 # CONFIG_PM is not set
792 # CONFIG_CPU_FREQ is not set
793 # CONFIG_DRM is not set
794 # CONFIG_FTAPE is not set
795 # CONFIG_WATCHDOG is not set
796 # CONFIG_DVB is not set
797 # CONFIG_DVB_CORE is not set
798 # CONFIG_VIDEO_DEV is not set
799 # CONFIG_SECURITY is not set
800 # CONFIG_SOUND is not set
801 # CONFIG_USB_AUDIO is not set
802 # CONFIG_INPUT_JOYSTICK is not set
803 # CONFIG_OMNIBOOK is not set
804 # CONFIG_NET_RADIO is not set
805 # CONFIG_HOTPLUG is not set
806 # CONFIG_QUOTA is not set
807 # CONFIG_REGPARM is not set
808 # CONFIG_SCSI_LOGGING is not set
811 # CONFIG_DEV_APPLETALK is not set
812 # CONFIG_ECONET_AUNUDP is not set
813 # CONFIG_HIPPI is not set
814 # CONFIG_TR is not set
815 # CONFIG_INPUT_MISC is not set
816 # CONFIG_INPUT_TOUCHSCREEN is not set
817 # CONFIG_PROFILING is not set
818 # CONFIG_DEBUG_KERNEL is not set
819 # CONFIG_DEBUG_SPINLOCK_SLEEP is not set
820 # CONFIG_FRAME_POINTER is not set
821 # CONFIG_LBD is not set
822 # CONFIG_SLIP is not set
823 # CONFIG_PPP is not set
824 # CONFIG_PLIP is not set
825 # CONFIG_FDDI is not set
826 # CONFIG_HAMRADIO is not set
827 # CONFIG_NETPOLL_RX is not set
828 # CONFIG_NETPOLL_TRAP is not set
829 # CONFIG_FB is not set
831 ln -sf arch/%{_target_base_arch}/defconfig .config
833 install -d $KERNEL_INSTALL_DIR/usr/src/linux-%{version}/include/linux
834 %{__make} include/linux/autoconf.h
835 if [ "$smp" = "yes" ]; then
836 install include/linux/autoconf.h $KERNEL_INSTALL_DIR/usr/src/linux-%{version}/include/linux/autoconf-smp.h
838 install include/linux/autoconf.h $KERNEL_INSTALL_DIR/usr/src/linux-%{version}/include/linux/autoconf-up.h
844 echo "Building kernel $1 ..."
846 RCS_FIND_IGNORE='-name build-done -prune -o'
847 ln -sf arch/%{_target_base_arch}/defconfig .config
850 sparc32 %{__make} clean \
851 RCS_FIND_IGNORE='-name build-done -prune -o'
854 RCS_FIND_IGNORE='-name build-done -prune -o'
856 %{__make} include/linux/version.h \
859 # make does vmlinux, modules and bzImage at once
860 %ifarch sparc sparc64
880 [ "$1" = "BOOT" -o "$2" = "BOOT" ] && BOOT=yes
881 [ "$1" = "smp" -o "$2" = "smp" ] && smp=yes
882 if [ "$smp" = "yes" ]; then
883 Config="%{_target_base_arch}-smp"
885 Config="%{_target_base_arch}"
887 if [ "$BOOT" = "yes" ]; then
888 KernelVer=%{version}-%{release}BOOT
890 KernelVer=%{version}-%{release}$1
893 mkdir -p $KERNEL_INSTALL_DIR/boot
894 install System.map $KERNEL_INSTALL_DIR/boot/System.map-$KernelVer
895 %ifarch %{ix86} amd64
896 install arch/%{_target_base_arch}/boot/bzImage $KERNEL_INSTALL_DIR/boot/vmlinuz-$KernelVer
898 %ifarch alpha sparc sparc64
899 gzip -cfv vmlinux > vmlinuz
900 install vmlinux $KERNEL_INSTALL_DIR/boot/vmlinux-$KernelVer
901 install vmlinuz $KERNEL_INSTALL_DIR/boot/vmlinuz-$KernelVer
903 elftoaout arch/sparc/boot/image -o vmlinux.aout
904 install vmlinux.aout $KERNEL_INSTALL_DIR/boot/vmlinux.aout-$KernelVer
907 elftoaout arch/sparc64/boot/image -o vmlinux.aout
908 install vmlinux.aout $KERNEL_INSTALL_DIR/boot/vmlinux.aout-$KernelVer
913 install vmlinux $KERNEL_INSTALL_DIR/boot/vmlinux-$KernelVer
914 install vmlinux $KERNEL_INSTALL_DIR/boot/vmlinuz-$KernelVer
916 %{__make} modules_install \
917 %{?with_verbose:V=1} \
918 INSTALL_MOD_PATH=$KERNEL_INSTALL_DIR \
919 KERNELRELEASE=$KernelVer
921 echo "CHECKING DEPENDENCIES FOR KERNEL MODULES"
922 /sbin/depmod --basedir $KERNEL_INSTALL_DIR -ae -F $KERNEL_INSTALL_DIR/boot/System.map-$KernelVer -r $KernelVer || echo
924 echo "KERNEL RELEASE $KernelVer DONE"
928 KERNEL_BUILD_DIR=`pwd`
931 KERNEL_INSTALL_DIR="$KERNEL_BUILD_DIR/build-done/kernel-UP"
932 rm -rf $KERNEL_INSTALL_DIR
934 %{?with_up:BuildKernel}
935 %{?with_up:PreInstallKernel}
938 KERNEL_INSTALL_DIR="$KERNEL_BUILD_DIR/build-done/kernel-SMP"
939 rm -rf $KERNEL_INSTALL_DIR
941 %{?with_smp:BuildKernel smp}
942 %{?with_smp:PreInstallKernel smp}
945 KERNEL_INSTALL_DIR="$KERNEL_BUILD_DIR/build-done/BOOT"
946 rm -rf $KERNEL_INSTALL_DIR
949 PreInstallKernel BOOT
953 rm -rf $RPM_BUILD_ROOT
956 install -d $RPM_BUILD_ROOT%{_prefix}/src/linux-%{version}
958 KERNEL_BUILD_DIR=`pwd`
960 %if %{with up} || %{with smp}
961 cp -a $KERNEL_BUILD_DIR/build-done/kernel-*/* $RPM_BUILD_ROOT
965 if [ -e $RPM_BUILD_ROOT/lib/modules/%{version}-%{release}$i ] ; then
966 rm -f $RPM_BUILD_ROOT/lib/modules/%{version}-%{release}$i/build
967 ln -sf %{_prefix}/src/linux-%{version} \
968 $RPM_BUILD_ROOT/lib/modules/%{version}-%{release}$i/build
972 ln -sf linux-%{version} $RPM_BUILD_ROOT%{_prefix}/src/linux
974 find . ! -name "build-done" ! -name "." -maxdepth 1 -exec cp -a "{}" "$RPM_BUILD_ROOT/usr/src/linux-%{version}/" ";"
976 cd $RPM_BUILD_ROOT%{_prefix}/src/linux-%{version}
979 RCS_FIND_IGNORE='-name build-done -prune -o'
980 find -name "*~" -exec rm -f "{}" ";"
981 find -name "*.orig" -exec rm -f "{}" ";"
983 if [ -e $KERNEL_BUILD_DIR/build-done/kernel-UP/usr/src/linux-%{version}/include/linux/autoconf-up.h ]; then
984 install $KERNEL_BUILD_DIR/build-done/kernel-UP/usr/src/linux-%{version}/include/linux/autoconf-up.h \
985 $RPM_BUILD_ROOT/usr/src/linux-%{version}/include/linux
986 install $KERNEL_BUILD_DIR/build-done/kernel-UP/usr/src/linux-%{version}/config-up \
987 $RPM_BUILD_ROOT/usr/src/linux-%{version}/include/linux
990 if [ -e $KERNEL_BUILD_DIR/build-done/kernel-SMP/usr/src/linux-%{version}/include/linux/autoconf-smp.h ]; then
991 install $KERNEL_BUILD_DIR/build-done/kernel-SMP/usr/src/linux-%{version}/include/linux/autoconf-smp.h \
992 $RPM_BUILD_ROOT/usr/src/linux-%{version}/include/linux
993 install $KERNEL_BUILD_DIR/build-done/kernel-SMP/usr/src/linux-%{version}/config-smp \
994 $RPM_BUILD_ROOT/usr/src/linux-%{version}/include/linux
997 %if %{with up} || %{with smp}
999 install $KERNEL_BUILD_DIR/build-done/kernel-*/usr/src/linux-%{version}/include/linux/* \
1000 $RPM_BUILD_ROOT/usr/src/linux-%{version}/include/linux
1004 %{__make} include/linux/version.h
1005 install %{SOURCE1} $RPM_BUILD_ROOT%{_prefix}/src/linux-%{version}/include/linux/autoconf.h
1008 rm -rf $RPM_BUILD_ROOT
1011 mv -f /boot/vmlinuz /boot/vmlinuz.old 2> /dev/null > /dev/null
1012 mv -f /boot/System.map /boot/System.map.old 2> /dev/null > /dev/null
1013 ln -sf vmlinuz-%{version}-%{release} /boot/vmlinuz
1014 ln -sf System.map-%{version}-%{release} /boot/System.map
1016 if [ ! -L /lib/modules/%{version} ] ; then
1017 mv -f /lib/modules/%{version} /lib/modules/%{version}.rpmsave > /dev/null 2>&1
1019 rm -f /lib/modules/%{version}
1020 ln -snf %{version}-%{release} /lib/modules/%{version}
1021 %depmod %{version}-%{release}
1023 /sbin/geninitrd -f --initrdfs=rom /boot/initrd-%{version}-%{release}.gz %{version}-%{release}
1024 mv -f /boot/initrd /boot/initrd.old
1025 ln -sf initrd-%{version}-%{release}.gz /boot/initrd
1027 if [ -x /sbin/rc-boot ] ; then
1028 /sbin/rc-boot 1>&2 || :
1032 if [ -L /lib/modules/%{version} ]; then
1033 if [ "`ls -l /lib/modules/%{version} | awk '{ print $10 }'`" = "%{version}-%{release}" ]; then
1034 if [ "$1" = "0" ]; then
1035 rm -f /lib/modules/%{version}
1039 rm -f /boot/initrd-%{version}-%{release}.gz
1042 %depmod %{version}-%{release}
1045 %depmod %{version}-%{release}
1048 %depmod %{version}-%{release}
1051 %depmod %{version}-%{release}
1054 %depmod %{version}-%{release}
1057 %depmod %{version}-%{release}
1060 %depmod %{version}-%{release}
1063 %depmod %{version}-%{release}
1066 mv -f /boot/vmlinuz /boot/vmlinuz.old 2> /dev/null > /dev/null
1067 mv -f /boot/System.map /boot/System.map.old 2> /dev/null > /dev/null
1068 ln -sf vmlinuz-%{version}-%{release}smp /boot/vmlinuz
1069 ln -sf System.map-%{version}-%{release}smp /boot/System.map
1071 if [ ! -L /lib/modules/%{version} ] ; then
1072 mv -f /lib/modules/%{version} /lib/modules/%{version}.rpmsave > /dev/null 2>&1
1074 rm -f /lib/modules/%{version}
1075 ln -snf %{version}-%{release}smp /lib/modules/%{version}
1076 %depmod %{version}-%{release}smp
1078 /sbin/geninitrd -f --initrdfs=rom /boot/initrd-%{version}-%{release}smp.gz %{version}-%{release}smp
1079 mv -f /boot/initrd /boot/initrd.old
1080 ln -sf initrd-%{version}-%{release}smp.gz /boot/initrd
1082 if [ -x /sbin/rc-boot ] ; then
1083 /sbin/rc-boot 1>&2 || :
1087 if [ -L /lib/modules/%{version} ]; then
1088 if [ "`ls -l /lib/modules/%{version} | awk '{ print $10 }'`" = "%{version}-%{release}smp" ]; then
1089 if [ "$1" = "0" ]; then
1090 rm -f /lib/modules/%{version}
1094 rm -f /boot/initrd-%{version}-%{release}smp.gz
1097 if [ ! -L %{_libdir}/bootdisk/lib/modules/%{version} ] ; then
1098 mv -f %{_libdir}/bootdisk/lib/modules/%{version} %{_libdir}/bootdisk/lib/modules/%{version}.rpmsave
1100 if [ ! -L %{_libdir}/bootdisk/boot/vmlinuz-%{version} ] ; then
1101 mv -f %{_libdir}/bootdisk/boot/vmlinuz-%{version} %{_libdir}/bootdisk/boot/vmlinuz-%{version}.rpmsave
1103 rm -f %{_libdir}/bootdisk/lib/modules/%{version}
1104 ln -snf %{version}-%{release}BOOT %{_libdir}/bootdisk/lib/modules/%{version}
1105 rm -f %{_libdir}/bootdisk/boot/vmlinuz-%{version}
1106 ln -snf vmlinuz-%{version}-%{release}BOOT %{_libdir}/bootdisk/boot/vmlinuz-%{version}
1109 %depmod %{version}-%{release}smp
1112 %depmod %{version}-%{release}smp
1115 %depmod %{version}-%{release}smp
1118 %depmod %{version}-%{release}smp
1120 %post smp-sound-alsa
1121 %depmod %{version}-%{release}smp
1123 %postun smp-sound-alsa
1124 %depmod %{version}-%{release}smp
1127 %depmod %{version}-%{release}smp
1129 %postun smp-sound-oss
1130 %depmod %{version}-%{release}smp
1133 if [ -L %{_libdir}/bootdisk/lib/modules/%{version} ]; then
1134 if [ "`ls -l %{_libdir}/bootdisk/lib/modules/%{version} | awk '{ print $10 }'`" = "%{version}-%{release}BOOT" ]; then
1135 if [ "$1" = "0" ]; then
1136 rm -f %{_libdir}/bootdisk/lib/modules/%{version}
1142 rm -f /usr/src/linux
1143 ln -snf linux-%{version} /usr/src/linux
1146 if [ -L %{_prefix}/src/linux ]; then
1147 if [ "`ls -l %{_prefix}/src/linux | awk '{ print $10 }'`" = "linux-%{version}" ]; then
1148 if [ "$1" = "0" ]; then
1149 rm -f %{_prefix}/src/linux
1156 %defattr(644,root,root,755)
1158 /boot/vmlinux-%{version}-%{release}
1160 %ifarch sparc sparc64
1161 /boot/vmlinux-%{version}-%{release}
1162 /boot/vmlinux.aout-%{version}-%{release}
1164 /boot/vmlinuz-%{version}-%{release}
1165 /boot/System.map-%{version}-%{release}
1166 %dir /lib/modules/%{version}-%{release}
1167 /lib/modules/%{version}-%{release}/kernel
1168 %ifnarch sparc sparc64
1170 %exclude /lib/modules/%{version}-%{release}/kernel/drivers/pcmcia
1171 %exclude /lib/modules/%{version}-%{release}/kernel/drivers/*/pcmcia
1172 %exclude /lib/modules/%{version}-%{release}/kernel/drivers/bluetooth/*_cs.ko
1173 %exclude /lib/modules/%{version}-%{release}/kernel/drivers/net/wireless/*_cs.ko
1174 %exclude /lib/modules/%{version}-%{release}/kernel/drivers/parport/parport_cs.ko
1175 %exclude /lib/modules/%{version}-%{release}/kernel/drivers/serial/serial_cs.ko
1177 %ifnarch sparc sparc64
1179 %exclude /lib/modules/%{version}-%{release}/kernel/drivers/char/drm
1181 %ifnarch sparc sparc64
1183 %exclude /lib/modules/%{version}-%{release}/kernel/sound/oss
1186 %exclude /lib/modules/%{version}-%{release}/kernel/sound/core
1187 %exclude /lib/modules/%{version}-%{release}/kernel/sound/drivers
1188 %ifnarch sparc sparc64
1189 %exclude /lib/modules/%{version}-%{release}/kernel/sound/i2c
1190 %exclude /lib/modules/%{version}-%{release}/kernel/sound/isa
1191 %exclude /lib/modules/%{version}-%{release}/kernel/sound/pci
1192 %exclude /lib/modules/%{version}-%{release}/kernel/sound/synth
1193 %exclude /lib/modules/%{version}-%{release}/kernel/sound/usb
1195 %ifarch sparc sparc64
1196 %exclude /lib/modules/%{version}-%{release}/kernel/sound/sparc
1199 /lib/modules/%{version}-%{release}/build
1200 %ghost /lib/modules/%{version}-%{release}/modules.*
1202 %ifnarch sparc sparc64
1204 %defattr(644,root,root,755)
1205 /lib/modules/%{version}-%{release}/kernel/drivers/char/drm
1208 %ifnarch sparc sparc64
1210 %defattr(644,root,root,755)
1211 /lib/modules/%{version}-%{release}/kernel/drivers/pcmcia
1212 /lib/modules/%{version}-%{release}/kernel/drivers/*/pcmcia
1213 /lib/modules/%{version}-%{release}/kernel/drivers/bluetooth/*_cs.ko
1214 /lib/modules/%{version}-%{release}/kernel/drivers/net/wireless/*_cs.ko
1215 /lib/modules/%{version}-%{release}/kernel/drivers/parport/parport_cs.ko
1216 /lib/modules/%{version}-%{release}/kernel/drivers/serial/serial_cs.ko
1220 %defattr(644,root,root,755)
1221 /lib/modules/%{version}-%{release}/kernel/sound/core
1222 /lib/modules/%{version}-%{release}/kernel/sound/drivers
1223 %ifnarch sparc sparc64
1224 /lib/modules/%{version}-%{release}/kernel/sound/i2c
1225 /lib/modules/%{version}-%{release}/kernel/sound/isa
1226 /lib/modules/%{version}-%{release}/kernel/sound/pci
1227 /lib/modules/%{version}-%{release}/kernel/sound/synth
1228 /lib/modules/%{version}-%{release}/kernel/sound/usb
1230 %ifarch sparc sparc64
1231 /lib/modules/%{version}-%{release}/kernel/sound/sparc
1234 %ifnarch sparc sparc64
1236 %defattr(644,root,root,755)
1237 /lib/modules/%{version}-%{release}/kernel/sound/oss
1239 %endif # %%{with up}
1243 %defattr(644,root,root,755)
1244 %ifarch alpha sparc sparc64 ppc
1245 /boot/vmlinux-%{version}-%{release}smp
1247 /boot/vmlinuz-%{version}-%{release}smp
1248 /boot/System.map-%{version}-%{release}smp
1249 %dir /lib/modules/%{version}-%{release}smp
1250 /lib/modules/%{version}-%{release}smp/kernel
1251 %ifnarch sparc sparc64
1253 %exclude /lib/modules/%{version}-%{release}smp/kernel/drivers/pcmcia
1254 %exclude /lib/modules/%{version}-%{release}smp/kernel/drivers/*/pcmcia
1255 %exclude /lib/modules/%{version}-%{release}smp/kernel/drivers/bluetooth/*_cs.ko
1256 %exclude /lib/modules/%{version}-%{release}smp/kernel/drivers/net/wireless/*_cs.ko
1257 %exclude /lib/modules/%{version}-%{release}smp/kernel/drivers/parport/parport_cs.ko
1258 %exclude /lib/modules/%{version}-%{release}smp/kernel/drivers/serial/serial_cs.ko
1260 %ifnarch sparc sparc64
1262 %exclude /lib/modules/%{version}-%{release}smp/kernel/drivers/char/drm
1264 %ifnarch sparc sparc64
1266 %exclude /lib/modules/%{version}-%{release}smp/kernel/sound/oss
1269 %exclude /lib/modules/%{version}-%{release}smp/kernel/sound/core
1270 %exclude /lib/modules/%{version}-%{release}smp/kernel/sound/drivers
1271 %ifnarch sparc sparc64
1272 %exclude /lib/modules/%{version}-%{release}smp/kernel/sound/i2c
1273 %exclude /lib/modules/%{version}-%{release}smp/kernel/sound/isa
1274 %exclude /lib/modules/%{version}-%{release}smp/kernel/sound/pci
1275 %exclude /lib/modules/%{version}-%{release}smp/kernel/sound/synth
1276 %exclude /lib/modules/%{version}-%{release}smp/kernel/sound/usb
1278 %ifarch sparc sparc64
1279 %exclude /lib/modules/%{version}-%{release}smp/kernel/sound/sparc
1282 /lib/modules/%{version}-%{release}smp/build
1283 %ghost /lib/modules/%{version}-%{release}smp/modules.*
1285 %ifnarch sparc sparc64
1287 %defattr(644,root,root,755)
1288 /lib/modules/%{version}-%{release}smp/kernel/drivers/char/drm
1291 %ifnarch sparc sparc64
1293 %defattr(644,root,root,755)
1294 /lib/modules/%{version}-%{release}smp/kernel/drivers/pcmcia
1295 /lib/modules/%{version}-%{release}smp/kernel/drivers/*/pcmcia
1296 /lib/modules/%{version}-%{release}smp/kernel/drivers/bluetooth/*_cs.ko
1297 /lib/modules/%{version}-%{release}smp/kernel/drivers/net/wireless/*_cs.ko
1298 /lib/modules/%{version}-%{release}smp/kernel/drivers/parport/parport_cs.ko
1299 /lib/modules/%{version}-%{release}smp/kernel/drivers/serial/serial_cs.ko
1302 %files smp-sound-alsa
1303 %defattr(644,root,root,755)
1304 /lib/modules/%{version}-%{release}smp/kernel/sound/core
1305 /lib/modules/%{version}-%{release}smp/kernel/sound/drivers
1306 %ifnarch sparc sparc64
1307 /lib/modules/%{version}-%{release}smp/kernel/sound/i2c
1308 /lib/modules/%{version}-%{release}smp/kernel/sound/isa
1309 /lib/modules/%{version}-%{release}smp/kernel/sound/pci
1310 /lib/modules/%{version}-%{release}smp/kernel/sound/synth
1311 /lib/modules/%{version}-%{release}smp/kernel/sound/usb
1313 %ifarch sparc sparc64
1314 /lib/modules/%{version}-%{release}smp/kernel/sound/sparc
1317 %ifnarch sparc sparc64
1318 %files smp-sound-oss
1319 %defattr(644,root,root,755)
1320 /lib/modules/%{version}-%{release}smp/kernel/sound/oss
1322 %endif # %%{with smp}
1326 %defattr(644,root,root,755)
1327 %ifarch alpha sparc sparc64 ppc # arch
1328 %{_libdir}/bootdisk/boot/vmlinux-%{version}-%{release}BOOT
1330 %{_libdir}/bootdisk/boot/vmlinuz-%{version}-%{release}BOOT
1331 %{_libdir}/bootdisk/boot/System.map-%{version}-%{release}BOOT
1332 %dir %{_libdir}/bootdisk/lib/modules/%{version}-%{release}BOOT
1333 %{_libdir}/bootdisk/lib/modules/%{version}-%{release}BOOT/kernel
1334 %{_libdir}/bootdisk/lib/modules/%{version}-%{release}BOOT/build
1335 %ghost %{_libdir}/bootdisk/lib/modules/%{version}-%{release}BOOT/modules.*
1336 %endif # %%{with BOOT}
1339 %defattr(644,root,root,755)
1340 %dir %{_prefix}/src/linux-%{version}
1341 %{_prefix}/src/linux-%{version}/include
1342 %{_prefix}/src/linux-%{version}/config-smp
1343 %{_prefix}/src/linux-%{version}/config-up
1346 %defattr(644,root,root,755)
1347 %{_prefix}/src/linux-%{version}/Makefile
1348 %dir %{_prefix}/src/linux-%{version}/arch
1349 %dir %{_prefix}/src/linux-%{version}/arch/*
1350 %{_prefix}/src/linux-%{version}/arch/*/Makefile*
1351 %dir %{_prefix}/src/linux-%{version}/arch/*/kernel
1352 %{_prefix}/src/linux-%{version}/arch/*/kernel/Makefile
1353 %{_prefix}/src/linux-%{version}/arch/*/kernel/asm-offsets.*
1354 %{_prefix}/src/linux-%{version}/arch/*/kernel/sigframe.h
1355 %dir %{_prefix}/src/linux-%{version}/scripts
1356 %{_prefix}/src/linux-%{version}/scripts/Makefile*
1357 %{_prefix}/src/linux-%{version}/scripts/basic
1358 %{_prefix}/src/linux-%{version}/scripts/*.c
1359 %{_prefix}/src/linux-%{version}/scripts/*.h
1360 %{_prefix}/src/linux-%{version}/scripts/*.sh
1363 %defattr(644,root,root,755)
1364 %{_prefix}/src/linux-%{version}/Documentation
1365 #%%{_prefix}/src/linux-%{version}/netfilter-patch-o-matic
1369 %defattr(644,root,root,755)
1370 %{_prefix}/src/linux-%{version}/arch/*/[!Mk]*
1371 %{_prefix}/src/linux-%{version}/arch/*/kernel/[!M]*
1372 %exclude %{_prefix}/src/linux-%{version}/arch/*/kernel/asm-offsets.*
1373 %exclude %{_prefix}/src/linux-%{version}/arch/*/kernel/sigframe.h
1374 %{_prefix}/src/linux-%{version}/cluster
1375 %{_prefix}/src/linux-%{version}/crypto
1376 %{_prefix}/src/linux-%{version}/drivers
1377 %{_prefix}/src/linux-%{version}/fs
1379 %{_prefix}/src/linux-%{version}/grsecurity
1381 %{_prefix}/src/linux-%{version}/init
1382 %{_prefix}/src/linux-%{version}/ipc
1383 %{_prefix}/src/linux-%{version}/kernel
1384 %{_prefix}/src/linux-%{version}/lib
1385 %{_prefix}/src/linux-%{version}/mm
1386 %{_prefix}/src/linux-%{version}/net
1387 %{_prefix}/src/linux-%{version}/scripts/*
1388 %exclude %{_prefix}/src/linux-%{version}/scripts/Makefile*
1389 %exclude %{_prefix}/src/linux-%{version}/scripts/basic
1390 %exclude %{_prefix}/src/linux-%{version}/scripts/*.c
1391 %exclude %{_prefix}/src/linux-%{version}/scripts/*.h
1392 %exclude %{_prefix}/src/linux-%{version}/scripts/*.sh
1393 %{_prefix}/src/linux-%{version}/sound
1394 %{_prefix}/src/linux-%{version}/security
1395 %{_prefix}/src/linux-%{version}/usr
1396 %{_prefix}/src/linux-%{version}/COPYING
1397 %{_prefix}/src/linux-%{version}/CREDITS
1398 %{_prefix}/src/linux-%{version}/MAINTAINERS
1399 %{_prefix}/src/linux-%{version}/README
1400 %{_prefix}/src/linux-%{version}/REPORTING-BUGS