Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
Virtualization:OpenVZ:kernel-2.6.24
kernel-source
kernel-syms.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File kernel-syms.spec of Package kernel-source
# # spec file for package kernel-syms (Version 2.6.24) # # 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 # ( kernel-binary-packages is expanded into the list of all binary kernel # packages for each architecture by Autobuild. ) %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 Name: kernel-ovz-syms Summary: Dummy summary Version: 2.6.24 Release: ovz007.1.<RELEASE> License: GPL Group: Development/Sources AutoReqProv: off BuildRequires: coreutils %if ! 0%{?opensuse_bs} BuildRequires: kernel-dummy %endif %ifarch %ix86 BuildRequires: kernel-ovz-default kernel-ovz-pae kernel-ovz-debug %else %ifarch ppc BuildRequires: kernel-default kernel-ppc64 kernel-kdump kernel-ps3 %else %ifarch ppc64 BuildRequires: kernel-default kernel-ppc64 kernel-kdump kernel-ps3 %else %ifarch s390 BuildRequires: kernel-s390 %else %ifarch s390x BuildRequires: kernel-default %else %ifarch ia64 BuildRequires: kernel-default kernel-debug %else %ifarch x86_64 BuildRequires: kernel-ovz-default kernel-ovz-debug %endif %endif %endif %endif %endif %endif %endif Provides: kernel-syms # the packages above do require other things, but none of those are needed during package build #!BuildIgnore: irqbalance xen #!BuildIgnore: perl-Bootloader mkinitrd Requires: linux Requires: kernel-ovz-source = 2.6.24-%source_rel Source11: arch-symbols Source12: guards Source21: config.conf Source98: extra-symbols BuildRoot: %_tmppath/%name-%version-build Prefix: /usr/src %(chmod +x %_sourcedir/{arch-symbols,guards}) %define symbols %(set -- $(%_sourcedir/arch-symbols %_target_cpu) $([ -e %_sourcedir/extra-symbols ] && cat %_sourcedir/extra-symbols) ; echo $*) %description Dummy description. %prep echo "Architecture symbol(s):" %symbols %install rm -rf $RPM_BUILD_ROOT mkdir $RPM_BUILD_ROOT # Add all the symbol version hashes from the binary kernel packages %_sourcedir/guards %symbols < %_sourcedir/series.conf \ > %_builddir/kernel-source.patches for config in $(%_sourcedir/guards %symbols < %_sourcedir/config.conf) ; do arch="${config%%/*}" flavor="${config#*/}" rpm -q --quiet kernel-ovz-$flavor || continue # Don't add the build infrastructure for kernels that are based # on a different set of patches than kernel-source. set -- kernel-ovz-$flavor $flavor $(case $flavor in (rt|rt_*) echo RT ;; esac) %_sourcedir/guards $* %symbols < %_sourcedir/series.conf \ > %_builddir/kernel-$flavor.patches diff -q %_builddir/kernel-{source,$flavor}.patches || continue # Make sure that all the kernel-$flavor release numbers match the # kernel-syms release number. set -- %release $(rpm -q --qf '%{RELEASE}' kernel-ovz-$flavor) %if 0%{?opensuse_bs} set -- ${1%.*} ${2%.*} %endif if [ "$1" != "$2" ]; then echo "Release numbers $1 and $2 do not match" >&2 exit 1 fi shopt -s nullglob for symvers in /usr/src/linux-*-obj/$arch/$flavor/Module.symvers; do cp -p --parents $symvers $RPM_BUILD_ROOT/ for file in /lib/modules/*-$flavor/modules.alias; do cp -p $file $(dirname $RPM_BUILD_ROOT$symvers) done done for symsets in /boot/symsets-*-$flavor.tar.gz; do cp -p --parents $symsets $RPM_BUILD_ROOT/ done for file in /lib/modules/*-$flavor/build; do cp -pd --parents $file $RPM_BUILD_ROOT/ done done %files %defattr(-, root, root) /usr/src/linux-*-obj /boot/symsets-*-*.tar.gz /lib/modules/*/build %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor