Blame MicroOS-release.spec.in

Bernhard M. Wiedemann e1425b
#
Bernhard M. Wiedemann e1425b
# spec file for package openSUSE-MicroOS-release.spec
Bernhard M. Wiedemann e1425b
#
Bernhard M. Wiedemann 2a20bc
# Copyright (c) 2020 SUSE LLC
Bernhard M. Wiedemann e1425b
#
Bernhard M. Wiedemann e1425b
# All modifications and additions to the file contributed by third parties
Bernhard M. Wiedemann e1425b
# remain the property of their copyright owners, unless otherwise agreed
Bernhard M. Wiedemann e1425b
# upon. The license for this file, and modifications and additions to the
Bernhard M. Wiedemann e1425b
# file, is the same license as for the pristine package itself (unless the
Bernhard M. Wiedemann e1425b
# license for the pristine package is not an Open Source License, in which
Bernhard M. Wiedemann e1425b
# case the license is the MIT License). An "Open Source License" is a
Bernhard M. Wiedemann e1425b
# license that conforms to the Open Source Definition (Version 1.9)
Bernhard M. Wiedemann e1425b
# published by the Open Source Initiative.
Bernhard M. Wiedemann e1425b
Bernhard M. Wiedemann e1425b
# Please submit bugfixes or comments via https://bugs.opensuse.org/
Bernhard M. Wiedemann e1425b
#
Bernhard M. Wiedemann e1425b
Bernhard M. Wiedemann e1425b
Bernhard M. Wiedemann d34c79
Name:           MicroOS-release
Bernhard M. Wiedemann e1425b
Version:        ___VERSION___
Bernhard M. Wiedemann e1425b
Release:        0
Bernhard M. Wiedemann e1425b
Summary:        ___SUMMARY___ ___BETA_VERSION___
Bernhard M. Wiedemann e1425b
License:        GPL-2.0-or-later
Bernhard M. Wiedemann e1425b
Group:          System/Fhs
Bernhard M. Wiedemann 58313a
Source100:      weakremovers.inc
Bernhard M. Wiedemann e1425b
BuildRequires:  skelcd-openSUSE
Bernhard M. Wiedemann e1425b
# Make sure we are at SLES12 SP2 level
Bernhard M. Wiedemann e1425b
PreReq:         glibc >= 2.19
Bernhard M. Wiedemann e1425b
# in rare cases, 'ln' is not found...
Bernhard M. Wiedemann e1425b
Requires(post): coreutils
Bernhard M. Wiedemann ac9e34
Suggests:       branding-openSUSE
Bernhard M. Wiedemann ac9e34
Suggests:       distribution-logos-openSUSE-MicroOS
aa7031
Suggests:       java-21-openjdk
aa7031
Suggests:       java-21-openjdk-devel
Bernhard M. Wiedemann 699497
Suggests:       openSUSE-build-key
fcbe64
Suggests:       openSUSE-repos-MicroOS
Bernhard M. Wiedemann e1425b
Conflicts:      distribution-release
Bernhard M. Wiedemann e1425b
Conflicts:      kernel < 4.4
Bernhard M. Wiedemann e1425b
Provides:       distribution-release
b6d6a6
# MicroOS is a SUSE Linux type distribution
b6d6a6
Provides:       suse-release = %{version}-%{release}
b6d6a6
Provides:       suse-release-oss = %{version}-%{release}
Bernhard M. Wiedemann e1425b
# MicroOS-release replaces Tumbleweed-Kubic-release
Bernhard M. Wiedemann e1425b
Provides:       openSUSE-Tumbleweed-Kubic-release
Bernhard M. Wiedemann e1425b
Obsoletes:      openSUSE-Tumbleweed-Kubic-release <= 20190324
Bernhard M. Wiedemann d34c79
Provides:       openSUSE-MicroOS-release = %{version}
Bernhard M. Wiedemann d34c79
Obsoletes:      openSUSE-MicroOS-release <= %{version}
Bernhard M. Wiedemann 469d6a
# Give zypp a hint that this product must be kept up-to-date using zypper dup, not up (boo#1061384)
Bernhard M. Wiedemann 469d6a
Provides:       product-update() = dup
Bernhard M. Wiedemann e1425b
# With more than one product in the FTP tree, yast needs to know which products are installable
Bernhard M. Wiedemann e1425b
# The name is referenced by the control file as well
Bernhard M. Wiedemann d34c79
Provides:       system-installation() = MicroOS
Bernhard M. Wiedemann 58313a
# bnc#826592
Bernhard M. Wiedemann 58313a
Provides:       weakremover(kernel-default) < 3.11
Bernhard M. Wiedemann 58313a
Provides:       weakremover(kernel-desktop) < 4.2
Bernhard M. Wiedemann 58313a
Provides:       weakremover(kernel-ec2) < 3.11
Bernhard M. Wiedemann 58313a
Provides:       weakremover(kernel-pae) < 3.11
Bernhard M. Wiedemann 58313a
Provides:       weakremover(kernel-vanilla) < 3.11
Bernhard M. Wiedemann 58313a
Provides:       weakremover(kernel-xen) < 3.11
Bernhard M. Wiedemann 58313a
# migrated from MANUAL_OBSOLETES/packages
Bernhard M. Wiedemann 58313a
Provides:       weakremover(boost-license1_56_0)
Bernhard M. Wiedemann 58313a
Provides:       weakremover(boost-license1_59_0)
Bernhard M. Wiedemann 58313a
Provides:       weakremover(gpg-pubkey-3d25d3d9-36e12d04)
Bernhard M. Wiedemann 58313a
Provides:       weakremover(lib++dfb-1_7-6)
Bernhard M. Wiedemann 58313a
Provides:       weakremover(libastro-qt5-1)
Bernhard M. Wiedemann 58313a
Provides:       weakremover(libboost_atomic1_59_0)
Bernhard M. Wiedemann 58313a
Provides:       weakremover(libboost_atomic1_60_0)
Bernhard M. Wiedemann 58313a
Provides:       weakremover(libboost_atomic1_62_0)
Bernhard M. Wiedemann 58313a
Provides:       weakremover(libboost_atomic1_63_0)
Bernhard M. Wiedemann 58313a
Provides:       weakremover(libboost_chrono1_59_0)
Bernhard M. Wiedemann 58313a
Provides:       weakremover(libboost_chrono1_60_0)
Bernhard M. Wiedemann 58313a
Provides:       weakremover(libboost_chrono1_62_0)
Bernhard M. Wiedemann 58313a
Provides:       weakremover(libboost_chrono1_63_0)
Bernhard M. Wiedemann 58313a
Provides:       weakremover(libboost_container1_59_0)
Bernhard M. Wiedemann 58313a
Provides:       weakremover(libboost_container1_60_0)
Bernhard M. Wiedemann 58313a
Provides:       weakremover(libboost_container1_62_0)
Bernhard M. Wiedemann 58313a
Provides:       weakremover(libboost_container1_63_0)
Bernhard M. Wiedemann 58313a
Provides:       weakremover(libboost_context1_59_0)
Bernhard M. Wiedemann 58313a
Provides:       weakremover(libboost_context1_60_0)
Bernhard M. Wiedemann 58313a
Provides:       weakremover(libboost_context1_62_0)
Bernhard M. Wiedemann 58313a
Provides:       weakremover(libboost_context1_63_0)
Bernhard M. Wiedemann 58313a
Provides:       weakremover(libboost_coroutine1_59_0)
Bernhard M. Wiedemann 58313a
Provides:       weakremover(libboost_coroutine1_60_0)
Bernhard M. Wiedemann 58313a
Provides:       weakremover(libboost_coroutine1_62_0)
Bernhard M. Wiedemann 58313a
Provides:       weakremover(libboost_coroutine1_63_0)
Bernhard M. Wiedemann 58313a
Provides:       weakremover(libboost_date_time1_59_0)
Bernhard M. Wiedemann 58313a
Provides:       weakremover(libboost_date_time1_60_0)
Bernhard M. Wiedemann 58313a
Provides:       weakremover(libboost_date_time1_62_0)
Bernhard M. Wiedemann 58313a
Provides:       weakremover(libboost_date_time1_63_0)
Bernhard M. Wiedemann 58313a
Provides:       weakremover(libboost_filesystem1_59_0)
Bernhard M. Wiedemann 58313a
Provides:       weakremover(libboost_filesystem1_60_0)
Bernhard M. Wiedemann 58313a
Provides:       weakremover(libboost_filesystem1_62_0)
Bernhard M. Wiedemann 58313a
Provides:       weakremover(libboost_filesystem1_63_0)
Bernhard M. Wiedemann 58313a
Provides:       weakremover(libboost_graph1_59_0)
Bernhard M. Wiedemann 58313a
Provides:       weakremover(libboost_graph1_60_0)
Bernhard M. Wiedemann 58313a
Provides:       weakremover(libboost_graph1_62_0)
Bernhard M. Wiedemann 58313a
Provides:       weakremover(libboost_graph1_63_0)
Bernhard M. Wiedemann 58313a
Provides:       weakremover(libboost_iostreams1_59_0)
Bernhard M. Wiedemann 58313a
Provides:       weakremover(libboost_locale1_59_0)
Bernhard M. Wiedemann 58313a
Provides:       weakremover(libboost_log1_59_0)
Bernhard M. Wiedemann 58313a
Provides:       weakremover(libboost_log1_60_0)
Bernhard M. Wiedemann 58313a
Provides:       weakremover(libboost_log1_62_0)
Bernhard M. Wiedemann 58313a
Provides:       weakremover(libboost_log1_63_0)
Bernhard M. Wiedemann 58313a
Provides:       weakremover(libboost_math1_59_0)
Bernhard M. Wiedemann 58313a
Provides:       weakremover(libboost_program_options1_59_0)
Bernhard M. Wiedemann 58313a
Provides:       weakremover(libboost_python1_59_0)
Bernhard M. Wiedemann 58313a
Provides:       weakremover(libboost_random1_59_0)
Bernhard M. Wiedemann 58313a
Provides:       weakremover(libboost_regex1_59_0)
Bernhard M. Wiedemann 58313a
Provides:       weakremover(libboost_regex1_60_0)
Bernhard M. Wiedemann 58313a
Provides:       weakremover(libboost_regex1_62_0)
Bernhard M. Wiedemann 58313a
Provides:       weakremover(libboost_regex1_63_0)
Bernhard M. Wiedemann 58313a
Provides:       weakremover(libboost_serialization1_59_0)
Bernhard M. Wiedemann 58313a
Provides:       weakremover(libboost_signals1_59_0)
Bernhard M. Wiedemann 58313a
Provides:       weakremover(libboost_system1_56_0)
Bernhard M. Wiedemann 58313a
Provides:       weakremover(libboost_system1_59_0)
Bernhard M. Wiedemann 58313a
Provides:       weakremover(libboost_test1_59_0)
Bernhard M. Wiedemann 58313a
Provides:       weakremover(libboost_thread1_56_0)
Bernhard M. Wiedemann 58313a
Provides:       weakremover(libboost_thread1_59_0)
Bernhard M. Wiedemann 58313a
Provides:       weakremover(libboost_timer1_59_0)
Bernhard M. Wiedemann 58313a
Provides:       weakremover(libboost_wave1_59_0)
Bernhard M. Wiedemann 58313a
Provides:       weakremover(libcamel-1_2-54)
Bernhard M. Wiedemann 58313a
Provides:       weakremover(libdialog12)
Bernhard M. Wiedemann 58313a
Provides:       weakremover(libdirectfb-1_7-6)
Bernhard M. Wiedemann 58313a
Provides:       weakremover(libdns146)
Bernhard M. Wiedemann 58313a
Provides:       weakremover(libdns160)
Bernhard M. Wiedemann 58313a
Provides:       weakremover(libdns161)
Bernhard M. Wiedemann 58313a
Provides:       weakremover(libgdict-1_0-9)
Bernhard M. Wiedemann 58313a
Provides:       weakremover(libgit2-23)
Bernhard M. Wiedemann 58313a
Provides:       weakremover(libgpaste4)
Bernhard M. Wiedemann 58313a
Provides:       weakremover(libhdf5-11)
Bernhard M. Wiedemann 58313a
Provides:       weakremover(libhdf5_hl11)
Bernhard M. Wiedemann 58313a
Provides:       weakremover(libicu54_1)
Bernhard M. Wiedemann 58313a
Provides:       weakremover(libicu54_1-ledata)
Bernhard M. Wiedemann 58313a
Provides:       weakremover(libicu55_1)
Bernhard M. Wiedemann 58313a
Provides:       weakremover(libicu55_1-ledata)
Bernhard M. Wiedemann 58313a
Provides:       weakremover(libicu56_1)
Bernhard M. Wiedemann 58313a
Provides:       weakremover(libicu56_1-ledata)
Bernhard M. Wiedemann 58313a
Provides:       weakremover(libimobiledevice5)
Bernhard M. Wiedemann 58313a
Provides:       weakremover(libisc142)
Bernhard M. Wiedemann 58313a
Provides:       weakremover(libisc148)
Bernhard M. Wiedemann 58313a
Provides:       weakremover(libisl13)
Bernhard M. Wiedemann 58313a
Provides:       weakremover(libixion-0_10-0)
Bernhard M. Wiedemann 58313a
Provides:       weakremover(liblmdb-0_9_16)
Bernhard M. Wiedemann 58313a
Provides:       weakremover(libmicrohttpd11)
Bernhard M. Wiedemann 58313a
Provides:       weakremover(libminiupnpc15)
Bernhard M. Wiedemann 58313a
Provides:       weakremover(libnis1)
Bernhard M. Wiedemann 58313a
Provides:       weakremover(libntfs-3g86)
Bernhard M. Wiedemann 58313a
Provides:       weakremover(liborcus-0_10-0)
Bernhard M. Wiedemann 58313a
Provides:       weakremover(libpoppler47)
Bernhard M. Wiedemann 58313a
Provides:       weakremover(libpoppler48)
Bernhard M. Wiedemann 58313a
Provides:       weakremover(libpoppler49)
Bernhard M. Wiedemann 58313a
Provides:       weakremover(libpoppler50)
Bernhard M. Wiedemann 58313a
Provides:       weakremover(libpoppler51)
Bernhard M. Wiedemann 58313a
Provides:       weakremover(libpoppler52)
Bernhard M. Wiedemann 58313a
Provides:       weakremover(libpoppler53)
Bernhard M. Wiedemann 58313a
Provides:       weakremover(libpoppler54)
Bernhard M. Wiedemann 58313a
Provides:       weakremover(libpoppler55)
Bernhard M. Wiedemann 58313a
Provides:       weakremover(libpoppler56)
Bernhard M. Wiedemann 58313a
Provides:       weakremover(libpoppler57)
Bernhard M. Wiedemann 58313a
Provides:       weakremover(libpoppler58)
Bernhard M. Wiedemann 58313a
Provides:       weakremover(libpoppler59)
Bernhard M. Wiedemann 58313a
Provides:       weakremover(libpoppler61)
Bernhard M. Wiedemann 58313a
Provides:       weakremover(libpoppler62)
Bernhard M. Wiedemann 58313a
Provides:       weakremover(libpoppler63)
Bernhard M. Wiedemann 58313a
Provides:       weakremover(libpoppler64)
Bernhard M. Wiedemann 58313a
Provides:       weakremover(libpoppler65)
Bernhard M. Wiedemann 58313a
Provides:       weakremover(libprocps4)
Bernhard M. Wiedemann 58313a
Provides:       weakremover(libprocps5)
Bernhard M. Wiedemann 58313a
Provides:       weakremover(libpsl0)
Bernhard M. Wiedemann 58313a
Provides:       weakremover(libsgutils2-1_40-2)
Bernhard M. Wiedemann 58313a
Provides:       weakremover(libsgutils2-1_41-2)
Bernhard M. Wiedemann 58313a
Provides:       weakremover(libvpx2)
Bernhard M. Wiedemann 58313a
Provides:       weakremover(libxtables11)
Bernhard M. Wiedemann 58313a
Provides:       weakremover(libzip4)
Bernhard M. Wiedemann 58313a
Provides:       weakremover(mt_st)
Bernhard M. Wiedemann 58313a
Provides:       weakremover(openssl-debuginfo)
Bernhard M. Wiedemann 2a20bc
# this package should only be available for the "basearchs" of a product
Bernhard M. Wiedemann 2a20bc
ExclusiveArch:  %ix86 x86_64 ppc64le s390x aarch64 %arm
Bernhard M. Wiedemann 58313a
%include %{SOURCE100}
Bernhard M. Wiedemann e1425b
___PRODUCT_PROVIDES___
Bernhard M. Wiedemann e1425b
___PRODUCT_DEPENDENCIES___
Bernhard M. Wiedemann e1425b
Bernhard M. Wiedemann e1425b
%description
Bernhard M. Wiedemann e1425b
___DESCRIPTION___
Bernhard M. Wiedemann e1425b
Bernhard M. Wiedemann e1425b
___FLAVOR_PACKAGES___
Bernhard M. Wiedemann e1425b
Bernhard M. Wiedemann e1425b
%prep
b0b0fb
%setup -qcT
b0b0fb
mkdir license
b0b0fb
if [ -f /CD1/license.tar.gz ]; then
b0b0fb
  tar -C license -xzf /CD1/license.tar.gz
