Blame MicroOS-release.spec

Bernhard M. Wiedemann 959dc4
#
Bernhard M. Wiedemann 959dc4
# spec file for package openSUSE-MicroOS-release.spec
Bernhard M. Wiedemann 959dc4
#
Bernhard M. Wiedemann 959dc4
# Copyright (c) 2020 SUSE LLC
Bernhard M. Wiedemann 959dc4
#
Bernhard M. Wiedemann 959dc4
# All modifications and additions to the file contributed by third parties
Bernhard M. Wiedemann 959dc4
# remain the property of their copyright owners, unless otherwise agreed
Bernhard M. Wiedemann 959dc4
# upon. The license for this file, and modifications and additions to the
Bernhard M. Wiedemann 959dc4
# file, is the same license as for the pristine package itself (unless the
Bernhard M. Wiedemann 959dc4
# license for the pristine package is not an Open Source License, in which
Bernhard M. Wiedemann 959dc4
# case the license is the MIT License). An "Open Source License" is a
Bernhard M. Wiedemann 959dc4
# license that conforms to the Open Source Definition (Version 1.9)
Bernhard M. Wiedemann 959dc4
# published by the Open Source Initiative.
Bernhard M. Wiedemann 959dc4
Bernhard M. Wiedemann 959dc4
# Please submit bugfixes or comments via https://bugs.opensuse.org/
Bernhard M. Wiedemann 959dc4
#
Bernhard M. Wiedemann 959dc4
Bernhard M. Wiedemann 959dc4
Bernhard M. Wiedemann 959dc4
Name:           MicroOS-release
1ebf28
Version:        20220426
Bernhard M. Wiedemann 959dc4
Release:        0
Bernhard M. Wiedemann 959dc4
Summary:        openSUSE MicroOS 
Bernhard M. Wiedemann 959dc4
License:        GPL-2.0-or-later
Bernhard M. Wiedemann 959dc4
Group:          System/Fhs
Bernhard M. Wiedemann 959dc4
Source100:      weakremovers.inc
Bernhard M. Wiedemann 959dc4
BuildRequires:  skelcd-openSUSE
Bernhard M. Wiedemann 959dc4
# Make sure we are at SLES12 SP2 level
Bernhard M. Wiedemann 959dc4
PreReq:         glibc >= 2.19
Bernhard M. Wiedemann 959dc4
# in rare cases, 'ln' is not found...
Bernhard M. Wiedemann 959dc4
Requires(post): coreutils
Bernhard M. Wiedemann 959dc4
Suggests:       branding-openSUSE
Bernhard M. Wiedemann 959dc4
Suggests:       distribution-logos-openSUSE-MicroOS
Bernhard M. Wiedemann 959dc4
Suggests:       openSUSE-build-key
Bernhard M. Wiedemann 959dc4
Conflicts:      distribution-release
Bernhard M. Wiedemann 959dc4
Conflicts:      kernel < 4.4
Bernhard M. Wiedemann 959dc4
Provides:       distribution-release
445dd1
# MicroOS is a SUSE Linux type distribution
445dd1
Provides:       suse-release = %{version}-%{release}
445dd1
Provides:       suse-release-oss = %{version}-%{release}
Bernhard M. Wiedemann 959dc4
# MicroOS-release replaces Tumbleweed-Kubic-release
Bernhard M. Wiedemann 959dc4
Provides:       openSUSE-Tumbleweed-Kubic-release
Bernhard M. Wiedemann 959dc4
Obsoletes:      openSUSE-Tumbleweed-Kubic-release <= 20190324
Bernhard M. Wiedemann 959dc4
Provides:       openSUSE-MicroOS-release = %{version}
Bernhard M. Wiedemann 959dc4
Obsoletes:      openSUSE-MicroOS-release <= %{version}
Bernhard M. Wiedemann 959dc4
# Give zypp a hint that this product must be kept up-to-date using zypper dup, not up (boo#1061384)
Bernhard M. Wiedemann 959dc4
Provides:       product-update() = dup
Bernhard M. Wiedemann 959dc4
# With more than one product in the FTP tree, yast needs to know which products are installable
Bernhard M. Wiedemann 959dc4
# The name is referenced by the control file as well
Bernhard M. Wiedemann 959dc4
Provides:       system-installation() = MicroOS
Bernhard M. Wiedemann 959dc4
# bnc#826592
Bernhard M. Wiedemann 959dc4
Provides:       weakremover(kernel-default) < 3.11
Bernhard M. Wiedemann 959dc4
Provides:       weakremover(kernel-desktop) < 4.2
Bernhard M. Wiedemann 959dc4
Provides:       weakremover(kernel-ec2) < 3.11
Bernhard M. Wiedemann 959dc4
Provides:       weakremover(kernel-pae) < 3.11
Bernhard M. Wiedemann 959dc4
Provides:       weakremover(kernel-vanilla) < 3.11
Bernhard M. Wiedemann 959dc4
Provides:       weakremover(kernel-xen) < 3.11
Bernhard M. Wiedemann 959dc4
# migrated from MANUAL_OBSOLETES/packages
Bernhard M. Wiedemann 959dc4
Provides:       weakremover(boost-license1_56_0)
Bernhard M. Wiedemann 959dc4
Provides:       weakremover(boost-license1_59_0)
Bernhard M. Wiedemann 959dc4
Provides:       weakremover(gpg-pubkey-3d25d3d9-36e12d04)
Bernhard M. Wiedemann 959dc4
Provides:       weakremover(lib++dfb-1_7-6)
Bernhard M. Wiedemann 959dc4
Provides:       weakremover(libastro-qt5-1)
Bernhard M. Wiedemann 959dc4
Provides:       weakremover(libboost_atomic1_59_0)
Bernhard M. Wiedemann 959dc4
Provides:       weakremover(libboost_atomic1_60_0)
Bernhard M. Wiedemann 959dc4
Provides:       weakremover(libboost_atomic1_62_0)
Bernhard M. Wiedemann 959dc4
Provides:       weakremover(libboost_atomic1_63_0)
Bernhard M. Wiedemann 959dc4
Provides:       weakremover(libboost_chrono1_59_0)
Bernhard M. Wiedemann 959dc4
Provides:       weakremover(libboost_chrono1_60_0)
Bernhard M. Wiedemann 959dc4
Provides:       weakremover(libboost_chrono1_62_0)
Bernhard M. Wiedemann 959dc4
Provides:       weakremover(libboost_chrono1_63_0)
Bernhard M. Wiedemann 959dc4
Provides:       weakremover(libboost_container1_59_0)
Bernhard M. Wiedemann 959dc4
Provides:       weakremover(libboost_container1_60_0)
Bernhard M. Wiedemann 959dc4
Provides:       weakremover(libboost_container1_62_0)
Bernhard M. Wiedemann 959dc4
Provides:       weakremover(libboost_container1_63_0)
Bernhard M. Wiedemann 959dc4
Provides:       weakremover(libboost_context1_59_0)
Bernhard M. Wiedemann 959dc4
Provides:       weakremover(libboost_context1_60_0)
Bernhard M. Wiedemann 959dc4
Provides:       weakremover(libboost_context1_62_0)
Bernhard M. Wiedemann 959dc4
Provides:       weakremover(libboost_context1_63_0)
Bernhard M. Wiedemann 959dc4
Provides:       weakremover(libboost_coroutine1_59_0)
Bernhard M. Wiedemann 959dc4
Provides:       weakremover(libboost_coroutine1_60_0)
Bernhard M. Wiedemann 959dc4
Provides:       weakremover(libboost_coroutine1_62_0)
Bernhard M. Wiedemann 959dc4
Provides:       weakremover(libboost_coroutine1_63_0)
Bernhard M. Wiedemann 959dc4
Provides:       weakremover(libboost_date_time1_59_0)
Bernhard M. Wiedemann 959dc4
Provides:       weakremover(libboost_date_time1_60_0)
Bernhard M. Wiedemann 959dc4
Provides:       weakremover(libboost_date_time1_62_0)
Bernhard M. Wiedemann 959dc4
Provides:       weakremover(libboost_date_time1_63_0)
Bernhard M. Wiedemann 959dc4
Provides:       weakremover(libboost_filesystem1_59_0)
Bernhard M. Wiedemann 959dc4
Provides:       weakremover(libboost_filesystem1_60_0)
Bernhard M. Wiedemann 959dc4
Provides:       weakremover(libboost_filesystem1_62_0)
Bernhard M. Wiedemann 959dc4
Provides:       weakremover(libboost_filesystem1_63_0)
Bernhard M. Wiedemann 959dc4
Provides:       weakremover(libboost_graph1_59_0)
Bernhard M. Wiedemann 959dc4
Provides:       weakremover(libboost_graph1_60_0)
Bernhard M. Wiedemann 959dc4
Provides:       weakremover(libboost_graph1_62_0)
Bernhard M. Wiedemann 959dc4
Provides:       weakremover(libboost_graph1_63_0)
Bernhard M. Wiedemann 959dc4
Provides:       weakremover(libboost_iostreams1_59_0)
Bernhard M. Wiedemann 959dc4
Provides:       weakremover(libboost_locale1_59_0)
Bernhard M. Wiedemann 959dc4
Provides:       weakremover(libboost_log1_59_0)
Bernhard M. Wiedemann 959dc4
Provides:       weakremover(libboost_log1_60_0)
Bernhard M. Wiedemann 959dc4
Provides:       weakremover(libboost_log1_62_0)
Bernhard M. Wiedemann 959dc4
Provides:       weakremover(libboost_log1_63_0)
Bernhard M. Wiedemann 959dc4
Provides:       weakremover(libboost_math1_59_0)
Bernhard M. Wiedemann 959dc4
Provides:       weakremover(libboost_program_options1_59_0)
Bernhard M. Wiedemann 959dc4
Provides:       weakremover(libboost_python1_59_0)
Bernhard M. Wiedemann 959dc4
Provides:       weakremover(libboost_random1_59_0)
Bernhard M. Wiedemann 959dc4
Provides:       weakremover(libboost_regex1_59_0)
Bernhard M. Wiedemann 959dc4
Provides:       weakremover(libboost_regex1_60_0)
Bernhard M. Wiedemann 959dc4
Provides:       weakremover(libboost_regex1_62_0)
Bernhard M. Wiedemann 959dc4
Provides:       weakremover(libboost_regex1_63_0)
Bernhard M. Wiedemann 959dc4
Provides:       weakremover(libboost_serialization1_59_0)
Bernhard M. Wiedemann 959dc4
Provides:       weakremover(libboost_signals1_59_0)
Bernhard M. Wiedemann 959dc4
Provides:       weakremover(libboost_system1_56_0)
Bernhard M. Wiedemann 959dc4
Provides:       weakremover(libboost_system1_59_0)
Bernhard M. Wiedemann 959dc4
Provides:       weakremover(libboost_test1_59_0)
Bernhard M. Wiedemann 959dc4
Provides:       weakremover(libboost_thread1_56_0)
Bernhard M. Wiedemann 959dc4
Provides:       weakremover(libboost_thread1_59_0)
Bernhard M. Wiedemann 959dc4
Provides:       weakremover(libboost_timer1_59_0)
Bernhard M. Wiedemann 959dc4
Provides:       weakremover(libboost_wave1_59_0)
Bernhard M. Wiedemann 959dc4
Provides:       weakremover(libcamel-1_2-54)
Bernhard M. Wiedemann 959dc4
Provides:       weakremover(libdialog12)
Bernhard M. Wiedemann 959dc4
Provides:       weakremover(libdirectfb-1_7-6)
Bernhard M. Wiedemann 959dc4
Provides:       weakremover(libdns146)
Bernhard M. Wiedemann 959dc4
Provides:       weakremover(libdns160)
Bernhard M. Wiedemann 959dc4
Provides:       weakremover(libdns161)
Bernhard M. Wiedemann 959dc4
Provides:       weakremover(libgdict-1_0-9)
Bernhard M. Wiedemann 959dc4
Provides:       weakremover(libgit2-23)
Bernhard M. Wiedemann 959dc4
Provides:       weakremover(libgpaste4)
Bernhard M. Wiedemann 959dc4
Provides:       weakremover(libhdf5-11)
Bernhard M. Wiedemann 959dc4
Provides:       weakremover(libhdf5_hl11)
Bernhard M. Wiedemann 959dc4
Provides:       weakremover(libicu54_1)
Bernhard M. Wiedemann 959dc4
Provides:       weakremover(libicu54_1-ledata)
Bernhard M. Wiedemann 959dc4
Provides:       weakremover(libicu55_1)
Bernhard M. Wiedemann 959dc4
Provides:       weakremover(libicu55_1-ledata)
Bernhard M. Wiedemann 959dc4
Provides:       weakremover(libicu56_1)
Bernhard M. Wiedemann 959dc4
Provides:       weakremover(libicu56_1-ledata)
Bernhard M. Wiedemann 959dc4
Provides:       weakremover(libimobiledevice5)
Bernhard M. Wiedemann 959dc4
Provides:       weakremover(libisc142)
Bernhard M. Wiedemann 959dc4
Provides:       weakremover(libisc148)
Bernhard M. Wiedemann 959dc4
Provides:       weakremover(libisl13)
Bernhard M. Wiedemann 959dc4
Provides:       weakremover(libixion-0_10-0)
Bernhard M. Wiedemann 959dc4
Provides:       weakremover(liblmdb-0_9_16)
Bernhard M. Wiedemann 959dc4
Provides:       weakremover(libmicrohttpd11)
Bernhard M. Wiedemann 959dc4
Provides:       weakremover(libminiupnpc15)
Bernhard M. Wiedemann 959dc4
Provides:       weakremover(libnis1)
Bernhard M. Wiedemann 959dc4
Provides:       weakremover(libntfs-3g86)
Bernhard M. Wiedemann 959dc4
Provides:       weakremover(liborcus-0_10-0)
Bernhard M. Wiedemann 959dc4
Provides:       weakremover(libpoppler47)
Bernhard M. Wiedemann 959dc4
Provides:       weakremover(libpoppler48)
Bernhard M. Wiedemann 959dc4
Provides:       weakremover(libpoppler49)
Bernhard M. Wiedemann 959dc4
Provides:       weakremover(libpoppler50)
Bernhard M. Wiedemann 959dc4
Provides:       weakremover(libpoppler51)
Bernhard M. Wiedemann 959dc4
Provides:       weakremover(libpoppler52)
Bernhard M. Wiedemann 959dc4
Provides:       weakremover(libpoppler53)
Bernhard M. Wiedemann 959dc4
Provides:       weakremover(libpoppler54)
Bernhard M. Wiedemann 959dc4
Provides:       weakremover(libpoppler55)
Bernhard M. Wiedemann 959dc4
Provides:       weakremover(libpoppler56)
Bernhard M. Wiedemann 959dc4
Provides:       weakremover(libpoppler57)
Bernhard M. Wiedemann 959dc4
Provides:       weakremover(libpoppler58)
Bernhard M. Wiedemann 959dc4
Provides:       weakremover(libpoppler59)
Bernhard M. Wiedemann 959dc4
Provides:       weakremover(libpoppler61)
Bernhard M. Wiedemann 959dc4
Provides:       weakremover(libpoppler62)
Bernhard M. Wiedemann 959dc4
Provides:       weakremover(libpoppler63)
Bernhard M. Wiedemann 959dc4
Provides:       weakremover(libpoppler64)
Bernhard M. Wiedemann 959dc4
Provides:       weakremover(libpoppler65)
Bernhard M. Wiedemann 959dc4
Provides:       weakremover(libprocps4)
Bernhard M. Wiedemann 959dc4
Provides:       weakremover(libprocps5)
Bernhard M. Wiedemann 959dc4
Provides:       weakremover(libpsl0)
Bernhard M. Wiedemann 959dc4
Provides:       weakremover(libsgutils2-1_40-2)
Bernhard M. Wiedemann 959dc4
Provides:       weakremover(libsgutils2-1_41-2)
Bernhard M. Wiedemann 959dc4
Provides:       weakremover(libvpx2)
Bernhard M. Wiedemann 959dc4
Provides:       weakremover(libxtables11)
Bernhard M. Wiedemann 959dc4
Provides:       weakremover(libzip4)
Bernhard M. Wiedemann 959dc4
Provides:       weakremover(mt_st)
Bernhard M. Wiedemann 959dc4
Provides:       weakremover(openssl-debuginfo)
Bernhard M. Wiedemann 959dc4
# this package should only be available for the "basearchs" of a product
Bernhard M. Wiedemann 959dc4
ExclusiveArch:  %ix86 x86_64 ppc64le s390x aarch64 %arm
Bernhard M. Wiedemann 959dc4
%include %{SOURCE100}
Bernhard M. Wiedemann 959dc4
Provides:       %name-%version
Bernhard M. Wiedemann 959dc4
Provides:       product() = MicroOS
1ebf28
Provides:       product(MicroOS) = 20220426-0
Bernhard M. Wiedemann 959dc4
Provides:       product-label() = openSUSE%20MicroOS
1ebf28
Provides:       product-cpeid() = cpe%3A%2Fo%3Aopensuse%3Amicroos%3A20220426
Bernhard M. Wiedemann 959dc4
Provides:       product-url(releasenotes) = http%3A%2F%2Fdoc.opensuse.org%2Frelease%2Dnotes%2Fx86_64%2FopenSUSE%2FTumbleweed%2Frelease%2Dnotes%2DopenSUSE.rpm
Bernhard M. Wiedemann 959dc4
Provides:       product-endoflife()
Bernhard M. Wiedemann 959dc4
Requires:       product_flavor(MicroOS)
Bernhard M. Wiedemann 959dc4
Bernhard M. Wiedemann 959dc4
Bernhard M. Wiedemann 959dc4
Bernhard M. Wiedemann 959dc4
%description
Bernhard M. Wiedemann 959dc4
openSUSE MicroOS combines the benefits of a rolling OS with a read-only root filesystem with transactional updates. It is a modern Linux Operating System, designed for single-service installations, such as container hosts. It is optimized for large, clustered deployments.
Bernhard M. Wiedemann 959dc4
        It inherits the benefits of openSUSE Tumbleweed while redefining the operating system into a small, efficient and reliable distribution.
