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