File sle-ha-release.spec of Package 000release-packages

#
# spec file for package sle
#
# Copyright (c) 2018 SUSE LINUX 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/
#

# old location  was /etc/YaST2/licenses/, see jsc#SLE-3067
%define product_license_dir /usr/share/licenses/product/


Name:           sle-ha-release
%define         product sle-ha
Summary:        SUSE Linux Enterprise High Availability Extension 15 SP1 
License:        BSD-3-Clause
Group:          System/Fhs
Version:        15.1
Release:        0
Provides:       sle-ha-geo-release
# bsc#1069705
Provides:       product:sle-hae
provides:       product:sle-haegeo
provides:       product:sle-ha-geo
Obsoletes:      sle-ha-geo-release

#bsc#1071720
Obsoletes:      sle-ha-geo-release-DVD  < 15
Obsoletes:      sle-ha-geo-release-MINI < 15
Obsoletes:      sle-ha-geo-release-POOL < 15
Obsoletes:      sle-ha-release-DVD  < 15
Obsoletes:      sle-ha-release-MINI < 15
Obsoletes:      sle-ha-release-POOL < 15

Provides:       %name-%version
Provides:       product() = sle-ha
Provides:       product(sle-ha) = 15.1-0
%ifarch x86_64
Provides:       product-register-target() = sle%2D15%2Dx86_64
%endif
%ifarch s390x
Provides:       product-register-target() = sle%2D15%2Ds390x
%endif
%ifarch ppc64le
Provides:       product-register-target() = sle%2D15%2Dppc64le
%endif
%ifarch aarch64
Provides:       product-register-target() = sle%2D15%2Daarch64
%endif
Provides:       product-label() = SLEHA15%2DSP1
Provides:       product-cpeid() = cpe%3A%2Fo%3Asuse%3Asle%2Dha%3A15%3Asp1
Provides:       product-url(releasenotes) = https%3A%2F%2Fwww.suse.com%2Freleasenotes%2F%{_target_cpu}%2FSLE%2DHA%2F15%2DSP1%2Frelease%2Dnotes%2Dha.rpm
Provides:       product-url(releasenotes) = https%3A%2F%2Fwww.suse.com%2Freleasenotes%2F%{_target_cpu}%2FSUSE%2DSLES%2F15%2DSP1%2Frelease%2Dnotes%2Dsles.rpm
%ifarch s390x
Provides:       product-updates-repoid() = obsrepository%3A%2F%2Fbuild.suse.de%2FSUSE%3AUpdates%3ASLE%2DProduct%2DHA%3A15%2DSP1%3As390x%2Fupdate
%endif
%ifarch x86_64
Provides:       product-updates-repoid() = obsrepository%3A%2F%2Fbuild.suse.de%2FSUSE%3AUpdates%3ASLE%2DProduct%2DHA%3A15%2DSP1%3Ax86_64%2Fupdate
%endif
%ifarch ppc64le
Provides:       product-updates-repoid() = obsrepository%3A%2F%2Fbuild.suse.de%2FSUSE%3AUpdates%3ASLE%2DProduct%2DHA%3A15%2DSP1%3Appc64le%2Fupdate
%endif
%ifarch aarch64
Provides:       product-updates-repoid() = obsrepository%3A%2F%2Fbuild.suse.de%2FSUSE%3AUpdates%3ASLE%2DProduct%2DHA%3A15%2DSP1%3Aaarch64%2Fupdate
%endif
%ifarch s390x
Provides:       product-updates-repoid() = obsrepository%3A%2F%2Fbuild.suse.de%2FSUSE%3AUpdates%3ASLE%2DProduct%2DHA%3A15%2DSP1%3As390x%2Fupdate_debug
%endif
%ifarch x86_64
Provides:       product-updates-repoid() = obsrepository%3A%2F%2Fbuild.suse.de%2FSUSE%3AUpdates%3ASLE%2DProduct%2DHA%3A15%2DSP1%3Ax86_64%2Fupdate_debug
%endif
%ifarch ppc64le
Provides:       product-updates-repoid() = obsrepository%3A%2F%2Fbuild.suse.de%2FSUSE%3AUpdates%3ASLE%2DProduct%2DHA%3A15%2DSP1%3Appc64le%2Fupdate_debug
%endif
%ifarch aarch64
Provides:       product-updates-repoid() = obsrepository%3A%2F%2Fbuild.suse.de%2FSUSE%3AUpdates%3ASLE%2DProduct%2DHA%3A15%2DSP1%3Aaarch64%2Fupdate_debug
%endif
Provides:       product-endoflife()
Provides:       product(sle-ha-SP1) = %version-%release
Obsoletes:      sle-ha-SP1-migration
Obsoletes:      product:sle-ha-SP1-migration


