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 29
[-]
[+]
Added
kernel-ppc64.spec
@@ -0,0 +1,830 @@ +# +# spec file for package kernel-ppc64 (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 "ppc64" +%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-ppc64 ppc64 $(case ppc64 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 '/ppc64$') + +# 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-ppc64 +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-ppc64-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-ppc64-nongpl +Obsoletes: kernel-ppc64-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 ppc +Provides: kernel-pmac64 kernel-pseries64 kernel-iseries64 +Obsoletes: kernel-pmac64 kernel-pseries64 kernel-iseries64 +%else +%ifarch ppc64 +%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: ppc ppc64 + +# These files are found in the kernel-source package: +NoSource: 0 +NoSource: 100 +NoSource: 101 +NoSource: 102 +NoSource: 103 +NoSource: 104 +NoSource: 105 +NoSource: 107 +NoSource: 108 +NoSource: 109 +NoSource: 110 +NoSource: 111 +NoSource: 120 + +# The following KMPs have been integrated into the kernel package. +Obsoletes: iwlwifi-kmp +Obsoletes: ipw3945-kmp +Obsoletes: adm8211-kmp +Obsoletes: rt2x00-kmp +Obsoletes: rfswitch-kmp +Obsoletes: uvcvideo-kmp +Obsoletes: atl2-kmp +Obsoletes: wlan-ng-kmp +Obsoletes: et131x-kmp