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