File sle-module-live-patching-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-module-live-patching-release
%define         product sle-module-live-patching
Summary:        SUSE Linux Enterprise Live Patching 
License:        BSD-3-Clause
Group:          System/Fhs
Version:        15.5
Release:        0
Recommends:     patterns-lp-lp_sles
Requires:       lifecycle-data-sle-module-live-patching

#bsc#1071720
Obsoletes:      sle-live-patching-release-DVD  < 15
Obsoletes:      sle-live-patching-release-MINI < 15
Obsoletes:      sle-live-patching-release-POOL < 15
# bsc#1074154
Obsoletes:      product:sle-live-patching < %{version}



Provides:       %name-%version
Provides:       product() = sle%2Dmodule%2Dlive%2Dpatching
Provides:       product(sle-module-live-patching) = 15.5-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
Provides:       product-label() = Live%2DPatching
Provides:       product-cpeid() = cpe%3A%2Fo%3Asuse%3Asle%2Dmodule%2Dlive%2Dpatching%3A15%3Asp5
Provides:       product-url(bugtracker) = https%3A%2F%2Fbugzilla.suse.com%2F
%ifarch x86_64
Provides:       product-updates-repoid() = obsrepository%3A%2F%2Fbuild.suse.de%2FSUSE%3AUpdates%3ASLE%2DModule%2DLive%2DPatching%3A15%2DSP5%3Ax86_64%2Fupdate
%endif
%ifarch s390x
Provides:       product-updates-repoid() = obsrepository%3A%2F%2Fbuild.suse.de%2FSUSE%3AUpdates%3ASLE%2DModule%2DLive%2DPatching%3A15%2DSP5%3As390x%2Fupdate
%endif
%ifarch ppc64le
Provides:       product-updates-repoid() = obsrepository%3A%2F%2Fbuild.suse.de%2FSUSE%3AUpdates%3ASLE%2DModule%2DLive%2DPatching%3A15%2DSP5%3Appc64le%2Fupdate
%endif
%ifarch x86_64
Provides:       product-updates-repoid() = obsrepository%3A%2F%2Fbuild.suse.de%2FSUSE%3AUpdates%3ASLE%2DModule%2DLive%2DPatching%3A15%2DSP5%3Ax86_64%2Fupdate_debug
%endif
%ifarch s390x
Provides:       product-updates-repoid() = obsrepository%3A%2F%2Fbuild.suse.de%2FSUSE%3AUpdates%3ASLE%2DModule%2DLive%2DPatching%3A15%2DSP5%3As390x%2Fupdate_debug
%endif
%ifarch ppc64le
Provides:       product-updates-repoid() = obsrepository%3A%2F%2Fbuild.suse.de%2FSUSE%3AUpdates%3ASLE%2DModule%2DLive%2DPatching%3A15%2DSP5%3Appc64le%2Fupdate_debug
%endif
Provides:       product-endoflife()
Provides:       product(sle-module-live-patching-SP5) = %version-%release

Requires:       product(SUSE_SLE) = 15.5
Requires:       product(sle-module-server-applications) = 15.5


%description
<p>
SUSE Linux Enterprise Live Patching provides packages to update critical
components in SUSE Linux Enterprise.  With SUSE Linux Enterprise Live
Patching, you can perform critical patching without shutting down your
system, reducing the need for planned downtime and increasing service
availability.
	<p>



%prep

%build

%install
mkdir -p %{buildroot}%{_sysconfdir}/products.d
cat >%{buildroot}%{_sysconfdir}/products.d/sle-module-live-patching.prod << EOF
<?xml version="1.0" encoding="UTF-8"?>
<product schemeversion="0">
  <vendor>SUSE</vendor>
  <name>sle-module-live-patching</name>
  <version>15.5</version>
  <baseversion>15</baseversion>
  <patchlevel>5</patchlevel>
  <release>0</release>
  <endoflife></endoflife>
  <arch>%{_target_cpu}</arch>
  <cpeid>cpe:/o:suse:sle-module-live-patching:15:sp5</cpeid>
  <productline>sle-module-live-patching</productline>
  <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
    <flavor>extension</flavor>
  </register>
  <repositories>
%ifarch x86_64
      <repository type="update" repoid="obsrepository://build.suse.de/SUSE:Updates:SLE-Module-Live-Patching:15-SP5:x86_64/update" />
%endif
%ifarch s390x
      <repository type="update" repoid="obsrepository://build.suse.de/SUSE:Updates:SLE-Module-Live-Patching:15-SP5:s390x/update" />
%endif
%ifarch ppc64le
      <repository type="update" repoid="obsrepository://build.suse.de/SUSE:Updates:SLE-Module-Live-Patching:15-SP5:ppc64le/update" />
%endif
%ifarch x86_64
      <repository type="update" repoid="obsrepository://build.suse.de/SUSE:Updates:SLE-Module-Live-Patching:15-SP5:x86_64/update_debug" />
%endif
%ifarch s390x
      <repository type="update" repoid="obsrepository://build.suse.de/SUSE:Updates:SLE-Module-Live-Patching:15-SP5:s390x/update_debug" />
%endif
%ifarch ppc64le
      <repository type="update" repoid="obsrepository://build.suse.de/SUSE:Updates:SLE-Module-Live-Patching:15-SP5:ppc64le/update_debug" />
%endif
%ifarch x86_64
      <repository type="pool" repoid="obsproduct://build.suse.de/SUSE:Products:SLE-Module-Live-Patching:15-SP5:x86_64/sle-module-live-patching/15.5/%{_target_cpu}" />
%endif
%ifarch s390x
      <repository type="pool" repoid="obsproduct://build.suse.de/SUSE:Products:SLE-Module-Live-Patching:15-SP5:s390x/sle-module-live-patching/15.5/%{_target_cpu}" />
%endif
%ifarch ppc64le
      <repository type="pool" repoid="obsproduct://build.suse.de/SUSE:Products:SLE-Module-Live-Patching:15-SP5:ppc64le/sle-module-live-patching/15.5/%{_target_cpu}" />
%endif
  </repositories>
  <summary>SUSE Linux Enterprise Live Patching</summary>
  <shortsummary>Live-Patching</shortsummary>
  <description>&lt;p&gt;
SUSE Linux Enterprise Live Patching provides packages to update critical
components in SUSE Linux Enterprise.  With SUSE Linux Enterprise Live
Patching, you can perform critical patching without shutting down your
system, reducing the need for planned downtime and increasing service
availability.
	&lt;p&gt;</description>
  <urls>
    <url name="bugtracker">https://bugzilla.suse.com/</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="5" flag="EQ"/>
  <productdependency relationship="requires" name="sle-module-server-applications" baseversion="15" patchlevel="5" flag="EQ"/>
</product>

EOF



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

%changelog
openSUSE Build Service is sponsored by