Bernhard M. Wiedemann 959dc4
8a8aed
%package -n MicroOS-release-dvd
Bernhard M. Wiedemann 959dc4
License:        BSD-3-Clause
Bernhard M. Wiedemann 959dc4
Group:          System/Fhs
Bernhard M. Wiedemann 959dc4
Provides:       product_flavor()
Bernhard M. Wiedemann 959dc4
Provides:       flavor(dvd)
1ebf28
Provides:       product_flavor(MicroOS) = 20220426-0
Bernhard M. Wiedemann 959dc4
Summary:        openSUSE MicroOS%{?betaversion: %{betaversion}}
Bernhard M. Wiedemann 959dc4
Bernhard M. Wiedemann 959dc4
%description dvd
Bernhard M. Wiedemann 959dc4
openSUSE MicroOS combines the benefits of a rolling OS with a read-only root filesystem with transactional updates. It is a modern Linux Operating System, designed for single-service installations, such as container hosts. It is optimized for large, clustered deployments.
Bernhard M. Wiedemann 959dc4
        It inherits the benefits of openSUSE Tumbleweed while redefining the operating system into a small, efficient and reliable distribution.
Bernhard M. Wiedemann 959dc4
Bernhard M. Wiedemann 959dc4
%files dvd
Bernhard M. Wiedemann 959dc4
%defattr(-,root,root)
Bernhard M. Wiedemann 959dc4
%doc %{_defaultdocdir}/MicroOS-release-dvd
Bernhard M. Wiedemann 959dc4
8a8aed
%package -n MicroOS-release-kubic-dvd
Bernhard M. Wiedemann 959dc4
License:        BSD-3-Clause
Bernhard M. Wiedemann 959dc4
Group:          System/Fhs
Bernhard M. Wiedemann 959dc4
Provides:       product_flavor()
Bernhard M. Wiedemann 959dc4
Provides:       flavor(kubic-dvd)
1ebf28
Provides:       product_flavor(MicroOS) = 20220426-0
Bernhard M. Wiedemann 959dc4
Summary:        openSUSE MicroOS%{?betaversion: %{betaversion}}
Bernhard M. Wiedemann 959dc4
Bernhard M. Wiedemann 959dc4
%description kubic-dvd
Bernhard M. Wiedemann 959dc4
openSUSE MicroOS combines the benefits of a rolling OS with a read-only root filesystem with transactional updates. It is a modern Linux Operating System, designed for single-service installations, such as container hosts. It is optimized for large, clustered deployments.
Bernhard M. Wiedemann 959dc4
        It inherits the benefits of openSUSE Tumbleweed while redefining the operating system into a small, efficient and reliable distribution.
