# # spec file for package kernel-obs-build # # Copyright (c) 2014 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/ # # needsrootforbuild #!BuildIgnore: post-build-checks %define patchversion 3.16.0-rc7 %define variant %{nil} %include %_sourcedir/kernel-spec-macros Name: kernel-obs-build BuildRequires: coreutils BuildRequires: device-mapper BuildRequires: util-linux BuildRequires: kernel-default %ifarch %ix86 x86_64 BuildRequires: kernel-xen %endif ExclusiveArch: aarch64 armv6hl armv7hl %ix86 ppc ppc64 ppc64le s390x x86_64 %if 0%{?suse_version} < 1320 # For SLE 11 BuildRequires: mkinitrd BuildRequires: perl-Bootloader BuildRoot: %{_tmppath}/%{name}-%{version}-build %else BuildRequires: dracut %endif Summary: package kernel and initrd for OBS VM builds License: GPL-2.0 Group: SLES Version: 3.16.rc7 %if 0%{?is_kotd} Release: .g9b5a5f0 %else Release: 0 %endif %description This package is repackaging already compiled kernels to make them usable inside of Open Build Service (OBS) VM builds. An initrd with some basic kernel modules is generated as well, but further kernel modules can be loaded during build when installing the kernel package. %prep %build mkdir -p /usr/lib/dracut/modules.d/80obs cat > /usr/lib/dracut/modules.d/80obs/module-setup.sh < /usr/lib/dracut/modules.d/80obs/setup_obs.sh <