Search
j0ke.net Open Build Service
>
Projects
>
GFS
>
kernel-source
> Changes
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
Changes of Revision 20
[-]
[+]
Added
kernel-default.spec
@@ -0,0 +1,850 @@ +# +# spec file for package kernel-default (Version 2.6.27.4) +# +# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany. +# This file and all modifications and additions to the pristine +# package are under the same license as the package itself. +# +# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# + +# norootforbuild + +%if 0%{?opensuse_bs} +# Strip off the build number ("y") from the "x.y" release number +%define source_rel %(release=%release; echo ${release%.*}) +%else +# We don't have build numbers internally +%define source_rel %release +%endif + +# Don't use shell commands in build macros, this won't work outside of rpm +%define build_flavor "default" +%define build_kdump 0 +%define build_xen 0 +%define build_um 0 +%define build_vanilla 0 + +%if %{build_flavor} == "kdump" +%define build_kdump 1 +%endif +%if %{build_flavor} == "xen" +%define build_xen 1 +%endif +%if %{build_flavor} == "um" +%define build_um 1 +%endif +%if %{build_flavor} == "vanilla" +%define build_vanilla 1 +%endif + +%(chmod +x %_sourcedir/{arch-symbols,guards,config-subst,check-for-config-changes,check-supported-list,built-in-where,find-provides,list-exported-symbols,split-into-symsets,modversions,kabi-checks}) + +%define symbols %(set -- kernel-default default $(case default in (rt|rt_*) echo RT ;; esac) $(%_sourcedir/arch-symbols %_target_cpu) $([ -e %_sourcedir/extra-symbols ] && cat %_sourcedir/extra-symbols) ; echo $*) +%define subarch_flavor %(%_sourcedir/guards %symbols < %_sourcedir/config.conf | grep '/default$') + +# Define some CONFIG variables as rpm macros as well. (rpm cannot handle +# defining them all at once.) +%define config_vars CONFIG_MODULES +%{expand:%(eval "$(test -n "%subarch_flavor" && tar xfj %_sourcedir/config.tar.bz2 --to-stdout config/%subarch_flavor)"; for config in %config_vars; do echo "%%global $config ${!config:-n}"; done)} + +%if %build_vanilla || %build_kdump || %CONFIG_MODULES != "y" +%define split_packages 0 +%else +%define split_packages 1 +%endif + +Name: kernel-default +Summary: Dummy summary +Version: 2.6.27.4 +Release: <RELEASE> +License: GPL +Group: System/Kernel +Url: http://www.kernel.org/ +AutoReqProv: on +BuildRequires: coreutils module-init-tools sparse +BuildRequires: fdupes +%if %split_packages +Requires: kernel-default-base = %version-%release +%endif +Requires(pre): coreutils awk +Requires(post): module-init-tools +# This Requires is wrong, because the post/postun scripts have a +# test -x update-bootloader, having perl-Bootloader is not a hard requirement. +# But, there is no way to tell rpm or yast to schedule the installation +# of perl-Bootloader before kernel-binary.rpm if both are in the list of +# packages to install/update. Likewise, this is true for mkinitrd. +# A specific version of perl-Bootloader is not required, because the post/postun +# scripts handle the two API versions of 10.1/SLES10 GA and 10.2/SLES10 SP1 +Requires(post): perl-Bootloader +Requires(post): mkinitrd +Recommends: kerneloops +#!BuildIgnore: perl-Bootloader mkinitrd + +%if ! 0%{?opensuse_bs} +BuildRequires: kernel-dummy +%endif +%if %build_um +BuildRequires: libpcap xorg-x11-devel +%endif +%ifarch ia64 +# arch/ia64/scripts/unwcheck.py +BuildRequires: python +%endif +%ifarch ppc ppc64 +# for PS3 zImage +BuildRequires: dtc +%endif +%if %build_xen +%ifarch %ix86 +Provides: kernel-xenpae = 2.6.27.4 +Obsoletes: kernel-xenpae <= 2.6.27.4 +%endif +#!BuildIgnore: xen +%endif + +Provides: kernel-default-nongpl +Obsoletes: kernel-default-nongpl +%if %build_vanilla +# force bzip2 instead of lzma compression to allow install on older dist versions +%define _binary_payload w9.bzdio +%endif +# dead network if installed on SLES10, otherwise it will work (mostly) +Conflicts: sysfsutils < 2.0 +%if ! %build_vanilla +Conflicts: apparmor-profiles <= 2.1 +Conflicts: apparmor-parser < 2.3 +# root-lvm only works with newer udevs +Conflicts: udev < 118 +Conflicts: lvm2 < 2.02.33 +%endif +%ifarch %ix86 +Conflicts: libc.so.6()(64bit) +%endif +%if %build_um +#Conflicts: kernel +%else +Provides: kernel = 2.6.27.4-%source_rel +%endif +%ifarch %ix86 +Provides: k_athlon k_debug k_deflt k_deflt_22 k_deflt_24 k_eide k_laptop k_orig k_pentiu k_pos_ibm k_psmp k_smp k_smp_22 k_smp_24 smp kernel-smp +Obsoletes: k_athlon k_debug k_deflt k_deflt_22 k_deflt_24 k_eide k_laptop k_orig k_pentiu k_pos_ibm k_psmp k_smp k_smp_22 k_smp_24 smp kernel-smp +%else +%ifarch ia64 +Provides: k_debug k_deflt k_itanium2 k_itanium2-smp k_smp kernel-sn2 +Obsoletes: k_debug k_deflt k_itanium2 k_itanium2-smp k_smp kernel-sn2 +%else +%ifarch ppc +Provides: k_chrp k_chrps k_deflt k_pmac k_pmacs k_prep k_preps +Obsoletes: k_chrp k_chrps k_deflt k_pmac k_pmacs k_prep k_preps +%else +%ifarch ppc64 +%else +%ifarch s390x +Provides: kernel-64bit k_deflt +Obsoletes: kernel-64bit k_deflt +%else +%ifarch x86_64 +Provides: k_deflt k_numa k_smp smp kernel-smp +Obsoletes: k_deflt k_numa k_smp smp kernel-smp +%endif +%endif +%endif +%endif +%endif +%endif + +Source0: http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.27.tar.bz2 +Source10: preun.sh +Source11: postun.sh +Source12: pre.sh +Source13: post.sh +Source20: series.conf +Source21: config.conf +Source22: supported.conf +Source30: arch-symbols +Source31: guards +Source32: config-subst +Source33: check-for-config-changes +Source34: check-supported-list +Source38: kabi-checks +Source40: build-source-timestamp +Source41: built-in-where +Source42: list-exported-symbols +Source43: split-into-symsets +Source44: find-provides +Source45: module-renames +Source46: modversions +Source100: config.tar.bz2 +Source101: patches.arch.tar.bz2 +Source102: patches.drivers.tar.bz2 +Source103: patches.fixes.tar.bz2 +Source104: patches.rpmify.tar.bz2 +Source105: patches.suse.tar.bz2 +Source107: patches.xen.tar.bz2 +Source108: patches.addon.tar.bz2 +Source109: patches.kernel.org.tar.bz2 +Source110: patches.apparmor.tar.bz2 +Source111: patches.rt.tar.bz2 +Source112: patches.trace.tar.bz2 +Source120: kabi.tar.bz2 +%define my_builddir %_builddir/%{name}-%{version} +BuildRoot: %{_tmppath}/%{name}-%{version}-build +ExclusiveArch: %ix86 ia64 ppc ppc64 s390x x86_64 + +# These files are found in the kernel-source package: +NoSource: 0 +NoSource: 100 +NoSource: 101 +NoSource: 102