# # If you define the following as 1, only kernel, -headers and -source # packages will be built # # _without_smp - don't build SMP kernel # _without_up - don't build UP kernel # _without_boot - don't build BOOT kernel # _without_source - don't build source # _without_doc - don't build documentation package # _without_grsec - don't apply grsecurity patch # _without_kheaders - build without support for glibc-kernel-headers # %define _without_grsec 1 %define base_arch %(echo %{_target_cpu} | sed 's/i.86/i386/;s/athlon/i386/') %define no_install_post_strip 1 %define no_install_post_compress_modules 1 # %define pre_version rc6 %define drm_xfree_version 4.3.0 %define hostap_version 2002-10-12 %define netfilter_snap 20030915 %define i2c_version 2.8.0 Summary: The Linux kernel (the core of the Linux operating system) Summary(de): Der Linux-Kernel (Kern des Linux-Betriebssystems) Summary(es): Núcleo (Kernel) linux genérico Summary(fr): Le Kernel-Linux (La partie centrale du systeme) Summary(pl): J±dro Linuksa Summary(pt_BR): Kernel Linux (a parte central do sistema operacional Linux) Name: kernel Version: 2.4.22 Release: 0.2 License: GPL Group: Base/Kernel Source0: ftp://ftp.kernel.org/pub/linux/kernel/v2.4/linux-%{version}.tar.bz2 # Source0-md5: 75dc85149b06ac9432106b8941eb9f7b Source1: %{name}-autoconf.h Source2: %{name}-BuildASM.sh Source3: http://www.garloff.de/kurt/linux/dc395/dc395-141.tar.gz # Source3-md5: 8ed492197244b6a772270417c66214d3 Source4: linux-2.4.22-netfilter-%{netfilter_snap}.tar.gz # Source4-md5: fbbbe9b0669c7e766ddf125dfa11781c Source5: linux-2.4.19-netfilter-IMQ.patch.tar.bz2 # Source5-md5: b8f2f7a268a5cb75fabcaec3b5d45fcd Source7: http://www10.software.ibm.com/developer/opensource/jfs/project/pub/jfs-2.4-1.1.2.tar.gz # Source7-md5: 2473f345c66683a03ad27ff132d405b7 Source8: http://www.xfree86.org/~alanh/linux-drm-%{drm_xfree_version}-kernelsource.tar.gz # Source8-md5: 34515784c7b67f6cc9169aa9eed982c7 Source9: http://hostap.epitest.fi/releases/hostap-%{hostap_version}.tar.gz # Source9-md5: f5170147792a591120437dd33dbb106d Source10: linux-2.4.20-aacraid.tar.bz2 # Source10-md5: 3da1f4b229685766cb4f2f5ce242c0d2 Source20: %{name}-ia32.config Source21: %{name}-ia32-smp.config Source50: %{name}-sparc.config Source51: %{name}-sparc-smp.config Source60: %{name}-sparc64.config Source61: %{name}-sparc64-smp.config Source70: %{name}-alpha.config Source71: %{name}-alpha-smp.config Source73: %{name}-ppc.config Source74: %{name}-ppc-smp.config Source1000: %{name}-addon.config Source1001: %{name}-netfilter.config Source1002: %{name}-grsec.config Source2000: %{name}-win4lin.config # New features/updates/backports # Essential stuff Patch0: %{name}-pldfblogo.patch # from ftp://ftp.kernel.org/pub/linux/kernel/people/hvr/testing/ Patch10: patch-cryptoloop-jari-2.4.22-rc2.0 # from ftp://ftp.xs4all.nl/pub/crypto/freeswan/freeswan-* Patch12: linux-2.4.21-freeswan-2.00.patch.gz Patch15: linux-2.4.21-sched-O1.patch # http://dl.sourceforge.net/user-mode-linux/uml-patch-2.4.20-6.bz2 Patch20: uml-patch-2.4.20-6-21.bz2 Patch21: linux-2.4.21-uml-o1.patch # http://dl.sourceforge.net/user-mode-linux/host-skas3.patch Patch22: linux-2.4.20-uml-host-skas3.patch Patch23: linux-bigger-printk-buffer.patch # New filesystems # http://linux-xfs.sgi.com/projects/xfs/ #Patch25: linux-2.4.21-core-xfs-1.3.0.patch.gz #Patch26: linux-xfs-1.3.0pre5.patch.gz Patch25: linux-2.4.22-xfs-2003-09-03.patch.gz # http://acl.bestbits.at/ Patch30: linux-2.4.21-jfs-xattr.patch Patch31: linux-2.4.21-jfs-acl.patch Patch32: linux-2.4.22-ea+acl+nfsacl-0.8.60.diff.gz # http://dl.sourceforge.net/linux-ntfs/ Patch40: linux-2.4.22-ntfs-2.1.4c.patch.gz # FC01_davfs_0.2.4.patch Patch50: linux-2.4.20-davfs-0.2.4.patch.bz2 # FC02_davfs__FUNCTION__.patch Patch55: linux-2.4.20-davfs-_FUNCTION_.patch # ftp://ftp.suse.com/pub/people/jeffm/reiserfs/aclea/ Patch60: linux-2.4.22-reiserfs-acl+ea.patch # data logging and quota for reiserfs # ftp://ftp.suse.com/pub/people/mason/patches/data-logging/2.4.21/ Patch61: linux-2.4.22-reiserfs-data-logging+quota.patch.gz # http://dl.sourceforge.net/squashfs/squashfs-1.3.tar.gz Patch65: squashfs1.3-2.4.21-patch #from http://sci.felk.cvut.cz/nwd/linux/nwd-patch-2.4.19 Patch70: nwd-2.4.21.patch Patch80: linux-2.4.22-intermezzo-acl.patch # Networking # new version of netfilter. Patch100: linux-2.4.22-netfilter-%{netfilter_snap}.patch.gz # http://ebtables.sourceforge.net/ Patch110: ebtables-brnf-2_vs_2.4.22.diff.gz # http://www.linuxvirtualserver.org/software/kernel-2.4/linux-2.4.18-ipvs-%{ipvs_version}.patch.gz Patch115: linux-2.4.22-ipvs-1.0.9.patch.gz # http://trash.net/~kaber/imq/ Patch120: imq-2.4.18.diff-10 # ftp://ftp.samba.org/pub/unpacked/ppp/linux/mppe/ Patch125: linux-2.4.18-mppe.patch Patch130: linux-2.4.22-tun-new-style.patch # ATM bugfixes # Patches by Chas Williams # Included in Chas patch: # http://tulipe.cnam.fr/personne/lizzi/linux/linux-2.3.99-pre6-fore200e-0.2f.tar.gz # http://christophe.lizzi.free.fr/linux/linux-2.4.0-test9-fore200e-0.3.tar.gz # ftp://ftp.cmf.nrl.navy.mil/pub/chas/linux-atm/ Patch150: linux-2.4.21-atm_diffs.patch Patch151: ftp://ftp.cmf.nrl.navy.mil/pub/chas/linux-atm/vbr/vbr-kernel-diffs # patch for patch in Source9 Patch190: hostap-2.4.19-rc3-patch.patch # New devices/drivers # http://people.sistina.com/~thornber/patches/2.4-stable/ Patch200: linux-2.4.22-dm-1.patch # EVMS support (http://www.sourceforge.net/projects/evms/) # Disabled due to conflicts with LVM2 and device mapper tools Patch205: linux-2.4.22-evms-2.1.1.patch #from http://dl.sourceforge.net/i810fb/linux-2.4.20-i810fb.diff.bz2 Patch210: linux-2.4.21-I810FB.patch.gz # Support for CDRW packet writing Patch215: %{name}-cdrw-packet.patch Patch216: %{name}-cd-mrw-2.patch Patch225: wrr-linux-2.4.9.patch Patch226: linux-2.4.18-esfq.diff Patch227: layer7-kernel2.4patch-v0.1.4.patch Patch231: linux-2.4.21-aic7xxx-mmapio.patch Patch235: linux-2.4.20-audigy.patch.bz2 Patch240: linux-2.4.20-ecc.patch Patch245: linux-2.4.20-01-edd.patch Patch246: linux-2.4.20-02-edd-allocate.patch # i2c - version 2.8.0 Patch255: linux-2.4.22-i2c-%{i2c_version}.patch Patch256: linux-2.4.21-i2c-headers.patch Patch257: linux-2.4.21-i2c-sparc64.patch Patch265: linux-2.4.20-e820.patch # Syntax bug Patch270: dc395-tab.patch # http://www.qlogic.com/ Patch275: linux-2.4.20-qla2x00-v6.04.00-fo.patch.gz # ftp://ftp.lsil.com/pub/linux-megaraid/drivers/version-1.18j/megaraid-v1.18j.tgz Patch280: %{name}-megaraid.patch # The following go last as they touch a lot of code # and/or are on bcond and/or are ifarch # Win4Lin Patch900: linux-2.4.20-Win4Lin.PLD.patch.bz2 Patch991: linux-2.4.20-Win4Lin-mki-adapter.patch.bz2 # Assorted bugfixes # jam - http://giga.cps.unizar.es/~magallon/linux/kernel/ Patch1000: jam-04-clone-detached.patch Patch1002: jam-06-force-inline.patch Patch1003: jam-07-scsi-error-tmout.patch Patch1006: jam-10-highpage-init.patch Patch1007: jam-11-self_exec_id.patch Patch1008: jam-15-fast-csum-D.patch Patch1009: jam-21-mem-barriers.patch Patch1010: jam-30-smptimers-A0.patch Patch1102: linux-2.4.20-lvm-updates.patch # IrDA patch for broken IBM Latpops Patch1104: linux-2.4.21-irda-ibm.patch # fix lun probing on multilun RAID chassis Patch1105: linux-2.4.12-scsi_scan.patch Patch1106: linux-scsi-debug-bug.patch # This patch allows to create more than one sound device using alsa # and devfs with two or more sound cards Patch1111: linux-sound_core.patch # rivafb - fix for text background in 16bpp modes Patch1150: linux-rivafb16.patch Patch1152: linux-2.4.20-agp_uninorth.patch Patch1154: linux-2.4.20-drm-Makefile.patch Patch1201: linux-2.4.21-cpqfc.patch Patch1203: linux-2.4.20-amd-golem.patch Patch1205: linux-53c7,8xx-build.fix Patch1207: linux-2.4.20-serverworks.patch # this patch adds support for "io" and "irq" options in PCNet32 driver module Patch1209: linux-2.4.19-pcnet-parms.patch # disable some networking printk's Patch1250: linux-2.4.1-netdebug.patch Patch1251: linux-2.4.2-raw-ip.patch Patch1252: linux-2.4.19-netmos_pci_parallel_n_serial.patch Patch1253: linux-proc_net_dev-counter-fix.patch Patch1254: kernel-2.4.17-netsyms-export-fix.patch Patch1255: linux-2.4.20-pre1-nr_frags.patch Patch1301: linux-2.4.18-hpfs.patch Patch1302: linux-2.4.18-nfs-default-size.patch Patch1303: linux-2.4.20-irixnfs.patch # Tru64 NFS kludge Patch1304: linux-2.4.21-tru64nfs.patch Patch1305: linux-2.4.21-nfs-silly-rename.patch Patch1350: linux-2.4.21-nousb.patch # from http://www.noc.uoa.gr/~avel/page.php?page=nokia&lang=en Patch1354: linux-2.4.20-Nokia5510.patch # raid5 xor fix for PIII/P4, should go away shortly Patch1400: linux-2.4.0-raid5xor.patch Patch1401: linux-2.4.0-nonintconfig.patch # Add an ioctl to the block layer so we can be EFI compliant Patch1402: linux-2.4.2-blkioctl-sector.patch Patch1403: linux-2.4.3-pcipenalty.patch Patch1404: linux-2.4.3-rawio.patch Patch1405: linux-2.4.7-suspend.patch Patch1407: kernel-Makefile-include-fix.patch Patch1408: kernel-pswscancode.patch Patch1410: linux-2.4.18-input-35215.patch Patch1411: linux-2.4.18-kiobuf.patch Patch1413: linux-2.4.22-andrea-9980_fix-pausing-6.patch Patch1414: linux-2.4.21-oopsmeharder.patch Patch1415: linux-mtd-missing-include-fix-2.4.7-pre6.patch Patch1416: linux-2.4.21-no-FPU.patch Patch1417: linux-2.4.22-ac3-ide+sata.patch Patch1418: linux-2.4.21-hpt372-chicken-egg-hack.patch Patch1419: linux-2.4.21-agp-num_of_masks.patch # fix spare disk counting for raid 5 Patch1420: linux-raid5-spare-counting.patch Patch1421: linux-2.4.21-bttv-typo.patch Patch1422: linux-2.4.21-ipt_TRACE-typo.patch # htb # http://luxik.cdi.cz/~devik/qos/htb/v3/ Patch1501: htb_killdbg_2421.diff Patch1600: linux-pcwd.patch Patch2000: linux-PPC-SMP.patch Patch2001: linux-2.4-ppc-procesor.patch Patch2002: kernel-2.4.18-SPARC64-PLD.patch Patch2003: linux-2.4.20-AXP-avma1_cs.patch Patch3000: linux-2.4.1-compilefailure.patch Patch3002: linux-2.4.20-EXPORT_SYMBOL.patch Patch3003: linux-2.4.20-missing-license-tags.patch Patch3004: linux-2.4.20-sym53c8xx_old.patch Patch3005: linux-2.4.21-gcc33.patch Patch3006: linux-2.4.21-sparc-gcc3.patch Patch3008: linux-drm-4.2.0-force-cmpxchg.patch Patch3009: linux-2.4.21-alpha-gcc33.patch Patch3010: linux-2.4.21-ipsec-sparc64.patch Patch3011: linux-2.4.22-gcc33-inline.patch # Security patches/fixes Patch4000: linux-2.4.22-ow1-stack.patch Patch4001: grsecurity-nopax-2.0-rc2-2.4.21.patch Patch5000: linux-2.4.22-security.patch #Patch10000: ftp://ftp.kernel.org/pub/linux/kernel/v2.4/testing/patch-2.4.21-rc6.bz2 ExclusiveOS: Linux URL: http://www.kernel.org/ %ifarch %{ix86} BuildRequires: bin86 %endif #BuildRequires: %{kgcc_package} BuildRequires: modutils BuildRequires: ed Autoreqprov: no PreReq: modutils PreReq: geninitrd >= 2.40 Requires(post,postun): fileutils Requires(postun): awk Provides: %{name}-up = %{version}-%{release} Provides: module-info Provides: i2c = %{i2c_version} Provides: bttv = 0.7.83 Provides: %{name}(netfilter) = 1.2.8-%{netfilter_snap} Provides: %{name}(reiserfs) = %{version} Provides: %{name}(agpgart) = %{version} #Provides: %{name}(cdrw) #Provides: %{name}(cdmrw) Provides: %{name}(hostap) Obsoletes: kernel-modules ExclusiveArch: %{ix86} sparc sparc64 alpha ppc BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) Conflicts: iptables < 1.2.8 Conflicts: lvm < 1.0.4 Conflicts: xfsprogs < 2.1.0 Conflicts: reiserfsprogs < 3.6.3 Conflicts: e2fsprogs < 1.25 Conflicts: jfsutils < 1.0.12 Conflicts: util-linux < 2.10o Conflicts: modutils < 2.4.2 Conflicts: quota < 3.06 Conflicts: linux-atm < 2.4.1 Conflicts: device-mapper < 1.00.05 %description This package contains the Linux kernel that is used to boot and run your system. It contains few device drivers for specific hardware. Most hardware is instead supported by modules loaded after booting. %description -l de Das Kernel-Paket enthält den Linux-Kernel (vmlinuz), den Kern des Linux-Betriebssystems. Der Kernel ist für grundliegende Systemfunktionen verantwortlich: Speicherreservierung, Prozeß-Management, Geräte Ein- und Ausgaben, usw. %description -l es Este paquete contiene núcleo (kernel) Linux que se usa para arranque y funcionamiento de tu sistema. Contiene soporte a pocos hardwares específicos. La mayoría de los hardwares son soportados, vía módulos que se cargan después del arranque. %description -l fr Le package kernel contient le kernel linux (vmlinuz), la partie centrale d'un système d'exploitation Linux. Le noyau traite les fonctions basiques d'un système d'exploitation: allocation mémoire, allocation de process, entrée/sortie de peripheriques, etc. %description -l pl Pakiet zawiera j±dro Linuksa niezbêdne do prawid³owego dzia³ania Twojego komputera. Zawiera w sobie sterowniki do sprzêtu znajduj±cego siê w komputerze, takich jak karty muzyczne, sterowniki dysków, etc. %description -l pt_BR Este pacote contém o kernel Linux que é usado para inicialização e funcionamento de seu sistema. Contém suporte a poucos hardwares específicos. A maioria dos hardwares são suportados via módulos que são carregados após a inicialização. %package smp Summary: Kernel version %{version} compiled for SMP machines Summary(de): Kernel version %{version} für Multiprozessor-Maschinen Summary(es): Núcleo (kernel) compilado para máquinas SMP Summary(fr): Kernel version %{version} compiler pour les machine Multi-Processeur Summary(pl): J±dro Linuksa %{version} skompilowane dla maszyn wieloprocesorowych Summary(pt_BR): Kernel compilado para máquinas SMP Group: Base/Kernel Autoreqprov: no PreReq: modutils PreReq: geninitrd >= 2.21 Requires(post,postun): fileutils Requires(postun): awk Provides: %{name}-smp = %{version}-%{release} Provides: module-info Provides: i2c = %{i2c_version} Provides: bttv = 0.7.83 Provides: %{name}(netfilter) = 1.2.8-%{netfilter_snap} Provides: %{name}(reiserfs) = %{version} Provides: %{name}(agpgart) = %{version} #Provides: %{name}(cdrw) #Provides: %{name}(cdmrw) Provides: %{name}(hostap) Conflicts: iptables < 1.2.8 Conflicts: lvm < 1.0.4 Conflicts: xfsprogs < 2.1.0 Conflicts: reiserfsprogs < 3.6.3 Conflicts: e2fsprogs < 1.25 Conflicts: jfsutils < 1.0.12 Conflicts: util-linux < 2.10o Conflicts: modutils < 2.4.2 Conflicts: quota < 3.06 Conflicts: linux-atm < 2.4.1 Conflicts: device-mapper < 1.00.05 %description smp This package includes a SMP version of the Linux %{version} kernel. It is required only on machines with two or more CPUs, although it should work fine on single-CPU boxes. %description smp -l de Dieses Paket enthält eine SMP (Multiprozessor)-Version von Linux-Kernel %{version}. Es wird für Maschinen mit zwei oder mehr Prozessoren gebraucht, sollte aber auch auf Computern mit nur einer CPU laufen. %description smp -l es Núcleo (kernel) compilado para máquinas SMP %description smp -l fr Ce package inclu une version SMP du noyau de Linux version %{version}. Il et nécessaire seulement pour les machine avec deux processeurs ou plus, il peut quand même fonctionner pour les système mono-processeur. %description smp -l pl Pakiet zawiera j±dro SMP Linuksa w wersji %{version}. Jest ono wymagane przez komputery zawieraj±ce dwa lub wiêcej procesorów. Powinno równie¿ dobrze dzia³aæ na maszynach z jednym procesorem. %description smp -l pt_BR Este pacote inclui uma versão SMP do kernel Linux versão %{version}. Ele deve ser utilizado apenas em máquinas com dois ou mais processadores, apesar de trabalhar perfeitamente em máquinas com apenas um processador. %package BOOT Summary: Kernel version %{version} used on the installation boot disks Summary(de): Kernel version %{version} für Installationsdisketten Summary(es): Núcleo (kernel) de Linux, utilizado en el disco de instalación Summary(fr): Kernel version %{version} utiliser pour les disquettes d'installation Summary(pl): J±dro Linuksa %{version} dla bootkietek instalacyjnych Summary(pt_BR): Kernel Linux utilizado no disco de instalação Group: Base/Kernel Autoreqprov: no PreReq: modutils Requires(post,postun): fileutils Requires(postun): awk %description BOOT This package includes a trimmed down version of the Linux %{version} kernel. This kernel is used on the installation boot disks only and should not be used for an installed system, as many features in this kernel are turned off because of the size constraints. %description BOOT -l de Dieses Paket enthält eine verkleinerte Version vom Linux-Kernel version %{version}. Dieser Kernel wird auf den Installations-Bootdisketten benutzt und sollte nicht auf einem installierten System verwendet werden, da viele Funktionen wegen der Platzprobleme abgeschaltet sind. %description BOOT -l es Núcleo (kernel) de Linux, utilizado en el disco de instalación %description BOOT -l pl Pakiet zawiera j±dro Linuksa dedykowane dyskietkom startowym i powinno byæ u¿ywane jedynie podczas instalacji systemu. Wiele u¿ytecznych opcji zosta³o wy³±czonych, aby jak najbardziej zmniejszyæ jego rozmiar. %description BOOT -l pt_BR Este pacote inclui uma versão minimizada do kernel Linux, criada para ser utilizada *apenas* no disco de instalação, e não deve ser utilizada em máquinas já instaladas, pois várias características do kernel são desabilitadas para diminuir o tamanho final do kernel a ser utilizado. %package pcmcia-cs Summary: PCMCIA-CS modules Summary(pl): Modu³y PCMCIA-CS Group: Base/Kernel PreReq: %{name}-up = %{version}-%{release} Requires(postun): %{name}-up = %{version}-%{release} Provides: %{name}-pcmcia-cs = %{pcmcia_version} %description pcmcia-cs PCMCIA-CS modules (%{pcmcia_version}). %description pcmcia-cs -l pl Modu³y PCMCIA-CS (%{pcmcia_version}). %package smp-pcmcia-cs Summary: PCMCIA-CS modules for SMP kernel Summary(pl): Modu³y PCMCIA-CS dla maszyn SMP Group: Base/Kernel PreReq: %{name}-smp = %{version}-%{release} Requires(postun): %{name}-smp = %{version}-%{release} Provides: %{name}-pcmcia-cs = %{pcmcia_version} %description smp-pcmcia-cs PCMCIA-CS modules for SMP kernel (%{pcmcia_version}). %description smp-pcmcia-cs -l pl Modu³y PCMCIA-CS dla maszyn SMP (%{pcmcia_version}). %package drm Summary: DRM kernel modules Summary(pl): Sterowniki DRM Group: Base/Kernel PreReq: %{name}-up = %{version}-%{release} Requires(postun): %{name}-up = %{version}-%{release} Provides: %{name}-drm = %{drm_xfree_version} %description drm DRM kernel modules (%{drm_xfree_version}). %description drm -l pl Sterowniki DRM (%{drm_xfree_version}). %package smp-drm Summary: DRM SMP kernel modules Summary(pl): Sterowniki DRM dla maszyn wieloprocesorowych Group: Base/Kernel PreReq: %{name}-smp = %{version}-%{release} Requires(postun): %{name}-smp = %{version}-%{release} Provides: %{name}-drm = %{drm_xfree_version} %description smp-drm DRM SMP kernel modules (%{drm_xfree_version}). %description smp-drm -l pl Sterowniki DRM dla maszyn wieloprocesorowych (%{drm_xfree_version}). %package headers Summary: Header files for the Linux kernel Summary(es): Archivos de inclusión para núcleo (kernel) Linux. Summary(pl): Pliki nag³ówkowe j±dra Summary(pt_BR): Arquivos de inclusão para o kernel Linux. Group: Base/Kernel Autoreqprov: no Requires(post,postun): fileutils Requires(postun): awk Provides: %{name}-headers(agpgart) = %{version} Provides: %{name}-headers(reiserfs) = %{version} Provides: %{name}-headers(bridging) = %{version} Provides: i2c-devel = %{i2c_version} Provides: %{name}-headers(netfilter) = 1.2.8-%{netfilter_snap} %description headers These are the C header files for the Linux kernel, which define structures and constants that are needed when building most standard programs under Linux, as well as to rebuild the kernel. %description headers -l es Estos son los archivos de inclusión C para núcleo (kernel) Linux, que define estructuras y constantes que son necesarias a la construcción de la mayoría de los programas en el Linux, como también para reconstruir el núcleo (kernel). %description headers -l pl Pakiet zawiera pliki nag³ówkowe j±dra, niezbêdne do rekompilacji j±dra oraz niektórych programów. %description headers -l pt_BR Estes são os arquivos de inclusão C para o kernel Linux, os quais definem estruturas e constantes que são necessárias para a construção da maioria dos programas no Linux, bem como para reconstruir o próprio kernel. %package source Summary: Kernel source tree Summary(es): Fuentes del núcleo (kernel) Linux Summary(pl): Kod ¼ród³owy j±dra Linuksa Summary(pt_BR): Fontes do kernel Linux Group: Base/Kernel Autoreqprov: no Requires: %{name}-headers = %{version}-%{release} %ifarch %{ix86} Requires: bin86 %endif %description source This is the source code for the Linux kernel. It is required to build most C programs as they depend on constants defined in here. You can also build a custom kernel that is better tuned to your particular hardware. %description source -l de Das Kernel-Source-Paket enthält den source code (C/Assembler-Code) des Linux-Kernels. Die Source-Dateien werden gebraucht, um viele C-Programme zu compilieren, da sie auf Konstanten zurückgreifen, die im Kernel-Source definiert sind. Die Source-Dateien können auch benutzt werden, um einen Kernel zu compilieren, der besser auf Ihre Hardware ausgerichtet ist. %description source -l es Este es el fuente para el núcleo (kernel) Linux. Se necesita para la construcción de la mayoría de los programas C, pues dependen de constantes definidas en él. Tu puedes también construir un núcleo (kernel) personalizado que será lo mejor configurado para tu hardware en particular. %description source -l fr Le package pour le kernel-source contient le code source pour le noyau linux. Ces sources sont nécessaires pour compiler la plupart des programmes C, car il dépend de constantes définies dans le code source. Les sources peuvent être aussi utilisée pour compiler un noyau personnalisé pour avoir de meilleures performances sur des matériels particuliers. %description source -l pl Pakiet zawiera kod ¼ród³owy j±dra systemu. %description source -l pt_BR Este é o fonte para o kernel Linux. É necessário para a construção da maioria dos programas C, pois eles dependem de constantes definidas nele. Você também pode construir um kernel personalizado que será melhor configurado para seu hardware particular. %package doc Summary: Kernel documentation Summary(es): Documentación para los archivos fuente del núcleo (kernel) de Linux Summary(pl): Dokumentacja do j±dra Linuksa Summary(pt_BR): Documentação para os arquivos fontes do kernel Linux Group: Base/Kernel Provides: %{name}-doc = %{version} Autoreqprov: no %description doc This is the documentation for the Linux kernel, as found in /usr/src/linux/Documentation directory. %description doc -l es Documentación para los archivos fuente del núcleo (kernel) de Linux %description doc -l pl Pakiet zawiera dokumentacjê j±dra z katalogu /usr/src/linux/Documentation. %description doc -l pt_BR Este pacote contém documentação para o kernel Linux. %prep %setup -q -a3 -a8 -a9 -n linux-%{version} cd hostap-2002-10-12 %patch190 -p1 cd .. # JFS 1.1.1 rm -fr fs/jfs gzip -dc %{SOURCE7} | tar -xf - # Adaptec AACRaid new drivers rm -fr drivers/scsi/aacraid bzip2 -dc %{SOURCE10} | tar -xf - -C drivers/scsi/ # Changing DRM source .... cp -f drm/*.{c,h} drivers/char/drm/ %patch0 -p1 %patch10 -p1 %patch12 -p1 %patch15 -p1 %patch20 -p1 %patch21 -p1 %patch22 -p1 %patch23 -p1 %patch25 -p1 #%patch26 -p1 %patch30 -p1 %patch32 -p1 %patch31 -p1 %patch40 -p1 %patch50 -p1 %patch55 -p1 %patch60 -p1 %patch61 -p1 %patch65 -p1 %patch70 -p1 %patch80 -p1 %patch100 -p1 %patch110 -p1 %patch115 -p1 %patch120 -p1 %patch125 -p1 %patch130 -p1 #%patch150 -p1 %patch151 -p1 %patch200 -p1 %patch205 -p1 %patch210 -p1 #%patch215 -p1 #%patch216 -p1 %patch225 -p1 %patch226 -p1 %patch227 -p1 %patch231 -p1 %patch235 -p1 %patch240 -p1 %patch245 -p1 %patch246 -p1 %patch255 -p1 %patch256 -p1 %patch257 -p1 %patch265 -p1 %patch275 -p1 %patch280 -p1 %patch1000 -p1 %patch1002 -p1 %patch1003 -p1 %patch1006 -p1 %patch1007 -p1 #%patch1008 -p1 %patch1009 -p1 %patch1010 -p1 %patch1102 -p1 %patch1104 -p0 %patch1105 -p1 %patch1106 -p0 %patch1111 -p1 %patch1150 -p1 %patch1152 -p1 %patch1154 -p1 %patch1201 -p1 %patch1203 -p1 %patch1205 -p1 %patch1207 -p1 %patch1209 -p1 %patch1250 -p1 %patch1251 -p1 %patch1252 -p1 %patch1253 -p1 %patch1254 -p0 %patch1255 -p1 %patch1301 -p1 %patch1302 -p1 %patch1303 -p1 %patch1304 -p1 %patch1305 -p1 %patch1350 -p1 %patch1354 -p1 %patch1400 -p1 %patch1401 -p1 %patch1402 -p1 %patch1403 -p1 %patch1404 -p1 %patch1405 -p1 %patch1407 -p1 %patch1408 -p1 %patch1410 -p1 %patch1411 -p1 %patch1413 -p1 %patch1414 -p1 %patch1415 -p0 %patch1416 -p1 %patch1417 -p1 %patch1418 -p1 %patch1419 -p1 %patch1420 -p1 %patch1421 -p1 %patch1422 -p1 %patch1501 -p1 %patch1600 -p1 %patch2000 -p0 %patch2001 -p1 %patch2002 -p1 %patch2003 -p1 %patch3000 -p1 %patch3002 -p1 %patch3003 -p1 %patch3004 -p1 %patch3005 -p1 %patch3006 -p1 %patch3009 -p1 cd drivers/char/drm %patch3008 -p1 cd ../../.. %ifarch sparc64 %patch3010 -p1 %endif %patch3011 -p1 %patch5000 -p1 %patch4000 -p1 %{!?_without_grsec:%patch4001 -p1} mv -f drivers/scsi/sym53c8xx.c drivers/scsi/sym53c8xx_old.c # Tekram DC395/315 U/UW SCSI host driver echo Adding Tekram DC395/315 driver patch -p1 -s arch/%{base_arch}/defconfig cat $RPM_SOURCE_DIR/kernel-$Config.config >> arch/%{base_arch}/defconfig %ifarch i386 echo "CONFIG_M386=y" >> arch/%{base_arch}/defconfig %endif %ifarch i586 echo "CONFIG_M586=y" >> arch/%{base_arch}/defconfig %endif %ifarch i686 echo "CONFIG_M686=y" >> arch/%{base_arch}/defconfig %endif %ifarch athlon echo "CONFIG_MK7=y" >> arch/%{base_arch}/defconfig %endif cat %{SOURCE1000} >> arch/%{base_arch}/defconfig cat %{SOURCE1001} >> arch/%{base_arch}/defconfig %ifarch sparc64 echo -e ',s/^CONFIG_FB_I810=.*/# CONFIG_FB_I810 is not set/g\n,w' | \ ed arch/%{base_arch}/defconfig echo -e ',s/CONFIG_IPSEC_AUTH_HMAC_SHA1=y/# CONFIG_IPSEC_AUTH_HMAC_SHA1 is not set/g\n,w' | \ ed arch/%{base_arch}/defconfig echo -e ',s/CONFIG_DIGEST_SHA1=m/# CONFIG_DIGEST_SHA1 is not set/g\n,w' | \ ed arch/%{base_arch}/defconfig %endif if [ "$BOOT" = "yes" ] ; then echo "# CONFIG_GRKERNSEC is not set" >> arch/%{base_arch}/defconfig else :; %{!?_without_grsec:cat %{SOURCE1002} >> arch/%{base_arch}/defconfig} fi %ifarch %{ix86} cat %{SOURCE2000} >> arch/%{base_arch}/defconfig %endif %ifarch i386 echo -e ',s/# CONFIG_MATH_EMULATION is not set/CONFIG_MATH_EMULATION=y/g\n,w' | \ ed arch/%{base_arch}/defconfig %endif %{__make} mrproper ln -sf arch/%{base_arch}/defconfig .config %ifarch sparc sparc32 %{__make} oldconfig sparc32 %{__make} dep clean %else %{__make} oldconfig %{__make} dep clean %endif %{__make} include/linux/version.h # making table for soundmodem. cd drivers/net/hamradio/soundmodem %{__cc} -o gentbl -lm gentbl.c ./gentbl cd ../../../.. %ifarch %{ix86} %{__make} bzImage %endif %ifarch sparc sparc32 %{__make} boot %else %ifnarch %{ix86} %{__make} %endif %endif %ifarch sparc sparc32 %{__make} modules %else %{__make} modules %endif mkdir -p $KERNEL_INSTALL_DIR/boot install System.map $KERNEL_INSTALL_DIR/boot/System.map-$KernelVer %ifarch %{ix86} cp arch/i386/boot/bzImage $KERNEL_INSTALL_DIR/boot/vmlinuz-$KernelVer %endif %ifarch alpha sparc sparc64 gzip -cfv vmlinux > vmlinuz install vmlinux $KERNEL_INSTALL_DIR/boot/vmlinux-$KernelVer install vmlinuz $KERNEL_INSTALL_DIR/boot/vmlinuz-$KernelVer %endif %ifarch ppc install vmlinux $KERNEL_INSTALL_DIR/boot/vmlinux-$KernelVer install vmlinux $KERNEL_INSTALL_DIR/boot/vmlinuz-$KernelVer %endif %ifarch sparc sparc32 %{__make} modules_install \ INSTALL_MOD_PATH=$KERNEL_INSTALL_DIR \ KERNELRELEASE=$KernelVer echo KERNEL RELEASE $KernelVer %else %{__make} modules_install \ INSTALL_MOD_PATH=$KERNEL_INSTALL_DIR \ KERNELRELEASE=$KernelVer echo KERNEL RELEASE $KernelVer %endif } KERNEL_BUILD_DIR=`pwd` KERNEL_INSTALL_DIR=$KERNEL_BUILD_DIR-installed rm -rf $KERNEL_INSTALL_DIR install -d $KERNEL_INSTALL_DIR # make drivers/scsi/ missing files # (cd drivers/scsi; make -f M) # UP KERNEL %{!?_without_up:BuildKernel} # SMP KERNEL %{!?_without_smp:BuildKernel smp} # BOOT kernel %ifnarch i586 i686 athlon KERNEL_INSTALL_DIR="$KERNEL_BUILD_DIR-installed%{_libdir}/bootdisk" rm -rf $KERNEL_INSTALL_DIR %{!?_without_boot:BuildKernel BOOT} %endif %install rm -rf $RPM_BUILD_ROOT umask 022 install -d $RPM_BUILD_ROOT%{_prefix}/{include,src/linux-%{version}} KERNEL_BUILD_DIR=`pwd` KERNEL_BUILD_INSTALL=no %{!?_without_up:KERNEL_BUILD_INSTALL=yes} %{!?_without_smp:KERNEL_BUILD_INSTALL=yes} [ "$KERNEL_BUILD_INSTALL" = "yes" ] && cp -a $KERNEL_BUILD_DIR-installed/* $RPM_BUILD_ROOT for i in "" smp ; do if [ -e $RPM_BUILD_ROOT/lib/modules/%{version}-%{release}$i ] ; then rm -f $RPM_BUILD_ROOT/lib/modules/%{version}-%{release}$i/build ln -sf %{_prefix}/src/linux-%{version} \ $RPM_BUILD_ROOT/lib/modules/%{version}-%{release}$i/build fi done ln -sf ../src/linux/include/linux $RPM_BUILD_ROOT%{_includedir}/linux ln -sf linux-%{version} $RPM_BUILD_ROOT%{_prefix}/src/linux %ifarch sparc sparc64 ln -s /usr/src/linux/include/asm-sparc $RPM_BUILD_ROOT%{_includedir}/asm-sparc ln -s ../src/linux/include/asm-sparc64 $RPM_BUILD_ROOT%{_includedir}/asm-sparc64 %else ln -sf ../src/linux/include/asm $RPM_BUILD_ROOT/usr/include/asm %endif %if %{?_without_source:0}%{!?_without_source:1} cp -a . $RPM_BUILD_ROOT/usr/src/linux-%{version} %else cp -a {include,scripts,Makefile,Rules.make,Documentation} $RPM_BUILD_ROOT/usr/src/linux-%{version} %endif %ifarch sparc sparc64 sh %{SOURCE2} $RPM_BUILD_ROOT%{_includedir} cp -a %{SOURCE2} $RPM_BUILD_ROOT%{_includedir}/asm/BuildASM %endif cd $RPM_BUILD_ROOT%{_prefix}/src/linux-%{version} %if %{?_without_source:0}%{!?_without_source:1} %{__make} mrproper find -name "*~" -print | xargs rm -f find -name "*.orig" -print | xargs rm -f %ifarch %{ix86} cat $RPM_SOURCE_DIR/kernel-ia32.config > .config %else install $RPM_SOURCE_DIR/kernel-%{_target_cpu}.config .config %endif %ifarch i386 echo "CONFIG_M386=y" >> .config %endif %ifarch i586 echo "CONFIG_M586=y" >> .config %endif %ifarch i686 echo "CONFIG_M686=y" >> .config %endif %ifarch athlon echo "CONFIG_MK7=y" >> .config %endif cat %{SOURCE1000} >> .config cat %{SOURCE1001} >> .config %{!?_without_grsec:cat %{SOURCE1002} >> .config} %ifarch sparc64 echo -e ',s/^CONFIG_FB_I810=.*/# CONFIG_FB_I810 is not set/g\n,w' | \ ed arch/%{base_arch}/defconfig echo -e ',s/CONFIG_IPSEC_AUTH_HMAC_SHA1=y/# CONFIG_IPSEC_AUTH_HMAC_SHA1 is not set/g\n,w' | \ ed arch/%{base_arch}/defconfig echo -e ',s/CONFIG_DIGEST_SHA1=m/# CONFIG_DIGEST_SHA1 is not set/g\n,w' | \ ed arch/%{base_arch}/defconfig %endif %ifarch %{ix86} cat %{SOURCE2000} >> .config %endif %ifarch sparc sparc32 %{__make} oldconfig %else %{__make} oldconfig %endif mv include/linux/autoconf.h include/linux/autoconf-up.h cp .config config-up %ifarch %{ix86} cat $RPM_SOURCE_DIR/kernel-ia32-smp.config >> .config %else install $RPM_SOURCE_DIR/kernel-%{_target_cpu}-smp.config .config %endif %ifarch i386 echo "CONFIG_M386=y" >> .config %endif %ifarch i586 echo "CONFIG_M586=y" >> .config %endif %ifarch i686 echo "CONFIG_M686=y" >> .config %endif %ifarch athlon echo "CONFIG_MK7=y" >> .config %endif cat %{SOURCE1000} >> .config cat %{SOURCE1001} >> .config %{!?_without_grsec:cat %{SOURCE1002} >> .config} %ifarch sparc64 echo -e ',s/^CONFIG_FB_I810=.*/# CONFIG_FB_I810 is not set/g\n,w' | \ ed arch/%{base_arch}/defconfig echo -e ',s/CONFIG_IPSEC_AUTH_HMAC_SHA1=y/# CONFIG_IPSEC_AUTH_HMAC_SHA1 is not set/g\n,w' | \ ed arch/%{base_arch}/defconfig echo -e ',s/CONFIG_DIGEST_SHA1=m/# CONFIG_DIGEST_SHA1 is not set/g\n,w' | \ ed arch/%{base_arch}/defconfig %endif %ifarch %{ix86} cat %{SOURCE2000} >> .config %endif %ifarch sparc sparc32 %{__make} oldconfig %else %{__make} oldconfig %endif mv include/linux/autoconf.h include/linux/autoconf-smp.h cp .config config-smp %endif install %{SOURCE1} $RPM_BUILD_ROOT/usr/src/linux-%{version}/include/linux/autoconf.h %if %{?_without_source:0}%{!?_without_source:1} # this generates modversions info which we want to include and we may as # well include the depends stuff as well %{__make} symlinks %{__make} include/linux/version.h #%{__make} "`pwd`/include/linux/modversions.h" %endif rm -f include/linux/modversions.h echo "#include " > include/linux/modversions.h # this generates modversions info which we want to include and we may as # well include the depends stuff as well, after we fix the paths %if %{?_without_source:0}%{!?_without_source:1} %{__make} depend find $RPM_BUILD_ROOT/usr/src/linux-%{version} -name ".*depend" \ -exec /bin/sh -c "echo -e \",s|$RPM_BUILD_ROOT||g\n,w\" | ed {}" \; %{__make} clean rm -f scripts/mkdep rm -f drivers/net/hamradio/soundmodem/gentbl %endif # BOOT %if %{?_without_boot:0}%{!?_without_boot:1} %ifnarch i586 i686 athlon install -d $RPM_BUILD_ROOT%{_libdir}/bootdisk cp -rdp $KERNEL_BUILD_DIR-installed%{_libdir}/bootdisk/* $RPM_BUILD_ROOT%{_libdir}/bootdisk %endif %endif %clean rm -rf $RPM_BUILD_ROOT rm -rf $RPM_BUILD_DIR/linux-%{version}-installed %post mv -f /boot/vmlinuz /boot/vmlinuz.old 2> /dev/null > /dev/null mv -f /boot/System.map /boot/System.map.old 2> /dev/null > /dev/null ln -sf vmlinuz-%{version}-%{release} /boot/vmlinuz ln -sf System.map-%{version}-%{release} /boot/System.map if [ ! -L /lib/modules/%{version} ] ; then mv -f /lib/modules/%{version} /lib/modules/%{version}.rpmsave > /dev/null 2>&1 fi rm -f /lib/modules/%{version} ln -snf %{version}-%{release} /lib/modules/%{version} /sbin/depmod -a -F /boot/System.map-%{version}-%{release} %{version}-%{release} /sbin/geninitrd -f --initrdfs=rom /boot/initrd-%{version}-%{release}.gz %{version}-%{release} mv -f /boot/initrd /boot/initrd.old ln -sf initrd-%{version}-%{release}.gz /boot/initrd if [ -f %{_prefix}/src/linux-%{version}/config-up ] ; then ln -s %{_prefix}/src/linux-%{version}/config-up %{_prefix}/src/linux-%{version}/.config fi if [ -x /sbin/rc-boot ] ; then /sbin/rc-boot 1>&2 || : fi %post smp mv -f /boot/vmlinuz /boot/vmlinuz.old 2> /dev/null > /dev/null mv -f /boot/System.map /boot/System.map.old 2> /dev/null > /dev/null ln -sf vmlinuz-%{version}-%{release}smp /boot/vmlinuz ln -sf System.map-%{version}-%{release}smp /boot/System.map if [ ! -L /lib/modules/%{version} ] ; then mv -f /lib/modules/%{version} /lib/modules/%{version}.rpmsave > /dev/null 2>&1 fi rm -f /lib/modules/%{version} ln -snf %{version}-%{release}smp /lib/modules/%{version} /sbin/depmod -a -F /boot/System.map-%{version}-%{release}smp %{version}-%{release}smp /sbin/geninitrd -f --initrdfs=rom /boot/initrd-%{version}-%{release}smp.gz %{version}-%{release}smp mv -f /boot/initrd /boot/initrd.old ln -sf initrd-%{version}-%{release}smp.gz /boot/initrd if [ -f %{_prefix}/src/linux-%{version}/config-smp ] ; then ln -s %{_prefix}/src/linux-%{version}/config-smp %{_prefix}/src/linux-%{version}/.config fi if [ -x /sbin/rc-boot ] ; then /sbin/rc-boot 1>&2 || : fi %post BOOT if [ ! -L %{_libdir}/bootdisk/lib/modules/%{version} ] ; then mv -f %{_libdir}/bootdisk/lib/modules/%{version} %{_libdir}/bootdisk/lib/modules/%{version}.rpmsave fi if [ ! -L %{_libdir}/bootdisk/boot/vmlinuz-%{version} ] ; then mv -f %{_libdir}/bootdisk/boot/vmlinuz-%{version} %{_libdir}/bootdisk/boot/vmlinuz-%{version}.rpmsave fi rm -f %{_libdir}/bootdisk/lib/modules/%{version} ln -snf %{version}-%{release}BOOT %{_libdir}/bootdisk/lib/modules/%{version} rm -f %{_libdir}/bootdisk/boot/vmlinuz-%{version} ln -snf vmlinuz-%{version}-%{release}BOOT %{_libdir}/bootdisk/boot/vmlinuz-%{version} %postun if [ -L /lib/modules/%{version} ]; then if [ "`ls -l /lib/modules/%{version} | awk '{ print $11 }'`" = "%{version}-%{release}" ]; then if [ "$1" = "0" ]; then rm -f /lib/modules/%{version} fi fi fi rm -f /boot/initrd-%{version}-%{release}.gz %post pcmcia-cs /sbin/depmod -a -F /boot/System.map-%{version}-%{release} %{version}-%{release} %postun pcmcia-cs /sbin/depmod -a -F /boot/System.map-%{version}-%{release} %{version}-%{release} > /dev/null 2>&1 %post drm /sbin/depmod -a -F /boot/System.map-%{version}-%{release} %{version}-%{release} %postun drm /sbin/depmod -a -F /boot/System.map-%{version}-%{release} %{version}-%{release} > /dev/null 2>&1 %postun smp if [ -L /lib/modules/%{version} ]; then if [ "`ls -l /lib/modules/%{version} | awk '{ print $11 }'`" = "%{version}-%{release}smp" ]; then if [ "$1" = "0" ]; then rm -f /lib/modules/%{version} fi fi fi rm -f /boot/initrd-%{version}-%{release}smp.gz %post smp-pcmcia-cs /sbin/depmod -a -F /boot/System.map-%{version}-%{release}smp %{version}-%{release}smp %postun smp-pcmcia-cs /sbin/depmod -a -F /boot/System.map-%{version}-%{release}smp %{version}-%{release}smp > /dev/null 2>&1 %post smp-drm /sbin/depmod -a -F /boot/System.map-%{version}-%{release}smp %{version}-%{release}smp %postun smp-drm /sbin/depmod -a -F /boot/System.map-%{version}-%{release}smp %{version}-%{release}smp > /dev/null 2>&1 %postun BOOT if [ -L %{_libdir}/bootdisk/lib/modules/%{version} ]; then if [ "`ls -l %{_libdir}/bootdisk/lib/modules/%{version} | awk '{ print $11 }'`" = "%{version}-%{release}BOOT" ]; then if [ "$1" = "0" ]; then rm -f %{_libdir}/bootdisk/lib/modules/%{version} fi fi fi %post headers rm -f /usr/src/linux ln -snf linux-%{version} /usr/src/linux %postun headers if [ -L /usr/src/linux ]; then if [ "`ls -l /usr/src/linux | awk '{ print $11 }'`" = "linux-%{version}" ]; then if [ "$1" = "0" ]; then rm -f /usr/src/linux fi fi fi %if %{?_without_up:0}%{!?_without_up:1} %files %defattr(644,root,root,755) %ifarch alpha sparc sparc64 ppc /boot/vmlinux-%{version}-%{release} %endif /boot/vmlinuz-%{version}-%{release} /boot/System.map-%{version}-%{release} %dir /lib/modules/%{version}-%{release} /lib/modules/%{version}-%{release}/kernel %ifnarch sparc sparc64 %exclude /lib/modules/%{version}-%{release}/kernel/drivers/pcmcia %exclude /lib/modules/%{version}-%{release}/kernel/drivers/ide/legacy/*-cs.o* %exclude /lib/modules/%{version}-%{release}/kernel/drivers/mtd/maps/pcmcia* %exclude /lib/modules/%{version}-%{release}/kernel/drivers/net/pcmcia %exclude /lib/modules/%{version}-%{release}/kernel/drivers/scsi/pcmcia %exclude /lib/modules/%{version}-%{release}/kernel/drivers/char/pcmcia %exclude /lib/modules/%{version}-%{release}/kernel/drivers/net/wireless/*_cs.o* %exclude /lib/modules/%{version}-%{release}/kernel/drivers/parport/*_cs.o* %exclude /lib/modules/%{version}-%{release}/kernel/drivers/bluetooth/*_cs.o* %endif %ifnarch ppc sparc sparc64 %exclude /lib/modules/%{version}-%{release}/kernel/drivers/isdn/hisax/*_cs.o* %ifnarch alpha %exclude /lib/modules/%{version}-%{release}/kernel/drivers/isdn/avmb1/avm_cs.o* %exclude /lib/modules/%{version}-%{release}/kernel/drivers/telephony/*_pcmcia.o* %endif %endif %ifnarch sparc %exclude /lib/modules/%{version}-%{release}/kernel/drivers/char/drm %endif /lib/modules/%{version}-%{release}/build %ghost /lib/modules/%{version}-%{release}/modules.* %ifnarch sparc sparc64 %files pcmcia-cs %defattr(644,root,root,755) /lib/modules/%{version}-%{release}/kernel/drivers/pcmcia /lib/modules/%{version}-%{release}/kernel/drivers/ide/legacy/*-cs.o* /lib/modules/%{version}-%{release}/kernel/drivers/mtd/maps/pcmcia* /lib/modules/%{version}-%{release}/kernel/drivers/net/pcmcia /lib/modules/%{version}-%{release}/kernel/drivers/scsi/pcmcia /lib/modules/%{version}-%{release}/kernel/drivers/char/pcmcia /lib/modules/%{version}-%{release}/kernel/drivers/net/wireless/*_cs.o* /lib/modules/%{version}-%{release}/kernel/drivers/parport/*_cs.o* /lib/modules/%{version}-%{release}/kernel/drivers/bluetooth/*_cs.o* %ifnarch ppc /lib/modules/%{version}-%{release}/kernel/drivers/isdn/hisax/*_cs.o* %ifnarch alpha /lib/modules/%{version}-%{release}/kernel/drivers/isdn/avmb1/avm_cs.o* /lib/modules/%{version}-%{release}/kernel/drivers/telephony/*_pcmcia.o* %endif %endif %endif %ifnarch sparc %files drm %defattr(644,root,root,755) /lib/modules/%{version}-%{release}/kernel/drivers/char/drm %endif # %%{_without_up} %endif %if %{?_without_smp:0}%{!?_without_smp:1} %files smp %defattr(644,root,root,755) %ifarch alpha sparc sparc64 ppc /boot/vmlinux-%{version}-%{release}smp %endif /boot/vmlinuz-%{version}-%{release}smp /boot/System.map-%{version}-%{release}smp %dir /lib/modules/%{version}-%{release}smp /lib/modules/%{version}-%{release}smp/kernel %ifnarch sparc sparc64 %exclude /lib/modules/%{version}-%{release}smp/kernel/drivers/pcmcia %exclude /lib/modules/%{version}-%{release}smp/kernel/drivers/ide/legacy/*-cs.o* %exclude /lib/modules/%{version}-%{release}smp/kernel/drivers/mtd/maps/pcmcia* %exclude /lib/modules/%{version}-%{release}smp/kernel/drivers/net/pcmcia %exclude /lib/modules/%{version}-%{release}smp/kernel/drivers/scsi/pcmcia %exclude /lib/modules/%{version}-%{release}smp/kernel/drivers/char/pcmcia %exclude /lib/modules/%{version}-%{release}smp/kernel/drivers/net/wireless/*_cs.o* %exclude /lib/modules/%{version}-%{release}smp/kernel/drivers/parport/*_cs.o* %exclude /lib/modules/%{version}-%{release}smp/kernel/drivers/bluetooth/*_cs.o* %endif %ifnarch ppc sparc sparc64 %exclude /lib/modules/%{version}-%{release}smp/kernel/drivers/isdn/hisax/*_cs.o* %ifnarch alpha %exclude /lib/modules/%{version}-%{release}smp/kernel/drivers/isdn/avmb1/avm_cs.o* %exclude /lib/modules/%{version}-%{release}smp/kernel/drivers/telephony/*_pcmcia.o* %endif %endif %ifnarch sparc %exclude /lib/modules/%{version}-%{release}smp/kernel/drivers/char/drm %endif /lib/modules/%{version}-%{release}smp/build %ghost /lib/modules/%{version}-%{release}smp/modules.* %ifnarch sparc sparc64 %files -n kernel-smp-pcmcia-cs %defattr(644,root,root,755) /lib/modules/%{version}-%{release}smp/kernel/drivers/pcmcia /lib/modules/%{version}-%{release}smp/kernel/drivers/ide/legacy/*-cs.o* /lib/modules/%{version}-%{release}smp/kernel/drivers/mtd/maps/pcmcia* /lib/modules/%{version}-%{release}smp/kernel/drivers/net/pcmcia /lib/modules/%{version}-%{release}smp/kernel/drivers/scsi/pcmcia /lib/modules/%{version}-%{release}smp/kernel/drivers/char/pcmcia /lib/modules/%{version}-%{release}smp/kernel/drivers/net/wireless/*_cs.o* /lib/modules/%{version}-%{release}smp/kernel/drivers/parport/*_cs.o* /lib/modules/%{version}-%{release}smp/kernel/drivers/bluetooth/dtl1_cs.o* %ifnarch ppc /lib/modules/%{version}-%{release}smp/kernel/drivers/isdn/hisax/*_cs.o* %ifnarch alpha /lib/modules/%{version}-%{release}smp/kernel/drivers/isdn/avmb1/avm_cs.o* /lib/modules/%{version}-%{release}smp/kernel/drivers/telephony/*_pcmcia.o* %endif %endif %endif %ifnarch sparc %files -n kernel-smp-drm %defattr(644,root,root,755) /lib/modules/%{version}-%{release}smp/kernel/drivers/char/drm %endif # %%{_without_smp} %endif %if %{?_without_boot:0}%{!?_without_boot:1} %ifnarch i586 i686 athlon # narch %files BOOT %defattr(644,root,root,755) %ifarch alpha sparc sparc64 ppc # arch %{_libdir}/bootdisk/boot/vmlinux-%{version}-%{release}BOOT %endif #arch %{_libdir}/bootdisk/boot/vmlinuz-%{version}-%{release}BOOT %{_libdir}/bootdisk/boot/System.map-%{version}-%{release}BOOT %dir %{_libdir}/bootdisk/lib/modules/%{version}-%{release}BOOT %{_libdir}/bootdisk/lib/modules/%{version}-%{release}BOOT/kernel %{_libdir}/bootdisk/lib/modules/%{version}-%{release}BOOT/build %ghost %{_libdir}/bootdisk/lib/modules/%{version}-%{release}BOOT/modules.* %endif # narch %endif # %%{_without_boot} %files headers %defattr(644,root,root,755) %dir %{_prefix}/src/linux-%{version} %{_prefix}/src/linux-%{version}/include %{?_without_kheaders:%{_includedir}/asm} %{?_without_kheaders:%{_includedir}/linux} %if %{?_without_doc:0}%{!?_without_doc:1} %files doc %defattr(644,root,root,755) %{_prefix}/src/linux-%{version}/Documentation %endif %if %{?_without_source:0}%{!?_without_source:1} %files source %defattr(644,root,root,755) %{_prefix}/src/linux-%{version}/arch %{_prefix}/src/linux-%{version}/crypto %{_prefix}/src/linux-%{version}/drivers %{_prefix}/src/linux-%{version}/fs %{_prefix}/src/linux-%{version}/init %{!?_without_grsec:%{_prefix}/src/linux-%{version}/grsecurity} %{_prefix}/src/linux-%{version}/ipc #%{_prefix}/src/linux-%{version}/kdb %{_prefix}/src/linux-%{version}/kernel %{_prefix}/src/linux-%{version}/lib %{_prefix}/src/linux-%{version}/mm %{_prefix}/src/linux-%{version}/net %{_prefix}/src/linux-%{version}/scripts %{_prefix}/src/linux-%{version}/.config %{_prefix}/src/linux-%{version}/.depend %{_prefix}/src/linux-%{version}/.hdepend %{_prefix}/src/linux-%{version}/COPYING %{_prefix}/src/linux-%{version}/CREDITS %{_prefix}/src/linux-%{version}/MAINTAINERS %{_prefix}/src/linux-%{version}/Makefile %{_prefix}/src/linux-%{version}/README %{_prefix}/src/linux-%{version}/REPORTING-BUGS %{_prefix}/src/linux-%{version}/Rules.make %{_prefix}/src/linux-%{version}/config* %endif