]> git.pld-linux.org Git - packages/kernel.git/blob - kernel.spec
- 2.4.25pre8
[packages/kernel.git] / kernel.spec
1 #
2 # Conditional build:
3 %bcond_without  smp             # don't build SMP kernel
4 %bcond_without  up              # don't build UP kernel
5 %bcond_without  boot            # don't build BOOT kernel
6 %bcond_without  source          # don't build source
7 %bcond_without  doc             # don't build documentation package
8 %bcond_without  grsec           # don't apply grsecurity patch
9 %bcond_with     win4lin         # apply the Win4lin patches
10 #
11 %define         base_arch %(echo %{_target_cpu} | sed 's/i.86/i386/;s/athlon/i386/;s/amd64/x86_64/')
12 %define         no_install_post_strip   1
13 %define         no_install_post_compress_modules        1
14 #
15 %define         pre_version             %{nil}
16 %define         netfilter_snap          20031209
17 %define         i2c_version             2.8.3
18 Summary:        The Linux kernel (the core of the Linux operating system)
19 Summary(de):    Der Linux-Kernel (Kern des Linux-Betriebssystems)
20 Summary(es):    Núcleo (Kernel) linux genérico
21 Summary(fr):    Le Kernel-Linux (La partie centrale du systeme)
22 Summary(ja):    Linux ¥«¡¼¥Í¥ë (Linux ¥ª¥Ú¥ì¡¼¥Æ¥£¥ó¥°¥·¥¹¥Æ¥à¤Î¿´Â¡Éôʬ)
23 Summary(pl):    J±dro Linuksa
24 Summary(pt_BR): Kernel Linux (a parte central do sistema operacional Linux)
25 Name:           kernel
26 Version:        2.4.25
27 Release:        0.3
28 License:        GPL v2
29 Group:          Base/Kernel
30 Source0:        ftp://ftp.kernel.org/pub/linux/kernel/v2.4/linux-2.4.24.tar.bz2
31 # Source0-md5:  1e055c42921b2396a559d84df4c3d9aa
32 Source1:        %{name}-autoconf.h
33 Source2:        %{name}-BuildASM.sh
34 Source3:        http://www.garloff.de/kurt/linux/dc395/dc395-141.tar.gz
35 # Source3-md5:  8ed492197244b6a772270417c66214d3
36 Source7:        http://www10.software.ibm.com/developer/opensource/jfs/project/pub/jfs-2.4-1.1.4.tar.gz
37 # Source7-md5:  ea33c28ca1d3afa448b20f337b615b48
38 Source20:       %{name}-ia32.config
39 Source21:       %{name}-ia32-smp.config
40 Source50:       %{name}-sparc.config
41 Source51:       %{name}-sparc-smp.config
42 Source60:       %{name}-sparc64.config
43 Source61:       %{name}-sparc64-smp.config
44 Source70:       %{name}-alpha.config
45 Source71:       %{name}-alpha-smp.config
46 Source73:       %{name}-ppc.config
47 Source74:       %{name}-ppc-smp.config
48 Source1000:     %{name}-addon.config
49 Source1001:     %{name}-netfilter.config
50 Source1002:     %{name}-grsec.config
51 Source2000:     %{name}-win4lin.config
52
53 # New features/updates/backports
54
55 # Essential stuff
56
57 Patch0:         patch-2.4.25-pre8.bz2
58
59 Patch1:         %{name}-pldfblogo.patch
60
61 # from ftp://ftp.kernel.org/pub/linux/kernel/people/hvr/testing/
62 Patch10:        patch-cryptoloop-jari-2.4.22-rc2.0
63 # from ftp://ftp.xs4all.nl/pub/crypto/freeswan/freeswan-*
64 Patch12:        linux-2.4.23-freeswan-2.04.patch.gz
65 Patch15:        linux-2.4.25-sched-O1.patch
66 # http://dl.sourceforge.net/user-mode-linux/uml-patch-2.4.20-6.bz2
67 Patch20:        uml-patch-2.4.20-6-21.bz2
68 Patch21:        linux-2.4.21-uml-o1.patch
69 # http://dl.sourceforge.net/user-mode-linux/host-skas3.patch
70 Patch22:        linux-2.4.20-uml-host-skas3.patch
71 # http://www.kernel.org/pub/linux/kernel/people/jgarzik/libata/
72 Patch23:        2.4.25-pre4-libata1.patch.bz2
73 # missing <linux/mm.h> include in libata-core.c (needed on alpha)
74 Patch24:        linux-2.4.23-libata1-include.patch
75
76 # New filesystems
77
78 # http://acl.bestbits.at/
79 Patch31:        linux-2.4.21-jfs-acl.patch
80 Patch32:        linux-2.4.25-ea-acl-nfsacl-2.4.23-0.8.65.diff.gz
81 # http://dl.sourceforge.net/linux-ntfs/
82 Patch40:        linux-2.4.24-ntfs-2.1.6a.patch.bz2
83 # FC01_davfs_0.2.4.patch
84 Patch50:        linux-2.4.20-davfs-0.2.4.patch.bz2
85 # FC02_davfs__FUNCTION__.patch
86 Patch55:        linux-2.4.20-davfs-_FUNCTION_.patch
87 # ftp://ftp.suse.com/pub/people/mason/patches/data-logging/2.4.23/
88 # ftp://ftp.suse.com/pub/people/jeffm/reiserfs/aclea/2.4.23/
89 Patch56:        01-reiserfs-free-blocks.diff.gz
90 Patch57:        02-akpm-b_journal_head-1.diff.gz
91 Patch58:        03-reiserfs-sync_fs-5.diff.gz
92 Patch59:        04-data-logging-40.diff.gz
93 Patch60:        05-reiserfs-quota-28.diff.gz
94 Patch61:        06-kinoded-9.diff.gz
95 Patch62:        06-write_times.diff.gz
96 Patch63:        01-reiserfs-xattrs-2.4.23+datalogging+quota-03
97 Patch64:        02-reiserfs-acl-2.4.23+datalogging+quota-03
98 # http://dl.sourceforge.net/squashfs/
99 Patch65:        squashfs1.3r3-2.4.25.patch
100 #from http://sci.felk.cvut.cz/nwd/linux/nwd-patch-2.4.19
101 Patch70:        nwd-2.4.21.patch
102 Patch80:        linux-2.4.25-intermezzo-acl.patch
103
104 # Networking
105
106 # ALWAYS use released patchomatic tarball (don't use CVS)
107 # DO NOT include patches from patch-o-matic/userspace since they cause iptables incompatibilities
108 Patch100:       linux-2.4.23-netfilter-pom-%{netfilter_snap}.patch.gz
109 Patch101:       linux-2.4.23-netfilter-IMQ-target.patch
110 # http://rnvs.informatik.uni-leipzig.de/ipp2p/index_en.html
111 # http://rnvs.informatik.uni-leipzig.de/ipp2p/downloads/ipp2p-0.5a_vs_2.4.22.diff.gz
112 Patch102:       ipp2p-0.5a_vs_2.4.22.diff.gz
113
114 # http://ebtables.sourceforge.net/
115 Patch110:       ebtables-brnf-3_vs_2.4.22.diff.gz
116 # http://trash.net/~kaber/imq/
117 Patch120:       linux-2.4.21-imq-1.diff
118 # ftp://ftp.samba.org/pub/unpacked/ppp/linux/mppe/
119 Patch125:       linux-2.4.18-mppe.patch
120 Patch130:       linux-2.4.22-tun-new-style.patch
121
122 # ATM bugfixes
123 # Patches by Chas Williams <chas@locutus.cmf.nrl.navy.mil>
124 # Included in Chas patch:
125 # http://tulipe.cnam.fr/personne/lizzi/linux/linux-2.3.99-pre6-fore200e-0.2f.tar.gz
126 # http://christophe.lizzi.free.fr/linux/linux-2.4.0-test9-fore200e-0.3.tar.gz
127 # ftp://ftp.cmf.nrl.navy.mil/pub/chas/linux-atm/
128 Patch150:       linux-2.4.21-atm_diffs.patch
129 Patch151:       ftp://ftp.cmf.nrl.navy.mil/pub/chas/linux-atm/vbr/vbr-kernel-diffs
130 Patch152:       linux-2.4.22-fore200e-0.2f.patch
131
132 # New devices/drivers
133
134 # http://people.sistina.com/~thornber/patches/2.4-stable/
135 Patch200:       linux-2.4.25-dm-3.patch
136
137 # EVMS additional patches (http://www.sourceforge.net/projects/evms/)
138 Patch205:       linux-2.4.25-evms-2.2.1.patch
139
140 #from http://dl.sourceforge.net/i810fb/linux-2.4.20-i810fb.diff.bz2
141 Patch210:       linux-2.4.21-I810FB.patch.gz
142
143 # Support for CDRW packet writing
144 Patch215:       %{name}-cdrw-packet.patch
145 Patch216:       %{name}-cd-mrw-2.patch
146 Patch225:       wrr-linux-2.4.9.patch
147 Patch226:       linux-2.4.18-esfq.diff
148 # http://l7-filter.sourceforge.net/
149 Patch227:       layer7-kernel2.4patch-v0.4.1a.patch.gz
150
151 Patch235:       linux-2.4.20-audigy.patch.bz2
152 Patch240:       linux-2.4.20-ecc.patch
153 # i2c - http://secure.netroedge.com/~lm78/
154 Patch255:       linux-2.4.25-i2c-%{i2c_version}-1.patch
155 Patch256:       linux-2.4.21-i2c-headers.patch
156 Patch257:       linux-2.4.21-i2c-sparc64.patch
157 Patch265:       linux-2.4.20-e820.patch
158 # Syntax bug
159 Patch270:       dc395-tab.patch
160 # http://www.qlogic.com/
161 Patch275:       linux-2.4.20-qla2x00-v6.04.00-fo.patch.gz
162
163 # TV stuff from http://bytesex.org/
164 Patch301:       20_v4l2-2.4.23-pre7.diff.gz
165 Patch302:       30_bt832-2.4.23-pre7.diff
166 Patch303:       30_btaudio-2.4.23-pre7.diff
167
168 # AIC7XXX
169 # based on http://people.freebsd.org/~gibbs/linux/SRC/aic79xx-linux-2.4-20031222-tar.gz
170 Patch350:       linux-2.4.24-aic79xxx-20031222.patch
171
172 # I18N stuff
173 # Adds a sysctl for controlling the default iocharset
174 Patch400:       %{name}-nls_default.patch
175
176 # ftp://ftp.suse.com/pub/people/stepan/bootsplash/kernel/
177 Patch450:       bootsplash-3.0.7-2.4.25.patch
178
179 # The following go last as they touch a lot of code
180 # and/or are on bcond and/or are ifarch
181
182 # Win4Lin
183 Patch900:       linux-2.4.20-Win4Lin.PLD.patch.bz2
184 Patch901:       linux-2.4.20-Win4Lin-mki-adapter.patch.bz2
185
186 # http://openipmi.sourceforge.net/
187 Patch950:       linux-2.4.23-ipmi-v28.patch
188
189 # Assorted bugfixes
190
191 # jam - http://giga.cps.unizar.es/~magallon/linux/kernel/
192 Patch1000:      jam-04-clone-detached.patch
193 Patch1002:      jam-06-force-inline.patch
194 Patch1003:      jam-07-scsi-error-tmout.patch
195 Patch1006:      jam-10-highpage-init.patch
196 Patch1007:      jam-11-self_exec_id.patch
197 Patch1008:      jam-15-fast-csum-D.patch
198 Patch1009:      jam-21-mem-barriers.patch
199 Patch1010:      jam-30-smptimers-A0.patch
200
201 Patch1102:      linux-2.4.20-lvm-updates.patch
202
203 # IrDA patch for broken IBM Latpops
204 Patch1104:      linux-2.4.21-irda-ibm.patch
205
206 # fix lun probing on multilun RAID chassis
207 Patch1105:      linux-2.4.12-scsi_scan.patch
208 Patch1106:      linux-scsi-debug-bug.patch
209
210 # This patch allows to create more than one sound device using alsa
211 # and devfs with two or more sound cards
212 Patch1111:      linux-sound_core.patch
213
214 # rivafb - fix for text background in 16bpp modes
215 Patch1150:      linux-rivafb16.patch
216 Patch1152:      linux-2.4.20-agp_uninorth.patch
217
218 Patch1201:      linux-2.4.21-cpqfc.patch
219 Patch1203:      linux-2.4.20-amd-golem.patch
220 Patch1205:      linux-53c7,8xx-build.fix
221 Patch1207:      linux-2.4.20-serverworks.patch
222 # this patch adds support for "io" and "irq" options in PCNet32 driver module
223 Patch1209:      linux-2.4.19-pcnet-parms.patch
224
225 # disable some networking printk's
226 Patch1250:      linux-2.4.1-netdebug.patch
227 Patch1251:      linux-2.4.2-raw-ip.patch
228 Patch1252:      linux-2.4.19-netmos_pci_parallel_n_serial.patch
229 Patch1253:      linux-proc_net_dev-counter-fix.patch
230 Patch1254:      kernel-2.4.17-netsyms-export-fix.patch
231 Patch1255:      linux-2.4.20-pre1-nr_frags.patch
232
233 Patch1301:      linux-2.4.18-hpfs.patch
234 Patch1302:      linux-2.4.18-nfs-default-size.patch
235 Patch1303:      linux-2.4.20-irixnfs.patch
236 # Tru64 NFS kludge
237 Patch1304:      linux-2.4.21-tru64nfs.patch
238 Patch1305:      linux-2.4.21-nfs-silly-rename.patch
239
240 Patch1350:      linux-2.4.21-nousb.patch
241 # from http://www.noc.uoa.gr/~avel/page.php?page=nokia&lang=en
242 Patch1354:      linux-2.4.20-Nokia5510.patch
243
244 # raid5 xor fix for PIII/P4, should go away shortly
245 Patch1400:      linux-2.4.0-raid5xor.patch
246 Patch1401:      linux-2.4.0-nonintconfig.patch
247 # Add an ioctl to the block layer so we can be EFI compliant
248 Patch1402:      linux-2.4.2-blkioctl-sector.patch
249 Patch1403:      linux-2.4.3-pcipenalty.patch
250 Patch1405:      linux-2.4.7-suspend.patch
251 Patch1407:      kernel-Makefile-include-fix.patch
252 Patch1408:      kernel-pswscancode.patch
253 Patch1410:      linux-2.4.18-input-35215.patch
254 Patch1411:      linux-2.4.18-kiobuf.patch
255 Patch1413:      linux-2.4.22-andrea-9980_fix-pausing-6.patch
256 Patch1414:      linux-2.4.21-oopsmeharder.patch
257 Patch1415:      linux-mtd-missing-include-fix-2.4.7-pre6.patch
258 Patch1416:      linux-2.4.21-no-FPU.patch
259 Patch1418:      linux-2.4.21-hpt372-chicken-egg-hack.patch
260 Patch1419:      linux-2.4.21-agp-num_of_masks.patch
261 # fix spare disk counting for raid 5
262 Patch1420:      linux-raid5-spare-counting.patch
263 Patch1421:      linux-2.4.21-bttv-typo.patch
264
265 Patch2000:      linux-PPC-SMP.patch
266 Patch2001:      linux-2.4-ppc-procesor.patch
267 Patch2002:      kernel-2.4.18-SPARC64-PLD.patch
268 Patch2003:      linux-2.4.20-AXP-avma1_cs.patch
269 Patch2004:      linux-2.4.22-ppc-amd8111e.patch
270
271 Patch3000:      linux-2.4.1-compilefailure.patch
272 Patch3002:      linux-2.4.20-EXPORT_SYMBOL.patch
273 Patch3003:      linux-2.4.20-missing-license-tags.patch
274 Patch3004:      linux-2.4.20-sym53c8xx_old.patch
275 Patch3008:      linux-drm-4.2.0-force-cmpxchg.patch
276 Patch3010:      linux-2.4.21-ipsec-sparc64.patch
277 Patch3011:      linux-2.4.22-gcc33-inline.patch
278 Patch3012:      linux-2.4.22-gcc-ext3.patch
279 Patch3013:      linux-2.4.23-ppc-symbols.patch
280
281 # Security patches/fixes
282
283 # modified http://www.hardrock.org/kernel/current-updates/linux-2.4.23-updates.patch
284 # since we already have some of these fixes applied
285 #Patch3500:     http://www.hardrock.org/kernel/current-updates/linux-2.4.24-updates.patch
286 Patch3600:      linux-2.4-sysctl-empty.patch
287 Patch4000:      grsecurity-2.0-rc4-2.4.25-O1.patch
288
289 ExclusiveOS:    Linux
290 URL:            http://www.kernel.org/
291 %ifarch         %{ix86}
292 BuildRequires:  bin86
293 %endif
294 #BuildRequires: %{kgcc_package}
295 BuildRequires:  modutils
296 BuildRequires:  ed
297 PreReq:         modutils
298 PreReq:         geninitrd >= 1354
299 Requires(post,postun):  fileutils
300 Requires(postun):       awk
301 Provides:       %{name}-up = %{version}-%{release}
302 Provides:       module-info
303 Provides:       i2c = %{i2c_version}
304 Provides:       bttv = 0.7.83
305 Provides:       %{name}(netfilter) = 1.2.9-%{netfilter_snap}
306 Provides:       %{name}(reiserfs) = %{version}
307 Provides:       %{name}(agpgart) = %{version}
308 #Provides:      %{name}(cdrw)
309 #Provides:      %{name}(cdmrw)
310 AutoReqProv:    no
311 Obsoletes:      kernel-modules
312 Conflicts:      iptables < 1.2.9
313 Conflicts:      lvm < 1.0.4
314 Conflicts:      xfsprogs < 2.1.0
315 Conflicts:      reiserfsprogs < 3.6.3
316 Conflicts:      e2fsprogs < 1.25
317 Conflicts:      jfsutils < 1.0.12
318 Conflicts:      util-linux < 2.10o
319 Conflicts:      modutils < 2.4.2
320 Conflicts:      quota < 3.06
321 Conflicts:      linux-atm < 2.4.1
322 Conflicts:      device-mapper < 1.00.05
323 ExclusiveArch:  %{ix86} sparc sparc64 alpha ppc
324 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
325
326 %description
327 This package contains the Linux kernel that is used to boot and run
328 your system. It contains few device drivers for specific hardware.
329 Most hardware is instead supported by modules loaded after booting.
330
331 %description -l de
332 Das Kernel-Paket enthält den Linux-Kernel (vmlinuz), den Kern des
333 Linux-Betriebssystems. Der Kernel ist für grundliegende
334 Systemfunktionen verantwortlich: Speicherreservierung,
335 Prozeß-Management, Geräte Ein- und Ausgaben, usw.
336
337 %description -l es
338 Este paquete contiene núcleo (kernel) Linux que se usa para arranque y
339 funcionamiento de tu sistema. Contiene soporte a pocos hardwares
340 específicos. La mayoría de los hardwares son soportados, vía módulos
341 que se cargan después del arranque.
342
343 %description -l fr
344 Le package kernel contient le kernel linux (vmlinuz), la partie
345 centrale d'un système d'exploitation Linux. Le noyau traite les
346 fonctions basiques d'un système d'exploitation: allocation mémoire,
347 allocation de process, entrée/sortie de peripheriques, etc.
348
349 %description -l ja
350 kernel ¥Ñ¥Ã¥±¡¼¥¸¤Ë¤Ï¡¤Red Hat Linux ¥ª¥Ú¥ì¡¼¥Æ¥£¥ó¥°¥·¥¹¥Æ¥à¤Î¿´Â¡Éôʬ
351 ¤È¤â¸À¤¨¤ë Linux ¥«¡¼¥Í¥ë (vmlinuz) ¤¬´Þ¤Þ¤ì¤Æ¤¤¤Þ¤¹¡¥
352 ¥«¡¼¥Í¥ë¤Ï¡¤¥á¥â¥ê´ÉÍý¡¤¥×¥í¥»¥¹´ÉÍý¡¤¥Ç¥Ð¥¤¥¹¤ÎÆþ½ÐÎÏÅù¡¤¥ª¥Ú¥ì¡¼¥Æ¥£¥ó¥°
353 ¥·¥¹¥Æ¥à¤Î´ðËÜŪ¤ÊÉôʬ¤ò»Ê¤ê¤Þ¤¹¡¥
354
355 %description -l pl
356 Pakiet zawiera j±dro Linuksa niezbêdne do prawid³owego dzia³ania
357 Twojego komputera. Zawiera w sobie sterowniki do sprzêtu znajduj±cego
358 siê w komputerze, takich jak karty muzyczne, sterowniki dysków, etc.
359
360 %description -l pt_BR
361 Este pacote contém o kernel Linux que é usado para inicialização
362 e funcionamento de seu sistema. Contém suporte a poucos hardwares
363 específicos. A maioria dos hardwares são suportados via módulos
364 que são carregados após a inicialização.
365
366 %package smp
367 Summary:        Kernel version %{version} compiled for SMP machines
368 Summary(de):    Kernel version %{version} für Multiprozessor-Maschinen
369 Summary(es):    Núcleo (kernel) compilado para máquinas SMP
370 Summary(fr):    Kernel version %{version} compiler pour les machine Multi-Processeur
371 Summary(ja):    SMP (ÂоΥޥë¥Á¥×¥í¥»¥Ã¥·¥ó¥°) Âбþ Linux ¥«¡¼¥Í¥ë
372 Summary(pl):    J±dro Linuksa %{version} skompilowane dla maszyn wieloprocesorowych
373 Summary(pt_BR): Kernel compilado para máquinas SMP
374 Group:          Base/Kernel
375 PreReq:         modutils
376 PreReq:         geninitrd >= 2.21
377 Requires(post,postun):  fileutils
378 Requires(postun):       awk
379 Provides:       %{name}-smp = %{version}-%{release}
380 Provides:       module-info
381 Provides:       i2c = %{i2c_version}
382 Provides:       bttv = 0.7.83
383 Provides:       %{name}(netfilter) = 1.2.9-%{netfilter_snap}
384 Provides:       %{name}(reiserfs) = %{version}
385 Provides:       %{name}(agpgart) = %{version}
386 #Provides:      %{name}(cdrw)
387 #Provides:      %{name}(cdmrw)
388 AutoReqProv:    no
389 Conflicts:      iptables < 1.2.9
390 Conflicts:      lvm < 1.0.4
391 Conflicts:      xfsprogs < 2.1.0
392 Conflicts:      reiserfsprogs < 3.6.3
393 Conflicts:      e2fsprogs < 1.25
394 Conflicts:      jfsutils < 1.0.12
395 Conflicts:      util-linux < 2.10o
396 Conflicts:      modutils < 2.4.2
397 Conflicts:      quota < 3.06
398 Conflicts:      linux-atm < 2.4.1
399 Conflicts:      device-mapper < 1.00.05
400
401 %description smp
402 This package includes a SMP version of the Linux %{version} kernel. It
403 is required only on machines with two or more CPUs, although it should
404 work fine on single-CPU boxes.
405
406 %description smp -l de
407 Dieses Paket enthält eine SMP (Multiprozessor)-Version von
408 Linux-Kernel %{version}. Es wird für Maschinen mit zwei oder mehr
409 Prozessoren gebraucht, sollte aber auch auf Computern mit nur einer
410 CPU laufen.
411
412 %description smp -l es
413 Núcleo (kernel) compilado para máquinas SMP
414
415 %description smp -l fr
416 Ce package inclu une version SMP du noyau de Linux version %{version}.
417 Il et nécessaire seulement pour les machine avec deux processeurs ou
418 plus, il peut quand même fonctionner pour les système mono-processeur.
419
420 %description smp -l ja
421 ¤³¤Î¥Ñ¥Ã¥±¡¼¥¸¤Ë¤Ï SMP ÈǤΠLinux ¥«¡¼¥Í¥ë¤¬¼ý¤á¤é¤ì¤Æ¤¤¤Þ¤¹¡¥
422 ¤³¤Î¥«¡¼¥Í¥ë¤Ï 2¸Ä°Ê¾å¤Î CPU ¤òÅëºÜ¤·¤¿¥Þ¥·¥ó¤Ë¤Î¤ßɬÍפȤʤê¤Þ¤¹¤¬¡¤
423 1CPU ¤Î¥Þ¥·¥ó¤Ç¤âÌäÂê¤Ê¤¯Æ°ºî¤·¤Þ¤¹¡¥
424
425 ¤¢¤Ê¤¿¤Î¥Þ¥·¥ó¤¬ 2¸Ä°Ê¾å¤Î CPU ¤òÅëºÜ¤·¤Æ¤¤¤ë¾ì¹ç¤Ï
426 kernel-smp ¥Ñ¥Ã¥±¡¼¥¸¤ò¥¤¥ó¥¹¥È¡¼¥ë¤·¤Æ¤¯¤À¤µ¤¤¡¥
427
428 %description smp -l pl
429 Pakiet zawiera j±dro SMP Linuksa w wersji %{version}. Jest ono
430 wymagane przez komputery zawieraj±ce dwa lub wiêcej procesorów.
431 Powinno równie¿ dobrze dzia³aæ na maszynach z jednym procesorem.
432
433 %description smp -l pt_BR
434 Este pacote inclui uma versão SMP do kernel Linux versão %{version}.
435 Ele deve ser utilizado apenas em máquinas com dois ou mais processadores,
436 apesar de trabalhar perfeitamente em máquinas com apenas um processador.
437
438 %package BOOT
439 Summary:        Kernel version %{version} used on the installation boot disks
440 Summary(de):    Kernel version %{version} für Installationsdisketten
441 Summary(es):    Núcleo (kernel) de Linux, utilizado en el disco de instalación
442 Summary(fr):    Kernel version %{version} utiliser pour les disquettes d'installation
443 Summary(ja):    ¥¤¥ó¥¹¥È¡¼¥éµ¯Æ°¥Ç¥£¥¹¥¯¤Ç»È¤ï¤ì¤ë Linux ¥«¡¼¥Í¥ë
444 Summary(pl):    J±dro Linuksa %{version} dla bootkietek instalacyjnych
445 Summary(pt_BR): Kernel Linux utilizado no disco de instalação
446 Group:          Base/Kernel
447 PreReq:         modutils
448 Requires(post,postun):  fileutils
449 Requires(postun):       awk
450 AutoReqProv:    no
451
452 %description BOOT
453 This package includes a trimmed down version of the Linux %{version}
454 kernel. This kernel is used on the installation boot disks only and
455 should not be used for an installed system, as many features in this
456 kernel are turned off because of the size constraints.
457
458 %description BOOT -l de
459 Dieses Paket enthält eine verkleinerte Version vom Linux-Kernel
460 version %{version}. Dieser Kernel wird auf den
461 Installations-Bootdisketten benutzt und sollte nicht auf einem
462 installierten System verwendet werden, da viele Funktionen wegen der
463 Platzprobleme abgeschaltet sind.
464
465 %description BOOT -l es
466 Núcleo (kernel) de Linux, utilizado en el disco de instalación
467
468 %description BOOT -l ja
469 ¤³¤Î¥Ñ¥Ã¥±¡¼¥¸¤Ë¤Ï;ʬ¤Êµ¡Ç½¤òºï¤êÍ¤Æ¥µ¥¤¥º¤ò¾®¤µ¤¯¤·¤¿
470 Linux ¥«¡¼¥Í¥ë¤¬¼ý¤á¤é¤ì¤Æ¤¤¤Þ¤¹¡¥¤³¤Î¥«¡¼¥Í¥ë¤Ï¥¤¥ó¥¹¥È¡¼¥é
471 µ¯Æ°¥Ç¥£¥¹¥¯¤Ë»È¤ï¤ì¤ë¤â¤Î¤Ç¡¤´û¤Ë¥¤¥ó¥¹¥È¡¼¥ë¤¬½ª¤Ã¤¿¥·¥¹¥Æ¥à¾å¤Ç
472 »È¤¦°Ù¤Î¤â¤Î¤Ç¤¢¤ê¤Þ¤»¤ó¡¥¥µ¥¤¥º¤ò¾®¤µ¤¯¤¹¤ë°Ù¤Ë¿¤¯¤Îµ¡Ç½¤¬
473 ºï¤é¤ì¤Æ¤¤¤ë¤«¤é¤Ç¤¹¡¥
474
475 %description BOOT -l pl
476 Pakiet zawiera j±dro Linuksa dedykowane dyskietkom startowym i powinno
477 byæ u¿ywane jedynie podczas instalacji systemu. Wiele u¿ytecznych
478 opcji zosta³o wy³±czonych, aby jak najbardziej zmniejszyæ jego
479 rozmiar.
480
481 %description BOOT -l pt_BR
482 Este pacote inclui uma versão minimizada do kernel Linux, criada para
483 ser utilizada *apenas* no disco de instalação, e não deve ser utilizada
484 em máquinas já instaladas, pois várias características do kernel
485 são desabilitadas para diminuir o tamanho final do kernel a ser utilizado.
486
487 %package pcmcia
488 Summary:        PCMCIA modules
489 Summary(pl):    Modu³y PCMCIA
490 Group:          Base/Kernel
491 PreReq:         %{name}-up = %{version}-%{release}
492 Requires(postun):       %{name}-up = %{version}-%{release}
493 Provides:       kernel(pcmcia)
494
495 %description pcmcia
496 Kernel PCMCIA modules.
497
498 %description pcmcia -l pl
499 Modu³y PCMCIA z kernela.
500
501 %package smp-pcmcia
502 Summary:        PCMCIA modules for SMP kernel
503 Summary(pl):    Modu³y PCMCIA dla maszyn SMP
504 Group:          Base/Kernel
505 PreReq:         %{name}-smp = %{version}-%{release}
506 Requires(postun):       %{name}-smp = %{version}-%{release}
507 Provides:       kernel(pcmcia)
508
509 %description smp-pcmcia
510 Kernel PCMCIA modules for SMP kernel.
511
512 %description smp-pcmcia -l pl
513 Modu³y PCMCIA z kernela dla maszyn SMP.
514
515 %package drm
516 Summary:        DRM kernel modules
517 Summary(pl):    Sterowniki DRM
518 Group:          Base/Kernel
519 PreReq:         %{name}-up = %{version}-%{release}
520 Requires(postun):       %{name}-up = %{version}-%{release}
521 Provides:       %{name}-drm = %{drm_xfree_version}
522
523 %description drm
524 DRM kernel modules (%{drm_xfree_version}).
525
526 %description drm -l pl
527 Sterowniki DRM (%{drm_xfree_version}).
528
529 %package smp-drm
530 Summary:        DRM SMP kernel modules
531 Summary(pl):    Sterowniki DRM dla maszyn wieloprocesorowych
532 Group:          Base/Kernel
533 PreReq:         %{name}-smp = %{version}-%{release}
534 Requires(postun):       %{name}-smp = %{version}-%{release}
535 Provides:       %{name}-drm = %{drm_xfree_version}
536
537 %description smp-drm
538 DRM SMP kernel modules (%{drm_xfree_version}).
539
540 %description smp-drm -l pl
541 Sterowniki DRM dla maszyn wieloprocesorowych (%{drm_xfree_version}).
542
543 %package headers
544 Summary:        Header files for the Linux kernel
545 Summary(es):    Archivos de inclusión para núcleo (kernel) Linux.
546 Summary(ja):    Linux ¥«¡¼¥Í¥ë¤Î¥Ø¥Ã¥À¥Õ¥¡¥¤¥ë
547 Summary(pl):    Pliki nag³ówkowe j±dra
548 Summary(pt_BR): Arquivos de inclusão para o kernel Linux.
549 Group:          Base/Kernel
550 Requires(post,postun):  fileutils
551 Requires(postun):       awk
552 Provides:       %{name}-headers(agpgart) = %{version}
553 Provides:       %{name}-headers(reiserfs) = %{version}
554 Provides:       %{name}-headers(bridging) = %{version}
555 Provides:       kernel-i2c-devel = %{i2c_version}
556 Provides:       %{name}-headers(netfilter) = 1.2.9-%{netfilter_snap}
557 Obsoletes:      kernel-i2c-devel
558 AutoReqProv:    no
559
560 %description headers
561 These are the C header files for the Linux kernel, which define
562 structures and constants that are needed when building most standard
563 programs under Linux, as well as to rebuild the kernel.
564
565 %description headers -l es
566 Estos son los archivos de inclusión C para núcleo (kernel) Linux, que define
567 estructuras y constantes que son necesarias a la construcción de la
568 mayoría de los programas en el Linux, como también para reconstruir
569 el núcleo (kernel).
570
571 %description headers -l ja
572 kernel-headers ¥Ñ¥Ã¥±¡¼¥¸¤Ë¤Ï Linux ¥«¡¼¥Í¥ë¤Î C ¥Ø¥Ã¥À¥Õ¥¡¥¤¥ë¤¬
573 ¼ý¤á¤é¤ì¤Æ¤¤¤Þ¤¹¡¥¥Ø¥Ã¥À¥Õ¥¡¥¤¥ë¤Ë¤Ï¡¤Â¿¤¯¤Î¥×¥í¥°¥é¥à¤ò¥³¥ó¥Ñ¥¤¥ë
574 ¤¹¤ëºÝ¡¤°¿¤¤¤Ï¥«¡¼¥Í¥ë¤òºÆ¹½ÃÛ¤¹¤ë¤Î¤ËɬÍפʹ½Â¤¤äÀ©Ìó¤¬ÄêµÁ¤µ¤ì¤Æ¤¤¤Þ¤¹¡¥
575
576 %description headers -l pl
577 Pakiet zawiera pliki nag³ówkowe j±dra, niezbêdne do rekompilacji j±dra
578 oraz niektórych programów.
579
580 %description headers -l pt_BR
581 Estes são os arquivos de inclusão C para o kernel Linux, os
582 quais definem estruturas e constantes que são necessárias para
583 a construção da maioria dos programas no Linux, bem como para
584 reconstruir o próprio kernel.
585
586 %package source
587 Summary:        Kernel source tree
588 Summary(es):    Fuentes del núcleo (kernel) Linux
589 Summary(ja):    Linux ¥«¡¼¥Í¥ë¤Î¥½¡¼¥¹¥³¡¼¥É
590 Summary(pl):    Kod ¼ród³owy j±dra Linuksa
591 Summary(pt_BR): Fontes do kernel Linux
592 Group:          Base/Kernel
593 Requires:       %{name}-headers = %{version}-%{release}
594 %ifarch %{ix86}
595 Requires:       bin86
596 %endif
597 AutoReqProv:    no
598
599 %description source
600 This is the source code for the Linux kernel. It is required to build
601 most C programs as they depend on constants defined in here. You can
602 also build a custom kernel that is better tuned to your particular
603 hardware.
604
605 %description source -l de
606 Das Kernel-Source-Paket enthält den source code (C/Assembler-Code) des
607 Linux-Kernels. Die Source-Dateien werden gebraucht, um viele
608 C-Programme zu compilieren, da sie auf Konstanten zurückgreifen, die
609 im Kernel-Source definiert sind. Die Source-Dateien können auch
610 benutzt werden, um einen Kernel zu compilieren, der besser auf Ihre
611 Hardware ausgerichtet ist.
612
613 %description source -l es
614 Este es el fuente para el núcleo (kernel) Linux. Se necesita para la
615 construcción de la mayoría de los programas C, pues dependen de
616 constantes definidas en él. Tu puedes también construir un núcleo (kernel)
617 personalizado que será lo mejor configurado para tu hardware en
618 particular.
619
620 %description source -l fr
621 Le package pour le kernel-source contient le code source pour le noyau
622 linux. Ces sources sont nécessaires pour compiler la plupart des
623 programmes C, car il dépend de constantes définies dans le code
624 source. Les sources peuvent être aussi utilisée pour compiler un noyau
625 personnalisé pour avoir de meilleures performances sur des matériels
626 particuliers.
627
628 %description source -l ja
629 kernel-source ¥Ñ¥Ã¥±¡¼¥¸¤Ë¤Ï Linux ¥«¡¼¥Í¥ë¤Î¥½¡¼¥¹¥³¡¼¥É¤¬´Þ¤Þ¤ì¤Æ
630 ¤¤¤Þ¤¹¡¥¥«¡¼¥Í¥ë¤Î¥½¡¼¥¹¥³¡¼¥É¤Ï¿¤¯¤Î C ¥×¥í¥°¥é¥à¤ÎºîÀ®¤ËɬÍפǤ¹¡¥
631 ¥«¡¼¥Í¥ë¤Î¥½¡¼¥¹¥³¡¼¥É¤ËÄêµÁ¤µ¤ì¤Æ¤¤¤ëÀ©¸Â¤Ë°Í¸¤¹¤ë¤³¤È¤¬¤¢¤ë¤«¤é¤Ç¤¹¡¥
632 ¤³¤Î¥½¡¼¥¹¥³¡¼¥É¤ò»È¤Ã¤Æ¡¤¤¢¤Ê¤¿¤Î¥·¥¹¥Æ¥à¸þ¤±¤Ë¥Á¥å¡¼¥ó¥¢¥Ã¥×¤·¤¿
633 ¥«¥¹¥¿¥à¥«¡¼¥Í¥ë¤òºîÀ®¤¹¤ë¤³¤È¤â¤Ç¤­¤Þ¤¹¡¥
634
635 %description source -l pl
636 Pakiet zawiera kod ¼ród³owy j±dra systemu.
637
638 %description source -l pt_BR
639 Este é o fonte para o kernel Linux. É necessário para a
640 construção da maioria dos programas C, pois eles dependem de
641 constantes definidas nele. Você também pode construir um kernel
642 personalizado que será melhor configurado para seu hardware particular.
643
644 %package doc
645 Summary:        Kernel documentation
646 Summary(es):    Documentación para los archivos fuente del núcleo (kernel) de Linux
647 Summary(ja):    ¥«¡¼¥Í¥ë¥½¡¼¥¹¤Ë´Þ¤Þ¤ì¤ëÍÍ¡¹¤Ê¥É¥­¥å¥á¥ó¥È
648 Summary(pl):    Dokumentacja do j±dra Linuksa
649 Summary(pt_BR): Documentação para os arquivos fontes do kernel Linux
650 Group:          Base/Kernel
651 Provides:       %{name}-doc = %{version}
652 AutoReqProv:    no
653
654 %description doc
655 This is the documentation for the Linux kernel, as found in
656 /usr/src/linux/Documentation directory.
657
658 %description doc -l es
659 Documentación para los archivos fuente del núcleo (kernel) de Linux
660
661 %description doc -l ja
662 ¤³¤Î¥Ñ¥Ã¥±¡¼¥¸¤Ë¤Ï¥«¡¼¥Í¥ë¥½¡¼¥¹¤Ë´Þ¤Þ¤ì¤Æ¤¤¤ë¥É¥­¥å¥á¥ó¥È¤¬
663 ¼ý¤á¤é¤ì¤Æ¤¤¤Þ¤¹¡¥Linux ¥«¡¼¥Í¥ë¤ä¥Ç¥Ð¥¤¥¹¥É¥é¥¤¥Ð¤Ë´Ø¤¹¤ëÍÍ¡¹¤Ê
664 ¾ðÊ󤬤³¤Î¥É¥­¥å¥á¥ó¥È¤Ë¤Ïµ­¤µ¤ì¤Æ¤¤¤Þ¤¹¡¥
665
666 Linux ¥«¡¼¥Í¥ë¥â¥¸¥å¡¼¥ë¤òÆɤ߹þ¤àºÝ¤Î°ú¿ô¤òÄ´¤Ù¤¿¤¤¾ì¹çÅù¡¤
667 ¤³¤Î¥Ñ¥Ã¥±¡¼¥¸¤ò¥¤¥ó¥¹¥È¡¼¥ë¤¹¤ë¤ÈÎɤ¤¤Ç¤·¤ç¤¦¡¥
668
669 %description doc -l pl
670 Pakiet zawiera dokumentacjê j±dra z katalogu
671 /usr/src/linux/Documentation.
672
673 %description doc -l pt_BR
674 Este pacote contém documentação para o kernel Linux.
675
676 %prep
677 %setup -q -a3 -n linux-2.4.24
678 # new JFS
679 rm -fr fs/jfs
680 gzip -dc %{SOURCE7} | tar -xf -
681 %patch0 -p1
682 %patch1 -p1
683 %patch10 -p1
684 %patch12 -p1
685 %patch15 -p1
686 %patch20 -p1
687 %patch21 -p1
688 # drop it?
689 #%patch22 -p1
690 %patch23 -p1
691 %patch24 -p1
692 %patch32 -p1
693 # XXX: TODO - update patch?
694 #%patch31 -p1
695 %patch40 -p1
696 %patch50 -p1
697 %patch55 -p1
698 %patch56 -p1
699 %patch57 -p1
700 %patch58 -p1
701 %patch59 -p1
702 %patch60 -p1
703 %patch61 -p1
704 %patch62 -p1
705 %patch63 -p1
706 %patch64 -p1
707 %patch65 -p1
708 %patch70 -p1
709 %patch80 -p1
710 %patch100 -p1
711 %patch101 -p1
712 %patch102 -p1
713 %patch110 -p1
714 %patch120 -p1
715 %patch125 -p1
716 %patch130 -p1
717 # ???
718 #%patch150 -p1
719 %patch151 -p1
720 %patch152 -p1
721 %patch200 -p1
722 %patch205 -p1
723 %patch210 -p1
724 # mtrainer, problematic with some LG cdroms
725 #%patch215 -p1
726 #%patch216 -p1
727 %patch225 -p1
728 %patch226 -p1
729 %patch227 -p1
730 %patch235 -p1
731 %patch240 -p1
732 %patch255 -p1
733 %patch256 -p1
734 %patch257 -p1
735 %patch265 -p1
736 %patch275 -p1
737 %patch301 -p1
738 %patch302 -p1
739 %patch303 -p1
740 %patch350 -p1
741 %patch400 -p1
742 %patch950 -p1
743 %patch1000 -p1
744 %patch1002 -p1
745 %patch1003 -p1
746 %patch1006 -p1
747 %patch1007 -p1
748 # broken on SMP machines!
749 #%patch1008 -p1
750 %patch1009 -p1
751 %patch1010 -p1
752 %patch1102 -p1
753 %patch1104 -p0
754 %patch1105 -p1
755 %patch1106 -p0
756 %patch1111 -p1
757 %patch1150 -p1
758 %patch1152 -p1
759 %patch1201 -p1
760 %patch1203 -p1
761 %patch1205 -p1
762 %patch1207 -p1
763 %patch1209 -p1
764 %patch1250 -p1
765 %patch1251 -p1
766 %patch1252 -p1
767 %patch1253 -p1
768 %patch1254 -p0
769 %patch1255 -p1
770 %patch1301 -p1
771 %patch1302 -p1
772 %patch1303 -p1
773 %patch1304 -p1
774 %patch1305 -p1
775 %patch1350 -p1
776 %patch1354 -p1
777 %patch1400 -p1
778 %patch1401 -p1
779 %patch1402 -p1
780 %patch1403 -p1
781 %patch1405 -p1
782 %patch1407 -p1
783 %patch1408 -p1
784 %patch1410 -p1
785 %patch1411 -p1
786 %patch1413 -p1
787 %patch1414 -p1
788 %patch1415 -p0
789 %patch1416 -p1
790 %patch1418 -p1
791 %patch1419 -p1
792 %patch1420 -p1
793 %patch1421 -p1
794
795 %patch2000 -p0
796 %patch2001 -p1
797 %patch2002 -p1
798 %patch2003 -p1
799 %ifarch ppc
800 %patch2004 -p1
801 %endif
802
803 %patch3000 -p1
804 %patch3002 -p1
805 %patch3003 -p1
806 %patch3004 -p1
807 cd drivers/char/drm
808 %patch3008 -p1
809 cd ../../..
810
811 %ifarch sparc64
812 %patch3010 -p1
813 %endif
814
815 %patch3011 -p1
816 #???
817 #%patch3012 -p1
818 %patch3013 -p1
819
820 # left for future updates
821 #%patch3500 -p1
822 %patch3600 -p1
823 %{?with_grsec:%patch4000 -p1}
824
825 mv -f drivers/scsi/sym53c8xx.c drivers/scsi/sym53c8xx_old.c
826
827 # Tekram DC395/315 U/UW SCSI host driver
828 echo Adding Tekram DC395/315 driver
829 patch -p1 -s < dc395/dc395-integ24.diff
830 install dc395/dc395x_trm.? dc395/README.dc395x drivers/scsi/
831 %patch270 -p1
832
833 %patch450 -p1
834
835 # The following go last as they touch a lot of code
836 # and/or are on bcond and/or are ifarch
837
838 %ifarch %{ix86}
839 %if %{with win4lin}
840 echo Win4Lin patch ...
841 %patch900 -p1
842 %patch901 -p1
843 %endif
844 %endif
845
846 # Remove -g from drivers/atm/Makefile and net/ipsec/Makefile
847 echo -e ',s/EXTRA_CFLAGS.*-g//g\n,w' | ed net/ipsec/Makefile
848
849 # Fix EXTRAVERSION and CC in main Makefile
850 echo -e ',s/EXTRAVERSION =.*/EXTRAVERSION =/g\n,w' | ed Makefile
851 %ifarch sparc64
852 echo -e ',s/CC.*$(CROSS_COMPILE)gcc/CC          = sparc64-linux-gcc/g\n,w' | ed Makefile
853 %endif
854
855 %build
856 BuildKernel() {
857         %{?_debug:set -x}
858         # is this a special kernel we want to build?
859         BOOT=
860         smp=
861         [ "$1" = "BOOT" -o "$2" = "BOOT" ] && BOOT=yes
862         [ "$1" = "smp" -o "$2" = "smp" ] && smp=yes
863 %ifarch %{ix86}
864         if [ "$smp" = "yes" ]; then
865                 Config="ia32-smp"
866         else
867                 Config="ia32"
868         fi
869 %else
870         if [ "$smp" = "yes" ]; then
871                 Config="%{_target_cpu}-smp"
872         else
873                 Config="%{_target_cpu}"
874         fi
875 %endif
876         if [ "$BOOT" = "yes" ]; then
877                 KernelVer=%{version}-%{release}BOOT
878         else
879                 KernelVer=%{version}-%{release}$1
880         fi
881         echo "BUILDING THE NORMAL KERNEL $*..."
882 :> arch/%{base_arch}/defconfig
883         cat $RPM_SOURCE_DIR/kernel-$Config.config >> arch/%{base_arch}/defconfig
884 %ifarch i386
885         echo "CONFIG_M386=y" >> arch/%{base_arch}/defconfig
886 %endif
887 %ifarch i586
888         echo "CONFIG_M586=y" >> arch/%{base_arch}/defconfig
889 %endif
890 %ifarch i686
891         echo "CONFIG_M686=y" >> arch/%{base_arch}/defconfig
892 %endif
893 %ifarch athlon
894         echo "CONFIG_MK7=y" >> arch/%{base_arch}/defconfig
895 %endif
896         cat %{SOURCE1000} >> arch/%{base_arch}/defconfig
897         cat %{SOURCE1001} >> arch/%{base_arch}/defconfig
898
899 %ifarch sparc64
900         echo -e ',s/^CONFIG_FB_I810=.*/# CONFIG_FB_I810 is not set/g\n,w' | \
901                 ed arch/%{base_arch}/defconfig
902         echo -e ',s/CONFIG_IPSEC_AUTH_HMAC_SHA1=y/# CONFIG_IPSEC_AUTH_HMAC_SHA1 is not set/g\n,w' | \
903                 ed arch/%{base_arch}/defconfig
904 %endif
905
906         if [ "$BOOT" = "yes" ] ; then
907                 echo "# CONFIG_GRKERNSEC is not set" >> arch/%{base_arch}/defconfig
908         else
909                 :;
910 %if %{with grsec}
911                 echo -e ',s/CONFIG_CRYPTO_SHA256=m/CONFIG_CRYPTO_SHA256=y/g\n,w' | \
912                         ed arch/%{base_arch}/defconfig
913                 cat %{SOURCE1002} >> arch/%{base_arch}/defconfig
914 %endif
915         fi
916 %ifarch %{ix86}
917         cat %{SOURCE2000} >> arch/%{base_arch}/defconfig
918 %endif
919
920 %ifarch i386
921         echo -e ',s/# CONFIG_MATH_EMULATION is not set/CONFIG_MATH_EMULATION=y/g\n,w' | \
922                 ed arch/%{base_arch}/defconfig
923 %endif
924
925         %{__make} mrproper
926         ln -sf arch/%{base_arch}/defconfig .config
927
928 %ifarch sparc
929         sparc32 %{__make} oldconfig
930         sparc32 %{__make} dep clean
931 %else
932         %{__make} oldconfig
933         %{__make} dep clean
934 %endif
935         %{__make} include/linux/version.h
936
937 # making  table for soundmodem.
938         cd drivers/net/hamradio/soundmodem
939         %{__cc} -o gentbl -lm gentbl.c
940         ./gentbl
941         cd ../../../..
942
943 %ifarch %{ix86}
944         %{__make} bzImage
945 %endif
946 %ifarch sparc
947         sparc32 %{__make} boot
948 %else
949 %ifnarch %{ix86}
950         %{__make}
951 %endif
952 %endif
953 %ifarch sparc
954         sparc32 %{__make} modules
955 %else
956         %{__make} modules
957 %endif
958
959         mkdir -p $KERNEL_INSTALL_DIR/boot
960         install System.map $KERNEL_INSTALL_DIR/boot/System.map-$KernelVer
961 %ifarch %{ix86}
962         cp arch/i386/boot/bzImage $KERNEL_INSTALL_DIR/boot/vmlinuz-$KernelVer
963 %endif
964 %ifarch alpha sparc sparc64
965         gzip -cfv vmlinux > vmlinuz
966         install vmlinux $KERNEL_INSTALL_DIR/boot/vmlinux-$KernelVer
967         install vmlinuz $KERNEL_INSTALL_DIR/boot/vmlinuz-$KernelVer
968 %endif
969 %ifarch ppc
970         install vmlinux $KERNEL_INSTALL_DIR/boot/vmlinux-$KernelVer
971         install vmlinux $KERNEL_INSTALL_DIR/boot/vmlinuz-$KernelVer
972 %endif
973 %ifarch sparc
974         sparc32 %{__make} modules_install \
975         INSTALL_MOD_PATH=$KERNEL_INSTALL_DIR \
976         KERNELRELEASE=$KernelVer
977         echo KERNEL RELEASE $KernelVer
978 %else
979         %{__make} modules_install \
980         INSTALL_MOD_PATH=$KERNEL_INSTALL_DIR \
981         KERNELRELEASE=$KernelVer
982         echo KERNEL RELEASE $KernelVer
983 %endif
984         echo "CHECKING DEPENDENCIES FOR KERNEL MODULES"
985         /sbin/depmod --basedir $KERNEL_INSTALL_DIR -ae -F $KERNEL_INSTALL_DIR/boot/System.map-$KernelVer -r $KernelVer || echo
986 }
987
988 KERNEL_BUILD_DIR=`pwd`
989 KERNEL_INSTALL_DIR=$KERNEL_BUILD_DIR-installed
990 rm -rf $KERNEL_INSTALL_DIR
991 install -d $KERNEL_INSTALL_DIR
992
993 # make drivers/scsi/ missing files
994 #       (cd drivers/scsi; make -f M)
995
996 # UP KERNEL
997 %{?with_up:BuildKernel}
998
999 # SMP KERNEL
1000 %{?with_smp:BuildKernel smp}
1001
1002 %if ! %{with up} && ! %{with smp}
1003 # We need include/asm created somewhere
1004 make symlinks
1005 %endif
1006
1007 # BOOT kernel
1008 %ifnarch i586 i686 athlon
1009 KERNEL_INSTALL_DIR="$KERNEL_BUILD_DIR-installed%{_libdir}/bootdisk"
1010 rm -rf $KERNEL_INSTALL_DIR
1011 %{?with_boot:BuildKernel BOOT}
1012 %endif
1013
1014 %install
1015 rm -rf $RPM_BUILD_ROOT
1016 umask 022
1017
1018 install -d $RPM_BUILD_ROOT%{_prefix}/{include,src/linux-%{version}}
1019
1020 KERNEL_BUILD_DIR=`pwd`
1021
1022 KERNEL_BUILD_INSTALL=no
1023 %{?with_up:KERNEL_BUILD_INSTALL=yes}
1024 %{?with_smp:KERNEL_BUILD_INSTALL=yes}
1025 [ "$KERNEL_BUILD_INSTALL" = "yes" ] && cp -a $KERNEL_BUILD_DIR-installed/* $RPM_BUILD_ROOT
1026
1027 for i in "" smp ; do
1028         if [ -e  $RPM_BUILD_ROOT/lib/modules/%{version}-%{release}$i ] ; then
1029                 rm -f $RPM_BUILD_ROOT/lib/modules/%{version}-%{release}$i/build
1030                 ln -sf %{_prefix}/src/linux-%{version} \
1031                         $RPM_BUILD_ROOT/lib/modules/%{version}-%{release}$i/build
1032         fi
1033 done
1034 ln -sf ../src/linux/include/linux $RPM_BUILD_ROOT%{_includedir}/linux
1035 ln -sf linux-%{version} $RPM_BUILD_ROOT%{_prefix}/src/linux
1036
1037 %ifarch sparc sparc64
1038 ln -s /usr/src/linux/include/asm-sparc $RPM_BUILD_ROOT%{_includedir}/asm-sparc
1039 ln -s ../src/linux/include/asm-sparc64 $RPM_BUILD_ROOT%{_includedir}/asm-sparc64
1040 %else
1041 ln -sf ../src/linux/include/asm $RPM_BUILD_ROOT/usr/include/asm
1042 %endif
1043
1044 %if %{with source}
1045 cp -a . $RPM_BUILD_ROOT/usr/src/linux-%{version}
1046 %else
1047 cp -a {include,scripts,Makefile,Rules.make,Documentation} $RPM_BUILD_ROOT/usr/src/linux-%{version}
1048 %endif
1049
1050 %ifarch sparc sparc64
1051 sh %{SOURCE2} $RPM_BUILD_ROOT%{_includedir}
1052 cp -a %{SOURCE2} $RPM_BUILD_ROOT%{_includedir}/asm/BuildASM
1053 %endif
1054
1055 cd $RPM_BUILD_ROOT%{_prefix}/src/linux-%{version}
1056
1057 # remove foreign architecture files
1058 cd include
1059 mkdir _asm_keep
1060 mv asm-generic _asm_keep
1061 %ifarch sparc sparc64
1062         mv asm-sparc* _asm_keep
1063 %else
1064         mv `resolvesymlink asm 2> /dev/null || readlink asm 2> /dev/null` _asm_keep
1065 %endif
1066 rm -rf asm-*
1067 mv _asm_keep/* .
1068 rmdir _asm_keep
1069 cd ..
1070
1071 %if %{with source}
1072 MYARCH=%{_arch}
1073 %ifarch %{ix86}
1074 MYARCH=i386
1075 %endif
1076 %ifarch sparc sparc64
1077 MYARCH="sparc sparc64"
1078 %endif
1079 cd arch
1080 mv $MYARCH ..
1081 cd ..
1082 rm -rf arch/*
1083 mv $MYARCH arch
1084 %endif
1085
1086 %if %{with source}
1087 %{__make} mrproper
1088
1089 find  -name "*~" -print | xargs rm -f
1090 find  -name "*.orig" -print | xargs rm -f
1091
1092 %ifarch %{ix86}
1093 cat $RPM_SOURCE_DIR/kernel-ia32.config > .config
1094 %else
1095 install $RPM_SOURCE_DIR/kernel-%{_target_cpu}.config .config
1096 %endif
1097
1098 %ifarch i386
1099 echo "CONFIG_M386=y" >> .config
1100 %endif
1101 %ifarch i586
1102 echo "CONFIG_M586=y" >> .config
1103 %endif
1104 %ifarch i686
1105 echo "CONFIG_M686=y" >> .config
1106 %endif
1107 %ifarch athlon
1108 echo "CONFIG_MK7=y" >> .config
1109 %endif
1110 cat %{SOURCE1000} >> .config
1111 cat %{SOURCE1001} >> .config
1112 %{?with_grsec:cat %{SOURCE1002} >> .config}
1113
1114 %ifarch sparc64
1115         echo -e ',s/^CONFIG_FB_I810=.*/# CONFIG_FB_I810 is not set/g\n,w' | \
1116                 ed .config
1117         echo -e ',s/CONFIG_IPSEC_AUTH_HMAC_SHA1=y/# CONFIG_IPSEC_AUTH_HMAC_SHA1 is not set/g\n,w' | \
1118                 ed .config
1119 %endif
1120
1121 %ifarch %{ix86}
1122 cat %{SOURCE2000} >> .config
1123 %endif
1124
1125 %ifarch sparc
1126 sparc32 %{__make} oldconfig
1127 %else
1128 %{__make} oldconfig
1129 %endif
1130
1131 mv include/linux/autoconf.h include/linux/autoconf-up.h
1132 cp .config config-up
1133
1134 %ifarch %{ix86}
1135 cat $RPM_SOURCE_DIR/kernel-ia32-smp.config >> .config
1136 %else
1137 install $RPM_SOURCE_DIR/kernel-%{_target_cpu}-smp.config .config
1138 %endif
1139
1140 %ifarch i386
1141 echo "CONFIG_M386=y" >> .config
1142 %endif
1143 %ifarch i586
1144 echo "CONFIG_M586=y" >> .config
1145 %endif
1146 %ifarch i686
1147 echo "CONFIG_M686=y" >> .config
1148 %endif
1149 %ifarch athlon
1150 echo "CONFIG_MK7=y" >> .config
1151 %endif
1152
1153 cat %{SOURCE1000} >> .config
1154 cat %{SOURCE1001} >> .config
1155 %{?with_grsec:cat %{SOURCE1002} >> .config}
1156
1157 %ifarch sparc64
1158         echo -e ',s/^CONFIG_FB_I810=.*/# CONFIG_FB_I810 is not set/g\n,w' | \
1159                 ed .config
1160         echo -e ',s/CONFIG_IPSEC_AUTH_HMAC_SHA1=y/# CONFIG_IPSEC_AUTH_HMAC_SHA1 is not set/g\n,w' | \
1161                 ed .config
1162 %endif
1163
1164 %ifarch %{ix86}
1165 cat %{SOURCE2000} >> .config
1166 %endif
1167
1168 %ifarch sparc
1169 sparc32 %{__make} oldconfig
1170 %else
1171 %{__make} oldconfig
1172 %endif
1173 mv include/linux/autoconf.h include/linux/autoconf-smp.h
1174 cp .config config-smp
1175 %endif
1176
1177 install %{SOURCE1} $RPM_BUILD_ROOT/usr/src/linux-%{version}/include/linux/autoconf.h
1178
1179 %if %{with source}
1180 # this generates modversions info which we want to include and we may as
1181 # well include the depends stuff as well
1182 %{__make} symlinks
1183 %{__make} include/linux/version.h
1184 #%{__make} "`pwd`/include/linux/modversions.h"
1185 %endif
1186 rm -f include/linux/modversions.h
1187 echo "#include <linux/modsetver.h>" > include/linux/modversions.h
1188
1189
1190 # this generates modversions info which we want to include and we may as
1191 # well include the depends stuff as well, after we fix the paths
1192
1193 %if %{with source}
1194 %{__make} depend
1195 find $RPM_BUILD_ROOT/usr/src/linux-%{version} -name ".*depend" \
1196         -exec /bin/sh -c "echo -e \",s|$RPM_BUILD_ROOT||g\n,w\" | ed {}" \;
1197
1198 %{__make} clean
1199 rm -f scripts/mkdep
1200 rm -f drivers/net/hamradio/soundmodem/gentbl
1201 %endif
1202
1203 # BOOT
1204 %if %{with boot}
1205 %ifnarch i586 i686 athlon
1206 install -d $RPM_BUILD_ROOT%{_libdir}/bootdisk
1207 cp -rdp $KERNEL_BUILD_DIR-installed%{_libdir}/bootdisk/* $RPM_BUILD_ROOT%{_libdir}/bootdisk
1208 %endif
1209 %endif
1210
1211 %clean
1212 rm -rf $RPM_BUILD_ROOT
1213 rm -rf $RPM_BUILD_DIR/linux-%{version}-installed
1214
1215 %post
1216 mv -f /boot/vmlinuz /boot/vmlinuz.old 2> /dev/null > /dev/null
1217 mv -f /boot/System.map /boot/System.map.old 2> /dev/null > /dev/null
1218 ln -sf vmlinuz-%{version}-%{release} /boot/vmlinuz
1219 ln -sf System.map-%{version}-%{release} /boot/System.map
1220
1221 if [ ! -L /lib/modules/%{version} ] ; then
1222         mv -f /lib/modules/%{version} /lib/modules/%{version}.rpmsave > /dev/null 2>&1
1223 fi
1224 rm -f /lib/modules/%{version}
1225 ln -snf %{version}-%{release} /lib/modules/%{version}
1226 /sbin/depmod -a -F /boot/System.map-%{version}-%{release} %{version}-%{release}
1227
1228 /sbin/geninitrd -f --initrdfs=rom /boot/initrd-%{version}-%{release}.gz %{version}-%{release}
1229 mv -f /boot/initrd /boot/initrd.old
1230 ln -sf initrd-%{version}-%{release}.gz /boot/initrd
1231
1232 if [ -f %{_prefix}/src/linux-%{version}/config-up ] ; then
1233         ln -s %{_prefix}/src/linux-%{version}/config-up %{_prefix}/src/linux-%{version}/.config
1234 fi
1235
1236 if [ -x /sbin/rc-boot ] ; then
1237         /sbin/rc-boot 1>&2 || :
1238 fi
1239
1240 %post smp
1241 mv -f /boot/vmlinuz /boot/vmlinuz.old 2> /dev/null > /dev/null
1242 mv -f /boot/System.map /boot/System.map.old 2> /dev/null > /dev/null
1243 ln -sf vmlinuz-%{version}-%{release}smp /boot/vmlinuz
1244 ln -sf System.map-%{version}-%{release}smp /boot/System.map
1245
1246 if [ ! -L /lib/modules/%{version} ] ; then
1247         mv -f /lib/modules/%{version} /lib/modules/%{version}.rpmsave > /dev/null 2>&1
1248 fi
1249 rm -f /lib/modules/%{version}
1250 ln -snf %{version}-%{release}smp /lib/modules/%{version}
1251 /sbin/depmod -a -F /boot/System.map-%{version}-%{release}smp %{version}-%{release}smp
1252
1253 /sbin/geninitrd -f --initrdfs=rom /boot/initrd-%{version}-%{release}smp.gz %{version}-%{release}smp
1254 mv -f /boot/initrd /boot/initrd.old
1255 ln -sf initrd-%{version}-%{release}smp.gz /boot/initrd
1256
1257 if [ -f %{_prefix}/src/linux-%{version}/config-smp ] ; then
1258         ln -s %{_prefix}/src/linux-%{version}/config-smp %{_prefix}/src/linux-%{version}/.config
1259 fi
1260
1261 if [ -x /sbin/rc-boot ] ; then
1262         /sbin/rc-boot 1>&2 || :
1263 fi
1264
1265 %post BOOT
1266 if [ ! -L %{_libdir}/bootdisk/lib/modules/%{version} ] ; then
1267         mv -f %{_libdir}/bootdisk/lib/modules/%{version} %{_libdir}/bootdisk/lib/modules/%{version}.rpmsave
1268 fi
1269 if [ ! -L %{_libdir}/bootdisk/boot/vmlinuz-%{version} ] ; then
1270         mv -f %{_libdir}/bootdisk/boot/vmlinuz-%{version} %{_libdir}/bootdisk/boot/vmlinuz-%{version}.rpmsave
1271 fi
1272 rm -f %{_libdir}/bootdisk/lib/modules/%{version}
1273 ln -snf %{version}-%{release}BOOT %{_libdir}/bootdisk/lib/modules/%{version}
1274 rm -f %{_libdir}/bootdisk/boot/vmlinuz-%{version}
1275 ln -snf vmlinuz-%{version}-%{release}BOOT %{_libdir}/bootdisk/boot/vmlinuz-%{version}
1276
1277 %postun
1278 if [ -L /lib/modules/%{version} ]; then
1279         if [ "`ls -l /lib/modules/%{version} | awk '{ print $11 }'`" = "%{version}-%{release}" ]; then
1280                 if [ "$1" = "0" ]; then
1281                         rm -f /lib/modules/%{version}
1282                 fi
1283         fi
1284 fi
1285 rm -f /boot/initrd-%{version}-%{release}.gz
1286
1287 %post pcmcia
1288 /sbin/depmod -a -F /boot/System.map-%{version}-%{release} %{version}-%{release}
1289
1290 %postun pcmcia
1291 /sbin/depmod -a -F /boot/System.map-%{version}-%{release} %{version}-%{release} > /dev/null 2>&1
1292
1293 %post drm
1294 /sbin/depmod -a -F /boot/System.map-%{version}-%{release} %{version}-%{release}
1295
1296 %postun drm
1297 /sbin/depmod -a -F /boot/System.map-%{version}-%{release} %{version}-%{release} > /dev/null 2>&1
1298
1299 %postun smp
1300 if [ -L /lib/modules/%{version} ]; then
1301         if [ "`ls -l /lib/modules/%{version} | awk '{ print $11 }'`" = "%{version}-%{release}smp" ]; then
1302                 if [ "$1" = "0" ]; then
1303                         rm -f /lib/modules/%{version}
1304                 fi
1305         fi
1306 fi
1307 rm -f /boot/initrd-%{version}-%{release}smp.gz
1308
1309 %post smp-pcmcia
1310 /sbin/depmod -a -F /boot/System.map-%{version}-%{release}smp %{version}-%{release}smp
1311
1312 %postun smp-pcmcia
1313 /sbin/depmod -a -F /boot/System.map-%{version}-%{release}smp %{version}-%{release}smp > /dev/null 2>&1
1314
1315 %post smp-drm
1316 /sbin/depmod -a -F /boot/System.map-%{version}-%{release}smp %{version}-%{release}smp
1317
1318 %postun smp-drm
1319 /sbin/depmod -a -F /boot/System.map-%{version}-%{release}smp %{version}-%{release}smp > /dev/null 2>&1
1320
1321 %postun BOOT
1322 if [ -L %{_libdir}/bootdisk/lib/modules/%{version} ]; then
1323         if [ "`ls -l %{_libdir}/bootdisk/lib/modules/%{version} | awk '{ print $11 }'`" = "%{version}-%{release}BOOT" ]; then
1324                 if [ "$1" = "0" ]; then
1325                         rm -f %{_libdir}/bootdisk/lib/modules/%{version}
1326                 fi
1327         fi
1328 fi
1329
1330 %post headers
1331 rm -f /usr/src/linux
1332 ln -snf linux-%{version} /usr/src/linux
1333
1334 %postun headers
1335 if [ -L /usr/src/linux ]; then
1336         if [ "`ls -l /usr/src/linux | awk '{ print $11 }'`" = "linux-%{version}" ]; then
1337                 if [ "$1" = "0" ]; then
1338                         rm -f /usr/src/linux
1339                 fi
1340         fi
1341 fi
1342
1343 %if %{with up}
1344 %files
1345 %defattr(644,root,root,755)
1346 %ifarch alpha sparc sparc64 ppc
1347 /boot/vmlinux-%{version}-%{release}
1348 %endif
1349 /boot/vmlinuz-%{version}-%{release}
1350 /boot/System.map-%{version}-%{release}
1351 %dir /lib/modules/%{version}-%{release}
1352 /lib/modules/%{version}-%{release}/kernel
1353 %ifnarch sparc sparc64
1354 %exclude /lib/modules/%{version}-%{release}/kernel/drivers/pcmcia
1355 %exclude /lib/modules/%{version}-%{release}/kernel/drivers/ide/legacy/*-cs.o*
1356 %exclude /lib/modules/%{version}-%{release}/kernel/drivers/mtd/maps/pcmcia*
1357 %exclude /lib/modules/%{version}-%{release}/kernel/drivers/net/pcmcia
1358 %exclude /lib/modules/%{version}-%{release}/kernel/drivers/scsi/pcmcia
1359 %exclude /lib/modules/%{version}-%{release}/kernel/drivers/char/pcmcia
1360 %exclude /lib/modules/%{version}-%{release}/kernel/drivers/net/wireless/*_cs.o*
1361 %exclude /lib/modules/%{version}-%{release}/kernel/drivers/parport/*_cs.o*
1362 %exclude /lib/modules/%{version}-%{release}/kernel/drivers/bluetooth/*_cs.o*
1363 %endif
1364 %ifnarch sparc sparc64
1365 %exclude /lib/modules/%{version}-%{release}/kernel/drivers/isdn/hisax/*_cs.o*
1366 %ifnarch alpha
1367 %exclude /lib/modules/%{version}-%{release}/kernel/drivers/isdn/avmb1/avm_cs.o*
1368 %ifnarch ppc
1369 %exclude /lib/modules/%{version}-%{release}/kernel/drivers/telephony/*_pcmcia.o*
1370 %endif
1371 %endif
1372 %endif
1373 %ifnarch sparc
1374 %exclude /lib/modules/%{version}-%{release}/kernel/drivers/char/drm
1375 %endif
1376 /lib/modules/%{version}-%{release}/build
1377 %ghost /lib/modules/%{version}-%{release}/modules.*
1378
1379 %ifnarch sparc sparc64
1380 %files pcmcia
1381 %defattr(644,root,root,755)
1382 /lib/modules/%{version}-%{release}/kernel/drivers/pcmcia
1383 /lib/modules/%{version}-%{release}/kernel/drivers/ide/legacy/*-cs.o*
1384 /lib/modules/%{version}-%{release}/kernel/drivers/mtd/maps/pcmcia*
1385 /lib/modules/%{version}-%{release}/kernel/drivers/net/pcmcia
1386 /lib/modules/%{version}-%{release}/kernel/drivers/scsi/pcmcia
1387 /lib/modules/%{version}-%{release}/kernel/drivers/char/pcmcia
1388 /lib/modules/%{version}-%{release}/kernel/drivers/net/wireless/*_cs.o*
1389 /lib/modules/%{version}-%{release}/kernel/drivers/parport/*_cs.o*
1390 /lib/modules/%{version}-%{release}/kernel/drivers/bluetooth/*_cs.o*
1391 /lib/modules/%{version}-%{release}/kernel/drivers/isdn/hisax/*_cs.o*
1392 %ifnarch alpha
1393 /lib/modules/%{version}-%{release}/kernel/drivers/isdn/avmb1/avm_cs.o*
1394 %ifnarch ppc
1395 /lib/modules/%{version}-%{release}/kernel/drivers/telephony/*_pcmcia.o*
1396 %endif
1397 %endif
1398 %endif
1399
1400 %ifnarch sparc
1401 %files drm
1402 %defattr(644,root,root,755)
1403 /lib/modules/%{version}-%{release}/kernel/drivers/char/drm
1404 %endif                  # %%{with up}
1405 %endif
1406
1407 %if %{with smp}
1408 %files smp
1409 %defattr(644,root,root,755)
1410 %ifarch alpha sparc sparc64 ppc
1411 /boot/vmlinux-%{version}-%{release}smp
1412 %endif
1413 /boot/vmlinuz-%{version}-%{release}smp
1414 /boot/System.map-%{version}-%{release}smp
1415 %dir /lib/modules/%{version}-%{release}smp
1416 /lib/modules/%{version}-%{release}smp/kernel
1417 %ifnarch sparc sparc64
1418 %exclude /lib/modules/%{version}-%{release}smp/kernel/drivers/pcmcia
1419 %exclude /lib/modules/%{version}-%{release}smp/kernel/drivers/ide/legacy/*-cs.o*
1420 %exclude /lib/modules/%{version}-%{release}smp/kernel/drivers/mtd/maps/pcmcia*
1421 %exclude /lib/modules/%{version}-%{release}smp/kernel/drivers/net/pcmcia
1422 %exclude /lib/modules/%{version}-%{release}smp/kernel/drivers/scsi/pcmcia
1423 %exclude /lib/modules/%{version}-%{release}smp/kernel/drivers/char/pcmcia
1424 %exclude /lib/modules/%{version}-%{release}smp/kernel/drivers/net/wireless/*_cs.o*
1425 %exclude /lib/modules/%{version}-%{release}smp/kernel/drivers/parport/*_cs.o*
1426 %exclude /lib/modules/%{version}-%{release}smp/kernel/drivers/bluetooth/*_cs.o*
1427 %endif
1428 %ifnarch ppc sparc sparc64
1429 %exclude /lib/modules/%{version}-%{release}smp/kernel/drivers/isdn/hisax/*_cs.o*
1430 %ifnarch alpha
1431 %exclude /lib/modules/%{version}-%{release}smp/kernel/drivers/isdn/avmb1/avm_cs.o*
1432 %exclude /lib/modules/%{version}-%{release}smp/kernel/drivers/telephony/*_pcmcia.o*
1433 %endif
1434 %endif
1435 %ifnarch sparc
1436 %exclude /lib/modules/%{version}-%{release}smp/kernel/drivers/char/drm
1437 %endif
1438 /lib/modules/%{version}-%{release}smp/build
1439 %ghost /lib/modules/%{version}-%{release}smp/modules.*
1440
1441 %ifnarch sparc sparc64
1442 %files -n kernel-smp-pcmcia
1443 %defattr(644,root,root,755)
1444 /lib/modules/%{version}-%{release}smp/kernel/drivers/pcmcia
1445 /lib/modules/%{version}-%{release}smp/kernel/drivers/ide/legacy/*-cs.o*
1446 /lib/modules/%{version}-%{release}smp/kernel/drivers/mtd/maps/pcmcia*
1447 /lib/modules/%{version}-%{release}smp/kernel/drivers/net/pcmcia
1448 /lib/modules/%{version}-%{release}smp/kernel/drivers/scsi/pcmcia
1449 /lib/modules/%{version}-%{release}smp/kernel/drivers/char/pcmcia
1450 /lib/modules/%{version}-%{release}smp/kernel/drivers/net/wireless/*_cs.o*
1451 /lib/modules/%{version}-%{release}smp/kernel/drivers/parport/*_cs.o*
1452 /lib/modules/%{version}-%{release}smp/kernel/drivers/bluetooth/dtl1_cs.o*
1453 %ifnarch ppc
1454 /lib/modules/%{version}-%{release}smp/kernel/drivers/isdn/hisax/*_cs.o*
1455 %ifnarch alpha
1456 /lib/modules/%{version}-%{release}smp/kernel/drivers/isdn/avmb1/avm_cs.o*
1457 /lib/modules/%{version}-%{release}smp/kernel/drivers/telephony/*_pcmcia.o*
1458 %endif
1459 %endif
1460 %endif
1461
1462 %ifnarch sparc
1463 %files -n kernel-smp-drm
1464 %defattr(644,root,root,755)
1465 /lib/modules/%{version}-%{release}smp/kernel/drivers/char/drm
1466 %endif                  # %%{with smp}
1467 %endif
1468
1469 %if %{with boot}
1470 %ifnarch i586 i686 athlon               # narch
1471 %files BOOT
1472 %defattr(644,root,root,755)
1473 %ifarch alpha sparc sparc64 ppc         # arch
1474 %{_libdir}/bootdisk/boot/vmlinux-%{version}-%{release}BOOT
1475 %endif                          #arch
1476 %{_libdir}/bootdisk/boot/vmlinuz-%{version}-%{release}BOOT
1477 %{_libdir}/bootdisk/boot/System.map-%{version}-%{release}BOOT
1478 %dir %{_libdir}/bootdisk/lib/modules/%{version}-%{release}BOOT
1479 %{_libdir}/bootdisk/lib/modules/%{version}-%{release}BOOT/kernel
1480 %{_libdir}/bootdisk/lib/modules/%{version}-%{release}BOOT/build
1481 %ghost %{_libdir}/bootdisk/lib/modules/%{version}-%{release}BOOT/modules.*
1482 %endif                          # narch
1483 %endif                          # %%{with boot}
1484
1485 %files headers
1486 %defattr(644,root,root,755)
1487 %dir %{_prefix}/src/linux-%{version}
1488 %{_prefix}/src/linux-%{version}/include
1489
1490 %if %{with doc}
1491 %files doc
1492 %defattr(644,root,root,755)
1493 %{_prefix}/src/linux-%{version}/Documentation
1494 %endif
1495
1496 %if %{with source}
1497 %files source
1498 %defattr(644,root,root,755)
1499 %{_prefix}/src/linux-%{version}/arch
1500 %{_prefix}/src/linux-%{version}/crypto
1501 %{_prefix}/src/linux-%{version}/drivers
1502 %{_prefix}/src/linux-%{version}/fs
1503 %{_prefix}/src/linux-%{version}/init
1504 %{?with_grsec:%{_prefix}/src/linux-%{version}/grsecurity}
1505 %{_prefix}/src/linux-%{version}/ipc
1506 #%{_prefix}/src/linux-%{version}/kdb
1507 %{_prefix}/src/linux-%{version}/kernel
1508 %{_prefix}/src/linux-%{version}/lib
1509 %{_prefix}/src/linux-%{version}/mm
1510 %{_prefix}/src/linux-%{version}/net
1511 %{_prefix}/src/linux-%{version}/scripts
1512 %{_prefix}/src/linux-%{version}/.config
1513 %{_prefix}/src/linux-%{version}/.depend
1514 %{_prefix}/src/linux-%{version}/.hdepend
1515 %{_prefix}/src/linux-%{version}/COPYING
1516 %{_prefix}/src/linux-%{version}/CREDITS
1517 %{_prefix}/src/linux-%{version}/MAINTAINERS
1518 %{_prefix}/src/linux-%{version}/Makefile
1519 %{_prefix}/src/linux-%{version}/README
1520 %{_prefix}/src/linux-%{version}/REPORTING-BUGS
1521 %{_prefix}/src/linux-%{version}/Rules.make
1522 %{_prefix}/src/linux-%{version}/config*
1523 %endif
This page took 0.225251 seconds and 4 git commands to generate.