Requires:       product(SUSE_SLE) = 15.1
Requires:       product(sle-module-server-applications) >= 15


%description
SUSE Linux High Availability Extension
          provides mature, industry-leading open-source
          high-availability clustering technologies that
          are easy to set up and use. It can be deployed
          in physical and/or virtual environments, and
          can cluster physical servers, virtual servers,
          or any combination of the two to suit your
          business’ needs.




%prep

%build

%install
mkdir -p $RPM_BUILD_ROOT/etc/products.d
cat >$RPM_BUILD_ROOT/etc/products.d/sle-ha.prod << EOF
<?xml version="1.0" encoding="UTF-8"?>
<product schemeversion="0">
  <vendor>SUSE</vendor>
  <name>sle-ha</name>
  <version>15.1</version>
  <baseversion>15</baseversion>
  <patchlevel>1</patchlevel>
  <release>0</release>
  <endoflife></endoflife>
  <arch>%{_target_cpu}</arch>
  <cpeid>cpe:/o:suse:sle-ha:15:sp1</cpeid>
  <productline>sle-ha</productline>
  <codestream>
    <name>SUSE Linux Enterprise High Availability Extension 15</name>
    <endoflife>2028-07-31</endoflife>
  </codestream>
  <register>
%ifarch x86_64
      <target>sle-15-x86_64</target>
%endif
%ifarch s390x
      <target>sle-15-s390x</target>
%endif
%ifarch ppc64le
      <target>sle-15-ppc64le</target>
%endif
%ifarch aarch64
      <target>sle-15-aarch64</target>
%endif
    <flavor>extension</flavor>
  </register>
  <repositories>
%ifarch s390x
      <repository type="update" repoid="obsrepository://build.suse.de/SUSE:Updates:SLE-Product-HA:15-SP1:s390x/update" />
%endif
%ifarch x86_64
      <repository type="update" repoid="obsrepository://build.suse.de/SUSE:Updates:SLE-Product-HA:15-SP1:x86_64/update" />
%endif
%ifarch ppc64le
      <repository type="update" repoid="obsrepository://build.suse.de/SUSE:Updates:SLE-Product-HA:15-SP1:ppc64le/update" />
%endif
%ifarch aarch64
      <repository type="update" repoid="obsrepository://build.suse.de/SUSE:Updates:SLE-Product-HA:15-SP1:aarch64/update" />
%endif
%ifarch s390x
      <repository type="update" repoid="obsrepository://build.suse.de/SUSE:Updates:SLE-Product-HA:15-SP1:s390x/update_debug" />
%endif
%ifarch x86_64
      <repository type="update" repoid="obsrepository://build.suse.de/SUSE:Updates:SLE-Product-HA:15-SP1:x86_64/update_debug" />
%endif
%ifarch ppc64le
      <repository type="update" repoid="obsrepository://build.suse.de/SUSE:Updates:SLE-Product-HA:15-SP1:ppc64le/update_debug" />
%endif
%ifarch aarch64
      <repository type="update" repoid="obsrepository://build.suse.de/SUSE:Updates:SLE-Product-HA:15-SP1:aarch64/update_debug" />
%endif
%ifarch x86_64
      <repository type="pool" repoid="obsproduct://build.suse.de/SUSE:Products:SLE-Product-HA:15-SP1:x86_64/sle-ha/15.1/%{_target_cpu}" />