Bernhard M. Wiedemann 959dc4
Bernhard M. Wiedemann 959dc4
%files kubic-dvd
Bernhard M. Wiedemann 959dc4
%defattr(-,root,root)
Bernhard M. Wiedemann 959dc4
%doc %{_defaultdocdir}/MicroOS-release-kubic-dvd
Bernhard M. Wiedemann 959dc4
8a8aed
%package -n MicroOS-release-appliance
Bernhard M. Wiedemann 959dc4
License:        BSD-3-Clause
Bernhard M. Wiedemann 959dc4
Group:          System/Fhs
Bernhard M. Wiedemann 959dc4
Provides:       product_flavor()
Bernhard M. Wiedemann 959dc4
Provides:       flavor(appliance)
1ebf28
Provides:       product_flavor(MicroOS) = 20220426-0
Bernhard M. Wiedemann 959dc4
Summary:        openSUSE MicroOS%{?betaversion: %{betaversion}}
Bernhard M. Wiedemann 959dc4
Bernhard M. Wiedemann 959dc4
%description appliance
Bernhard M. Wiedemann 959dc4
openSUSE MicroOS combines the benefits of a rolling OS with a read-only root filesystem with transactional updates. It is a modern Linux Operating System, designed for single-service installations, such as container hosts. It is optimized for large, clustered deployments.
Bernhard M. Wiedemann 959dc4
        It inherits the benefits of openSUSE Tumbleweed while redefining the operating system into a small, efficient and reliable distribution.