b0b0fb
elif [ -f %{_prefix}/lib/skelcd/CD1/license.tar.gz ]; then
b0b0fb
  tar -C license -xzf %{_prefix}/lib/skelcd/CD1/license.tar.gz
b0b0fb
fi
Bernhard M. Wiedemann e1425b
Bernhard M. Wiedemann e1425b
%build
Bernhard M. Wiedemann e1425b
Bernhard M. Wiedemann e1425b
%install
b0b0fb
mkdir -p %{buildroot}%{_sysconfdir} %{buildroot}%{_prefix}/lib/issue.d %{buildroot}/run
b0b0fb
Bernhard M. Wiedemann d34c79
echo -e "\nWelcome to ___SUMMARY___ (%{_target_cpu}) - Kernel \\\r (\\\l).\n" > %{buildroot}%{_prefix}/lib/issue.d/10-OS
Bernhard M. Wiedemann d34c79
echo -e "\n" > %{buildroot}%{_prefix}/lib/issue.d/90-OS
Bernhard M. Wiedemann e1425b
Bernhard M. Wiedemann e1425b
VERSION_ID=`echo %{version}|tr '[:upper:]' '[:lower:]'|sed -e 's/ //g;'`
Bernhard M. Wiedemann e1425b
# note: VERSION is an optional field and has no meaning other than informative on a rolling distro
Bernhard M. Wiedemann e1425b
# We do thus not add it to the os-release file
Bernhard M. Wiedemann d34c79
cat > %{buildroot}%{_prefix}/lib/os-release <
Bernhard M. Wiedemann e1425b
NAME="openSUSE MicroOS"
Bernhard M. Wiedemann e1425b
# VERSION="%{version}%{?betaversion: %{betaversion}}"
Bernhard M. Wiedemann e1425b
ID="opensuse-microos"
Bernhard M. Wiedemann e1425b
ID_LIKE="suse opensuse opensuse-tumbleweed"
Bernhard M. Wiedemann e1425b
VERSION_ID="$VERSION_ID"
Bernhard M. Wiedemann e1425b
PRETTY_NAME="openSUSE MicroOS"
Bernhard M. Wiedemann e1425b
ANSI_COLOR="0;32"
Bernhard M. Wiedemann e1425b
CPE_NAME="cpe:/o:opensuse:microos:%{version}"
a799e9
BUG_REPORT_URL="https://bugzilla.opensuse.org"
a799e9
SUPPORT_URL="https://bugs.opensuse.org"
Bernhard M. Wiedemann e1425b
HOME_URL="https://www.opensuse.org/"
Bernhard M. Wiedemann 91a367
DOCUMENTATION_URL="https://en.opensuse.org/Portal:MicroOS"
24f831
LOGO="distributor-logo-MicroOS"
Bernhard M. Wiedemann e1425b
EOF
Bernhard M. Wiedemann d34c79
ln -s ..%{_prefix}/lib/os-release %{buildroot}%{_sysconfdir}/os-release
Bernhard M. Wiedemann e1425b
b0b0fb
# Put EULA into correct place
b0b0fb
install -D -d -m 755 "%{buildroot}%_defaultlicensedir/product/base"
b0b0fb
install -D -d -m 755 "%{buildroot}%_defaultlicensedir"
b0b0fb
cp -a license "%{buildroot}%_defaultlicensedir/%name"
b0b0fb
pushd license
b0b0fb
for i in *; do
b0b0fb
	ln -s "%_defaultlicensedir/%name/$i" %{buildroot}%_defaultlicensedir/product/base/$i