%endif
%ifarch s390x
      <repository type="pool" repoid="obsproduct://build.suse.de/SUSE:Products:SLE-Product-HA:15-SP1:s390x/sle-ha/15.1/%{_target_cpu}" />
%endif
%ifarch ppc64le
      <repository type="pool" repoid="obsproduct://build.suse.de/SUSE:Products:SLE-Product-HA:15-SP1:ppc64le/sle-ha/15.1/%{_target_cpu}" />
%endif
%ifarch aarch64
      <repository type="pool" repoid="obsproduct://build.suse.de/SUSE:Products:SLE-Product-HA:15-SP1:aarch64/sle-ha/15.1/%{_target_cpu}" />
%endif
%ifarch x86_64
      <repository type="pool" repoid="obsproduct://build.suse.de/SUSE:Products:SLE-Product-HA:15-SP1:x86_64/sle-ha/15.1/%{_target_cpu}" />
%endif
%ifarch s390x
      <repository type="pool" repoid="obsproduct://build.suse.de/SUSE:Products:SLE-Product-HA:15-SP1:s390x/sle-ha/15.1/%{_target_cpu}" />
%endif
%ifarch ppc64le
      <repository type="pool" repoid="obsproduct://build.suse.de/SUSE:Products:SLE-Product-HA:15-SP1:ppc64le/sle-ha/15.1/%{_target_cpu}" />
%endif
%ifarch aarch64
      <repository type="pool" repoid="obsproduct://build.suse.de/SUSE:Products:SLE-Product-HA:15-SP1:aarch64/sle-ha/15.1/%{_target_cpu}" />
%endif
%ifarch x86_64
      <repository type="pool" repoid="obsproduct://build.suse.de/SUSE:Products:SLE-Product-HA:15-SP1:x86_64/sle-ha/15.1/%{_target_cpu}" />
%endif
%ifarch s390x
      <repository type="pool" repoid="obsproduct://build.suse.de/SUSE:Products:SLE-Product-HA:15-SP1:s390x/sle-ha/15.1/%{_target_cpu}" />
%endif
%ifarch ppc64le
      <repository type="pool" repoid="obsproduct://build.suse.de/SUSE:Products:SLE-Product-HA:15-SP1:ppc64le/sle-ha/15.1/%{_target_cpu}" />
%endif
%ifarch aarch64
      <repository type="pool" repoid="obsproduct://build.suse.de/SUSE:Products:SLE-Product-HA:15-SP1:aarch64/sle-ha/15.1/%{_target_cpu}" />
%endif
  </repositories>
  <upgrades/>
  <summary>SUSE Linux Enterprise High Availability Extension 15 SP1</summary>
  <shortsummary>SLEHA15-SP1</shortsummary>
  <description>SUSE Linux High Availability Extension
          provides mature, industry-leading open-source
          high-availability clustering technologies that
          are easy to set up and use. It can be deployed
          in physical and/or virtual environments, and
          can cluster physical servers, virtual servers,
          or any combination of the two to suit your
          business’ needs.</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-HA/15-SP1/release-notes-ha.rpm</url>
    <url name="releasenotes">https://www.suse.com/releasenotes/%{_target_cpu}/SUSE-SLES/15-SP1/release-notes-sles.rpm</url>
  </urls>
  <buildconfig>
    <producttheme>SLES</producttheme>
  </buildconfig>
  <installconfig>
    <defaultlang>en_US</defaultlang>
    <releasepackage name="%{name}" flag="EQ" version="%{version}" release="%{release}"/>
    <distribution>SUSE_SLE</distribution>
  </installconfig>
  <runtimeconfig/>
  <productdependency relationship="requires" name="SUSE_SLE" baseversion="15" patchlevel="1" flag="EQ"/>
  <productdependency relationship="requires" name="sle-module-server-applications" baseversion="15" patchlevel="0" flag="GE"/>
</product>

EOF



%files
%defattr(644,root,root,755)
%dir /etc/products.d
/etc/products.d/*.prod

%changelog
openSUSE Build Service is sponsored by