]> git.pld-linux.org Git - packages/kernel.git/blob - kernel.spec
- cleaning up small patches
[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 #
11 %define         base_arch %(echo %{_target_cpu} | sed 's/i.86/i386/;s/athlon/i386/')
12 %define         no_install_post_strip   1
13 %define         no_install_post_compress_modules        1
14 #
15 %define         pre_version             rc2
16 %define         ipvs_version            1.0.7
17 %define         freeswan_version        1.97
18 %define         IPperson_version        20020819-2.4.19
19 %define         jfs_version             2.4-1.1.1
20 %define         lvm_version             1.0.5
21 %define         evms_version            1.2.0
22 %define         ntfs_version            2.1.0a
23 %define         drm_xfree_version       4.2.99
24 %define         hostap_version          2002-10-12
25 %define         netfilter_snap          20030306
26 Summary:        The Linux kernel (the core of the Linux operating system)
27 Summary(de):    Der Linux-Kernel (Kern des Linux-Betriebssystems)
28 Summary(fr):    Le Kernel-Linux (La partie centrale du systeme)
29 Summary(pl):    JĀ±dro Linuksa
30 Name:           kernel
31 Version:        2.4.20
32 Release:        0.%{pre_version}.1
33 License:        GPL
34 Group:          Base/Kernel
35 Source0:        ftp://ftp.kernel.org/pub/linux/kernel/v2.4/linux-%{version}.tar.gz
36 Source1:        %{name}-autoconf.h
37 Source2:        %{name}-BuildASM.sh
38 Source3:        http://www.garloff.de/kurt/linux/dc395/dc395-141.tar.gz
39 Source4:        linux-2.4.20-netfilter-%{netfilter_snap}.tar.gz
40 Source5:        linux-2.4.19-netfilter-IMQ.patch.tar.bz2
41 Source6:        http://download.sourceforge.net/ippersonality/ippersonality-%{IPperson_version}.tar.gz
42 Source7:        http://www10.software.ibm.com/developer/opensource/jfs/project/pub/jfs-%{jfs_version}.tar.gz
43 Source8:        http://www.xfree86.org/~alanh/linux-drm-%{drm_xfree_version}-kernelsource.tar.bz2
44 Source9:        http://hostap.epitest.fi/releases/hostap-%{hostap_version}.tar.gz
45 Source10:       linux-2.4.20-aacraid.tar.bz2
46 Source20:       %{name}-ia32.config
47 Source21:       %{name}-ia32-smp.config
48 Source50:       %{name}-sparc.config
49 Source51:       %{name}-sparc-smp.config
50 Source60:       %{name}-sparc64.config
51 Source61:       %{name}-sparc64-smp.config
52 Source70:       %{name}-alpha.config
53 Source71:       %{name}-alpha-smp.config
54 Source73:       %{name}-ppc.config
55 Source74:       %{name}-ppc-smp.config
56 Source1000:     %{name}-addon.config
57 Source1001:     %{name}-netfilter.config
58 Source2000:     %{name}-win4lin.config
59
60 # New features/updates/backports
61
62 # Essential stuff
63
64 Patch0:         %{name}-pldfblogo.patch
65 # from ftp://ftp.kerneli.org/pub/linux/kernel/crypto/v2.4/testing/
66 Patch10:        patch-int-2.4.20.1.bz2
67 Patch11:        loop-jari-2.4.21.0.patch
68 # from ftp://ftp.xs4all.nl/pub/crypto/freeswan/freeswan-*
69 Patch12:        linux-2.4.18-freeswan-%{freeswan_version}.patch.gz
70 Patch15:        linux-2.4.21-sched-O1.patch
71 Patch20:        http://dl.sourceforge.net/user-mode-linux/uml-patch-2.4.20-1.bz2
72 Patch21:        linux-2.4.20-uml-o1.patch
73 # http://unc.dl.sourceforge.net/sourceforge/user-mode-linux/host-skas3.patch
74 Patch22:        linux-2.4.20-uml-host-skas3.patch
75
76 # New filesystems
77
78 # http://linux-xfs.sgi.com/projects/xfs/
79 Patch25:        linux-2.4.21-core-xfs-1.2.0.patch.bz2
80 Patch26:        linux-2.4.20-xfs-1.2.0.patch.bz2
81 # http://acl.bestbits.at/
82 Patch30:        linux-2.4.20-jfs-xattr.patch
83 Patch31:        linux-2.4.20-jfs-1.1.1-acl.patch
84 Patch32:        linux-2.4.20-xattr+acl+trusted-0.8.55.diff.gz
85 Patch33:        linux-2.4.20-acl-intermezzo-fix.patch
86 # http://unc.dl.sourceforge.net/sourceforge/linux-ntfs/
87 Patch40:        linux-2.4.20-ntfs-%{ntfs_version}.patch.bz2
88 Patch41:        linux-2.4.20-ntfs.patch
89 # http://dl.sourceforge.net/linux-hfsplus/hfsplus-patch-20020606.patch
90 Patch45:        hfsplus-20020606.patch.bz2
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 # quota for reiserfs
96 Patch60:        linux-2.4.20-reiserfs-quota.patch.bz2
97 # http://dl.sourceforge.net/squashfs/squashfs-1.1b.tar.gz
98 Patch65:        linux-2.4.20-squashfs.patch
99 #Patch70:       linux-2.4.20-afs.patch.bz2
100 #from http://sci.felk.cvut.cz/nwd/linux/nwd-patch-2.4.19
101 Patch75:        nwd-2.4.21.patch
102
103 # Networking
104
105 # new version of netfilter.
106 Patch100:       linux-2.4.20-netfilter-%{netfilter_snap}.patch.gz
107 # from http://users.pandora.be/bart.de.schuymer/ebtables/sourcecode.html
108 #       ebtables_v2.0.003_vs_2.4.20.diff
109 Patch110:       ebtables-v2.0.003_vs_2.4.20.patch.bz2
110 #       bridge-nf-0.0.10-against-2.4.20.diff
111 Patch111:       linux-2.4.20-bridge-nf-0.0.10.patch.bz2
112 # http://www.linuxvirtualserver.org/software/kernel-2.4/linux-2.4.18-ipvs-%{ipvs_version}.patch.gz
113 Patch115:       linux-2.4.20-ipvs-%{ipvs_version}.patch.bz2
114 Patch120:       http://luxik.cdi.cz/~devik/qos/imq-2.4.18.diff-10
115 # ftp://ftp.samba.org/pub/unpacked/ppp/linux/mppe/
116 Patch125:       linux-2.4.18-mppe.patch
117
118 # ATM bugfixes
119 # Patches by Chas Williams <chas@locutus.cmf.nrl.navy.mil>
120 Patch150:       atm-00-backport-2.5.patch
121 Patch151:       atm-01-Makefile.patch
122 Patch152:       atm-04-min-frame-size.patch
123 Patch153:       atm-05-multicast-lec.patch
124 Patch154:       atm-06-skb_pull.patch
125 Patch155:       atm-07-atm_dev_lock-sem.patch
126 Patch156:       atm-08-lane-MOD_USE_COUNT.patch
127 Patch157:       atm-09-suni-MOD_USE_COUNT.patch
128 Patch158:       atm-10-modular-atm.patch
129 Patch159:       atm-11-correct-lec-net_device-names.patch
130 Patch160:       atm-12-br2684-xmit-return.patch
131 Patch161:       atm-13-atm_vcc-cleanup.patch
132 Patch162:       atm-14-clip-neigh-lock.patch
133 Patch180:       atm-20-fore200e-gettimeofday.patch
134 # http://tulipe.cnam.fr/personne/lizzi/linux/linux-2.3.99-pre6-fore200e-0.2f.tar.gz
135 # http://christophe.lizzi.free.fr/linux/linux-2.4.0-test9-fore200e-0.3.tar.gz
136 Patch181:       atm-21-fore200e-0.2f.patch
137 # Oopses on me - baggins
138 #Patch191:      atm-21-fore200e-0.3.patch
139 Patch185:       atm-30-idt77105-cleanup.patch
140
141 # New devices/drivers
142
143 # from http://people.sistina.com/~thornber/patches/2.4-stable/2.4.20/2.4.20-dm-9.tar.bz2DM-9 patch
144 Patch200:       linux-2.4.20-dm-9.patch.bz2
145 # EVMS support (http://www.sourceforge.net/projects/evms/)
146 Patch201:       linux-2.4.20-evms-1.9.0.patch.bz2
147
148 #from http://prdownloads.sourceforge.net/i810fb/linux-2.4.20-i810fb.diff.bz2
149 Patch210:       linux-2.4.20-I810FB.patch.bz2
150
151 # Support for CDRW packet writing
152 Patch215:       %{name}-cdrw-packet.patch
153 Patch216:       %{name}-cd-mrw-2.patch
154 Patch220:       linux-2.4.19-pre8-konicawc.patch
155 Patch225:       wrr-linux-2.4.9.patch
156
157 # from http://people.FreeBSD.org/~gibbs/linux/SRC/aic79xx-linux-2.4-20030318_tar.gz
158 Patch230:       linux-2.4-aic79xx-20030318.patch.bz2
159 Patch235:       linux-2.4.20-audigy.patch.bz2
160 Patch240:       linux-2.4.20-ecc.patch
161 Patch245:       linux-2.4.20-01-edd.patch
162 Patch246:       linux-2.4.20-02-edd-allocate.patch
163 #i2c - version 2.7.0
164 Patch255:       linux-2.4.20-i2c-2.7.0.patch.gz
165 Patch265:       linux-2.4.20-e820.patch
166 # Syntax bug
167 Patch270:       dc395-tab.patch
168 # http://www.qlogic.com/
169 Patch275:       linux-2.4.20-qla2x00-v6.04.00-fo.patch.gz
170
171 # The following go last as they touch a lot of code
172 # and/or are on bcond and/or are ifarch
173
174 # Win4Lin
175 Patch900:       linux-2.4.20-Win4Lin.PLD.patch.bz2
176 Patch991:       linux-2.4.20-Win4Lin-mki-adapter.patch.bz2
177
178 # Assorted bugfixes
179
180 # jam - http://giga.cps.unizar.es/~magallon/linux/kernel/
181 Patch1000:      jam-04-clone-detached.patch
182 Patch1002:      jam-06-force-inline.patch
183 Patch1003:      jam-07-scsi-error-tmout.patch
184 Patch1004:      jam-08-memparam.patch
185 Patch1006:      jam-10-highpage-init.patch
186 Patch1007:      jam-11-self_exec_id.patch
187 Patch1008:      jam-15-fast-csum-D.patch
188 Patch1009:      jam-21-mem-barriers.patch
189 Patch1010:      jam-30-smptimers-A0.patch
190
191 Patch1100:      linux-2.4.21-lvm-VFSlock.patch
192 Patch1102:      linux-2.4.20-lvm-updates.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 Patch1153:      linux-2.4.20-radeonfb_clean.patch
206 Patch1154:      linux-2.4.20-drm-Makefile.patch
207
208 Patch1201:      linux-2.4.21-cpqfc.patch
209 Patch1203:      linux-2.4.20-amd-golem.patch
210 Patch1205:      linux-53c7,8xx-build.fix
211 Patch1207:      linux-2.4.20-serverworks.patch
212 # this patch adds support for "io" and "irq" options in PCNet32 driver module
213 Patch1209:      linux-2.4.19-pcnet-parms.patch
214
215 # disable some networking printk's
216 Patch1250:      linux-2.4.1-netdebug.patch
217 Patch1251:      linux-2.4.2-raw-ip.patch
218 Patch1252:      linux-2.4.19-netmos_pci_parallel_n_serial.patch
219 Patch1253:      linux-proc_net_dev-counter-fix.patch
220 Patch1254:      kernel-2.4.17-netsyms-export-fix.patch
221 Patch1255:      linux-2.4.20-pre1-nr_frags.patch
222
223 Patch1301:      linux-2.4.18-hpfs.patch
224 Patch1302:      linux-2.4.18-nfs-default-size.patch
225 Patch1303:      linux-2.4.20-irixnfs.patch
226 # Tru64 NFS kludge
227 Patch1304:      linux-2.4.20-tru64nfs.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 Patch1406:      linux-2.4.7-quotareturn.patch
242 Patch1407:      kernel-Makefile-include-fix.patch
243 Patch1408:      kernel-pswscancode.patch
244 Patch1409:      linux-2.4.18-dmi-hall-of-shame.patch
245 Patch1410:      linux-2.4.18-input-35215.patch
246 Patch1411:      linux-2.4.18-kiobuf.patch
247 Patch1413:      linux-2.4.20-andrea-fix-pausing.patch
248 Patch1414:      linux-2.4.21-oopsmeharder.patch
249 Patch1415:      linux-mtd-missing-include-fix-2.4.7-pre6.patch
250 Patch1416:      linux-2.4.20-no-FPU.patch
251
252 Patch2000:      linux-PPC-SMP.patch
253 Patch2001:      linux-2.4-ppc-procesor.patch
254 Patch2002:      kernel-2.4.18-SPARC64-PLD.patch
255 Patch2003:      linux-2.4.20-AXP-avma1_cs.patch
256
257 Patch3000:      linux-2.4.1-compilefailure.patch
258 Patch3002:      linux-2.4.20-EXPORT_SYMBOL.patch
259 Patch3003:      linux-2.4.20-missing-license-tags.patch
260 Patch3004:      linux-2.4.20-sym53c8xx_old.patch
261
262 # Security fixes
263
264 Patch10000:     ftp://ftp.kernel.org/pub/linux/kernel/v2.4/testing/patch-2.4.21-rc2.bz2
265
266 ExclusiveOS:    Linux
267 URL:            http://www.kernel.org/
268 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
269 %ifarch sparc64
270 BuildRequires:  egcs64
271 #%else
272 #BuildRequires: %{kgcc_package}
273 %endif
274 BuildRequires:  modutils
275 Buildrequires:  perl
276 Provides:       %{name}-up = %{version}-%{release}
277 Provides:       module-info
278 Provides:       i2c = 2.7.0
279 Provides:       bttv = 0.7.83
280 Provides:       %{name}(netfilter) = 1.2.7a-%{netfilter_snap}
281 Provides:       %{name}(reiserfs) = %{version}
282 Provides:       %{name}(agpgart) = %{version}
283 Provides:       %{name}(cdrw)
284 Provides:       %{name}(cdmrw)
285 Provides:       %{name}(hostap)
286 Autoreqprov:    no
287 Prereq:         fileutils
288 Prereq:         modutils
289 Prereq:         geninitrd >= 2.21
290 Obsoletes:      kernel-modules
291 ExclusiveArch:  %{ix86} sparc sparc64 alpha ppc
292 %ifarch         %{ix86}
293 BuildRequires:  bin86
294 %endif
295 Conflicts:      iptables < 1.2.7a
296 Conflicts:      lvm < 1.0.4
297 Conflicts:      xfsprogs < 2.1.0
298 Conflicts:      reiserfsprogs < 3.6.3
299 Conflicts:      e2fsprogs < 1.25
300 Conflicts:      jfsutils < 1.0.12
301 Conflicts:      util-linux < 2.10o
302 Conflicts:      modutils < 2.4.2
303 Conflicts:      quota < 3.06
304
305 %description
306 This package contains the Linux kernel that is used to boot and run
307 your system. It contains few device drivers for specific hardware.
308 Most hardware is instead supported by modules loaded after booting.
309
310 %description -l de
311 Das Kernel-Paket enthƤlt den Linux-Kernel (vmlinuz), den Kern des
312 Linux-Betriebssystems. Der Kernel ist fĆ¼r grundliegende
313 Systemfunktionen verantwortlich: Speicherreservierung,
314 ProzeƟ-Management, GerƤte Ein- und Ausgaben, usw.
315
316 %description -l fr
317 Le package kernel contient le kernel linux (vmlinuz), la partie
318 centrale d'un systĆØme d'exploitation Linux. Le noyau traite les
319 fonctions basiques d'un systĆØme d'exploitation: allocation mĆ©moire,
320 allocation de process, entrĆ©e/sortie de peripheriques, etc.
321
322 %description -l pl
323 Pakiet zawiera jĀ±dro Linuksa niezbĆŖdne do prawidĀ³owego dziaĀ³ania
324 Twojego komputera. Zawiera w sobie sterowniki do sprzĆŖtu znajdujĀ±cego
325 siĆŖ w komputerze, takich jak karty muzyczne, sterowniki dyskĆ³w, etc.
326
327 %package smp
328 Summary:        Kernel version %{version} compiled for SMP machines
329 Summary(de):    Kernel version %{version} fĆ¼r Multiprozessor-Maschinen
330 Summary(fr):    Kernel version %{version} compiler pour les machine Multi-Processeur
331 Summary(pl):    JĀ±dro Linuksa %{version} skompilowane dla maszyn wieloprocesorowych
332 Group:          Base/Kernel
333 Provides:       %{name}-smp = %{version}-%{release}
334 Provides:       module-info
335 Provides:       i2c = 2.7.0
336 Provides:       bttv = 0.7.83
337 Provides:       %{name}(netfilter) = 1.2.7a-%{netfilter_snap}
338 Provides:       %{name}(reiserfs) = %{version}
339 Provides:       %{name}(agpgart) = %{version}
340 Provides:       %{name}(cdrw)
341 Provides:       %{name}(cdmrw)
342 Provides:       %{name}(hostap)
343 Prereq:         fileutils
344 Prereq:         modutils
345 Prereq:         geninitrd >= 2.21
346 Autoreqprov:    no
347 Conflicts:      iptables < 1.2.7a
348 Conflicts:      lvm < 1.0.4
349 Conflicts:      xfsprogs < 2.1.0
350 Conflicts:      reiserfsprogs < 3.6.3
351 Conflicts:      e2fsprogs < 1.25
352 Conflicts:      jfsutils < 1.0.12
353 Conflicts:      util-linux < 2.10o
354 Conflicts:      modutils < 2.4.2
355 Conflicts:      quota < 3.06
356
357 %description smp
358 This package includes a SMP version of the Linux %{version} kernel. It
359 is required only on machines with two or more CPUs, although it should
360 work fine on single-CPU boxes.
361
362 %description smp -l de
363 Dieses Paket enthƤlt eine SMP (Multiprozessor)-Version von
364 Linux-Kernel %{version}. Es wird fĆ¼r Maschinen mit zwei oder mehr
365 Prozessoren gebraucht, sollte aber auch auf Computern mit nur einer
366 CPU laufen.
367
368 %description smp -l fr
369 Ce package inclu une version SMP du noyau de Linux version {version}.
370 Il et nĆ©cessaire seulement pour les machine avec deux processeurs ou
371 plus, il peut quand mĆŖme fonctionner pour les systĆØme mono-processeur.
372
373 %description smp -l pl
374 Pakiet zawiera jĀ±dro SMP Linuksa w wersji %{version}. Jest ono
375 wymagane przez komputery zawierajĀ±ce dwa lub wiĆŖcej procesorĆ³w.
376 Powinno rĆ³wnieĀæ dobrze dziaĀ³aƦ na maszynach z jednym procesorem.
377
378 %package BOOT
379 Summary:        Kernel version %{version} used on the installation boot disks
380 Summary(de):    Kernel version %{version} fĆ¼r Installationsdisketten
381 Summary(fr):    Kernel version %{version} utiliser pour les disquettes d'installation
382 Summary(pl):    JĀ±dro Linuksa %{version} dla bootkietek instalacyjnych
383 Group:          Base/Kernel
384 Prereq:         modutils
385 Autoreqprov:    no
386
387 %description BOOT
388 This package includes a trimmed down version of the Linux %{version}
389 kernel. This kernel is used on the installation boot disks only and
390 should not be used for an installed system, as many features in this
391 kernel are turned off because of the size constraints.
392
393 %description BOOT -l de
394 Dieses Paket enthƤlt eine verkleinerte Version vom Linux-Kernel
395 version %{version}. Dieser Kernel wird auf den
396 Installations-Bootdisketten benutzt und sollte nicht auf einem
397 installierten System verwendet werden, da viele Funktionen wegen der
398 Platzprobleme abgeschaltet sind.
399
400 %description BOOT -l pl
401 Pakiet zawiera jĀ±dro Linuksa dedykowane dyskietkom startowym i powinno
402 byƦ uĀæywane jedynie podczas instalacji systemu. Wiele uĀæytecznych
403 opcji zostaĀ³o wyĀ³Ā±czonych, aby jak najbardziej zmniejszyƦ jego
404 rozmiar.
405
406 %package pcmcia-cs
407 Summary:        PCMCIA-CS modules
408 Summary(pl):    ModuĀ³y PCMCIA-CS 
409 Group:          Base/Kernel
410 Provides:       %{name}-pcmcia-cs = %{pcmcia_version}
411 PreReq:         %{name}-up = %{version}-%{release}
412 Requires(postun):       %{name}-up = %{version}-%{release}
413
414 %description pcmcia-cs
415 PCMCIA-CS modules (%{pcmcia_version}).
416
417 %description pcmcia-cs -l pl
418 ModuĀ³y PCMCIA-CS (%{pcmcia_version}).
419
420 %package smp-pcmcia-cs
421 Summary:        PCMCIA-CS modules for SMP kernel
422 Summary(pl):    ModuĀ³y PCMCIA-CS dla maszyn SMP
423 Group:          Base/Kernel
424 Provides:       %{name}-pcmcia-cs = %{pcmcia_version}
425 PreReq:         %{name}-smp = %{version}-%{release}
426 Requires(postun):       %{name}-smp = %{version}-%{release}
427
428 %description smp-pcmcia-cs
429 PCMCIA-CS modules for SMP kernel (%{pcmcia_version}).
430
431 %description smp-pcmcia-cs -l pl
432 ModuĀ³y PCMCIA-CS dla maszyn SMP (%{pcmcia_version}).
433
434 %package drm
435 Summary:        DRM kernel modules
436 Summary(pl):    Sterowniki DRM
437 Group:          Base/Kernel
438 Provides:       %{name}-drm = %{drm_xfree_version}
439 PreReq:         %{name}-up = %{version}-%{release}
440 Requires(postun):       %{name}-up = %{version}-%{release}
441
442 %description drm
443 DRM kernel modules (%{drm_xfree_version}).
444
445 %description drm -l pl
446 Sterowniki DRM (%{drm_xfree_version}).
447
448 %package smp-drm
449 Summary:        DRM SMP kernel modules
450 Summary(pl):    Sterowniki DRM dla maszyn wieloprocesorowych
451 Group:          Base/Kernel
452 Provides:       %{name}-drm = %{drm_xfree_version}
453 PreReq:         %{name}-smp = %{version}-%{release}
454 Requires(postun):       %{name}-smp = %{version}-%{release}
455
456 %description smp-drm
457 DRM SMP kernel modules (%{drm_xfree_version}).
458
459 %description smp-drm -l pl
460 Sterowniki DRM dla maszyn wieloprocesorowych (%{drm_xfree_version}).
461
462 %package headers
463 Summary:        Header files for the Linux kernel
464 Summary(pl):    Pliki nagĀ³Ć³wkowe jĀ±dra
465 Group:          Base/Kernel
466 Provides:       %{name}-headers(agpgart) = %{version}
467 Provides:       %{name}-headers(reiserfs) = %{version}
468 Provides:       %{name}-headers(bridging) = %{version}
469 Provides:       i2c-devel = 2.7.0
470 Provides:       %{name}(netfilter) = 1.2.7a-%{netfilter_snap}
471 Autoreqprov:    no
472
473 %description headers
474 These are the C header files for the Linux kernel, which define
475 structures and constants that are needed when building most standard
476 programs under Linux, as well as to rebuild the kernel.
477
478 %description headers -l pl
479 Pakiet zawiera pliki nagĀ³Ć³wkowe jĀ±dra, niezbĆŖdne do rekompilacji jĀ±dra
480 oraz niektĆ³rych programĆ³w.
481
482 %package source
483 Summary:        Kernel source tree
484 Summary(pl):    Kod Ā¼rĆ³dĀ³owy jĀ±dra Linuksa
485 Group:          Base/Kernel
486 Autoreqprov:    no
487 Requires:       %{name}-headers = %{version}-%{release}
488 %ifarch %{ix86}
489 Requires:       bin86
490 %endif
491
492 %description source
493 This is the source code for the Linux kernel. It is required to build
494 most C programs as they depend on constants defined in here. You can
495 also build a custom kernel that is better tuned to your particular
496 hardware.
497
498 %description source -l de
499 Das Kernel-Source-Paket enthƤlt den source code (C/Assembler-Code) des
500 Linux-Kernels. Die Source-Dateien werden gebraucht, um viele
501 C-Programme zu compilieren, da sie auf Konstanten zurĆ¼ckgreifen, die
502 im Kernel-Source definiert sind. Die Source-Dateien kƶnnen auch
503 benutzt werden, um einen Kernel zu compilieren, der besser auf Ihre
504 Hardware ausgerichtet ist.
505
506 %description source -l fr
507 Le package pour le kernel-source contient le code source pour le noyau
508 linux. Ces sources sont nĆ©cessaires pour compiler la plupart des
509 programmes C, car il dĆ©pend de constantes dĆ©finies dans le code
510 source. Les sources peuvent ĆŖtre aussi utilisĆ©e pour compiler un noyau
511 personnalisĆ© pour avoir de meilleures performances sur des matĆ©riels
512 particuliers.
513
514 %description source -l pl
515 Pakiet zawiera kod Ā¼rĆ³dĀ³owy jĀ±dra systemu.
516
517 %package doc
518 Summary:        Kernel documentation
519 Summary(pl):    Dokumentacja do jĀ±dra Linuksa
520 Group:          Base/Kernel
521 Provides:       %{name}-doc = %{version}
522 Autoreqprov:    no
523
524 %description doc
525 This is the documentation for the Linux kernel, as found in
526 /usr/src/linux/Documentation directory.
527
528 %description doc -l pl
529 Pakiet zawiera dokumentacjĆŖ jĀ±dra z katalogu
530 /usr/src/linux/Documentation.
531
532 %prep
533 %setup -q -a3 -a6 -a8 -a9 -n linux-%{version}
534 %patch10000 -p1
535 # JFS 1.1.1
536 rm -fr fs/jfs
537 gzip -dc %{SOURCE7} | tar -xf -
538 # Adaptec AACRaid new drivers
539 rm -fr drivers/scsi/aacraid
540 bzip2 -dc %{SOURCE10} | tar -xf - -C drivers/scsi/
541 # Changing DRM source ....
542 cp -f drm/*.{c,h} drivers/char/drm/
543 %patch0 -p1
544 %patch10 -p1
545 %patch11 -p1
546 %patch12 -p1
547 %patch15 -p1
548 #%patch20 -p1
549 #%patch21 -p1
550 #%patch22 -p1
551 %patch25 -p1
552 %patch26 -p1
553 #%patch30 -p1
554 #%patch31 -p1
555 #%patch32 -p1
556 #%patch33 -p1
557 #%patch40 -p1
558 #%patch41 -p1
559 %patch45 -p1
560 %patch50 -p1
561 %patch55 -p1
562 #%patch60 -p1
563 #%patch65 -p1
564 #%patch70 -p1
565 %patch75 -p1
566 #%patch100 -p1
567 %patch110 -p1
568 %patch111 -p1
569 %patch115 -p1
570 %patch120 -p1
571 %patch125 -p1
572 #%patch150 -p1
573 #%patch151 -p1
574 #%patch152 -p1
575 #%patch153 -p1
576 #%patch154 -p1
577 #%patch155 -p1
578 #%patch156 -p1
579 #%patch157 -p1
580 #%patch158 -p1
581 #%patch159 -p1
582 #%patch160 -p1
583 #%patch161 -p1
584 #%patch162 -p0
585 #%patch180 -p1
586 #%patch181 -p1
587 #%patch185 -p1
588 #%patch200 -p1
589 #%patch201 -p1
590 #%patch210 -p1
591 #%patch215 -p1
592 #%patch216 -p1
593 #%patch220 -p1
594 #%patch225 -p1
595 #%patch230 -p1
596 %patch235 -p1
597 %patch240 -p1
598 %patch245 -p1
599 %patch246 -p1
600 #%patch255 -p1
601 %patch265 -p1
602 %patch275 -p1
603 %patch1000 -p1
604 %patch1002 -p1
605 %patch1003 -p1
606 %patch1004 -p1
607 %patch1006 -p1
608 %patch1007 -p1
609 %patch1008 -p1
610 %patch1009 -p1
611 %patch1010 -p1
612 %patch1100 -p1
613 %patch1102 -p1
614 %patch1105 -p1
615 %patch1106 -p0
616 %patch1111 -p1
617 %patch1150 -p1
618 %patch1152 -p1
619 %patch1153 -p1
620 %patch1154 -p1
621 %patch1201 -p1
622 %patch1203 -p1
623 %patch1205 -p1
624 %patch1207 -p1
625 %patch1209 -p1
626 %patch1250 -p1
627 %patch1251 -p1
628 %patch1252 -p1
629 %patch1253 -p1
630 %patch1254 -p0
631 %patch1255 -p1
632 %patch1301 -p1
633 %patch1302 -p1
634 %patch1303 -p1
635 %patch1304 -p1
636 %patch1350 -p1
637 %patch1354 -p1
638 %patch1400 -p1
639 %patch1401 -p1
640 %patch1402 -p1
641 %patch1403 -p1
642 %patch1404 -p1
643 %patch1405 -p1
644 %patch1406 -p1
645 %patch1407 -p1
646 %patch1408 -p1
647 %patch1409 -p1
648 %patch1410 -p1
649 %patch1411 -p1
650 %patch1413 -p1
651 %patch1414 -p1
652 %patch1415 -p0
653 #%patch1416 -p1
654
655 %patch2000 -p0
656 %patch2001 -p1
657 %patch2002 -p1
658 %patch2003 -p1
659
660 #%patch3000 -p1
661 #%patch3002 -p1
662 #%patch3003 -p1
663 %patch3004 -p1
664
665 mv -f drivers/scsi/sym53c8xx.c drivers/scsi/sym53c8xx_old.c
666
667 # Tekram DC395/315 U/UW SCSI host driver
668 echo Adding Tekram DC395/315 driver
669 patch -p1 -s <dc395/dc395-integ24.diff
670 install dc395/dc395x_trm.? dc395/README.dc395x drivers/scsi/
671 %patch270 -p1
672
673 # IP personality
674 #echo Adding IP Personality 
675 #patch -p1 -s <ippersonality-%{IPperson_version}/patches/ippersonality-20020819-linux-2.4.19.diff
676
677 # hostap
678 echo Installing Host AP support
679 patch -p1 -s < hostap-%{hostap_version}/kernel-patches/hostap-linux-2.4.19-rc3.patch
680 cp hostap-%{hostap_version}/driver/modules/hostap*.[ch] drivers/net/wireless/
681
682 # The following go last as they touch a lot of code
683 # and/or are on bcond and/or are ifarch
684
685 %ifarch %{ix86}
686 %{?_with_win4lin:echo Win4Lin patch ...}
687 %{?_with_win4lin:%patch900 -p1}
688 %{?_with_win4lin:%patch991 -p1}
689 %endif
690
691 # Remove -g from drivers/atm/Makefile and net/ipsec/Makefile
692 mv -f drivers/atm/Makefile drivers/atm/Makefile.orig
693 sed -e 's/EXTRA_CFLAGS.*//g' drivers/atm/Makefile.orig > drivers/atm/Makefile
694 mv -f net/ipsec/Makefile net/ipsec/Makefile.orig
695 sed -e 's/EXTRA_CFLAGS.*-g//g' net/ipsec/Makefile.orig > net/ipsec/Makefile
696
697 # Fix EXTRAVERSION and CC in main Makefile
698 mv -f Makefile Makefile.orig
699 sed -e 's/EXTRAVERSION =.*/EXTRAVERSION =/g' \
700 %ifarch sparc64
701     -e 's/CC.*$(CROSS_COMPILE)gcc/CC            = sparc64-linux-gcc/g' \
702 %endif
703     Makefile.orig >Makefile
704
705 %build
706 BuildKernel() {
707         %{?_debug:set -x}
708         # is this a special kernel we want to build?
709         BOOT=
710         smp=
711         [ "$1" = "BOOT" -o "$2" = "BOOT" ] && BOOT=yes
712         [ "$1" = "smp" -o "$2" = "smp" ] && smp=yes
713 %ifarch %{ix86}
714         if [ "$smp" = "yes" ]; then
715                 Config="ia32-smp"
716         else
717                 Config="ia32"
718         fi
719 %else
720         if [ "$smp" = "yes" ]; then
721                 Config="%{_target_cpu}-smp"
722         else
723                 Config="%{_target_cpu}"
724         fi
725 %endif
726         if [ "$BOOT" = "yes" ]; then
727                 KernelVer=%{version}-%{release}BOOT
728         else
729                 KernelVer=%{version}-%{release}$1
730         fi
731         echo "BUILDING THE NORMAL KERNEL $*..."
732 :> arch/%{base_arch}/defconfig
733         cat $RPM_SOURCE_DIR/kernel-$Config.config >> arch/%{base_arch}/defconfig
734 %ifarch i386
735         echo "CONFIG_M386=y" >> arch/%{base_arch}/defconfig
736 %endif
737 %ifarch i586
738         echo "CONFIG_M586=y" >> arch/%{base_arch}/defconfig
739 %endif
740 %ifarch i686
741         echo "CONFIG_M686=y" >> arch/%{base_arch}/defconfig
742 %endif
743 %ifarch athlon
744         echo "CONFIG_MK7=y" >> arch/%{base_arch}/defconfig
745 %endif
746         cat %{SOURCE1000} >> arch/%{base_arch}/defconfig
747         cat %{SOURCE1001} >> arch/%{base_arch}/defconfig
748         
749         if [ "$BOOT" = "yes" ] ; then
750                 echo "# CONFIG_GRKERNSEC is not set" >> arch/%{base_arch}/defconfig
751                 echo "# CONFIG_CRYPTO is not set" >> arch/%{base_arch}/defconfig
752                 echo "CONFIG_ROMFS_FS=y" >> arch/%{base_arch}/defconfig
753                 echo "# CONFIG_IP_NF_MATCH_STEALTH is not set">> arch/%{base_arch}/defconfig
754                 echo "# CONFIG_NET_SCH_WRR is not set" >> arch/%{base_arch}/defconfig
755                 echo "# CONFIG_HOSTAP is not set" >> arch/%{base_arch}/defconfig
756                 echo "# CONFIG_USB_KONICAWC is not set">> arch/%{base_arch}/defconfig
757         %ifarch %{ix86}
758                 echo "# CONFIG_MKI is not set" >> arch/%{base_arch}/defconfig
759         %endif
760         fi
761 %ifarch %{ix86}
762                 cat %{SOURCE2000} >> arch/%{base_arch}/defconfig
763 %endif
764
765 %ifarch i386
766         mv -f arch/%{base_arch}/defconfig arch/%{base_arch}/defconfig.orig
767         sed -e 's/# CONFIG_MATH_EMULATION is not set/CONFIG_MATH_EMULATION=y/' \
768                 arch/%{base_arch}/defconfig.orig > arch/%{base_arch}/defconfig
769 %endif
770
771         %{__make} mrproper
772         ln -sf arch/%{base_arch}/defconfig .config
773
774 %ifarch sparc
775         sparc32 %{__make} oldconfig
776         sparc32 %{__make} dep clean
777 %else
778         %{__make} oldconfig
779         %{__make} dep clean
780 %endif
781         %{__make} include/linux/version.h
782
783 # making  table for soundmodem.
784         (cd drivers/net/hamradio/soundmodem; \
785         %{__cc} -o gentbl -lm gentbl.c; \
786         ./gentbl)       
787
788 %ifarch %{ix86}
789         %{__make} bzImage
790 %endif
791 %ifarch sparc
792         sparc32 %{__make} boot
793 %else
794 %ifnarch %{ix86}
795         %{__make}
796 %endif
797 %endif
798 %ifarch sparc
799         sparc32 %{__make} modules
800 %else
801         %{__make} modules
802 %endif
803
804         mkdir -p $KERNEL_INSTALL_DIR/boot
805         install System.map $KERNEL_INSTALL_DIR/boot/System.map-$KernelVer
806 %ifarch %{ix86}
807         cp arch/i386/boot/bzImage $KERNEL_INSTALL_DIR/boot/vmlinuz-$KernelVer
808 %endif
809 %ifarch alpha sparc sparc64
810         gzip -cfv vmlinux > vmlinuz
811         install vmlinux $KERNEL_INSTALL_DIR/boot/vmlinux-$KernelVer
812         install vmlinuz $KERNEL_INSTALL_DIR/boot/vmlinuz-$KernelVer
813 %endif
814 %ifarch ppc
815         install vmlinux $KERNEL_INSTALL_DIR/boot/vmlinux-$KernelVer
816         install vmlinux $KERNEL_INSTALL_DIR/boot/vmlinuz-$KernelVer
817 %endif
818 %ifarch sparc
819         sparc32 %{__make} modules_install \
820         INSTALL_MOD_PATH=$KERNEL_INSTALL_DIR \
821         KERNELRELEASE=$KernelVer
822         echo KERNEL RELEASE $KernelVer
823 %else
824         %{__make} modules_install \
825         INSTALL_MOD_PATH=$KERNEL_INSTALL_DIR \
826         KERNELRELEASE=$KernelVer
827         echo KERNEL RELEASE $KernelVer
828 %endif
829 }
830
831 KERNEL_BUILD_DIR=`pwd`
832 KERNEL_INSTALL_DIR=$KERNEL_BUILD_DIR-installed
833 rm -rf $KERNEL_INSTALL_DIR
834 install -d $KERNEL_INSTALL_DIR
835
836 # make drivers/scsi/ missing files
837 #       (cd drivers/scsi; make -f M)
838         
839 # UP KERNEL
840 %{!?_without_up:BuildKernel}
841
842 # SMP KERNEL
843 %{!?_without_smp:BuildKernel smp}
844
845 # BOOT kernel
846 %ifnarch i586 i686 athlon
847 KERNEL_INSTALL_DIR="$KERNEL_BUILD_DIR-installed/%{_libdir}/bootdisk"
848 rm -rf $KERNEL_INSTALL_DIR
849 %{!?_without_boot:BuildKernel BOOT}
850 %endif
851
852 %install
853 rm -rf $RPM_BUILD_ROOT
854 umask 022
855
856 install -d $RPM_BUILD_ROOT%{_prefix}/{include,src/linux-%{version}}
857
858 KERNEL_BUILD_DIR=`pwd`
859
860 KERNEL_BUILD_INSTALL=no
861 %{!?_without_up:KERNEL_BUILD_INSTALL=yes}
862 %{!?_without_smp:KERNEL_BUILD_INSTALL=yes}
863 [ "$KERNEL_BUILD_INSTALL" = "yes" ] && cp -a $KERNEL_BUILD_DIR-installed/* $RPM_BUILD_ROOT
864
865 for i in "" smp ; do
866         if [ -e  $RPM_BUILD_ROOT/lib/modules/%{version}-%{release}$i ] ; then
867                 rm -f $RPM_BUILD_ROOT/lib/modules/%{version}-%{release}$i/build
868                 ln -sf %{_prefix}/src/linux-%{version} \
869                         $RPM_BUILD_ROOT/lib/modules/%{version}-%{release}$i/build
870         fi
871 done
872 ln -sf ../src/linux/include/linux $RPM_BUILD_ROOT%{_includedir}/linux
873 ln -sf linux-%{version} $RPM_BUILD_ROOT%{_prefix}/src/linux
874
875 %ifarch sparc sparc64
876 ln -s /usr/src/linux/include/asm-sparc $RPM_BUILD_ROOT%{_includedir}/asm-sparc
877 ln -s ../src/linux/include/asm-sparc64 $RPM_BUILD_ROOT%{_includedir}/asm-sparc64
878 %else
879 ln -sf ../src/linux/include/asm $RPM_BUILD_ROOT/usr/include/asm
880 %endif
881
882 %if %{?_without_source:0}%{!?_without_source:1}
883 cp -a . $RPM_BUILD_ROOT/usr/src/linux-%{version}/
884 %else
885 cp -a {include,scripts,Makefile,Rules.make,Documentation} $RPM_BUILD_ROOT/usr/src/linux-%{version}/
886 %endif
887
888 %ifarch sparc sparc64
889 sh %{SOURCE2} $RPM_BUILD_ROOT%{_includedir}
890 cp -a %{SOURCE2} $RPM_BUILD_ROOT%{_includedir}/asm/BuildASM
891 %endif
892
893 cd $RPM_BUILD_ROOT%{_prefix}/src/linux-%{version}
894
895 %if %{?_without_source:0}%{!?_without_source:1}
896 %{__make} mrproper
897
898 find  -name "*~" -print | xargs rm -f
899 find  -name "*.orig" -print | xargs rm -f
900
901 %ifarch %{ix86}
902 cat $RPM_SOURCE_DIR/kernel-ia32.config > .config
903 %else
904 install $RPM_SOURCE_DIR/kernel-%{_target_cpu}.config .config
905 %endif
906
907 %ifarch i386
908 echo "CONFIG_M386=y" >> .config
909 %endif
910 %ifarch i586
911 echo "CONFIG_M586=y" >> .config
912 %endif
913 %ifarch i686
914 echo "CONFIG_M686=y" >> .config
915 %endif
916 %ifarch athlon
917 echo "CONFIG_MK7=y" >> .config
918 %endif
919 cat %{SOURCE1000} >> .config
920 cat %{SOURCE1001} >> .config
921
922 %ifarch %{ix86}
923 cat %{SOURCE2000} >> .config
924 %endif
925
926 %ifarch sparc
927 sparc32 %{__make} oldconfig
928 %else
929 %{__make} oldconfig
930 %endif
931
932 mv include/linux/autoconf.h include/linux/autoconf-up.h
933 cp .config config-up
934
935 %ifarch %{ix86}
936 cat $RPM_SOURCE_DIR/kernel-ia32-smp.config >> .config
937 %else
938 install $RPM_SOURCE_DIR/kernel-%{_target_cpu}-smp.config .config
939 %endif
940
941 %ifarch i386
942 echo "CONFIG_M386=y" >> .config
943 %endif
944 %ifarch i586
945 echo "CONFIG_M586=y" >> .config
946 %endif
947 %ifarch i686
948 echo "CONFIG_M686=y" >> .config
949 %endif
950 %ifarch athlon
951 echo "CONFIG_MK7=y" >> .config
952 %endif
953
954 cat %{SOURCE1000} >> .config
955 cat %{SOURCE1001} >> .config
956
957 %ifarch %{ix86}
958 cat %{SOURCE2000} >> .config
959 %endif
960
961 %ifarch sparc
962 sparc32 %{__make} oldconfig
963 %else
964 %{__make} oldconfig
965 %endif
966 mv include/linux/autoconf.h include/linux/autoconf-smp.h
967 cp .config config-smp
968 %endif
969
970 install %{SOURCE1} $RPM_BUILD_ROOT/usr/src/linux-%{version}/include/linux/autoconf.h
971
972 %if %{?_without_source:0}%{!?_without_source:1}
973 # this generates modversions info which we want to include and we may as
974 # well include the depends stuff as well
975 %{__make} symlinks 
976 %{__make} include/linux/version.h
977 #%{__make} "`pwd`/include/linux/modversions.h"
978 %endif
979 rm -f include/linux/modversions.h
980 echo "#include <linux/modsetver.h>" > include/linux/modversions.h
981
982
983 # this generates modversions info which we want to include and we may as
984 # well include the depends stuff as well, after we fix the paths
985
986 %if %{?_without_source:0}%{!?_without_source:1}
987 %{__make} depend 
988 find $RPM_BUILD_ROOT/usr/src/linux-%{version} -name ".*depend" | \
989 while read file ; do
990         mv $file $file.old
991         sed -e "s|$RPM_BUILD_ROOT\(/usr/src/linux\)|\1|g" < $file.old > $file
992         rm -f $file.old
993 done
994
995 %{__make} clean
996 rm -f scripts/mkdep
997 rm -f drivers/net/hamradio/soundmodem/gentbl
998 %endif
999
1000 # BOOT
1001 %if %{?_without_boot:0}%{!?_without_boot:1}
1002 %ifnarch i586 i686 athlon
1003 install -d $RPM_BUILD_ROOT/%{_libdir}/bootdisk
1004 cp -rdp $KERNEL_BUILD_DIR-installed/%{_libdir}/bootdisk/* $RPM_BUILD_ROOT/%{_libdir}/bootdisk
1005 %endif
1006 %endif
1007
1008 %clean
1009 rm -rf $RPM_BUILD_ROOT
1010 rm -rf $RPM_BUILD_DIR/linux-%{version}-installed
1011
1012 %post
1013 mv -f /boot/vmlinuz /boot/vmlinuz.old 2> /dev/null > /dev/null 
1014 mv -f /boot/System.map /boot/System.map.old 2> /dev/null > /dev/null
1015 ln -sf vmlinuz-%{version}-%{release} /boot/vmlinuz
1016 ln -sf System.map-%{version}-%{release} /boot/System.map
1017
1018 if [ ! -L /lib/modules/%{version} ] ; then
1019         mv -f /lib/modules/%{version} /lib/modules/%{version}.rpmsave > /dev/null 2>&1
1020 fi
1021 rm -f /lib/modules/%{version}
1022 ln -snf %{version}-%{release} /lib/modules/%{version}
1023 /sbin/depmod -a -F /boot/System.map-%{version}-%{release} %{version}-%{release}
1024
1025 /sbin/geninitrd -f --initrdfs=rom /boot/initrd-%{version}-%{release}.gz %{version}-%{release}
1026 mv -f /boot/initrd /boot/initrd.old
1027 ln -sf initrd-%{version}-%{release}.gz /boot/initrd
1028
1029 if [ -f %{_prefix}/src/linux-%{version}/config-up ] ; then
1030         ln -s %{_prefix}/src/linux-%{version}/config-up %{_prefix}/src/linux-%{version}/.config
1031 fi
1032
1033 if [ -x /sbin/rc-boot ] ; then
1034         /sbin/rc-boot 1>&2 || :
1035 fi
1036
1037 %post smp
1038 mv -f /boot/vmlinuz /boot/vmlinuz.old 2> /dev/null > /dev/null
1039 mv -f /boot/System.map /boot/System.map.old 2> /dev/null > /dev/null
1040 ln -sf vmlinuz-%{version}-%{release}smp /boot/vmlinuz
1041 ln -sf System.map-%{version}-%{release}smp /boot/System.map
1042
1043 if [ ! -L /lib/modules/%{version} ] ; then
1044         mv -f /lib/modules/%{version} /lib/modules/%{version}.rpmsave > /dev/null 2>&1
1045 fi
1046 rm -f /lib/modules/%{version}
1047 ln -snf %{version}-%{release}smp /lib/modules/%{version}
1048 /sbin/depmod -a -F /boot/System.map-%{version}-%{release}smp %{version}-%{release}smp
1049
1050 /sbin/geninitrd -f --initrdfs=rom /boot/initrd-%{version}-%{release}smp.gz %{version}-%{release}smp
1051 mv -f /boot/initrd /boot/initrd.old
1052 ln -sf initrd-%{version}-%{release}smp.gz /boot/initrd
1053
1054 if [ -f %{_prefix}/src/linux-%{version}/config-smp ] ; then
1055         ln -s %{_prefix}/src/linux-%{version}/config-smp %{_prefix}/src/linux-%{version}/.config
1056 fi
1057
1058 if [ -x /sbin/rc-boot ] ; then
1059         /sbin/rc-boot 1>&2 || :
1060 fi
1061
1062 %post BOOT
1063 if [ ! -L %{_libdir}/bootdisk/lib/modules/%{version} ] ; then
1064         mv -f %{_libdir}/bootdisk/lib/modules/%{version} %{_libdir}/bootdisk/lib/modules/%{version}.rpmsave
1065 fi
1066 if [ ! -L %{_libdir}/bootdisk/boot/vmlinuz-%{version} ] ; then
1067         mv -f %{_libdir}/bootdisk/boot/vmlinuz-%{version} %{_libdir}/bootdisk/boot/vmlinuz-%{version}.rpmsave
1068 fi
1069 rm -f %{_libdir}/bootdisk/lib/modules/%{version}
1070 ln -snf %{version}-%{release}BOOT %{_libdir}/bootdisk/lib/modules/%{version}
1071 rm -f %{_libdir}/bootdisk/boot/vmlinuz-%{version}
1072 ln -snf vmlinuz-%{version}-%{release}BOOT %{_libdir}/bootdisk/boot/vmlinuz-%{version}
1073
1074 %postun
1075 if [ -L /lib/modules/%{version} ]; then 
1076         if [ "`ls -l /lib/modules/%{version} | awk '{ print $11 }'`" = "%{version}-%{release}" ]; then
1077                 if [ "$1" = "0" ]; then
1078                         rm -f /lib/modules/%{version}
1079                 fi
1080         fi
1081 fi
1082 rm -f /boot/initrd-%{version}-%{release}.gz
1083
1084 %post pcmcia-cs
1085 /sbin/depmod -a -F /boot/System.map-%{version}-%{release} %{version}-%{release}
1086
1087 %postun pcmcia-cs
1088 /sbin/depmod -a -F /boot/System.map-%{version}-%{release} %{version}-%{release} > /dev/null 2>&1
1089
1090 %post drm
1091 /sbin/depmod -a -F /boot/System.map-%{version}-%{release} %{version}-%{release}
1092
1093 %postun drm
1094 /sbin/depmod -a -F /boot/System.map-%{version}-%{release} %{version}-%{release} > /dev/null 2>&1
1095
1096 %postun smp
1097 if [ -L /lib/modules/%{version} ]; then 
1098         if [ "`ls -l /lib/modules/%{version} | awk '{ print $11 }'`" = "%{version}-%{release}smp" ]; then
1099                 if [ "$1" = "0" ]; then
1100                         rm -f /lib/modules/%{version}
1101                 fi
1102         fi
1103 fi
1104 rm -f /boot/initrd-%{version}-%{release}smp.gz
1105
1106 %post smp-pcmcia-cs
1107 /sbin/depmod -a -F /boot/System.map-%{version}-%{release}smp %{version}-%{release}smp
1108
1109 %postun smp-pcmcia-cs
1110 /sbin/depmod -a -F /boot/System.map-%{version}-%{release}smp %{version}-%{release}smp > /dev/null 2>&1
1111
1112 %post smp-drm
1113 /sbin/depmod -a -F /boot/System.map-%{version}-%{release}smp %{version}-%{release}smp
1114
1115 %postun smp-drm
1116 /sbin/depmod -a -F /boot/System.map-%{version}-%{release}smp %{version}-%{release}smp > /dev/null 2>&1
1117
1118 %postun BOOT
1119 if [ -L %{_libdir}/bootdisk/lib/modules/%{version} ]; then 
1120         if [ "`ls -l %{_libdir}/bootdisk/lib/modules/%{version} | awk '{ print $11 }'`" = "%{version}-%{release}BOOT" ]; then
1121                 if [ "$1" = "0" ]; then
1122                         rm -f %{_libdir}/bootdisk/lib/modules/%{version}
1123                 fi
1124         fi
1125 fi
1126
1127 %post headers
1128 rm -f /usr/src/linux
1129 ln -snf linux-%{version} /usr/src/linux
1130
1131 %postun headers
1132 if [ -L /usr/src/linux ]; then 
1133         if [ "`ls -l /usr/src/linux | awk '{ print $11 }'`" = "linux-%{version}" ]; then
1134                 if [ "$1" = "0" ]; then
1135                         rm -f /usr/src/linux
1136                 fi
1137         fi
1138 fi
1139
1140 %if %{?_without_up:0}%{!?_without_up:1}
1141 %files
1142 %defattr(644,root,root,755)
1143 %ifarch alpha sparc ppc
1144 /boot/vmlinux-%{version}-%{release}
1145 %endif
1146 /boot/vmlinuz-%{version}-%{release}
1147 /boot/System.map-%{version}-%{release}
1148 %dir /lib/modules/%{version}-%{release}
1149 /lib/modules/%{version}-%{release}/kernel
1150 %ifnarch sparc
1151 %exclude /lib/modules/%{version}-%{release}/kernel/drivers/pcmcia
1152 %exclude /lib/modules/%{version}-%{release}/kernel/drivers/net/pcmcia
1153 %exclude /lib/modules/%{version}-%{release}/kernel/drivers/scsi/pcmcia
1154 %exclude /lib/modules/%{version}-%{release}/kernel/drivers/char/pcmcia
1155 %exclude /lib/modules/%{version}-%{release}/kernel/drivers/net/wireless/*_cs.o*
1156 %exclude /lib/modules/%{version}-%{release}/kernel/drivers/parport/*_cs.o*
1157 %exclude /lib/modules/%{version}-%{release}/kernel/drivers/bluetooth/*_cs.o*
1158 %endif
1159 %ifnarch ppc sparc
1160 %exclude /lib/modules/%{version}-%{release}/kernel/drivers/ide/ide-cs.o*
1161 %exclude /lib/modules/%{version}-%{release}/kernel/drivers/isdn/hisax/*_cs.o*
1162 %ifnarch alpha
1163 %exclude /lib/modules/%{version}-%{release}/kernel/drivers/isdn/avmb1/avm_cs.o*
1164 %exclude /lib/modules/%{version}-%{release}/kernel/drivers/telephony/*_pcmcia.o*
1165 %endif
1166 %endif
1167 %ifnarch sparc
1168 %exclude /lib/modules/%{version}-%{release}/kernel/drivers/char/drm
1169 %endif
1170 /lib/modules/%{version}-%{release}/build
1171 %ghost /lib/modules/%{version}-%{release}/modules.*
1172
1173 %ifnarch sparc
1174 %files pcmcia-cs
1175 %defattr(644,root,root,755)
1176 /lib/modules/%{version}-%{release}/kernel/drivers/pcmcia
1177 /lib/modules/%{version}-%{release}/kernel/drivers/net/pcmcia
1178 /lib/modules/%{version}-%{release}/kernel/drivers/scsi/pcmcia
1179 /lib/modules/%{version}-%{release}/kernel/drivers/char/pcmcia
1180 /lib/modules/%{version}-%{release}/kernel/drivers/net/wireless/*_cs.o*
1181 /lib/modules/%{version}-%{release}/kernel/drivers/parport/*_cs.o*
1182 /lib/modules/%{version}-%{release}/kernel/drivers/bluetooth/*_cs.o*
1183 %ifnarch ppc
1184 /lib/modules/%{version}-%{release}/kernel/drivers/ide/ide-cs.o*
1185 /lib/modules/%{version}-%{release}/kernel/drivers/isdn/hisax/*_cs.o*
1186 %ifnarch alpha
1187 /lib/modules/%{version}-%{release}/kernel/drivers/isdn/avmb1/avm_cs.o*
1188 /lib/modules/%{version}-%{release}/kernel/drivers/telephony/*_pcmcia.o*
1189 %endif
1190 %endif
1191 %endif
1192
1193 %ifnarch sparc
1194 %files drm
1195 %defattr(644,root,root,755)
1196 /lib/modules/%{version}-%{release}/kernel/drivers/char/drm
1197 %endif                  # %%{_without_up}
1198 %endif
1199
1200 %if %{?_without_smp:0}%{!?_without_smp:1}
1201 %files smp
1202 %defattr(644,root,root,755)
1203 %ifarch sparc ppc
1204 /boot/vmlinux-%{version}-%{release}smp
1205 %endif
1206 /boot/vmlinuz-%{version}-%{release}smp
1207 /boot/System.map-%{version}-%{release}smp
1208 %dir /lib/modules/%{version}-%{release}smp
1209 /lib/modules/%{version}-%{release}smp/kernel
1210 %ifnarch sparc
1211 %exclude /lib/modules/%{version}-%{release}smp/kernel/drivers/pcmcia
1212 %exclude /lib/modules/%{version}-%{release}smp/kernel/drivers/net/pcmcia
1213 %exclude /lib/modules/%{version}-%{release}smp/kernel/drivers/scsi/pcmcia
1214 %exclude /lib/modules/%{version}-%{release}smp/kernel/drivers/char/pcmcia
1215 %exclude /lib/modules/%{version}-%{release}smp/kernel/drivers/net/wireless/*_cs.o*
1216 %exclude /lib/modules/%{version}-%{release}smp/kernel/drivers/parport/*_cs.o*
1217 %exclude /lib/modules/%{version}-%{release}smp/kernel/drivers/bluetooth/*_cs.o*
1218 %endif
1219 %ifnarch ppc sparc
1220 %exclude /lib/modules/%{version}-%{release}smp/kernel/drivers/ide/ide-cs.o*
1221 %exclude /lib/modules/%{version}-%{release}smp/kernel/drivers/isdn/hisax/*_cs.o*
1222 %ifnarch alpha
1223 %exclude /lib/modules/%{version}-%{release}smp/kernel/drivers/isdn/avmb1/avm_cs.o*
1224 %exclude /lib/modules/%{version}-%{release}smp/kernel/drivers/telephony/*_pcmcia.o*
1225 %endif
1226 %endif
1227 %ifnarch sparc
1228 %exclude /lib/modules/%{version}-%{release}smp/kernel/drivers/char/drm
1229 %endif
1230 /lib/modules/%{version}-%{release}smp/build
1231 %ghost /lib/modules/%{version}-%{release}smp/modules.*
1232
1233 %ifnarch sparc
1234 %files -n kernel-smp-pcmcia-cs
1235 %defattr(644,root,root,755)
1236 /lib/modules/%{version}-%{release}smp/kernel/drivers/pcmcia
1237 /lib/modules/%{version}-%{release}smp/kernel/drivers/net/pcmcia
1238 /lib/modules/%{version}-%{release}smp/kernel/drivers/scsi/pcmcia
1239 /lib/modules/%{version}-%{release}smp/kernel/drivers/char/pcmcia
1240 /lib/modules/%{version}-%{release}smp/kernel/drivers/net/wireless/*_cs.o*
1241 /lib/modules/%{version}-%{release}smp/kernel/drivers/parport/*_cs.o*
1242 /lib/modules/%{version}-%{release}smp/kernel/drivers/bluetooth/dtl1_cs.o*
1243 %ifnarch ppc
1244 /lib/modules/%{version}-%{release}smp/kernel/drivers/ide/ide-cs.o*
1245 /lib/modules/%{version}-%{release}smp/kernel/drivers/isdn/hisax/*_cs.o*
1246 %ifnarch alpha
1247 /lib/modules/%{version}-%{release}smp/kernel/drivers/isdn/avmb1/avm_cs.o*
1248 /lib/modules/%{version}-%{release}smp/kernel/drivers/telephony/*_pcmcia.o*
1249 %endif
1250 %endif
1251 %endif
1252
1253 %ifnarch sparc
1254 %files -n kernel-smp-drm
1255 %defattr(644,root,root,755)
1256 /lib/modules/%{version}-%{release}smp/kernel/drivers/char/drm
1257 %endif                  # %%{_without_smp}
1258 %endif
1259
1260 %if %{?_without_boot:0}%{!?_without_boot:1}
1261 %ifnarch i586 i686 athlon               # narch
1262 %files BOOT
1263 %defattr(644,root,root,755)
1264 %ifarch alpha sparc ppc         # arch
1265 %{_libdir}/bootdisk/boot/vmlinux-%{version}-%{release}BOOT
1266 %endif                          #arch
1267 %{_libdir}/bootdisk/boot/vmlinuz-%{version}-%{release}BOOT
1268 %{_libdir}/bootdisk/boot/System.map-%{version}-%{release}BOOT
1269 %dir %{_libdir}/bootdisk/lib/modules/%{version}-%{release}BOOT
1270 %{_libdir}/bootdisk/lib/modules/%{version}-%{release}BOOT/kernel
1271 %{_libdir}/bootdisk/lib/modules/%{version}-%{release}BOOT/build
1272 %ghost %{_libdir}/bootdisk/lib/modules/%{version}-%{release}BOOT/modules.*
1273 %endif                          # narch
1274 %endif                          # %%{_without_boot}
1275
1276 %files headers
1277 %defattr(644,root,root,755)
1278 %dir %{_prefix}/src/linux-%{version}
1279 %{_prefix}/src/linux-%{version}/include
1280 %{_includedir}/asm
1281 %{_includedir}/linux
1282
1283 %if %{?_without_doc:0}%{!?_without_doc:1}
1284 %files doc
1285 %defattr(644,root,root,755)
1286 %{_prefix}/src/linux-%{version}/Documentation
1287 %endif
1288
1289 %if %{?_without_source:0}%{!?_without_source:1}
1290 %files source
1291 %defattr(644,root,root,755)
1292 %{_prefix}/src/linux-%{version}/arch
1293 %{_prefix}/src/linux-%{version}/crypto
1294 %{_prefix}/src/linux-%{version}/drivers
1295 %{_prefix}/src/linux-%{version}/fs
1296 %{_prefix}/src/linux-%{version}/init
1297 %{_prefix}/src/linux-%{version}/ipc
1298 #%{_prefix}/src/linux-%{version}/kdb
1299 %{_prefix}/src/linux-%{version}/kernel
1300 %{_prefix}/src/linux-%{version}/lib
1301 %{_prefix}/src/linux-%{version}/mm
1302 %{_prefix}/src/linux-%{version}/net
1303 %{_prefix}/src/linux-%{version}/scripts
1304 %{_prefix}/src/linux-%{version}/.config
1305 %{_prefix}/src/linux-%{version}/.depend
1306 %{_prefix}/src/linux-%{version}/.hdepend
1307 %{_prefix}/src/linux-%{version}/COPYING
1308 %{_prefix}/src/linux-%{version}/CREDITS
1309 %{_prefix}/src/linux-%{version}/MAINTAINERS
1310 %{_prefix}/src/linux-%{version}/Makefile
1311 %{_prefix}/src/linux-%{version}/README
1312 %{_prefix}/src/linux-%{version}/REPORTING-BUGS
1313 %{_prefix}/src/linux-%{version}/Rules.make
1314 %{_prefix}/src/linux-%{version}/config*
1315 %endif
This page took 0.146904 seconds and 4 git commands to generate.