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