File openSUSE-Kubic-release.spec of Package _product:openSUSE-Kubic-release
#
# spec file for package caasp-release (Version 1.0)
#
# Copyright (c) 2009 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
Name: openSUSE-Kubic-release
Summary: openSUSE Kubic 1.0 Beta3
Version: 20170719
Release: 0
License: GPL-2.0+
Group: System/Fhs
BuildRequires: skelcd-openSUSE
Recommends: branding
# in rare cases, 'ln' is not found...
Requires(post): coreutils
Requires: issue-generator
Provides: distribution-release
Provides: %name-%version
Provides: product() = openSUSE-Kubic
Provides: product(openSUSE-Kubic) = 20170719-0
Provides: product-label() = openSUSE%20Kubic%201.0
Provides: product-cpeid() = cpe%3A%2Fo%3Aopensuse%3Aopensuse%2Dkubic%3A20170719
Provides: product-url(releasenotes) = https%3A%2F%2Fwww.suse.com%2Freleasenotes%2F%{_target_cpu}%2FSUSE%2DCAASP%2F1.0%2Frelease%2Dnotes%2Dcaasp.rpm
Provides: product-endoflife()
Requires: product_flavor(openSUSE-Kubic)
# Make sure we are at SLES12 SP2 level
PreReq: glibc >= 2.19
Conflicts: kernel < 4.4
AutoReqProv: on
BuildRoot: %{_tmppath}/%{name}-%{version}-build
# this package should only be available for the "basearchs" of a product
ExclusiveArch: %ix86 x86_64 ppc64le s390x aarch64
%description
SUSE Container as a Service Platform combines the
benefits of an enterprise ready OS with the agility of a fast
development containers orchestration platform.
It is a modern Linux Operating System, designed for containers and
optimized for large, clustered deployments. It inherits the benefits of
SUSE Linux Enterprise Server while redefining the operating system into
a small, efficient and reliable distribution.
%package DVD
License: BSD-3-Clause
Group: System/Fhs
Provides: product_flavor()
Provides: flavor(DVD)
Provides: product_flavor(openSUSE-Kubic) = 20170719-0
Summary: openSUSE Kubic 1.0
%description DVD
SUSE Container as a Service Platform combines the
benefits of an enterprise ready OS with the agility of a fast
development containers orchestration platform.
It is a modern Linux Operating System, designed for containers and
optimized for large, clustered deployments. It inherits the benefits of
SUSE Linux Enterprise Server while redefining the operating system into
a small, efficient and reliable distribution.
%files DVD
%defattr(-,root,root)
%doc %{_defaultdocdir}/openSUSE-Kubic-release-DVD
%prep
%build
%install
mkdir -p $RPM_BUILD_ROOT/etc
mkdir -p $RPM_BUILD_ROOT/usr/lib/issue.d
echo -e "\nWelcome to openSUSE Kubic 1.0 Beta3 (%{_target_cpu}) - Kernel \\\r (\\\l).\n" > $RPM_BUILD_ROOT/usr/lib/issue.d/10-OS
echo -e "\n" > $RPM_BUILD_ROOT/usr/lib/issue.d/90-OS
touch $RPM_BUILD_ROOT/etc/motd
# Put EULA into correct place
mkdir -p $RPM_BUILD_ROOT//etc/YaST2/licenses/base
cd $RPM_BUILD_ROOT//etc/YaST2/licenses/base
tar -xf /CD1/license.tar.gz # --overwrite
mkdir -p $RPM_BUILD_ROOT/etc
cat >$RPM_BUILD_ROOT/etc/os-release << EOF
NAME="openSUSE-Kubic"
VERSION="%{version}%{?betaversion: }%{?betaversion}"
VERSION_ID="%{version}%{?betaversion?: }%{?betaversion}"
PRETTY_NAME="openSUSE Kubic 1.0"
ID="opensuse-kubic"
ANSI_COLOR="0;32"
CPE_NAME="cpe:/o:opensuse:opensuse-kubic:20170719"
EOF
mkdir -p $RPM_BUILD_ROOT/etc/products.d
cat >$RPM_BUILD_ROOT/etc/products.d/openSUSE-Kubic.prod << EOF
<?xml version="1.0" encoding="UTF-8"?>
<product schemeversion="0">
<vendor>openSUSE</vendor>
<name>openSUSE-Kubic</name>
<version>20170719</version>
<release>0</release>
<endoflife></endoflife>
<arch>%{_target_cpu}</arch>
<cpeid>cpe:/o:opensuse:opensuse-kubic:20170719</cpeid>
<productline>openSUSE-Kubic</productline>
<register>
<target/>
<updates>
</updates>
</register>
<summary>openSUSE Kubic 1.0</summary>
<shortsummary>openSUSE Kubic 1.0</shortsummary>
<description>SUSE Container as a Service Platform combines the
benefits of an enterprise ready OS with the agility of a fast
development containers orchestration platform.
It is a modern Linux Operating System, designed for containers and
optimized for large, clustered deployments. It inherits the benefits of
SUSE Linux Enterprise Server while redefining the operating system into
a small, efficient and reliable distribution.</description>
<linguas>
<language>en_US</language>
</linguas>
<urls>
<url name="releasenotes">https://www.suse.com/releasenotes/%{_target_cpu}/SUSE-CAASP/1.0/release-notes-caasp.rpm</url>
</urls>
<buildconfig>
<producttheme>Kubic</producttheme>
<betaversion>Beta3</betaversion>
</buildconfig>
<installconfig>
<defaultlang>en_US</defaultlang>
<datadir>suse</datadir>
<descriptiondir>suse/setup/descr</descriptiondir>
<releasepackage name="%{name}" flag="EQ" version="%{version}" release="%{release}" />
<distribution>openSUSE_Kubic</distribution>
</installconfig>
<runtimeconfig />
</product>
EOF
mkdir -p $RPM_BUILD_ROOT/%{_defaultdocdir}/openSUSE-Kubic-release-DVD
cat >$RPM_BUILD_ROOT/%{_defaultdocdir}/openSUSE-Kubic-release-DVD/README << EOF
This package only exists for providing the product flavor 'DVD'.
EOF
%clean
rm -rf %buildroot
%files
%defattr(644,root,root,755)
%config /etc/os-release
%dir /etc/products.d
/etc/products.d/*
%dir /etc/YaST2/
%config(noreplace) /etc/motd
%dir /etc/YaST2/licenses/
%dir /etc/YaST2/licenses/base/
# no %doc here, or we will not install them
/etc/YaST2/licenses/base/license*txt
/etc/YaST2/licenses/base/no-acceptance-needed
%dir /usr/lib/issue.d
/usr/lib/issue.d/*-OS
%changelog