Bernhard M. Wiedemann 959dc4
Bernhard M. Wiedemann 959dc4
%files appliance
Bernhard M. Wiedemann 959dc4
%defattr(-,root,root)
Bernhard M. Wiedemann 959dc4
%doc %{_defaultdocdir}/MicroOS-release-appliance
Bernhard M. Wiedemann 959dc4
8a8aed
%package -n MicroOS-release-appliance-kubic
Bernhard M. Wiedemann 959dc4
License:        BSD-3-Clause
Bernhard M. Wiedemann 959dc4
Group:          System/Fhs
Bernhard M. Wiedemann 959dc4
Provides:       product_flavor()
Bernhard M. Wiedemann 959dc4
Provides:       flavor(appliance-kubic)
1ebf28
Provides:       product_flavor(MicroOS) = 20220426-0
Bernhard M. Wiedemann 959dc4
Summary:        openSUSE MicroOS%{?betaversion: %{betaversion}}
Bernhard M. Wiedemann 959dc4
Bernhard M. Wiedemann 959dc4
%description appliance-kubic
Bernhard M. Wiedemann 959dc4
openSUSE MicroOS combines the benefits of a rolling OS with a read-only root filesystem with transactional updates. It is a modern Linux Operating System, designed for single-service installations, such as container hosts. It is optimized for large, clustered deployments.
Bernhard M. Wiedemann 959dc4
        It inherits the benefits of openSUSE Tumbleweed while redefining the operating system into a small, efficient and reliable distribution.
