Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
server:mosix
kernel-mosix
kernel-mosix-source.spec.14
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File kernel-mosix-source.spec.14 of Package kernel-mosix
# # spec file for package kernel-mosix-source # # Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # # norootforbuild # icecream 0 %define srcversion 2.6.37 %define patchversion 2.6.37.1 %define variant %{nil} %define vanilla_only 0 %include %_sourcedir/kernel-spec-macros %define src_install_dir usr/src/linux-%kernelrelease%variant %define mosix_version %(tar -xjOf %_sourcedir/patches.mosix.tar.bz2 | egrep 'MOSIX.{4} Version' | sed -r 's/^.*Version ([0-9.]*).*$/\\1/') Name: kernel-mosix-source Summary: The Linux Kernel Sources Version: 2.6.37.1_%mosix_version Release: 1.13 %if %using_buildservice %else %endif License: GPLv2 Group: Development/Sources Url: http://www.kernel.org/ AutoReqProv: off BuildRequires: coreutils sed BuildRequires: fdupes Requires(post): coreutils sed Provides: multiversion(kernel-mosix) Provides: linux Provides: %name = %version-%source_rel Source0: http://www.kernel.org/pub/linux/kernel/v2.6/linux-%srcversion.tar.bz2 Source2: source-post.sh Source3: kernel-source.rpmlintrc Source8: devel-pre.sh Source9: devel-post.sh Source10: preun.sh Source11: postun.sh Source12: pre.sh Source13: post.sh Source14: series.conf Source16: guards Source17: apply-patches Source21: config.conf Source23: supported.conf Source33: check-for-config-changes Source34: check-supported-list Source35: group-source-files.pl Source37: README.SUSE Source38: README.KSYMS Source39: config-options.changes.txt Source40: source-timestamp Source44: find-provides Source45: split-modules Source46: modversions Source48: macros.kernel-source Source49: kernel-module-subpackage Source50: kabi.pl Source51: mkspec Source52: kernel-source%variant.changes Source53: kernel-source.spec.in Source54: kernel-binary.spec.in Source55: kernel-syms.spec.in Source56: kernel-docs.spec.in Source60: config.sh Source61: compute-PATCHVERSION.sh Source62: old-packages.conf Source63: arch-symbols Source64: package-descriptions Source65: kernel-spec-macros Source66: configtool.pl Source67: log.sh Source100: config.tar.bz2 Source101: config.addon.tar.bz2 Source102: patches.arch.tar.bz2 Source103: patches.drivers.tar.bz2 Source104: patches.fixes.tar.bz2 Source105: patches.rpmify.tar.bz2 Source106: 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 Source113: patches.kabi.tar.bz2 Source120: kabi.tar.bz2 Source997: kernel-mosix.spec Source999: patches.mosix.tar.bz2 BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildArch: noarch Prefix: /usr/src # Source is only complete with devel files. Requires: kernel-devel = %version-%release %(chmod +x %_sourcedir/{guards,apply-patches,check-for-config-changes,check-supported-list,group-source-files.pl,find-provides,split-modules,modversions,kabi.pl,mkspec,compute-PATCHVERSION.sh,arch-symbols,configtool.pl,log.sh}) %define symbols %(set -- $([ -e %_sourcedir/extra-symbols ] && cat %_sourcedir/extra-symbols) ; echo $*) %define variant_symbols %(case %name in (*-rt) echo "RT" ;; esac) %define do_vanilla "%variant" == "" %description Linux kernel sources with many fixes and improvements. %source_timestamp %package -n kernel-mosix-devel%variant Summary: Development files needed for building kernel modules License: GPLv2 Group: Development/Sources AutoReqProv: off Provides: multiversion(kernel-mosix) Provides: kernel-mosix-devel%variant = %version-%source_rel %description -n kernel-mosix-devel%variant Kernel-level headers and Makefiles required for development of external kernel modules. %source_timestamp %package vanilla Summary: Vanilla Linux kernel sources with minor build fixes. License: GPLv2 Group: Development/Sources AutoReqProv: off Provides: multiversion(kernel-mosix) Provides: %name-vanilla = %version-%source_rel %description vanilla Vanilla Linux kernel sources with minor build fixes. %source_timestamp %prep if ! grep -q "patches.mosix/patch-suse" %_sourcedir/series.conf ; then cat >> %_sourcedir/series.conf <<EOF ######################################################## # MOSIX 2 - This should always be last ######################################################## patches.mosix/patch-suse EOF fi echo > %_sourcedir/IGNORE-KABI-BADNESS if ! [ -e %_sourcedir/linux-%srcversion.tar.bz2 ]; then echo "Please get a copy of linux-%srcversion.tar.bz2 from" \ "ftp://ftp.kernel.org/pub/linux/kernel/v2.6/." fi echo "Symbol(s): %symbols" # Unpack all sources and patches %setup -q -c -T -a 100 -a 101 -a 102 -a 103 -a 104 -a 105 -a 106 -a 107 -a 108 -a 109 -a 110 -a 111 -a 112 -a 113 -a 120 -a 999 echo CONFIG_MOSIX=y >> config/i386/default echo CONFIG_MOSIX=y >> config/x86_64/default echo CONFIG_MOSIX_MIXARCH=y >> config/x86_64/default %build mkdir -p $RPM_BUILD_ROOT/usr/src cd $RPM_BUILD_ROOT/usr/src # Unpack the vanilla kernel sources tar -xjf %_sourcedir/linux-%srcversion.tar.bz2 if test "%srcversion" != "%kernelrelease%variant"; then mv linux-%srcversion linux-%kernelrelease%variant fi %if %do_vanilla %if %vanilla_only mv \ %else cp -al \ %endif linux-%kernelrelease%variant linux-%kernelrelease-vanilla cd linux-%kernelrelease-vanilla %_sourcedir/apply-patches --vanilla %_sourcedir/series.conf %my_builddir %symbols rm -f $(find . -name ".gitignore") cd .. %endif %if ! %vanilla_only ln -sf linux%variant linux%variant # dummy symlink cd linux-%kernelrelease%variant %_sourcedir/apply-patches %_sourcedir/series.conf %my_builddir %symbols rm -f $(find . -name ".gitignore") if [ -f %_sourcedir/localversion ] ; then cat %_sourcedir/localversion > localversion fi %endif # Hardlink duplicate files automatically (from package fdupes). %fdupes $RPM_BUILD_ROOT %install %if ! %vanilla_only # Install the documentation and example Kernel Module Package. DOC=$RPM_BUILD_ROOT/usr/share/doc/packages/%name mkdir -p $DOC cp %_sourcedir/README.SUSE %_sourcedir/config-options.changes.txt $DOC ln -s /usr/share/doc/packages/%name/README.SUSE %buildroot/%src_install_dir/ install -m 755 -d $RPM_BUILD_ROOT/etc/rpm install -m 644 %_sourcedir/macros.kernel-source $RPM_BUILD_ROOT/etc/rpm/ install -m 755 -d $RPM_BUILD_ROOT/usr/lib/rpm install -m 644 %_sourcedir/kernel-module-subpackage \ $RPM_BUILD_ROOT/usr/lib/rpm/ for script in post; do sed -e "s:@KERNELRELEASE@:%kernelrelease:g" \ -e "s:@SRCVARIANT@:%variant:g" \ %_sourcedir/source-$script.sh > %name-$script.sh done pushd "%buildroot" perl "%_sourcedir/group-source-files.pl" \ -D "$OLDPWD/devel.files" -N "$OLDPWD/nondevel.files" \ -L "%src_install_dir" popd # kernel-source and kernel-$flavor-devel are built independently, but the # shipped sources (/usr/src/linux/) need to be older than generated files # (/usr/src/linux-obj). We rely on the git commit timestamp to not point into # the future and be thus lower than the timestamps of files built from the # source (bnc#669669). ts="$(head -n1 %_sourcedir/source-timestamp)" find %buildroot/usr/src/linux* ! -type l | xargs touch -d "$ts" %post -f %name-post.sh %post -n kernel-mosix-devel%variant -f %name-post.sh %files -f nondevel.files %defattr(-, root, root) %ghost /usr/src/linux%variant /usr/src/linux%variant-%kernelrelease/README.SUSE %files -n kernel-mosix-devel%variant -f devel.files %defattr(-,root,root) %ghost /usr/src/linux%variant /usr/share/doc/packages/%name /etc/rpm/macros.kernel-source /usr/lib/rpm/kernel-module-subpackage %endif %if %do_vanilla %files vanilla %defattr(-, root, root) /usr/src/linux-%kernelrelease-vanilla %endif
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