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