Bernhard M. Wiedemann 959dc4
Bernhard M. Wiedemann 959dc4
%files appliance-kubic
Bernhard M. Wiedemann 959dc4
%defattr(-,root,root)
Bernhard M. Wiedemann 959dc4
%doc %{_defaultdocdir}/MicroOS-release-appliance-kubic
Bernhard M. Wiedemann 959dc4
Bernhard M. Wiedemann 959dc4
Bernhard M. Wiedemann 959dc4
Bernhard M. Wiedemann 959dc4
%prep
Bernhard M. Wiedemann 959dc4
Bernhard M. Wiedemann 959dc4
%build
Bernhard M. Wiedemann 959dc4
Bernhard M. Wiedemann 959dc4
%install
Bernhard M. Wiedemann 959dc4
mkdir -p %{buildroot}%{_sysconfdir}
Bernhard M. Wiedemann 959dc4
mkdir -p %{buildroot}%{_prefix}/lib/issue.d
Bernhard M. Wiedemann 959dc4
echo -e "\nWelcome to openSUSE MicroOS (%{_target_cpu}) - Kernel \\\r (\\\l).\n" > %{buildroot}%{_prefix}/lib/issue.d/10-OS
Bernhard M. Wiedemann 959dc4
echo -e "\n" > %{buildroot}%{_prefix}/lib/issue.d/90-OS
Bernhard M. Wiedemann 959dc4
Bernhard M. Wiedemann 959dc4
# Put EULA into correct place
Bernhard M. Wiedemann 959dc4
mkdir -p %{buildroot}/%{_sysconfdir}/YaST2/licenses/base
Bernhard M. Wiedemann 959dc4
cd %{buildroot}/%{_sysconfdir}/YaST2/licenses/base
Bernhard M. Wiedemann 959dc4
if [ -f /CD1/license.tar.gz ]; then
Bernhard M. Wiedemann 959dc4
  tar -xzf /CD1/license.tar.gz
