Kubic: create-flavors = true

OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/000product?expand=0&rev=19
This commit is contained in:
Dominique Leuenberger 2018-03-21 11:30:01 +00:00 committed by Git OBS Bridge
parent 9dd3317aa4
commit 0502c3444e
5 changed files with 34 additions and 3 deletions

View File

@ -766,6 +766,7 @@
<repopackage name="yum-metadata-parser"/> <repopackage name="yum-metadata-parser"/>
<repopackage name="zypper"/> <repopackage name="zypper"/>
<repopackage name="openSUSE-Tumbleweed-Kubic-release" addarch="x86_64"/> <repopackage name="openSUSE-Tumbleweed-Kubic-release" addarch="x86_64"/>
<repopackage name="openSUSE-Tumbleweed-Kubic-release-dvd" addarch="x86_64"/>
</repopackages> </repopackages>
</instsource> </instsource>
</image> </image>

View File

@ -43,6 +43,7 @@ Provides: product-label() = openSUSE%20Tumbleweed%20Kubic
Provides: product-cpeid() = cpe%3A%2Fo%3Aopensuse%3Aopensuse%2Dtumbleweed%2Dkubic%3A20180320 Provides: product-cpeid() = cpe%3A%2Fo%3Aopensuse%3Aopensuse%2Dtumbleweed%2Dkubic%3A20180320
Provides: product-url(releasenotes) = http%3A%2F%2Fdoc.opensuse.org%2Frelease%2Dnotes%2Fx86_64%2FopenSUSE%2FTumbleweed%2Frelease%2Dnotes%2DopenSUSE.rpm Provides: product-url(releasenotes) = http%3A%2F%2Fdoc.opensuse.org%2Frelease%2Dnotes%2Fx86_64%2FopenSUSE%2FTumbleweed%2Frelease%2Dnotes%2DopenSUSE.rpm
Provides: product-endoflife() Provides: product-endoflife()
Requires: product_flavor(openSUSE-Tumbleweed-Kubic)
@ -55,6 +56,27 @@ openSUSE Tumbleweed Kubic combines the benefits of a rolling
openSUSE Tumbleweed while redefining the operating system into a small, openSUSE Tumbleweed while redefining the operating system into a small,
efficient and reliable distribution. efficient and reliable distribution.
%package dvd
License: BSD-3-Clause
Group: System/Fhs
Provides: product_flavor()
Provides: flavor(dvd)
Provides: product_flavor(openSUSE-Tumbleweed-Kubic) = 20180320-0
Summary: openSUSE Tumbleweed Kubic
%description dvd
openSUSE Tumbleweed Kubic combines the benefits of a rolling
OS with a container orchestration platform.
It is a modern Linux Operating System, designed for containers and
optimized for large, clustered deployments. It inherits the benefits of
openSUSE Tumbleweed while redefining the operating system into a small,
efficient and reliable distribution.
%files dvd
%defattr(-,root,root)
%doc %{_defaultdocdir}/openSUSE-Tumbleweed-Kubic-release-dvd
%prep %prep
@ -132,6 +154,7 @@ cat >$RPM_BUILD_ROOT/etc/products.d/openSUSE-Tumbleweed-Kubic.prod << EOF
</urls> </urls>
<buildconfig> <buildconfig>
<producttheme>Kubic</producttheme> <producttheme>Kubic</producttheme>
<create_flavors>true</create_flavors>
</buildconfig> </buildconfig>
<installconfig> <installconfig>
<defaultlang>en_US</defaultlang> <defaultlang>en_US</defaultlang>
@ -145,6 +168,12 @@ cat >$RPM_BUILD_ROOT/etc/products.d/openSUSE-Tumbleweed-Kubic.prod << EOF
EOF EOF
mkdir -p $RPM_BUILD_ROOT/%{_defaultdocdir}/openSUSE-Tumbleweed-Kubic-release-dvd
cat >$RPM_BUILD_ROOT/%{_defaultdocdir}/openSUSE-Tumbleweed-Kubic-release-dvd/README << EOF
This package only exists for providing the product flavor 'dvd'.
EOF
%files %files

View File

@ -1,5 +1,5 @@
# #
# spec file for package openSUSE # spec file for package openSUSE-release
# #
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
# #

View File

@ -34,6 +34,7 @@
<buildconfig> <buildconfig>
<!-- This section is needed to generate the installation media --> <!-- This section is needed to generate the installation media -->
<producttheme>Kubic</producttheme> <producttheme>Kubic</producttheme>
<create_flavors>true</create_flavors>
</buildconfig> </buildconfig>
<installconfig> <installconfig>

View File

@ -1,5 +1,5 @@
# #
# spec file for package openSUSE # spec file for package openSUSE-release
# #
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
# #