File SLES_SAP-release.spec of Package SLES_SAP-release.4240
#
# spec file for package SUSE_SLES_SAP (Version 12-SP0)
#
# Copyright (c) 2014 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: SLES_SAP-release
Summary: SUSE Linux Enterprise Server for SAP Applications 12 SP2
Version: 12.2
Release: 2
License: GPL-2.0+
Group: System/Fhs
BuildRequires: skelcd-control-SLES
Recommends: branding
Provides: distribution-release
Provides: product(SUSE_SLE) = %{version}
Provides: product(SUSE_SLE) = %{version}-%{release}
Provides: product(SLES) = %{version}-%{release}
Provides: product(SUSE_SLE-SP2) = %{version}
Provides: product(SUSE_SLE-SP2) = %{version}-%{release}
Provides: product_flavor(SLES)
Provides: sles-release = 12.2
Provides: sle-ha-release = 12.2
Provides: SUSE_SLES_SAP-release = 12.2
Obsoletes: SUSE_SLES_SAP-release < 12.2
Provides: %name-%version
Provides: product() = SLES_SAP
Provides: product(SLES_SAP) = 12.2-0
%ifarch x86_64
Provides: product-register-target() = sle%2D12%2Dx86_64
%endif
%ifarch ppc64le
Provides: product-register-target() = sle%2D12%2Dppc64le
%endif
Provides: product-label() = SLE%2D12%2DSP2%2DSAP
Provides: product-cpeid() = cpe%3A%2Fo%3Asuse%3Asles_sap%3A12%3Asp2
Provides: product-url(releasenotes) = https%3A%2F%2Fwww.suse.com%2Freleasenotes%2F%{_target_cpu}%2FSLE%2DSAP%2F12%2DSP2%2Frelease%2Dnotes%2Dsles%2Dfor%2Dsap.rpm
%ifarch x86_64
Provides: product-updates-repoid() = obsrepository%3A%2F%2Fbuild.suse.de%2FSUSE%3AUpdates%3ASLE%2DSAP%3A12%2DSP2%3Ax86_64%2Fupdate
%endif
%ifarch x86_64
Provides: product-updates-repoid() = obsrepository%3A%2F%2Fbuild.suse.de%2FSUSE%3AUpdates%3ASLE%2DSERVER%3A12%2DSP2%3Ax86_64%2Fupdate
%endif
%ifarch x86_64
Provides: product-updates-repoid() = obsrepository%3A%2F%2Fbuild.suse.de%2FSUSE%3AUpdates%3ASLE%2DHA%3A12%2DSP2%3Ax86_64%2Fupdate
%endif
%ifarch x86_64
Provides: product-updates-repoid() = obsrepository%3A%2F%2Fbuild.suse.de%2FSUSE%3AUpdates%3ASLE%2DSAP%3A12%2DSP2%3Ax86_64%2Fupdate_debug
%endif
%ifarch x86_64
Provides: product-updates-repoid() = obsrepository%3A%2F%2Fbuild.suse.de%2FSUSE%3AUpdates%3ASLE%2DSERVER%3A12%2DSP2%3Ax86_64%2Fupdate_debug
%endif
%ifarch x86_64
Provides: product-updates-repoid() = obsrepository%3A%2F%2Fbuild.suse.de%2FSUSE%3AUpdates%3ASLE%2DHA%3A12%2DSP2%3Ax86_64%2Fupdate_debug
%endif
%ifarch ppc64le
Provides: product-updates-repoid() = obsrepository%3A%2F%2Fbuild.suse.de%2FSUSE%3AUpdates%3ASLE%2DSAP%3A12%2DSP2%3Appc64le%2Fupdate
%endif
%ifarch ppc64le
Provides: product-updates-repoid() = obsrepository%3A%2F%2Fbuild.suse.de%2FSUSE%3AUpdates%3ASLE%2DSERVER%3A12%2DSP2%3Appc64le%2Fupdate
%endif
%ifarch ppc64le
Provides: product-updates-repoid() = obsrepository%3A%2F%2Fbuild.suse.de%2FSUSE%3AUpdates%3ASLE%2DHA%3A12%2DSP2%3Appc64le%2Fupdate
%endif
%ifarch ppc64le
Provides: product-updates-repoid() = obsrepository%3A%2F%2Fbuild.suse.de%2FSUSE%3AUpdates%3ASLE%2DSAP%3A12%2DSP2%3Appc64le%2Fupdate_debug
%endif
%ifarch ppc64le
Provides: product-updates-repoid() = obsrepository%3A%2F%2Fbuild.suse.de%2FSUSE%3AUpdates%3ASLE%2DSERVER%3A12%2DSP2%3Appc64le%2Fupdate_debug
%endif
%ifarch ppc64le
Provides: product-updates-repoid() = obsrepository%3A%2F%2Fbuild.suse.de%2FSUSE%3AUpdates%3ASLE%2DHA%3A12%2DSP2%3Appc64le%2Fupdate_debug
%endif
%ifarch x86_64
Provides: product-updates-repoid() = obsrepository%3A%2F%2Fbuild.suse.de%2FSUSE%3AUpdates%3ASLE%2DSAP%2DINSTALLER%3A12%2DSP2%3Ax86_64%2Fupdate
%endif
%ifarch ppc64le
Provides: product-updates-repoid() = obsrepository%3A%2F%2Fbuild.suse.de%2FSUSE%3AUpdates%3ASLE%2DSAP%2DINSTALLER%3A12%2DSP2%3Appc64le%2Fupdate
%endif
Obsoletes: product:SUSE_SLES_SAP
Provides: product-endoflife() = 2024%2D10%2D31
Provides: product(SLES_SAP-SP2) = %version-%release
Obsoletes: SLES_SAP-SP2-migration
Obsoletes: product:SLES_SAP-SP2-migration
Requires: product_flavor(SLES_SAP)
Provides: product(SUSE_SLES_SAP) = 12.2
Provides: product(SUSE_SLES_SAP-SP0) = 12.2
# BNC#992621 JeOS and Migrate_SLES_to_SLES-for-SAP-12.sh don't work
Conflicts: sles-release
# Obsolete SLE-SMT, we include the smt packages now on SLES
Obsoletes: product(sle-smt)
# Make sure we are at SLES12 SP2 level
PreReq: glibc >= 2.19
Conflicts: kernel < 4.4
Conflicts: perl-Bootloader < 0.904
# Force sap-installation-wizard noarch -> arch change [bsc#1016602]
Conflicts: sap-installation-wizard < 3.1.67
# take care of to remove not used packes [bnc#992998,bnc#997622]
Obsoletes: sles-release < 12.2
Obsoletes: sysglog-ng
# take care of old packages [bnc#873390]
Obsoletes: yast2-add-on-creator < 2.18
Obsoletes: yast2-autofs < 2.18
Obsoletes: yast2-backup < 2.18
Obsoletes: yast2-irda < 2.18
Obsoletes: yast2-iscsi-server < 2.18
Obsoletes: yast2-lxc < 2.18
Obsoletes: yast2-mail-plugins < 2.18
Obsoletes: yast2-openvas-security-scanner < 2.18
Obsoletes: yast2-power-management < 2.18
Obsoletes: yast2-rdp < 2.18
Obsoletes: yast2-registration-branding-SLE < 2.18
Obsoletes: yast2-repair < 2.18
Obsoletes: yast2-restore < 2.18
Obsoletes: yast2-slp-server < 2.18
Obsoletes: yast2-sshd < 2.18
Obsoletes: yast2-tune < 2.18
# no mono bnc#873393
Obsoletes: mono-core < 2.6.8
Obsoletes: mono-data < 2.6.8
Obsoletes: mono-data-postgresql < 2.6.8
Obsoletes: mono-data-sqlite < 2.6.8
Obsoletes: mono-locale-extras < 2.6.8
Obsoletes: mono-nunit < 2.6.8
Obsoletes: mono-web < 2.6.8
Obsoletes: mono-winforms < 2.6.8
Obsoletes: xsp < 2.6.6
Obsoletes: log4net < 1.2.11
Obsoletes: xorg-x11-server-rdp < 7.4
Obsoletes: acpid < 1.0.7
Obsoletes: liblazy1 < 0.3
Obsoletes: bootsplash-branding-SLES < 12
# bnc#881674
Obsoletes: krb5-plugin-preauth-pkinit-nss < 1.0
# no sax2 bnc#880104
Obsoletes: sax2 < 8.2
Obsoletes: sax2-gui < 8.2
Obsoletes: sax2-ident < 8.2
Obsoletes: sax-libsax < 8.2
Obsoletes: sax2-libsax-perl < 8.2
Obsoletes: sax2-tools < 8.2
Obsoletes: apport < 2.0
Obsoletes: apport-gtk < 2.0
Obsoletes: apport-crashdb-sle < 2.0
#bnc#881560
Obsoletes: gstreamer-0_10-plugins-v4l < 0.10.36
# old packages
Obsoletes: a2ps <= 4.13
Obsoletes: agfa-fonts <= 2003.03.19
Obsoletes: bootsplash-branding-SLES <= 3.1
Obsoletes: brocade-firmware <= 3.1.2.1
Obsoletes: chmlib <= 0.39
Obsoletes: clucene-core <= 0.9.21
Obsoletes: cpufrequtils <= 004
Obsoletes: dhcpcd <= 3.2.3
# FIXME should we move this to desktop-data-SLE ?
Obsoletes: desktop-data-SLED <= 11
Obsoletes: elilo <= 3.14
Obsoletes: fam <= 2.7.0
Obsoletes: fbset <= 2.1
Obsoletes: gfxboot-branding-SLES <= 4.1.32
Obsoletes: ghostscript-omni <= 8.62
# FIXME Obsoletes: glib2-branding-SLES <= 2.16
Obsoletes: gmp <= 4.2.3
Obsoletes: grub <= 0.97
Obsoletes: gstreamer-0_10-plugins-v4l < 0.10.36
Obsoletes: icom-firmware <= 1.0
Obsoletes: i4l-isdnlog <= 2013.5.13
# FIXME ?
Obsoletes: jpeg <= 6b
Obsoletes: kde3-i18n-ar <= 3.5.10
Obsoletes: kde3-i18n-cs <= 3.5.10
Obsoletes: kde3-i18n-de <= 3.5.10
Obsoletes: kde3-i18n-es <= 3.5.10
Obsoletes: kde3-i18n-fr <= 3.5.10
Obsoletes: kde3-i18n-it <= 3.5.10
Obsoletes: kde3-i18n-ja <= 3.5.10
Obsoletes: kde3-i18n-ko <= 3.5.10
Obsoletes: kde3-i18n-pt_BR <= 3.5.10
Obsoletes: kde3-i18n-zh_CN <= 3.5.10
Obsoletes: kde3-i18n-zh_TW <= 3.5.10
Obsoletes: kdelibs3-default-style <= 3.5.10
Obsoletes: ksymoops <= 2.4.11
Obsoletes: lcms <= 1.17
Obsoletes: libHX13 <= 1.23
Obsoletes: libavahi-core5 <= 0.6.23
Obsoletes: libbeagle1 <= 0.3.5.1
Obsoletes: libcdio7 <= 0.80
Obsoletes: libcryptsetup0 < 1.0.6
Obsoletes: libdb-4_5 <= 4.5.20
Obsoletes: libdb-4_5-32bit <= 4.5.20
Obsoletes: libdrm <= 2.4.41
Obsoletes: libevent-1_4-2 <= 1.4.5
Obsoletes: libevoldap-2_4-2 <= 2.4.12
Obsoletes: libexiv2-4 <= 0.17.1
Obsoletes: libgcc43 <= 4.6.9
Obsoletes: libgcrypt11 <= 1.5.0
Obsoletes: libgimpprint <= 4.2.7
Obsoletes: libgmime-2_0-3 <= 2.2.23
Obsoletes: libgnome-menu2 <= 2.28.0.1
Obsoletes: libical0 <= 0.43
Obsoletes: libidn <= 1.10
Obsoletes: libjpeg <= 6.2.0
Obsoletes: liblazy1 <= 0.2
Obsoletes: libnet <= 1.1.2.1
Obsoletes: libnetpbm10 <= 10.26.44
# Obsoletes: libopenssl0_9_8 <= 0.9.8j
Obsoletes: libotr2 <= 3.2.0
Obsoletes: libpcap0 <= 0.9.8
Obsoletes: libpoppler5 <= 0.12.3
Obsoletes: libproxy0 <= 0.3.1
Obsoletes: libpython2_6-1_0 <= 2.6.9
Obsoletes: libpython2_6-1_0 <= 2.6.9
Obsoletes: libraptor1 <= 1.4.18
Obsoletes: libreadline5 <= 5.2
Obsoletes: libreadline5 <= 5.2
Obsoletes: librpcsecgss <= 0.18
Obsoletes: libsamplerate <= 0.1.4
Obsoletes: libsensors3 <= 2.10.6
Obsoletes: libstdc++43 <= 4.6.9
Obsoletes: libtasn1-3 <= 1.5
Obsoletes: libtiff3 <= 3.8.2
Obsoletes: libtiff3 <= 3.8.2
Obsoletes: libudev0 <= 147
Obsoletes: libudev0 <= 147
Obsoletes: libunique-1_0-0 <= 1.1.2
Obsoletes: libxcrypt <= 3.0.3
Obsoletes: libxcrypt-32bit <= 3.0.3
Obsoletes: licenses <= 20070810
Obsoletes: lilo <= 22.8
Obsoletes: linux-atm-lib <= 2.5.0
Obsoletes: meanwhile <= 1.0.2
Obsoletes: mozilla-kde4-integration <= 0.6.3
Obsoletes: numactl <= 2.0.7
Obsoletes: pinentry-qt <= 0.7.5
Obsoletes: providers <= 2006.11.21
Obsoletes: python-qt <= 3.18.1
Obsoletes: qt3 <= 3.3.8b
Obsoletes: qtcurve-gtk2 <= 0.59.7
Obsoletes: sash <= 3.7
Obsoletes: scpm <= 1.1.7
Obsoletes: ulimit <= 1.2
Obsoletes: suse-sam-data <= 0.8.4
Obsoletes: gtk2-theme-SLED <= 11.1
Obsoletes: gtk2-themes <= 0.1
# SP2
# bsc#962435
Obsoletes: openvswitch-kmp-xen
Obsoletes: openvswitch-kmp-default
AutoReqProv: on
BuildRoot: %{_tmppath}/%{name}-%{version}-build
# this package should only be available for the "basearchs" of a product
ExclusiveArch: %ix86 x86_64 ppc64le
%description
SUSE LINUX Enterprise Server 12 SP2 for SAP Applications
%package DVD
License: BSD-3-Clause
Group: System/Fhs
Provides: product_flavor()
Provides: flavor(DVD)
Provides: product_flavor(SLES_SAP) = 12.2-0
Summary: SUSE Linux Enterprise Server for SAP Applications 12 SP2
%description DVD
SUSE LINUX Enterprise Server 12 SP2 for SAP Applications
%files DVD
%defattr(-,root,root)
%doc %{_defaultdocdir}/SLES_SAP-release-DVD
%package POOL
License: BSD-3-Clause
Group: System/Fhs
Provides: product_flavor()
Provides: flavor(POOL)
Provides: product_flavor(SLES_SAP) = 12.2-0
Summary: SUSE Linux Enterprise Server for SAP Applications 12 SP2
%description POOL
SUSE LINUX Enterprise Server 12 SP2 for SAP Applications
%files POOL
%defattr(-,root,root)
%doc %{_defaultdocdir}/SLES_SAP-release-POOL
%prep
%build
%install
mkdir -p $RPM_BUILD_ROOT/etc
echo -e "\nWelcome to SUSE Linux Enterprise Server for SAP Applications 12 SP2 (%{_target_cpu}) - Kernel \\\r (\\\l).\n\n" > $RPM_BUILD_ROOT/etc/issue
echo -e "Welcome to SUSE Linux Enterprise Server for SAP Applications 12 SP2 (%{_target_cpu}) - Kernel %%r (%%t)." > $RPM_BUILD_ROOT/etc/issue.net
# create /etc/SuSE-release - deprecated, FATE#316268
echo "SUSE Linux Enterprise Server 12 (%{_target_cpu})" > $RPM_BUILD_ROOT/etc/SuSE-release
echo VERSION = 12 >> $RPM_BUILD_ROOT/etc/SuSE-release
echo PATCHLEVEL = 2 >> $RPM_BUILD_ROOT/etc/SuSE-release
echo "# This file is deprecated and will be removed in a future service pack or release." >> $RPM_BUILD_ROOT/etc/SuSE-release
echo "# Please check /etc/os-release for details about this release." >> $RPM_BUILD_ROOT/etc/SuSE-release
touch $RPM_BUILD_ROOT/etc/motd
# Bug 409980 - /etc/YaST/control.xml should be owned by some package
mkdir -p $RPM_BUILD_ROOT/etc/YaST2/
echo $RPM_BUILD_ROOT
cp -av /CD1/control.xml $RPM_BUILD_ROOT/etc/YaST2/
mkdir -p $RPM_BUILD_ROOT/etc
cat >$RPM_BUILD_ROOT/etc/os-release << EOF
NAME="SLES_SAP"
VERSION="12-SP2%{?betaversion: }%{?betaversion}"
VERSION_ID="%{version}%{?betaversion?: }%{?betaversion}"
PRETTY_NAME="SUSE Linux Enterprise Server for SAP Applications 12 SP2"
ID="sles_sap"
ANSI_COLOR="0;32"
CPE_NAME="cpe:/o:suse:sles_sap:12:sp2"
EOF
mkdir -p $RPM_BUILD_ROOT/etc/products.d
cat >$RPM_BUILD_ROOT/etc/products.d/SLES_SAP.prod << EOF
<?xml version="1.0" encoding="UTF-8"?>
<product schemeversion="0">
<vendor>SUSE</vendor>
<name>SLES_SAP</name>
<version>12.2</version>
<baseversion>12</baseversion>
<patchlevel>2</patchlevel>
<predecessor>SUSE_SLES_SAP</predecessor>
<release>0</release>
<endoflife>2024-10-31</endoflife>
<arch>%{_target_cpu}</arch>
<cpeid>cpe:/o:suse:sles_sap:12:sp2</cpeid>
<productline>sles</productline>
<codestream>
<name>SUSE Linux Enterprise Server 12</name>
<endoflife>2024-10-31</endoflife>
</codestream>
<register>
%ifarch x86_64
<target>sle-12-x86_64</target>
%endif
%ifarch ppc64le
<target>sle-12-ppc64le</target>
%endif
<updates>
%ifarch x86_64
<repository repoid="obsrepository://build.suse.de/SUSE:Updates:SLE-SAP:12-SP2:x86_64/update" />
%endif
%ifarch x86_64
<repository repoid="obsrepository://build.suse.de/SUSE:Updates:SLE-SERVER:12-SP2:x86_64/update" />
%endif
%ifarch x86_64
<repository repoid="obsrepository://build.suse.de/SUSE:Updates:SLE-HA:12-SP2:x86_64/update" />
%endif
%ifarch x86_64
<repository repoid="obsrepository://build.suse.de/SUSE:Updates:SLE-SAP:12-SP2:x86_64/update_debug" />
%endif
%ifarch x86_64
<repository repoid="obsrepository://build.suse.de/SUSE:Updates:SLE-SERVER:12-SP2:x86_64/update_debug" />
%endif
%ifarch x86_64
<repository repoid="obsrepository://build.suse.de/SUSE:Updates:SLE-HA:12-SP2:x86_64/update_debug" />
%endif
%ifarch ppc64le
<repository repoid="obsrepository://build.suse.de/SUSE:Updates:SLE-SAP:12-SP2:ppc64le/update" />
%endif
%ifarch ppc64le
<repository repoid="obsrepository://build.suse.de/SUSE:Updates:SLE-SERVER:12-SP2:ppc64le/update" />
%endif
%ifarch ppc64le
<repository repoid="obsrepository://build.suse.de/SUSE:Updates:SLE-HA:12-SP2:ppc64le/update" />
%endif
%ifarch ppc64le
<repository repoid="obsrepository://build.suse.de/SUSE:Updates:SLE-SAP:12-SP2:ppc64le/update_debug" />
%endif
%ifarch ppc64le
<repository repoid="obsrepository://build.suse.de/SUSE:Updates:SLE-SERVER:12-SP2:ppc64le/update_debug" />
%endif
%ifarch ppc64le
<repository repoid="obsrepository://build.suse.de/SUSE:Updates:SLE-HA:12-SP2:ppc64le/update_debug" />
%endif
%ifarch x86_64
<repository repoid="obsrepository://build.suse.de/SUSE:Updates:SLE-SAP-INSTALLER:12-SP2:x86_64/update" />
%endif
%ifarch ppc64le
<repository repoid="obsrepository://build.suse.de/SUSE:Updates:SLE-SAP-INSTALLER:12-SP2:ppc64le/update" />
%endif
</updates>
</register>
<upgrades />
<updaterepokey>A43242DKD</updaterepokey>
<summary>SUSE Linux Enterprise Server for SAP Applications 12 SP2</summary>
<shortsummary>SLE-12-SP2-SAP</shortsummary>
<description>SUSE LINUX Enterprise Server 12 SP2 for SAP Applications</description>
<linguas>
<language>cs</language>
<language>da</language>
<language>de</language>
<language>en</language>
<language>en_GB</language>
<language>en_US</language>
<language>es</language>
<language>fi</language>
<language>fr</language>
<language>hu</language>
<language>it</language>
<language>ja</language>
<language>nb</language>
<language>nl</language>
<language>pl</language>
<language>pt</language>
<language>pt_BR</language>
<language>ru</language>
<language>sv</language>
<language>zh</language>
<language>zh_CN</language>
<language>zh_TW</language>
</linguas>
<urls>
<url name="releasenotes">https://www.suse.com/releasenotes/%{_target_cpu}/SLE-SAP/12-SP2/release-notes-sles-for-sap.rpm</url>
</urls>
<buildconfig>
<producttheme>SLES</producttheme>
<mainproduct>SLES_SAP</mainproduct>
</buildconfig>
<installconfig>
<defaultlang>en_US</defaultlang>
<datadir>suse</datadir>
<descriptiondir>suse/setup/descr</descriptiondir>
<releasepackage name="%{name}" flag="EQ" version="%{version}" release="%{release}" />
<distribution>SUSE_SLE</distribution>
</installconfig>
<runtimeconfig />
<productdependency relationship="provides" name="SUSE_SLES_SAP" baseversion="12" patchlevel="2" flag="EQ" />
<productdependency relationship="provides" name="SUSE_SLES_SAP-SP0" baseversion="12" patchlevel="2" flag="EQ" />
</product>
EOF
mkdir -p $RPM_BUILD_ROOT/%{_defaultdocdir}/SLES_SAP-release-DVD
cat >$RPM_BUILD_ROOT/%{_defaultdocdir}/SLES_SAP-release-DVD/README << EOF
This package only exists for providing the product flavor 'DVD'.
EOF
mkdir -p $RPM_BUILD_ROOT/%{_defaultdocdir}/SLES_SAP-release-POOL
cat >$RPM_BUILD_ROOT/%{_defaultdocdir}/SLES_SAP-release-POOL/README << EOF
This package only exists for providing the product flavor 'POOL'.
EOF
%post
if [ -L /etc/products.d/baseproduct ] ; then
rm -f /etc/products.d/baseproduct
ln -sf SLES_SAP.prod /etc/products.d/baseproduct
fi
%clean
rm -rf %buildroot
%files
%defattr(644,root,root,755)
%config /etc/SuSE-release
%config /etc/os-release
%dir /etc/products.d
/etc/products.d/*
%dir /etc/YaST2/
%config /etc/YaST2/control.xml
%config(noreplace) /etc/motd
%config(noreplace) /etc/issue
%config(noreplace) /etc/issue.net
%changelog