]> git.pld-linux.org Git - packages/kernel.git/blame - kernel.spec
- http://download.filesystems.org/unionfs/unionfs-2.1/unionfs-2.1.4_for_2.6.22.6...
[packages/kernel.git] / kernel.spec
CommitLineData
a7313793
AM
1#
2# FOR INFORMATION ABOUT OTHER KERNELS:
3# cvs up -r KERNEL_BRANCHES_INFORMATION kernel.spec && less kernel.spec
4#
0fec42fa
AM
5# NOTE:
6# - no grsecurity (not planned, use selinux)
7# - no devfs (devfs is obsolete, use udev from HEAD)
a5585a68 8#
a5585a68 9# TODO:
0fec42fa 10# - everything
faf20802 11# - activate reiser4 in configs for platforms other than i386 w/o SMP
a5585a68
AM
12#
13# Conditional build:
14%bcond_without BOOT # don't build BOOT kernel
15%bcond_without smp # don't build SMP kernel
16%bcond_without up # don't build UP kernel
17%bcond_without source # don't build kernel-source package
a5585a68
AM
18%bcond_with verbose # verbose build (V=1)
19%bcond_with preemptive # build preemptive kernel
a5585a68
AM
20
21%{?debug:%define with_verbose 1}
22
a5585a68
AM
23%ifarch sparc
24# sparc32 is missing important updates from 2.5 cycle - won't build
25%undefine with_smp
26%endif
27%ifarch ia64
28# broken
29%undefine with_up
30%endif
31
32%ifarch i586 i686 pentium3 pentium4 athlon
33%undefine with_BOOT
34%endif
35# temporary as BOOT is not finished yet
36%undefine with_BOOT
37
38## Program required by kernel to work.
39%define _binutils_ver 2.12
40%define _util_linux_ver 2.10o
41%define _module_init_tool_ver 0.9.10
42%define _e2fsprogs_ver 1.29
43%define _jfsutils_ver 1.1.3
44%define _reiserfsprogs_ver 3.6.3
45%define _xfsprogs_ver 2.6.0
46%define _pcmcia_cs_ver 3.1.21
47%define _quota_tools_ver 3.09
48%define _PPP_ver 2.4.0
49%define _isdn4k_utils_ver 3.1pre1
50%define _nfs_utils_ver 1.0.5
51%define _procps_ver 3.2.0
52%define _oprofile_ver 0.5.3
53
a5585a68 54%define _post_ver %{nil}
98dc11ff
AM
55%define _rel 0.1
56%define _cset 0
57%define _apply_cset 0
a5585a68
AM
58
59%define _netfilter_snap 20040629
60
61%define _enable_debug_packages 0
62%define no_install_post_strip 1
63%define no_install_post_chrpath 1
64
65%define pcmcia_version 3.1.22
66%define drm_xfree_version 4.3.0
a5585a68
AM
67
68Summary: The Linux kernel (the core of the Linux operating system)
3a467bc1
JR
69Summary(de.UTF-8): Der Linux-Kernel (Kern des Linux-Betriebssystems)
70Summary(fr.UTF-8): Le Kernel-Linux (La partie centrale du systeme)
71Summary(pl.UTF-8): Jądro Linuksa
a5585a68 72Name: kernel
2f41ff84 73Version: 2.6.10%{_post_ver}
a5585a68
AM
74Release: %{_rel}
75Epoch: 3
c491b43b 76License: GPL v2
a5585a68 77Group: Base/Kernel
98dc11ff
AM
78%define _rc %{nil}
79Source0: http://ftp.kernel.org/pub/linux/kernel/v2.6/linux-%{version}%{_rc}.tar.bz2
80# Source0-md5: cffcd2919d9c8ef793ce1ac07a440eda
a5585a68 81Source1: %{name}-autoconf.h
98dc11ff 82%if "%{_apply_cset}" != "0"
a5585a68 83Source4: http://ftp.kernel.org/pub/linux/kernel/v2.6/testing/cset/cset-%{_cset}.txt.bz2
2396b66d 84# Source4-md5: 6d572bee414b6d065f90cc9824eecff3
98dc11ff 85%endif
a5585a68
AM
86
87Source20: %{name}-i386.config
88Source21: %{name}-i386-smp.config
89Source22: %{name}-x86_64.config
90Source23: %{name}-x86_64-smp.config
91Source24: %{name}-sparc.config
92Source25: %{name}-sparc-smp.config
93Source26: %{name}-sparc64.config
94Source27: %{name}-sparc64-smp.config
95Source28: %{name}-alpha.config
96Source29: %{name}-alpha-smp.config
97Source30: %{name}-ppc.config
98Source31: %{name}-ppc-smp.config
99Source32: %{name}-ia64.config
100Source33: %{name}-ia64-smp.config
101
102Source40: %{name}.FAQ-pl
103
104Source80: %{name}-netfilter.config
105Source90: %{name}-grsec.config
106Source91: %{name}-grsec+pax.config
107
f0bcaa01 108
d4448e8a
AM
109# http://kem.p.lodz.pl/~peter/qnet/
110Patch15: patch-2.6.8.1-qnet2.bz2
f0bcaa01 111
a30f1b48
AM
112Patch18: linux-kbuild-extmod.patch
113
f0bcaa01
AM
114Patch20: 2.6.1-rc2-VLAN-NS83820-lkml.patch
115Patch21: 2.6.5-3C920b-Tornado.patch
116Patch22: 2.6.5-i386-cmpxchg.patch
a5585a68 117
269cd19e
AM
118Patch30: kernel-vmalloc-reserve.patch
119
a5585a68
AM
120# suspend/resume
121# http://softwaresuspend.berlios.de/
2396b66d 122Patch500: linux-2.6-software-suspend-2.1.5.10.patch.gz
a5585a68 123
bf6838be
AM
124# http://sources.redhat.com/cluster/
125Patch550: linux-cluster-cman.patch
126Patch551: linux-cluster-dlm.patch
127Patch552: linux-cluster-gfs.patch
128Patch553: linux-cluster-gnbd.patch
129
a5585a68
AM
130URL: http://www.kernel.org/
131BuildRequires: binutils >= 2.14.90.0.7
132BuildRequires: diffutils
133%ifarch sparc sparc64
134BuildRequires: elftoaout
135%endif
136BuildRequires: module-init-tools
137BuildRequires: perl-base
772ef010 138BuildRequires: rpmbuild(macros) >= 1.213
35ddff41 139BuildRequires: sed >= 4.0
a5585a68
AM
140Autoreqprov: no
141PreReq: coreutils
142PreReq: module-init-tools >= 0.9.9
143PreReq: geninitrd >= 2.57
1251abe2 144Requires(pre): rc-scripts
a5585a68
AM
145Provides: %{name}-up = %{epoch}:%{version}-%{release}
146Provides: module-info
147Provides: %{name}(netfilter) = %{_netfilter_snap}
148Obsoletes: kernel-modules
149Conflicts: util-linux < %{_util_linux_ver}
150Conflicts: module-init-tool < %{_module_init_tool_ver}
151Conflicts: e2fsprogs < %{_e2fsprogs_ver}
152Conflicts: jfsutils < %{_jfsutils_ver}
153Conflicts: reiserfsprogs < %{_reiserfsprogs_ver}
154Conflicts: xfsprogs < %{_xfsprogs_ver}
155Conflicts: quota-tools < %{_quota_tools_ver}
156Conflicts: PPP < %{_PPP_ver}
157Conflicts: isdn4k-utils < %{_isdn4k_utils_ver}
158Conflicts: nfs-utils < %{_nfs_utils_ver}
159Conflicts: procps < %{_procps_ver}
160Conflicts: oprofile < %{_oprofile_ver}
772ef010 161ExclusiveArch: %{ix86} %{x8664} alpha ia64 ppc sparc sparc64
a5585a68
AM
162ExclusiveOS: Linux
163BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
164
165%ifarch ia64
166%define initrd_dir /boot/efi
167%else
168%define initrd_dir /boot
169%endif
170
171%description
172This package contains the Linux kernel that is used to boot and run
173your system. It contains few device drivers for specific hardware.
174Most hardware is instead supported by modules loaded after booting.
175
3a467bc1
JR
176%description -l de.UTF-8
177Das Kernel-Paket enthält den Linux-Kernel (vmlinuz), den Kern des
178Linux-Betriebssystems. Der Kernel ist für grundliegende
a5585a68 179Systemfunktionen verantwortlich: Speicherreservierung,
3a467bc1 180Prozeß-Management, Geräte Ein- und Ausgaben, usw.
a5585a68 181
3a467bc1 182%description -l fr.UTF-8
a5585a68 183Le package kernel contient le kernel linux (vmlinuz), la partie
3a467bc1
JR
184centrale d'un système d'exploitation Linux. Le noyau traite les
185fonctions basiques d'un système d'exploitation: allocation mémoire,
186allocation de process, entrée/sortie de peripheriques, etc.
a5585a68 187
3a467bc1
JR
188%description -l pl.UTF-8
189Pakiet zawiera jądro Linuksa niezbędne do prawidłowego działania
190Twojego komputera. Zawiera w sobie sterowniki do sprzętu znajdującego
191się w komputerze, takiego jak sterowniki dysków itp.
a5585a68
AM
192
193%package drm
194Summary: DRM kernel modules
3a467bc1 195Summary(pl.UTF-8): Sterowniki DRM
a5585a68
AM
196Group: Base/Kernel
197PreReq: %{name}-up = %{epoch}:%{version}-%{release}
198Requires(postun): %{name}-up = %{epoch}:%{version}-%{release}
199Provides: %{name}-drm = %{drm_xfree_version}
200Autoreqprov: no
201
202%description drm
203DRM kernel modules (%{drm_xfree_version}).
204
3a467bc1 205%description drm -l pl.UTF-8
a5585a68
AM
206Sterowniki DRM (%{drm_xfree_version}).
207
208%package pcmcia
209Summary: PCMCIA modules
3a467bc1 210Summary(pl.UTF-8): Moduły PCMCIA
a5585a68
AM
211Group: Base/Kernel
212PreReq: %{name}-up = %{epoch}:%{version}-%{release}
213Requires(postun): %{name}-up = %{epoch}:%{version}-%{release}
214Provides: %{name}-pcmcia = %{pcmcia_version}
215Provides: kernel(pcmcia)
216Conflicts: pcmcia-cs < %{_pcmcia_cs_ver}
217Autoreqprov: no
218
219%description pcmcia
220PCMCIA modules (%{pcmcia_version}).
221
3a467bc1
JR
222%description pcmcia -l pl.UTF-8
223Moduły PCMCIA (%{pcmcia_version}).
a5585a68
AM
224
225%package sound-alsa
226Summary: ALSA kernel modules
3a467bc1 227Summary(pl.UTF-8): Sterowniki dźwięku ALSA
a5585a68
AM
228Group: Base/Kernel
229PreReq: %{name}-up = %{epoch}:%{version}-%{release}
230Requires(postun): %{name}-up = %{epoch}:%{version}-%{release}
a5585a68
AM
231Autoreqprov: no
232
233%description sound-alsa
234ALSA (Advanced Linux Sound Architecture) sound drivers.
235
3a467bc1
JR
236%description sound-alsa -l pl.UTF-8
237Sterowniki dźwięku ALSA (Advanced Linux Sound Architecture).
a5585a68
AM
238
239%package sound-oss
240Summary: OSS kernel modules
3a467bc1 241Summary(pl.UTF-8): Sterowniki dźwięku OSS
a5585a68
AM
242Group: Base/Kernel
243PreReq: %{name}-up = %{epoch}:%{version}-%{release}
244Requires(postun): %{name}-up = %{epoch}:%{version}-%{release}
245Autoreqprov: no
246
247%description sound-oss
248OSS (Open Sound System) drivers.
249
3a467bc1
JR
250%description sound-oss -l pl.UTF-8
251Sterowniki dźwięku OSS (Open Sound System).
a5585a68
AM
252
253%package smp
254Summary: Kernel version %{version} compiled for SMP machines
3a467bc1
JR
255Summary(de.UTF-8): Kernel version %{version} für Multiprozessor-Maschinen
256Summary(fr.UTF-8): Kernel version %{version} compiler pour les machine Multi-Processeur
257Summary(pl.UTF-8): Jądro Linuksa w wersji %{version} dla maszyn wieloprocesorowych
a5585a68
AM
258Group: Base/Kernel
259PreReq: coreutils
260PreReq: module-init-tools >= 0.9.9
261PreReq: geninitrd >= 2.26
262Provides: %{name} = %{epoch}:%{version}-%{release}
263Provides: module-info
264Provides: %{name}(netfilter) = %{_netfilter_snap}
265Conflicts: util-linux < %{_util_linux_ver}
266Conflicts: module-init-tool < %{_module_init_tool_ver}
267Conflicts: e2fsprogs < %{_e2fsprogs_ver}
268Conflicts: jfsutils < %{_jfsutils_ver}
269Conflicts: reiserfsprogs < %{_reiserfsprogs_ver}
270Conflicts: xfsprogs < %{_xfsprogs_ver}
271Conflicts: quota-tools < %{_quota_tools_ver}
272Conflicts: PPP < %{_PPP_ver}
273Conflicts: isdn4k-utils < %{_isdn4k_utils_ver}
274Conflicts: nfs-utils < %{_nfs_utils_ver}
275Conflicts: procps < %{_procps_ver}
276Conflicts: oprofile < %{_oprofile_ver}
277Autoreqprov: no
278
279%description smp
280This package includes a SMP version of the Linux %{version} kernel. It
281is required only on machines with two or more CPUs, although it should
282work fine on single-CPU boxes.
283
3a467bc1
JR
284%description smp -l de.UTF-8
285Dieses Paket enthält eine SMP (Multiprozessor)-Version von
286Linux-Kernel %{version}. Es wird für Maschinen mit zwei oder mehr
a5585a68
AM
287Prozessoren gebraucht, sollte aber auch auf Computern mit nur einer
288CPU laufen.
289
3a467bc1 290%description smp -l fr.UTF-8
a5585a68 291Ce package inclu une version SMP du noyau de Linux version {version}.
3a467bc1
JR
292Il et nécessaire seulement pour les machine avec deux processeurs ou
293plus, il peut quand même fonctionner pour les système mono-processeur.
a5585a68 294
3a467bc1
JR
295%description smp -l pl.UTF-8
296Pakiet zawiera jądro SMP Linuksa w wersji %{version}. Jest ono
297wymagane przez komputery zawierające dwa lub więcej procesorów.
298Powinno również dobrze działać na maszynach z jednym procesorem.
a5585a68
AM
299
300%package smp-drm
301Summary: DRM SMP kernel modules
3a467bc1 302Summary(pl.UTF-8): Sterowniki DRM dla maszyn wieloprocesorowych
a5585a68
AM
303Group: Base/Kernel
304PreReq: %{name}-smp = %{epoch}:%{version}-%{release}
305Requires(postun): %{name}-smp = %{epoch}:%{version}-%{release}
306Provides: %{name}-drm = %{drm_xfree_version}
307Autoreqprov: no
308
309%description smp-drm
310DRM SMP kernel modules (%{drm_xfree_version}).
311
3a467bc1 312%description smp-drm -l pl.UTF-8
a5585a68
AM
313Sterowniki DRM dla maszyn wieloprocesorowych (%{drm_xfree_version}).
314
315%package smp-pcmcia
316Summary: PCMCIA modules for SMP kernel
3a467bc1 317Summary(pl.UTF-8): Moduły PCMCIA dla maszyn SMP
a5585a68
AM
318Group: Base/Kernel
319PreReq: %{name}-smp = %{epoch}:%{version}-%{release}
320Requires(postun): %{name}-smp = %{epoch}:%{version}-%{release}
321Provides: %{name}-pcmcia = %{pcmcia_version}
322Provides: kernel(pcmcia)
323Conflicts: pcmcia-cs < %{_pcmcia_cs_ver}
324Autoreqprov: no
325
326%description smp-pcmcia
327PCMCIA modules for SMP kernel (%{pcmcia_version}).
328
3a467bc1
JR
329%description smp-pcmcia -l pl.UTF-8
330Moduły PCMCIA dla maszyn SMP (%{pcmcia_version}).
a5585a68
AM
331
332%package smp-sound-alsa
333Summary: ALSA SMP kernel modules
3a467bc1 334Summary(pl.UTF-8): Sterowniki dźwięku ALSA dla maszyn wieloprocesorowych
a5585a68
AM
335Group: Base/Kernel
336PreReq: %{name}-smp = %{epoch}:%{version}-%{release}
337Requires(postun): %{name}-smp = %{epoch}:%{version}-%{release}
a5585a68
AM
338Autoreqprov: no
339
340%description smp-sound-alsa
341ALSA (Advanced Linux Sound Architecture) SMP sound drivers.
342
3a467bc1
JR
343%description smp-sound-alsa -l pl.UTF-8
344Sterowniki dźwięku ALSA (Advanced Linux Sound Architecture) dla maszyn
a5585a68
AM
345wieloprocesorowych.
346
347%package smp-sound-oss
348Summary: OSS SMP kernel modules
3a467bc1 349Summary(pl.UTF-8): Sterowniki dźwięku OSS dla maszyn wieloprocesorowych
a5585a68
AM
350Group: Base/Kernel
351PreReq: %{name}-smp = %{epoch}:%{version}-%{release}
352Requires(postun): %{name}-smp = %{epoch}:%{version}-%{release}
353Autoreqprov: no
354
355%description smp-sound-oss
356OSS (Open Sound System) SMP sound drivers.
357
3a467bc1 358%description smp-sound-oss -l pl.UTF-8
a5585a68
AM
359Sterowniki OSS (Open Sound System) dla maszyn wieloprocesorowych.
360
361%package BOOT
362Summary: Kernel version %{version} used on the installation boot disks
3a467bc1
JR
363Summary(de.UTF-8): Kernel version %{version} für Installationsdisketten
364Summary(fr.UTF-8): Kernel version %{version} utiliser pour les disquettes d'installation
365Summary(pl.UTF-8): Jądro Linuksa w wersji %{version} dla dyskietek startowych
a5585a68
AM
366Group: Base/Kernel
367PreReq: module-init-tools
368Autoreqprov: no
369
370%description BOOT
371This package includes a trimmed down version of the Linux %{version}
372kernel. This kernel is used on the installation boot disks only and
373should not be used for an installed system, as many features in this
374kernel are turned off because of the size constraints.
375
3a467bc1
JR
376%description BOOT -l de.UTF-8
377Dieses Paket enthält eine verkleinerte Version vom Linux-Kernel
a5585a68
AM
378version %{version}. Dieser Kernel wird auf den
379Installations-Bootdisketten benutzt und sollte nicht auf einem
380installierten System verwendet werden, da viele Funktionen wegen der
381Platzprobleme abgeschaltet sind.
382
3a467bc1
JR
383%description BOOT -l pl.UTF-8
384Pakiet zawiera jądro Linuksa dedykowane dyskietkom startowym i powinno
385być używane jedynie podczas instalacji systemu. Wiele użytecznych
386opcji zostało wyłączonych, aby jak najbardziej zmniejszyć jego
a5585a68
AM
387rozmiar.
388
389%package headers
390Summary: Header files for the Linux kernel
3a467bc1 391Summary(pl.UTF-8): Pliki nagłówkowe jądra Linuksa
a5585a68
AM
392Group: Base/Kernel
393Provides: %{name}-headers(agpgart) = %{version}
394Provides: %{name}-headers(reiserfs) = %{version}
395Provides: %{name}-headers(bridging) = %{version}
396Provides: kernel-i2c-devel
397Provides: %{name}-headers(netfilter) = %{_netfilter_snap}
398Provides: %{name}-headers(alsa-drivers)
399Obsoletes: kernel-i2c-devel
400Autoreqprov: no
401
402%description headers
403These are the C header files for the Linux kernel, which define
404structures and constants that are needed when rebuilding the kernel
405or building kernel modules.
406
3a467bc1
JR
407%description headers -l pl.UTF-8
408Pakiet zawiera pliki nagłówkowe jądra, niezbędne do rekompilacji jądra
409oraz budowania modułów jądra.
a5585a68
AM
410
411%package module-build
412Summary: Development files for building kernel modules
3a467bc1 413Summary(pl.UTF-8): Pliki służące do budowania modułów jądra
a5585a68
AM
414Group: Base/Kernel
415Requires: %{name}-headers = %{epoch}:%{version}-%{release}
416Autoreqprov: no
417
418%description module-build
419Development files from kernel source tree needed to build Linux kernel
420modules from external packages.
421
3a467bc1
JR
422%description module-build -l pl.UTF-8
423Pliki ze drzewa źródeł jądra potrzebne do budowania modułów jądra
424Linuksa z zewnętrznych pakietów.
a5585a68
AM
425
426%package source
427Summary: Kernel source tree
3a467bc1 428Summary(pl.UTF-8): Kod źródłowy jądra Linuksa
a5585a68
AM
429Group: Base/Kernel
430Requires: %{name}-module-build = %{epoch}:%{version}-%{release}
431Autoreqprov: no
432
433%description source
434This is the source code for the Linux kernel. It is required to build
435most C programs as they depend on constants defined in here. You can
436also build a custom kernel that is better tuned to your particular
437hardware.
438
3a467bc1
JR
439%description source -l de.UTF-8
440Das Kernel-Source-Paket enthält den source code (C/Assembler-Code) des
a5585a68 441Linux-Kernels. Die Source-Dateien werden gebraucht, um viele
3a467bc1
JR
442C-Programme zu compilieren, da sie auf Konstanten zurückgreifen, die
443im Kernel-Source definiert sind. Die Source-Dateien können auch
a5585a68
AM
444benutzt werden, um einen Kernel zu compilieren, der besser auf Ihre
445Hardware ausgerichtet ist.
446
3a467bc1 447%description source -l fr.UTF-8
a5585a68 448Le package pour le kernel-source contient le code source pour le noyau
3a467bc1
JR
449linux. Ces sources sont nécessaires pour compiler la plupart des
450programmes C, car il dépend de constantes définies dans le code
451source. Les sources peuvent être aussi utilisée pour compiler un noyau
452personnalisé pour avoir de meilleures performances sur des matériels
a5585a68
AM
453particuliers.
454
3a467bc1
JR
455%description source -l pl.UTF-8
456Pakiet zawiera kod źródłowy jądra systemu.
a5585a68
AM
457
458%package doc
459Summary: Kernel documentation
3a467bc1 460Summary(pl.UTF-8): Dokumentacja do jądra Linuksa
a5585a68
AM
461Group: Base/Kernel
462Provides: %{name}-doc = %{version}
463Autoreqprov: no
464
465%description doc
466This is the documentation for the Linux kernel, as found in
467/usr/src/linux/Documentation directory.
468
3a467bc1
JR
469%description doc -l pl.UTF-8
470Pakiet zawiera dokumentację do jądra Linuksa pochodzącą z katalogu
a5585a68
AM
471/usr/src/linux/Documentation.
472
473%prep
474%setup -q -n linux-%{version}%{_rc}
475
476%if "%{_apply_cset}" != "0"
477bzcat %{SOURCE4} | patch -p1 -s
7b41473f 478[ $? -ne 0 ] && exit 1
a5585a68
AM
479%endif
480
d4448e8a 481%patch15 -p1
a30f1b48 482%patch18 -p1
a5585a68
AM
483%patch20 -p1
484%patch21 -p1
485%patch22 -p1
a5585a68 486
269cd19e
AM
487%patch30 -p1
488
f0bcaa01 489%patch500 -p1
a5585a68 490
bf6838be
AM
491%patch550 -p1
492%patch551 -p1
493%patch552 -p1
494%patch553 -p1
495
a5585a68 496# Fix EXTRAVERSION in main Makefile
a6846c83 497sed -i -e 's#EXTRAVERSION =.*#EXTRAVERSION =#g' Makefile
0b5baa8d 498sed -i -e 's#CC.*$(CROSS_COMPILE)gcc#CC = $(CROSS_COMPILE)$(OURCC)#g' Makefile
a6846c83 499sed -i -e 's#\-pipe##' arch/*/Makefile
a5585a68 500
a5585a68
AM
501%build
502TuneUpConfigForIX86 () {
503%ifarch %{ix86}
504 %ifnarch i386
505 sed -i 's:CONFIG_M386=y:# CONFIG_M386 is not set:' $1
506 %endif
507 %ifarch i486
508 sed -i 's:# CONFIG_M486 is not set:CONFIG_M486=y:' $1
509 %endif
510 %ifarch i586
511 sed -i 's:# CONFIG_M586 is not set:CONFIG_M586=y:' $1
512 %endif
513 %ifarch i686
514 sed -i 's:# CONFIG_M686 is not set:CONFIG_M686=y:' $1
515 %endif
516 %ifarch pentium3
517 sed -i 's:# CONFIG_MPENTIUMIII is not set:CONFIG_MPENTIUMIII=y:' $1
518 %endif
519 %ifarch pentium4
520 sed -i 's:# CONFIG_MPENTIUM4 is not set:CONFIG_MPENTIUM4=y:' $1
521 %endif
522 %ifarch athlon
523 sed -i 's:# CONFIG_MK7 is not set:CONFIG_MK7=y:' $1
524 %endif
bf700869 525 %ifarch pentium3 pentium4 athlon
a5585a68
AM
526# kernel-i386-smp.config contains 64G support by default.
527 %if %{with up}
528 sed -i "s:CONFIG_HIGHMEM4G=y:# CONFIG_HIGHMEM4G is not set:" $1
529 sed -i "s:# CONFIG_HIGHMEM64G is not set:CONFIG_HIGHMEM64G=y\nCONFIG_X86_PAE=y:" $1
530 %endif
531 %endif
532 %ifarch i686 pentium3 pentium4
533 sed -i 's:CONFIG_MATH_EMULATION=y:# CONFIG_MATH_EMULATION is not set:' $1
534 %endif
535%endif
536}
537
538%if "%{_target_base_arch}" != "%{_arch}"
4f9fec52 539Opts="ARCH=%{_target_base_arch} CROSS_COMPILE=\"%{_target_cpu}-pld-linux-\" OURCC=\"gcc\""
a5585a68 540%else
d4448e8a 541%ifarch %{ix86} alpha sparc ppc
0b5baa8d 542Opts="OURCC=\"%{__cc}\""
d4448e8a
AM
543%endif
544%ifarch sparc64
0b5baa8d 545Opts="OURCC=\"sparc64-pld-linux-gcc\""
d4448e8a 546%endif
a5585a68
AM
547%endif
548
549BuildConfig (){
550 %{?_debug:set -x}
551 # is this a special kernel we want to build?
552 BOOT=
553 smp=
554 [ "$1" = "BOOT" -o "$2" = "BOOT" ] && BOOT=yes
555 [ "$1" = "smp" -o "$2" = "smp" ] && smp=yes
556 if [ "$smp" = "yes" ]; then
557 Config="%{_target_base_arch}-smp"
558 else
559 Config="%{_target_base_arch}"
560 fi
561 if [ "$BOOT" = "yes" ]; then
562 KernelVer=%{version}-%{release}BOOT
563 else
564 KernelVer=%{version}-%{release}$1
565 fi
566 echo "Building config file for KERNEL $1..."
567 cat $RPM_SOURCE_DIR/kernel-$Config.config > arch/%{_target_base_arch}/defconfig
568 TuneUpConfigForIX86 arch/%{_target_base_arch}/defconfig
569
570%if %{with preemptive}
571 sed -i 's:# CONFIG_PREEMPT is not set:CONFIG_PREEMPT=y:' arch/%{_target_base_arch}/defconfig
572%endif
573
574# netfilter
575 cat %{SOURCE80} >> arch/%{_target_base_arch}/defconfig
576# grsecurity
577%if !%{with pax}
578 cat %{SOURCE90} >> arch/%{_target_base_arch}/defconfig
579%else
580 cat %{SOURCE91} >> arch/%{_target_base_arch}/defconfig
581%endif
582
583 ln -sf arch/%{_target_base_arch}/defconfig .config
584 install -d $KERNEL_INSTALL_DIR/usr/src/linux-%{version}/include/linux
d4448e8a 585 %{__make} $Opts include/linux/autoconf.h
a5585a68
AM
586 if [ "$smp" = "yes" ]; then
587 install include/linux/autoconf.h \
588 $KERNEL_INSTALL_DIR/usr/src/linux-%{version}/include/linux/autoconf-smp.h
589 install .config \
590 $KERNEL_INSTALL_DIR/usr/src/linux-%{version}/config-smp
591 else
592 install include/linux/autoconf.h \
593 $KERNEL_INSTALL_DIR/usr/src/linux-%{version}/include/linux/autoconf-up.h
594 install .config \
595 $KERNEL_INSTALL_DIR/usr/src/linux-%{version}/config-up
596 fi
597}
598
599ConfigBOOT()
600{
601 Config="%{_target_base_arch}"
602 cat $RPM_SOURCE_DIR/kernel-$Config.config > arch/%{_target_base_arch}/defconfig
603%ifarch i386
604 echo "CONFIG_M386=y" >> arch/%{_target_base_arch}/defconfig
605%endif
606%ifarch i486
607 echo "CONFIG_M486=y" >> arch/%{_target_base_arch}/defconfig
608%endif
609%ifarch i386 i486 i586
610 sed -i 's/# CONFIG_MATH_EMULATION is not set/CONFIG_MATH_EMULATION=y/' \
611 arch/%{_target_base_arch}/defconfig
612%endif
613 cat <<EOF >>arch/%{_target_base_arch}/defconfig
614 # CONFIG_APM is not set
615 # CONFIG_ACPI is not set
616 # CONFIG_ACPI_BOOT is not set
617 # CONFIG_MTD is not set
618 # CONFIG_NETFILTER is not set
619 # CONFIG_WAN is not set
620 # CONFIG_ATM is not set
621 # CONFIG_HOTPLUG_PCI is not set
622 # CONFIG_NET_SCHED is not set
623 # CONFIG_X86_MCE is not set
624 # CONFIG_MTRR is not set
625 # CONFIG_PM is not set
626 # CONFIG_CPU_FREQ is not set
627 # CONFIG_DRM is not set
628 # CONFIG_FTAPE is not set
629 # CONFIG_WATCHDOG is not set
630 # CONFIG_DVB is not set
631 # CONFIG_DVB_CORE is not set
632 # CONFIG_VIDEO_DEV is not set
633 # CONFIG_SECURITY is not set
634 # CONFIG_SOUND is not set
635 # CONFIG_USB_AUDIO is not set
636 # CONFIG_INPUT_JOYSTICK is not set
637 # CONFIG_OMNIBOOK is not set
638 # CONFIG_NET_RADIO is not set
639 # CONFIG_HOTPLUG is not set
640 # CONFIG_QUOTA is not set
641 # CONFIG_REGPARM is not set
642 # CONFIG_SCSI_LOGGING is not set
643 CONFIG_PACKET=m
644 CONFIG_UNIX=m
645 # CONFIG_DEV_APPLETALK is not set
646 # CONFIG_ECONET_AUNUDP is not set
647 # CONFIG_HIPPI is not set
648 # CONFIG_TR is not set
649 # CONFIG_INPUT_MISC is not set
650 # CONFIG_INPUT_TOUCHSCREEN is not set
651 # CONFIG_PROFILING is not set
652 # CONFIG_DEBUG_KERNEL is not set
653 # CONFIG_DEBUG_SPINLOCK_SLEEP is not set
654 # CONFIG_FRAME_POINTER is not set
655 # CONFIG_LBD is not set
656 # CONFIG_SLIP is not set
657 # CONFIG_PPP is not set
658 # CONFIG_PLIP is not set
659 # CONFIG_FDDI is not set
660 # CONFIG_HAMRADIO is not set
661 # CONFIG_NETPOLL_RX is not set
662 # CONFIG_NETPOLL_TRAP is not set
663 # CONFIG_FB is not set
664EOF
665 ln -sf arch/%{_target_base_arch}/defconfig .config
666
667 install -d $KERNEL_INSTALL_DIR/usr/src/linux-%{version}/include/linux
d4448e8a 668 %{__make} $Opts include/linux/autoconf.h
a5585a68
AM
669 if [ "$smp" = "yes" ]; then
670 install include/linux/autoconf.h $KERNEL_INSTALL_DIR/usr/src/linux-%{version}/include/linux/autoconf-smp.h
671 else
672 install include/linux/autoconf.h $KERNEL_INSTALL_DIR/usr/src/linux-%{version}/include/linux/autoconf-up.h
673 fi
674}
675
676BuildKernel() {
677 %{?_debug:set -x}
678 echo "Building kernel $1 ..."
d4448e8a 679 %{__make} $Opts mrproper \
a5585a68
AM
680 RCS_FIND_IGNORE='-name build-done -prune -o'
681 ln -sf arch/%{_target_base_arch}/defconfig .config
682
683%ifarch sparc
7352b14a 684 sparc32 %{__make} $Opts clean \
a5585a68
AM
685 RCS_FIND_IGNORE='-name build-done -prune -o'
686%else
d4448e8a 687 %{__make} $Opts clean \
a5585a68
AM
688 RCS_FIND_IGNORE='-name build-done -prune -o'
689%endif
d4448e8a 690 %{__make} $Opts include/linux/version.h \
a5585a68
AM
691 %{?with_verbose:V=1}
692
693# make does vmlinux, modules and bzImage at once
694%ifarch sparc sparc64
695%ifarch sparc64
7352b14a 696 %{__make} $Opts image \
a5585a68
AM
697 %{?with_verbose:V=1}
698
7352b14a 699 %{__make} $Opts modules \
a5585a68
AM
700 %{?with_verbose:V=1}
701%else
7352b14a 702 sparc32 %{__make} $Opts \
a5585a68
AM
703 %{?with_verbose:V=1}
704%endif
705%else
beaec8c1 706 %{__make} $Opts \
a5585a68
AM
707 %{?with_verbose:V=1}
708%endif
709}
710
711PreInstallKernel (){
712 BOOT=
713 smp=
714 [ "$1" = "BOOT" -o "$2" = "BOOT" ] && BOOT=yes
715 [ "$1" = "smp" -o "$2" = "smp" ] && smp=yes
716 if [ "$smp" = "yes" ]; then
717 Config="%{_target_base_arch}-smp"
718 else
719 Config="%{_target_base_arch}"
720 fi
721 if [ "$BOOT" = "yes" ]; then
722 KernelVer=%{version}-%{release}BOOT
723 else
724 KernelVer=%{version}-%{release}$1
725 fi
726
727 mkdir -p $KERNEL_INSTALL_DIR/boot
728 install System.map $KERNEL_INSTALL_DIR/boot/System.map-$KernelVer
772ef010 729%ifarch %{ix86} %{x8664}
a5585a68
AM
730 install arch/%{_target_base_arch}/boot/bzImage $KERNEL_INSTALL_DIR/boot/vmlinuz-$KernelVer
731%endif
732%ifarch alpha sparc sparc64
733 gzip -cfv vmlinux > vmlinuz
734 install vmlinux $KERNEL_INSTALL_DIR/boot/vmlinux-$KernelVer
735 install vmlinuz $KERNEL_INSTALL_DIR/boot/vmlinuz-$KernelVer
736%ifarch sparc
737 elftoaout arch/sparc/boot/image -o vmlinux.aout
738 install vmlinux.aout $KERNEL_INSTALL_DIR/boot/vmlinux.aout-$KernelVer
739%endif
740%ifarch sparc64
741 elftoaout arch/sparc64/boot/image -o vmlinux.aout
742 install vmlinux.aout $KERNEL_INSTALL_DIR/boot/vmlinux.aout-$KernelVer
743%endif
744%endif
745%ifarch ppc
746 install vmlinux $KERNEL_INSTALL_DIR/boot/vmlinux-$KernelVer
747 install vmlinux $KERNEL_INSTALL_DIR/boot/vmlinuz-$KernelVer
748%endif
749%ifarch ia64
750 gzip -cfv vmlinux > vmlinuz
751 install -d $KERNEL_INSTALL_DIR/boot/efi
752#? install vmlinux $KERNEL_INSTALL_DIR/boot/efi/vmlinux-$KernelVer
753 install vmlinuz $KERNEL_INSTALL_DIR/boot/efi/vmlinuz-$KernelVer
754 ln -sf efi/vmlinuz-$KernelVer $KERNEL_INSTALL_DIR/boot/vmlinuz-$KernelVer
755%endif
d4448e8a 756 %{__make} $Opts modules_install \
a5585a68
AM
757 %{?with_verbose:V=1} \
758 INSTALL_MOD_PATH=$KERNEL_INSTALL_DIR \
759 KERNELRELEASE=$KernelVer
760
761 echo "CHECKING DEPENDENCIES FOR KERNEL MODULES"
762 /sbin/depmod --basedir $KERNEL_INSTALL_DIR -ae -F $KERNEL_INSTALL_DIR/boot/System.map-$KernelVer -r $KernelVer || echo
763
764 echo "KERNEL RELEASE $KernelVer DONE"
765
766}
767
768KERNEL_BUILD_DIR=`pwd`
769
e981df17 770%if %{with up}
a5585a68
AM
771# UP KERNEL
772KERNEL_INSTALL_DIR="$KERNEL_BUILD_DIR/build-done/kernel-UP"
773rm -rf $KERNEL_INSTALL_DIR
774BuildConfig
e981df17
AM
775BuildKernel
776PreInstallKernel
777%endif
a5585a68 778
e981df17 779%if %{with smp}
a5585a68
AM
780# SMP KERNEL
781KERNEL_INSTALL_DIR="$KERNEL_BUILD_DIR/build-done/kernel-SMP"
782rm -rf $KERNEL_INSTALL_DIR
783BuildConfig smp
e981df17
AM
784BuildKernel smp
785PreInstallKernel smp
786%endif
a5585a68
AM
787
788%if %{with BOOT}
789KERNEL_INSTALL_DIR="$KERNEL_BUILD_DIR/build-done/BOOT"
790rm -rf $KERNEL_INSTALL_DIR
791ConfigBOOT
792BuildKernel BOOT
793PreInstallKernel BOOT
794%endif
795
796%install
797rm -rf $RPM_BUILD_ROOT
798umask 022
799%if "%{_target_base_arch}" != "%{_arch}"
4f9fec52 800Opts="ARCH=%{_target_base_arch} CROSS_COMPILE=\"%{_target_cpu}-pld-linux-\" OURCC=\"gcc\""
a5585a68 801%else
d4448e8a 802%ifarch %{ix86} alpha sparc ppc
0b5baa8d 803Opts="OURCC=\"%{__cc}\""
d4448e8a
AM
804%endif
805%ifarch sparc64
0b5baa8d 806Opts="OURCC=\"sparc64-pld-linux-gcc\""
d4448e8a 807%endif
a5585a68
AM
808%endif
809
a11f3f79
AM
810sed -i -e 's#CC.*$(CROSS_COMPILE)$(OURCC)#CC = $(CROSS_COMPILE)gcc#g' Makefile
811
a5585a68
AM
812install -d $RPM_BUILD_ROOT%{_prefix}/src/linux-%{version}
813install -d $RPM_BUILD_ROOT/lib/modules/%{version}-%{release}{,smp}/misc
814
815install %{SOURCE40} FAQ-pl
816
817KERNEL_BUILD_DIR=`pwd`
818
819%if %{with up} || %{with smp}
820cp -a $KERNEL_BUILD_DIR/build-done/kernel-*/* $RPM_BUILD_ROOT
821%endif
822
823for i in "" smp ; do
824 if [ -e $RPM_BUILD_ROOT/lib/modules/%{version}-%{release}$i ] ; then
825 rm -f $RPM_BUILD_ROOT/lib/modules/%{version}-%{release}$i/build
826 ln -sf %{_prefix}/src/linux-%{version} \
827 $RPM_BUILD_ROOT/lib/modules/%{version}-%{release}$i/build
828 fi
829done
830
831ln -sf linux-%{version} $RPM_BUILD_ROOT%{_prefix}/src/linux
832
e981df17 833find . -maxdepth 1 ! -name "build-done" ! -name "." -exec cp -a "{}" "$RPM_BUILD_ROOT/usr/src/linux-%{version}/" ";"
a5585a68
AM
834
835cd $RPM_BUILD_ROOT%{_prefix}/src/linux-%{version}
836
d4448e8a 837%{__make} $Opts mrproper \
a5585a68
AM
838 RCS_FIND_IGNORE='-name build-done -prune -o'
839find -name "*~" -exec rm -f "{}" ";"
840find -name "*.orig" -exec rm -f "{}" ";"
841
842if [ -e $KERNEL_BUILD_DIR/build-done/kernel-UP/usr/src/linux-%{version}/include/linux/autoconf-up.h ]; then
843install $KERNEL_BUILD_DIR/build-done/kernel-UP/usr/src/linux-%{version}/include/linux/autoconf-up.h \
844 $RPM_BUILD_ROOT/usr/src/linux-%{version}/include/linux
845install $KERNEL_BUILD_DIR/build-done/kernel-UP/usr/src/linux-%{version}/config-up \
846 $RPM_BUILD_ROOT/usr/src/linux-%{version}/include/linux
847fi
848
849if [ -e $KERNEL_BUILD_DIR/build-done/kernel-SMP/usr/src/linux-%{version}/include/linux/autoconf-smp.h ]; then
850install $KERNEL_BUILD_DIR/build-done/kernel-SMP/usr/src/linux-%{version}/include/linux/autoconf-smp.h \
851 $RPM_BUILD_ROOT/usr/src/linux-%{version}/include/linux
852install $KERNEL_BUILD_DIR/build-done/kernel-SMP/usr/src/linux-%{version}/config-smp \
853 $RPM_BUILD_ROOT/usr/src/linux-%{version}/include/linux
854fi
855
856%if %{with up} || %{with smp}
857# UP or SMP
858install $KERNEL_BUILD_DIR/build-done/kernel-*/usr/src/linux-%{version}/include/linux/* \
859$RPM_BUILD_ROOT/usr/src/linux-%{version}/include/linux
860%endif
861
d4448e8a
AM
862%{__make} $Opts mrproper
863%{__make} $Opts include/linux/version.h
a5585a68
AM
864install %{SOURCE1} $RPM_BUILD_ROOT%{_prefix}/src/linux-%{version}/include/linux/autoconf.h
865
866%clean
867rm -rf $RPM_BUILD_ROOT
868
869%preun
870rm -f /lib/modules/%{version}-%{release}/modules.*
871
fb4e3822 872%pre
1251abe2
ER
873. /etc/rc.d/init.d/functions
874[ -f /etc/sysconfig/system ] && . /etc/sysconfig/system
875if is_yes "${MOUNT_BOOT_ON_INSTALL:-no}"; then
876 mount /boot >/dev/null 2>&1 || :
877 mount /boot -o remount,rw >/dev/null 2>&1 || :
878fi
fb4e3822 879
a5585a68
AM
880%post
881%ifarch ia64
882mv -f /boot/efi/vmlinuz /boot/efi/vmlinuz.old 2> /dev/null > /dev/null
883%endif
884mv -f /boot/vmlinuz /boot/vmlinuz.old 2> /dev/null > /dev/null
885mv -f /boot/System.map /boot/System.map.old 2> /dev/null > /dev/null
886%ifarch ia64
887ln -sf vmlinuz-%{version}-%{release} /boot/efi/vmlinuz
888%endif
889ln -sf vmlinuz-%{version}-%{release} /boot/vmlinuz
890ln -sf System.map-%{version}-%{release} /boot/System.map
891
892if [ ! -L /lib/modules/%{version} ] ; then
893 mv -f /lib/modules/%{version} /lib/modules/%{version}.rpmsave > /dev/null 2>&1
894fi
895rm -f /lib/modules/%{version}
896ln -snf %{version}-%{release} /lib/modules/%{version}
897%depmod %{version}-%{release}
898
899/sbin/geninitrd -f --initrdfs=rom %{initrd_dir}/initrd-%{version}-%{release}.gz %{version}-%{release}
900mv -f %{initrd_dir}/initrd %{initrd_dir}/initrd.old
901ln -sf initrd-%{version}-%{release}.gz %{initrd_dir}/initrd
902
903if [ -x /sbin/rc-boot ] ; then
904 /sbin/rc-boot 1>&2 || :
905fi
906
907%postun
908if [ -L /lib/modules/%{version} ]; then
909 if [ "`ls -l /lib/modules/%{version} | awk '{ print $10 }'`" = "%{version}-%{release}" ]; then
910 if [ "$1" = "0" ]; then
911 rm -f /lib/modules/%{version}
912 fi
913 fi
914fi
915rm -f %{initrd_dir}/initrd-%{version}-%{release}.gz
916
917%post drm
918%depmod %{version}-%{release}
919
920%postun drm
921%depmod %{version}-%{release}
922
923%post pcmcia
924%depmod %{version}-%{release}
925
926%postun pcmcia
927%depmod %{version}-%{release}
928
929%post sound-alsa
930%depmod %{version}-%{release}
931
932%postun sound-alsa
933%depmod %{version}-%{release}
934
935%post sound-oss
936%depmod %{version}-%{release}
937
938%postun sound-oss
939%depmod %{version}-%{release}
940
941%preun smp
942rm -f /lib/modules/%{version}-%{release}smp/modules.*
943
944%post smp
945%ifarch ia64
946mv -f /boot/efi/vmlinuz /boot/efi/vmlinuz.old 2> /dev/null > /dev/null
947%endif
948mv -f /boot/vmlinuz /boot/vmlinuz.old 2> /dev/null > /dev/null
949mv -f /boot/System.map /boot/System.map.old 2> /dev/null > /dev/null
950%ifarch ia64
951ln -sf vmlinuz-%{version}-%{release}smp /boot/efi/vmlinuz
952%endif
953ln -sf vmlinuz-%{version}-%{release}smp /boot/vmlinuz
954ln -sf System.map-%{version}-%{release}smp /boot/System.map
955
956if [ ! -L /lib/modules/%{version} ] ; then
957 mv -f /lib/modules/%{version} /lib/modules/%{version}.rpmsave > /dev/null 2>&1
958fi
959rm -f /lib/modules/%{version}
960ln -snf %{version}-%{release}smp /lib/modules/%{version}
961%depmod %{version}-%{release}smp
962
963/sbin/geninitrd -f --initrdfs=rom %{initrd_dir}/initrd-%{version}-%{release}smp.gz %{version}-%{release}smp
964mv -f %{initrd_dir}/initrd %{initrd_dir}/initrd.old
965ln -sf initrd-%{version}-%{release}smp.gz %{initrd_dir}/initrd
966
967if [ -x /sbin/rc-boot ] ; then
968 /sbin/rc-boot 1>&2 || :
969fi
970
971%postun smp
972if [ -L /lib/modules/%{version} ]; then
973 if [ "`ls -l /lib/modules/%{version} | awk '{ print $10 }'`" = "%{version}-%{release}smp" ]; then
974 if [ "$1" = "0" ]; then
975 rm -f /lib/modules/%{version}
976 fi
977 fi
978fi
979rm -f %{initrd_dir}/initrd-%{version}-%{release}smp.gz
980
981%post BOOT
982if [ ! -L %{_libdir}/bootdisk/lib/modules/%{version} ] ; then
983 mv -f %{_libdir}/bootdisk/lib/modules/%{version} %{_libdir}/bootdisk/lib/modules/%{version}.rpmsave
984fi
985if [ ! -L %{_libdir}/bootdisk/boot/vmlinuz-%{version} ] ; then
986 mv -f %{_libdir}/bootdisk/boot/vmlinuz-%{version} %{_libdir}/bootdisk/boot/vmlinuz-%{version}.rpmsave
987fi
988rm -f %{_libdir}/bootdisk/lib/modules/%{version}
989ln -snf %{version}-%{release}BOOT %{_libdir}/bootdisk/lib/modules/%{version}
990rm -f %{_libdir}/bootdisk/boot/vmlinuz-%{version}
991ln -snf vmlinuz-%{version}-%{release}BOOT %{_libdir}/bootdisk/boot/vmlinuz-%{version}
992
993%post smp-drm
994%depmod %{version}-%{release}smp
995
996%postun smp-drm
997%depmod %{version}-%{release}smp
998
999%post smp-pcmcia
1000%depmod %{version}-%{release}smp
1001
1002%postun smp-pcmcia
1003%depmod %{version}-%{release}smp
1004
1005%post smp-sound-alsa
1006%depmod %{version}-%{release}smp
1007
1008%postun smp-sound-alsa
1009%depmod %{version}-%{release}smp
1010
1011%post smp-sound-oss
1012%depmod %{version}-%{release}smp
1013
1014%postun smp-sound-oss
1015%depmod %{version}-%{release}smp
1016
1017%postun BOOT
1018if [ -L %{_libdir}/bootdisk/lib/modules/%{version} ]; then
1019 if [ "`ls -l %{_libdir}/bootdisk/lib/modules/%{version} | awk '{ print $10 }'`" = "%{version}-%{release}BOOT" ]; then
1020 if [ "$1" = "0" ]; then
1021 rm -f %{_libdir}/bootdisk/lib/modules/%{version}
1022 fi
1023 fi
1024fi
1025
1026%post headers
1027rm -f /usr/src/linux
1028ln -snf linux-%{version} /usr/src/linux
1029
1030%postun headers
1031if [ -L %{_prefix}/src/linux ]; then
1032 if [ "`ls -l %{_prefix}/src/linux | awk '{ print $10 }'`" = "linux-%{version}" ]; then
1033 if [ "$1" = "0" ]; then
1034 rm -f %{_prefix}/src/linux
1035 fi
1036 fi
1037fi
1038
1039%if %{with up}
1040%files
1041%defattr(644,root,root,755)
1042%doc FAQ-pl
1043%ifarch alpha ppc
1044/boot/vmlinux-%{version}-%{release}
1045%endif
1046%ifarch sparc sparc64
1047/boot/vmlinux-%{version}-%{release}
1048/boot/vmlinux.aout-%{version}-%{release}
1049%endif
1050%ifarch ia64
1051/boot/efi/vmlinuz-%{version}-%{release}
1052%endif
1053/boot/vmlinuz-%{version}-%{release}
1054/boot/System.map-%{version}-%{release}
1055%dir /lib/modules/%{version}-%{release}
1056/lib/modules/%{version}-%{release}/kernel
1057%dir /lib/modules/%{version}-%{release}/misc
1058%ifnarch sparc sparc64
1059#pcmcia stuff
1060%exclude /lib/modules/%{version}-%{release}/kernel/drivers/pcmcia
1061%exclude /lib/modules/%{version}-%{release}/kernel/drivers/*/pcmcia
1062%exclude /lib/modules/%{version}-%{release}/kernel/drivers/bluetooth/*_cs.ko*
1063%exclude /lib/modules/%{version}-%{release}/kernel/drivers/net/wireless/*_cs.ko*
1064%exclude /lib/modules/%{version}-%{release}/kernel/drivers/parport/parport_cs.ko*
1065%exclude /lib/modules/%{version}-%{release}/kernel/drivers/serial/serial_cs.ko*
1066%endif
1067%ifnarch sparc sparc64
1068#drm stuff
1069%exclude /lib/modules/%{version}-%{release}/kernel/drivers/char/drm
1070%endif
1071%ifnarch sparc sparc64
1072#oss sound stuff
1073%exclude /lib/modules/%{version}-%{release}/kernel/sound/oss
1074%endif
1075#alsa sound stuff
1076%exclude /lib/modules/%{version}-%{release}/kernel/sound/core
1077%exclude /lib/modules/%{version}-%{release}/kernel/sound/drivers
1078%ifnarch sparc sparc64
1079%exclude /lib/modules/%{version}-%{release}/kernel/sound/i2c
1080%exclude /lib/modules/%{version}-%{release}/kernel/sound/isa
1081%exclude /lib/modules/%{version}-%{release}/kernel/sound/pci
1082%exclude /lib/modules/%{version}-%{release}/kernel/sound/synth
1083%exclude /lib/modules/%{version}-%{release}/kernel/sound/usb
1084%endif
1085%ifarch sparc sparc64
1086%exclude /lib/modules/%{version}-%{release}/kernel/sound/sparc
1087%endif
1088
1089/lib/modules/%{version}-%{release}/build
1090%ghost /lib/modules/%{version}-%{release}/modules.*
1091
1092%ifnarch sparc sparc64
1093%files drm
1094%defattr(644,root,root,755)
1095/lib/modules/%{version}-%{release}/kernel/drivers/char/drm
1096%endif
1097
1098%ifnarch sparc sparc64
1099%files pcmcia
1100%defattr(644,root,root,755)
1101/lib/modules/%{version}-%{release}/kernel/drivers/pcmcia
1102/lib/modules/%{version}-%{release}/kernel/drivers/*/pcmcia
1103/lib/modules/%{version}-%{release}/kernel/drivers/bluetooth/*_cs.ko*
1104/lib/modules/%{version}-%{release}/kernel/drivers/net/wireless/*_cs.ko*
1105/lib/modules/%{version}-%{release}/kernel/drivers/parport/parport_cs.ko*
1106/lib/modules/%{version}-%{release}/kernel/drivers/serial/serial_cs.ko*
1107%endif
1108
1109%files sound-alsa
1110%defattr(644,root,root,755)
1111/lib/modules/%{version}-%{release}/kernel/sound/core
1112/lib/modules/%{version}-%{release}/kernel/sound/drivers
1113%ifnarch sparc sparc64
1114/lib/modules/%{version}-%{release}/kernel/sound/i2c
1115/lib/modules/%{version}-%{release}/kernel/sound/isa
1116/lib/modules/%{version}-%{release}/kernel/sound/pci
1117/lib/modules/%{version}-%{release}/kernel/sound/synth
1118/lib/modules/%{version}-%{release}/kernel/sound/usb
1119%endif
1120%ifarch sparc sparc64
1121/lib/modules/%{version}-%{release}/kernel/sound/sparc
1122%endif
1123
1124%ifnarch sparc sparc64
1125%files sound-oss
1126%defattr(644,root,root,755)
1127/lib/modules/%{version}-%{release}/kernel/sound/oss
1128%endif
1129%endif # %%{with up}
1130
1131%if %{with smp}
1132%files smp
1133%defattr(644,root,root,755)
1134%doc FAQ-pl
1135%ifarch alpha sparc sparc64 ppc
1136/boot/vmlinux-%{version}-%{release}smp
1137%endif
1138%ifarch ia64
1139/boot/efi/vmlinuz-%{version}-%{release}smp
1140%endif
1141/boot/vmlinuz-%{version}-%{release}smp
1142/boot/System.map-%{version}-%{release}smp
1143%dir /lib/modules/%{version}-%{release}smp
1144/lib/modules/%{version}-%{release}smp/kernel
1145%dir /lib/modules/%{version}-%{release}smp/misc
1146%ifnarch sparc sparc64
1147#pcmcia stuff
1148%exclude /lib/modules/%{version}-%{release}smp/kernel/drivers/pcmcia
1149%exclude /lib/modules/%{version}-%{release}smp/kernel/drivers/*/pcmcia
1150%exclude /lib/modules/%{version}-%{release}smp/kernel/drivers/bluetooth/*_cs.ko*
1151%exclude /lib/modules/%{version}-%{release}smp/kernel/drivers/net/wireless/*_cs.ko*
1152%exclude /lib/modules/%{version}-%{release}smp/kernel/drivers/parport/parport_cs.ko*
1153%exclude /lib/modules/%{version}-%{release}smp/kernel/drivers/serial/serial_cs.ko*
1154%endif
1155%ifnarch sparc sparc64
1156#drm stuff
1157%exclude /lib/modules/%{version}-%{release}smp/kernel/drivers/char/drm
1158%endif
1159%ifnarch sparc sparc64
1160#oss sound stuff
1161%exclude /lib/modules/%{version}-%{release}smp/kernel/sound/oss
1162%endif
1163#alsa sound stuff
1164%exclude /lib/modules/%{version}-%{release}smp/kernel/sound/core
1165%exclude /lib/modules/%{version}-%{release}smp/kernel/sound/drivers
1166%ifnarch sparc sparc64
1167%exclude /lib/modules/%{version}-%{release}smp/kernel/sound/i2c
1168%exclude /lib/modules/%{version}-%{release}smp/kernel/sound/isa
1169%exclude /lib/modules/%{version}-%{release}smp/kernel/sound/pci
1170%exclude /lib/modules/%{version}-%{release}smp/kernel/sound/synth
1171%exclude /lib/modules/%{version}-%{release}smp/kernel/sound/usb
1172%endif
1173%ifarch sparc sparc64
1174%exclude /lib/modules/%{version}-%{release}smp/kernel/sound/sparc
1175%endif
1176
1177/lib/modules/%{version}-%{release}smp/build
1178%ghost /lib/modules/%{version}-%{release}smp/modules.*
1179
1180%ifnarch sparc sparc64
1181%files smp-drm
1182%defattr(644,root,root,755)
1183/lib/modules/%{version}-%{release}smp/kernel/drivers/char/drm
1184%endif
1185
1186%ifnarch sparc sparc64
1187%files smp-pcmcia
1188%defattr(644,root,root,755)
1189/lib/modules/%{version}-%{release}smp/kernel/drivers/pcmcia
1190/lib/modules/%{version}-%{release}smp/kernel/drivers/*/pcmcia
1191/lib/modules/%{version}-%{release}smp/kernel/drivers/bluetooth/*_cs.ko*
1192/lib/modules/%{version}-%{release}smp/kernel/drivers/net/wireless/*_cs.ko*
1193/lib/modules/%{version}-%{release}smp/kernel/drivers/parport/parport_cs.ko*
1194/lib/modules/%{version}-%{release}smp/kernel/drivers/serial/serial_cs.ko*
1195%endif
1196
1197%files smp-sound-alsa
1198%defattr(644,root,root,755)
1199/lib/modules/%{version}-%{release}smp/kernel/sound/core
1200/lib/modules/%{version}-%{release}smp/kernel/sound/drivers
1201%ifnarch sparc sparc64
1202/lib/modules/%{version}-%{release}smp/kernel/sound/i2c
1203/lib/modules/%{version}-%{release}smp/kernel/sound/isa
1204/lib/modules/%{version}-%{release}smp/kernel/sound/pci
1205/lib/modules/%{version}-%{release}smp/kernel/sound/synth
1206/lib/modules/%{version}-%{release}smp/kernel/sound/usb
1207%endif
1208%ifarch sparc sparc64
1209/lib/modules/%{version}-%{release}smp/kernel/sound/sparc
1210%endif
1211
1212%ifnarch sparc sparc64
1213%files smp-sound-oss
1214%defattr(644,root,root,755)
1215/lib/modules/%{version}-%{release}smp/kernel/sound/oss
1216%endif
1217%endif # %%{with smp}
1218
1219%if %{with BOOT}
1220%files BOOT
1221%defattr(644,root,root,755)
1222%ifarch alpha sparc sparc64 ppc # arch
1223%{_libdir}/bootdisk/boot/vmlinux-%{version}-%{release}BOOT
1224%endif #arch
1225%{_libdir}/bootdisk/boot/vmlinuz-%{version}-%{release}BOOT
1226%{_libdir}/bootdisk/boot/System.map-%{version}-%{release}BOOT
1227%dir %{_libdir}/bootdisk/lib/modules/%{version}-%{release}BOOT
1228%{_libdir}/bootdisk/lib/modules/%{version}-%{release}BOOT/kernel
1229%{_libdir}/bootdisk/lib/modules/%{version}-%{release}BOOT/build
1230%ghost %{_libdir}/bootdisk/lib/modules/%{version}-%{release}BOOT/modules.*
1231%endif # %%{with BOOT}
1232
1233%files headers
1234%defattr(644,root,root,755)
1235%dir %{_prefix}/src/linux-%{version}
1236%{_prefix}/src/linux-%{version}/include
e981df17
AM
1237%{?with_smp:%{_prefix}/src/linux-%{version}/config-smp}
1238%{?with_up:%{_prefix}/src/linux-%{version}/config-up}
a5585a68
AM
1239
1240%files module-build
1241%defattr(644,root,root,755)
1242%{_prefix}/src/linux-%{version}/Makefile
1243%dir %{_prefix}/src/linux-%{version}/arch
1244%dir %{_prefix}/src/linux-%{version}/arch/*
1245%{_prefix}/src/linux-%{version}/arch/*/Makefile*
1246%dir %{_prefix}/src/linux-%{version}/arch/*/kernel
1247%{_prefix}/src/linux-%{version}/arch/*/kernel/Makefile
1248%{_prefix}/src/linux-%{version}/arch/*/kernel/asm-offsets.*
1249%{_prefix}/src/linux-%{version}/arch/*/kernel/sigframe.h
1250%dir %{_prefix}/src/linux-%{version}/scripts
1251%{_prefix}/src/linux-%{version}/scripts/Makefile*
1252%{_prefix}/src/linux-%{version}/scripts/basic
1253%{_prefix}/src/linux-%{version}/scripts/mod
1254%{_prefix}/src/linux-%{version}/scripts/*.c
1255%{_prefix}/src/linux-%{version}/scripts/*.sh
1256
1257%files doc
1258%defattr(644,root,root,755)
1259%{_prefix}/src/linux-%{version}/Documentation
1260#%%{_prefix}/src/linux-%{version}/netfilter-patch-o-matic
1261
1262%if %{with source}
1263%files source
1264%defattr(644,root,root,755)
1265%{_prefix}/src/linux-%{version}/arch/*/[!Mk]*
1266%{_prefix}/src/linux-%{version}/arch/*/kernel/[!M]*
1267%exclude %{_prefix}/src/linux-%{version}/arch/*/kernel/asm-offsets.*
1268%exclude %{_prefix}/src/linux-%{version}/arch/*/kernel/sigframe.h
1c245573 1269%{_prefix}/src/linux-%{version}/cluster
a5585a68
AM
1270%{_prefix}/src/linux-%{version}/crypto
1271%{_prefix}/src/linux-%{version}/drivers
1272%{_prefix}/src/linux-%{version}/fs
1273%if %{with grsec}
1274%{_prefix}/src/linux-%{version}/grsecurity
1275%endif
1276%{_prefix}/src/linux-%{version}/init
1277%{_prefix}/src/linux-%{version}/ipc
1278%{_prefix}/src/linux-%{version}/kernel
1279%{_prefix}/src/linux-%{version}/lib
1280%{_prefix}/src/linux-%{version}/mm
1281%{_prefix}/src/linux-%{version}/net
1282%{_prefix}/src/linux-%{version}/scripts/*
1283%exclude %{_prefix}/src/linux-%{version}/scripts/Makefile*
1284%exclude %{_prefix}/src/linux-%{version}/scripts/basic
1285%exclude %{_prefix}/src/linux-%{version}/scripts/mod
1286%exclude %{_prefix}/src/linux-%{version}/scripts/*.c
1287%exclude %{_prefix}/src/linux-%{version}/scripts/*.sh
1288%{_prefix}/src/linux-%{version}/sound
1289%{_prefix}/src/linux-%{version}/security
1290%{_prefix}/src/linux-%{version}/usr
1291%{_prefix}/src/linux-%{version}/COPYING
1292%{_prefix}/src/linux-%{version}/CREDITS
1293%{_prefix}/src/linux-%{version}/MAINTAINERS
1294%{_prefix}/src/linux-%{version}/README
1295%{_prefix}/src/linux-%{version}/REPORTING-BUGS
1296%endif
This page took 0.239655 seconds and 4 git commands to generate.