File kiwi-templates-Leap42-JeOS.spec of Package kiwi-templates-Leap42-JeOS

#
# spec file for package kiwi-templates-SLES12-JeOS
#
# Copyright (c) 2015 SUSE LINUX 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/
#

%define dest %_datadir/kiwi/image/suse-leap-42.3-Enterprise-JeOS

Name:           kiwi-templates-Leap42-JeOS
Version:        42.3
Release:        1
License:        MIT
Summary:        KIWI - openSUSE Leap 42.3 JeOS image templates based on SUSE Linux Enterprise 12 SP3 JeOS
Url:            http://www.opensuse.org
Group:          System/Management
Source01:       config.sh
Source02:       images.sh
Source03:       openSUSE-Leap-42.3-JeOS-for-kvm-and-xen.kiwi
Source04:       openSUSE-Leap-42.3-JeOS-for-MS-HyperV.kiwi
Source05:       openSUSE-Leap-42.3-JeOS-for-OpenStack-Cloud.kiwi
Source06:       openSUSE-Leap-42.3-JeOS-for-VMware.kiwi
Source07:       openSUSE-Leap-42.3-JeOS-for-XEN.kiwi
Source08:       openSUSE-Leap-42.3-JeOS-for-VirtualBox.kiwi
#
Source13:       openSUSE-Leap-42.3-JeOS-for-kvm-and-xen.diff
Source14:       openSUSE-Leap-42.3-JeOS-for-MS-HyperV.diff
Source15:       openSUSE-Leap-42.3-JeOS-for-OpenStack-Cloud.diff
Source16:       openSUSE-Leap-42.3-JeOS-for-VMware.diff
Source17:       openSUSE-Leap-42.3-JeOS-for-XEN.diff
Source18:       openSUSE-Leap-42.3-JeOS-for-VirtualBox.diff
#
Source20:       applyleapdiff
Source21:       genleapdiff
Source22:       openSUSE-Leap-42.3-JeOS.template
Source23:       openSUSE-Leap-42.3-JeOS.diff
#
Source99:       LICENSE
BuildRequires:  kiwi
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Requires:       kiwi
Requires:       kiwi-templates-SLE12-JeOS
Supplements:    packageand(kiwi:kiwi-templates)

%description
This package contains system image templates to easily build
an openSUSE Leap 42.3 JeOS based operating system image with
kiwi.

%prep
%setup -cT
cp "%SOURCE99" .

%build

%install
dst="%buildroot%dest"
mkdir -p $dst
for i in %{SOURCE1} %{SOURCE2} %{SOURCE3} %{SOURCE4} %{SOURCE5} %{SOURCE6} %{SOURCE7} %{SOURCE8}; do
	install -m 644 $i "$dst"
done

%files
%defattr(-,root,root)
%doc LICENSE
%dest
openSUSE Build Service is sponsored by