Bernhard M. Wiedemann 959dc4
elif [ -f %{_prefix}/lib/skelcd/CD1/license.tar.gz ]; then
Bernhard M. Wiedemann 959dc4
  tar -xzf %{_prefix}/lib/skelcd/CD1/license.tar.gz
Bernhard M. Wiedemann 959dc4
fi
Bernhard M. Wiedemann 959dc4
Bernhard M. Wiedemann 959dc4
VERSION_ID=`echo %{version}|tr '[:upper:]' '[:lower:]'|sed -e 's/ //g;'`
Bernhard M. Wiedemann 959dc4
# note: VERSION is an optional field and has no meaning other than informative on a rolling distro
Bernhard M. Wiedemann 959dc4
# We do thus not add it to the os-release file
Bernhard M. Wiedemann 959dc4
cat > %{buildroot}%{_prefix}/lib/os-release <
Bernhard M. Wiedemann 959dc4
NAME="openSUSE MicroOS"
Bernhard M. Wiedemann 959dc4
# VERSION="%{version}%{?betaversion: %{betaversion}}"
Bernhard M. Wiedemann 959dc4
ID="opensuse-microos"
Bernhard M. Wiedemann 959dc4
ID_LIKE="suse opensuse opensuse-tumbleweed"
Bernhard M. Wiedemann 959dc4
VERSION_ID="$VERSION_ID"
Bernhard M. Wiedemann 959dc4
PRETTY_NAME="openSUSE MicroOS"
Bernhard M. Wiedemann 959dc4
ANSI_COLOR="0;32"
Bernhard M. Wiedemann 959dc4
CPE_NAME="cpe:/o:opensuse:microos:%{version}"
Bernhard M. Wiedemann 959dc4
BUG_REPORT_URL="https://bugs.opensuse.org"
Bernhard M. Wiedemann 959dc4
HOME_URL="https://www.opensuse.org/"
Bernhard M. Wiedemann 2b16ba
DOCUMENTATION_URL="https://en.opensuse.org/Portal:MicroOS"
d81879
LOGO="distributor-logo-MicroOS"
Bernhard M. Wiedemann 959dc4
EOF
Bernhard M. Wiedemann 959dc4
ln -s ..%{_prefix}/lib/os-release %{buildroot}%{_sysconfdir}/os-release
Bernhard M. Wiedemann 959dc4
8a8aed
mkdir -p %{buildroot}%{_sysconfdir}/products.d
8a8aed
cat >%{buildroot}%{_sysconfdir}/products.d/MicroOS.prod << EOF
Bernhard M. Wiedemann 959dc4
Bernhard M. Wiedemann 959dc4
<product schemeversion="0">
Bernhard M. Wiedemann 959dc4
  <vendor>openSUSE</vendor>
