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