b0b0fb
done
b0b0fb
Bernhard M. Wiedemann e1425b
___CREATE_PRODUCT_FILES___
Bernhard M. Wiedemann e1425b
Bernhard M. Wiedemann e1425b
%post
Bernhard M. Wiedemann e1425b
# Update from openSUSE-Tumbleweed-Kubic to openSUSE-MicroOS
Bernhard M. Wiedemann e1425b
# Fix the baseproduct symlink and make sure, it exists
Bernhard M. Wiedemann e1425b
if [ -L %{_sysconfdir}/products.d/baseproduct ] ; then
Bernhard M. Wiedemann e1425b
    PRODLINK=$(basename $(readlink -f %{_sysconfdir}/products.d/baseproduct))
Bernhard M. Wiedemann d34c79
    if [ "$PRODLINK"  = "openSUSE-Tumbleweed-Kubic.prod" -o "$PRODLINK"  = "openSUSE-MicroOS.prod" ]; then
Bernhard M. Wiedemann e1425b
      rm -f %{_sysconfdir}/products.d/baseproduct
Bernhard M. Wiedemann e1425b
    fi
Bernhard M. Wiedemann e1425b
fi
Bernhard M. Wiedemann e1425b
if [ ! -e %{_sysconfdir}/products.d/baseproduct ]; then
Bernhard M. Wiedemann d34c79
    ln -sf MicroOS.prod %{_sysconfdir}/products.d/baseproduct
Bernhard M. Wiedemann e1425b
fi
Bernhard M. Wiedemann e1425b
Bernhard M. Wiedemann e1425b
%files
Bernhard M. Wiedemann e1425b
%defattr(644,root,root,755)
b0b0fb
%dir %_defaultlicensedir/product
b0b0fb
%_defaultlicensedir/product/base
b0b0fb
%license license/*
Bernhard M. Wiedemann e1425b
%{_sysconfdir}/os-release
Bernhard M. Wiedemann d34c79
%{_prefix}/lib/os-release
Bernhard M. Wiedemann e1425b
%dir %{_sysconfdir}/products.d
Bernhard M. Wiedemann e1425b
%{_sysconfdir}/products.d/*
Bernhard M. Wiedemann d34c79
%dir %{_prefix}/lib/issue.d
Bernhard M. Wiedemann d34c79
%{_prefix}/lib/issue.d/*-OS
Bernhard M. Wiedemann e1425b
Bernhard M. Wiedemann e1425b
%changelog
62f905
* Mon Feb 19 2024 Dominique Leuenberger <dimstar@opensuse.org>
62f905
- No information provided here - we needed a dated entry for
62f905
  RPM/reproducible builds