File sle-module-rt-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-rt-release
Summary:        SUSE Real Time Module 
License:        MIT
Group:          System/Fhs
Version:        15.1
Release:        0
Recommends:     patterns-rt-rt_sles

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

#Take lession from bsc#1074154
Obsoletes:      product:sle-rt < %{version}



Provides:       %name-%version
Provides:       product() = sle-module-rt
Provides:       product(sle-module-rt) = 15.1-0
%ifarch x86_64
Provides:       product-register-target() = sle%2D15%2Dx86_64
%endif
Provides:       product-label() = SUSE%2DReal%2DTime%2DModule
Provides:       product-cpeid() = cpe%3A%2Fo%3Asuse%3Asle%2Dmodule%2Drt%3A15%3Asp1
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%2DRT%3A15%2DSP1%3Ax86_64%2Fupdate
%endif
%ifarch x86_64
Provides:       product-updates-repoid() = obsrepository%3A%2F%2Fbuild.suse.de%2FSUSE%3AUpdates%3ASLE%2DModule%2DRT%3A15%2DSP1%3Ax86_64%2Fupdate_debug
%endif
Provides:       product-endoflife() = 2024%2D10%2D31
Provides:       product(sle-module-rt-SP1) = %version-%release
Obsoletes:      sle-module-rt-SP1-migration
Obsoletes:      product:sle-module-rt-SP1-migration

Requires:       product(SUSE_SLE) >= 15.1
Requires:       product(sle-module-basesystem) >= 15.1


%description
<p>
	The SUSE Linux Enterprise Real Time aims to reduce the latency and increase
    the predictability and reliability of time-sensitive mission-critical applications.
	</p>
	
	<p>
	Packages in this module are generally supported until a newer version of
	the package is released or the package is dropped from the module.
	</p>



%prep

%build

%install
mkdir -p $RPM_BUILD_ROOT/etc/products.d
cat >$RPM_BUILD_ROOT/etc/products.d/sle-module-rt.prod << EOF
<?xml version="1.0" encoding="UTF-8"?>
<product schemeversion="0">
  <vendor>SUSE</vendor>
  <name>sle-module-rt</name>
  <version>15.1</version>
  <baseversion>15</baseversion>
  <patchlevel>1</patchlevel>
  <release>0</release>
  <endoflife>2024-10-31</endoflife>
  <arch>%{_target_cpu}</arch>
  <cpeid>cpe:/o:suse:sle-module-rt:15:sp1</cpeid>
  <productline>sle-module-rt</productline>
  <register>
%ifarch x86_64
      <target>sle-15-x86_64</target>
%endif
    <flavor>module</flavor>
  </register>
  <repositories>
%ifarch x86_64
      <repository type="update" repoid="obsrepository://build.suse.de/SUSE:Updates:SLE-Module-RT:15-SP1:x86_64/update" />
%endif
%ifarch x86_64
      <repository type="update" repoid="obsrepository://build.suse.de/SUSE:Updates:SLE-Module-RT:15-SP1:x86_64/update_debug" />
%endif
%ifarch x86_64
      <repository type="pool" repoid="obsproduct://build.suse.de/SUSE:Products:SLE-Module-RT:15-SP1:x86_64/sle-module-rt/15.1/%{_target_cpu}" />
%endif
%ifarch x86_64
      <repository type="pool" repoid="obsproduct://build.suse.de/SUSE:Products:SLE-Module-RT:15-SP1:x86_64/sle-module-rt/15.1/%{_target_cpu}" />
%endif
%ifarch x86_64
      <repository type="pool" repoid="obsproduct://build.suse.de/SUSE:Products:SLE-Module-RT:15-SP1:x86_64/sle-module-rt/15.1/%{_target_cpu}" />
%endif
  </repositories>
  <upgrades/>
  <summary>SUSE Real Time Module</summary>
  <shortsummary>SUSE-Real-Time-Module</shortsummary>
  <description>&lt;p&gt;
	The SUSE Linux Enterprise Real Time aims to reduce the latency and increase
    the predictability and reliability of time-sensitive mission-critical applications.
	&lt;/p&gt;
	
	&lt;p&gt;
	Packages in this module are generally supported until a newer version of
	the package is released or the package is dropped from the module.
	&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="1" flag="GE"/>
  <productdependency relationship="requires" name="sle-module-basesystem" baseversion="15" patchlevel="1" 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