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