Bernhard M. Wiedemann 959dc4
  <name>MicroOS</name>
1ebf28
  <version>20220426</version>
054385
  <release>0</release>
054385
  <endoflife></endoflife>
054385
  <arch>%{_target_cpu}</arch>
1ebf28
  <cpeid>cpe:/o:opensuse:microos:20220426</cpeid>
Bernhard M. Wiedemann 959dc4
  <productline>MicroOS</productline>
Bernhard M. Wiedemann 959dc4
  <register>
Bernhard M. Wiedemann 959dc4
    <pool>
Bernhard M. Wiedemann 959dc4
    </pool>
Bernhard M. Wiedemann 959dc4
    <updates>
Bernhard M. Wiedemann 959dc4
    </updates>
Bernhard M. Wiedemann 959dc4
  </register>
Bernhard M. Wiedemann 959dc4
  <repositories>
Bernhard M. Wiedemann 959dc4
  </repositories>
Bernhard M. Wiedemann 959dc4
  <summary>openSUSE MicroOS</summary>
Bernhard M. Wiedemann 959dc4
  <shortsummary>openSUSE MicroOS</shortsummary>
Bernhard M. Wiedemann 959dc4
  <description>openSUSE MicroOS combines the benefits of a rolling OS with a read-only root filesystem with transactional updates. It is a modern Linux Operating System, designed for single-service installations, such as container hosts. It is optimized for large, clustered deployments.
Bernhard M. Wiedemann 959dc4
        It inherits the benefits of openSUSE Tumbleweed while redefining the operating system into a small, efficient and reliable distribution.</description>
Bernhard M. Wiedemann 959dc4
  <linguas>
Bernhard M. Wiedemann 959dc4
    <language>en_US</language>
Bernhard M. Wiedemann 959dc4
  </linguas>
Bernhard M. Wiedemann 959dc4
  <urls>
Bernhard M. Wiedemann 959dc4
    <url name="releasenotes">http://doc.opensuse.org/release-notes/x86_64/openSUSE/Tumbleweed/release-notes-openSUSE.rpm</url>
Bernhard M. Wiedemann 959dc4
  </urls>
Bernhard M. Wiedemann 959dc4
  <buildconfig>
Bernhard M. Wiedemann 959dc4
    <producttheme>MicroOS</producttheme>
Bernhard M. Wiedemann 959dc4
    <create_flavors>true</create_flavors>
Bernhard M. Wiedemann 959dc4
  </buildconfig>
Bernhard M. Wiedemann 959dc4
  <installconfig>
Bernhard M. Wiedemann 959dc4
    <defaultlang>en_US</defaultlang>
Bernhard M. Wiedemann 959dc4
    <datadir>suse</datadir>
Bernhard M. Wiedemann 959dc4
    <descriptiondir>suse/setup/descr</descriptiondir>
fbe19b
    <default_obs_repository_name>openSUSE_Tumbleweed</default_obs_repository_name>
fbe19b
    <default_obs_download_url>%{_download_url}</default_obs_download_url>
Bernhard M. Wiedemann 959dc4
    <releasepackage name="%{name}" flag="EQ" version="%{version}" release="%{release}"/>
Bernhard M. Wiedemann 959dc4
    <distribution>openSUSE</distribution>
Bernhard M. Wiedemann 959dc4
  </installconfig>
Bernhard M. Wiedemann 959dc4
  <runtimeconfig/>
