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