Bernhard M. Wiedemann 959dc4
</product>
Bernhard M. Wiedemann 959dc4
Bernhard M. Wiedemann 959dc4
EOF
Bernhard M. Wiedemann 959dc4
8a8aed
mkdir -p %{buildroot}%{_defaultdocdir}/MicroOS-release-dvd
8a8aed
cat >%{buildroot}%{_defaultdocdir}/MicroOS-release-dvd/README << EOF
Bernhard M. Wiedemann 959dc4
This package only exists for providing the product flavor 'dvd'.
Bernhard M. Wiedemann 959dc4
Bernhard M. Wiedemann 959dc4
EOF
Bernhard M. Wiedemann 959dc4
8a8aed
mkdir -p %{buildroot}%{_defaultdocdir}/MicroOS-release-kubic-dvd
8a8aed
cat >%{buildroot}%{_defaultdocdir}/MicroOS-release-kubic-dvd/README << EOF
Bernhard M. Wiedemann 959dc4
This package only exists for providing the product flavor 'kubic-dvd'.
Bernhard M. Wiedemann 959dc4
Bernhard M. Wiedemann 959dc4
EOF
Bernhard M. Wiedemann 959dc4
8a8aed
mkdir -p %{buildroot}%{_defaultdocdir}/MicroOS-release-appliance
8a8aed
cat >%{buildroot}%{_defaultdocdir}/MicroOS-release-appliance/README << EOF
Bernhard M. Wiedemann 959dc4
This package only exists for providing the product flavor 'appliance'.
Bernhard M. Wiedemann 959dc4
Bernhard M. Wiedemann 959dc4
EOF
Bernhard M. Wiedemann 959dc4
8a8aed
mkdir -p %{buildroot}%{_defaultdocdir}/MicroOS-release-appliance-kubic
8a8aed
cat >%{buildroot}%{_defaultdocdir}/MicroOS-release-appliance-kubic/README << EOF
Bernhard M. Wiedemann 959dc4
This package only exists for providing the product flavor 'appliance-kubic'.
Bernhard M. Wiedemann 959dc4
Bernhard M. Wiedemann 959dc4
EOF
Bernhard M. Wiedemann 959dc4
Bernhard M. Wiedemann 959dc4
Bernhard M. Wiedemann 959dc4
Bernhard M. Wiedemann 959dc4
%post
Bernhard M. Wiedemann 959dc4
# Update from openSUSE-Tumbleweed-Kubic to openSUSE-MicroOS
Bernhard M. Wiedemann 959dc4
# Fix the baseproduct symlink and make sure, it exists
Bernhard M. Wiedemann 959dc4
if [ -L %{_sysconfdir}/products.d/baseproduct ] ; then
Bernhard M. Wiedemann 959dc4
    PRODLINK=$(basename $(readlink -f %{_sysconfdir}/products.d/baseproduct))
Bernhard M. Wiedemann 959dc4
    if [ "$PRODLINK"  = "openSUSE-Tumbleweed-Kubic.prod" -o "$PRODLINK"  = "openSUSE-MicroOS.prod" ]; then
Bernhard M. Wiedemann 959dc4
      rm -f %{_sysconfdir}/products.d/baseproduct
Bernhard M. Wiedemann 959dc4
    fi
Bernhard M. Wiedemann 959dc4
fi
Bernhard M. Wiedemann 959dc4
if [ ! -e %{_sysconfdir}/products.d/baseproduct ]; then
Bernhard M. Wiedemann 959dc4
    ln -sf MicroOS.prod %{_sysconfdir}/products.d/baseproduct
Bernhard M. Wiedemann 959dc4
fi
Bernhard M. Wiedemann 959dc4
Bernhard M. Wiedemann 959dc4
%files
Bernhard M. Wiedemann 959dc4
%defattr(644,root,root,755)
Bernhard M. Wiedemann 959dc4
%{_sysconfdir}/os-release
Bernhard M. Wiedemann 959dc4
%{_prefix}/lib/os-release
Bernhard M. Wiedemann 959dc4
%dir %{_sysconfdir}/products.d
Bernhard M. Wiedemann 959dc4
%{_sysconfdir}/products.d/*
Bernhard M. Wiedemann 959dc4
%dir %{_sysconfdir}/YaST2/
Bernhard M. Wiedemann 959dc4
%dir %{_sysconfdir}/YaST2/licenses/
Bernhard M. Wiedemann 959dc4
%dir %{_sysconfdir}/YaST2/licenses/base/
Bernhard M. Wiedemann 959dc4
# no %doc here, or we will not install them
Bernhard M. Wiedemann 959dc4
%{_sysconfdir}/YaST2/licenses/base/license*txt
Bernhard M. Wiedemann 959dc4
%{_sysconfdir}/YaST2/licenses/base/no-acceptance-needed
Bernhard M. Wiedemann 959dc4
%dir %{_prefix}/lib/issue.d
Bernhard M. Wiedemann 959dc4
%{_prefix}/lib/issue.d/*-OS
Bernhard M. Wiedemann 959dc4
Bernhard M. Wiedemann 959dc4
%changelog