File SLES_SAP-SP2-migration.spec of Package 000release-packages

# 

Name:           SLES_SAP-SP2-migration
Summary:        SLES_SAP Service Pack 2 Migration Product
Version:        15.1
Release:        0
License:        BSD-3-Clause
Group:          System/Fhs
Provides:       product()
Provides:       product(SLES_SAP-SP2-migration) = %{version}-%{release}
Requires:       product(SLES_SAP) = 15.1
AutoReqProv:    on
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
Product to migrate to SLES_SAP Service Pack 2.



%prep

%build


%install
mkdir -p $RPM_BUILD_ROOT/etc/products.d
cat >$RPM_BUILD_ROOT/etc/products.d/SLES_SAP-SP2-migration.prod << EOF
<?xml version="1.0" encoding="UTF-8"?>
<product schemeversion="0">
  <vendor>SUSE</vendor>
  <name>SLES_SAP-SP2-migration</name>
  <version>15.1</version>
  <baseversion>15</baseversion>
  <patchlevel>1</patchlevel>
  <predecessor>SUSE_SLES_SAP</predecessor>
  <release>0</release>
  <endoflife></endoflife>
  <arch>%{_target_cpu}</arch>
  <cpeid>cpe:/o:suse:sles_sap-sp2-migration:15:sp1</cpeid>
  <productline>SLES_SAP</productline>
  <codestream>
    <name>SUSE Linux Enterprise Server for SAP Applications 15</name>
    <endoflife>2028-07-31</endoflife>
  </codestream>
  <register>
%ifarch x86_64
      <target>sle-15-x86_64</target>
%endif
%ifarch ppc64le
      <target>sle-15-ppc64le</target>
%endif
  </register>
  <repositories>
%ifarch x86_64
      <repository type="update" repoid="obsrepository://build.suse.de/SUSE:Updates:SLE-Product-SLES_SAP:15-SP1:x86_64/update" />
%endif
%ifarch ppc64le
      <repository type="update" repoid="obsrepository://build.suse.de/SUSE:Updates:SLE-Product-SLES_SAP:15-SP1:ppc64le/update" />
%endif
%ifarch x86_64
      <repository type="update" repoid="obsrepository://build.suse.de/SUSE:Updates:SLE-Product-SLES_SAP:15-SP1:x86_64/update_debug" />
%endif
%ifarch ppc64le
      <repository type="update" repoid="obsrepository://build.suse.de/SUSE:Updates:SLE-Product-SLES_SAP:15-SP1:ppc64le/update_debug" />
%endif
%ifarch x86_64
      <repository type="pool" repoid="obsproduct://build.suse.de/SUSE:Products:SLE-Product-SLES_SAP:15-SP1:x86_64/SLES_SAP-SP2-migration/15.1/%{_target_cpu}" />
%endif
%ifarch ppc64le
      <repository type="pool" repoid="obsproduct://build.suse.de/SUSE:Products:SLE-Product-SLES_SAP:15-SP1:ppc64le/SLES_SAP-SP2-migration/15.1/%{_target_cpu}" />
%endif
%ifarch x86_64
      <repository type="pool" repoid="obsproduct://build.suse.de/SUSE:Products:SLE-Product-SLES_SAP:15-SP1:x86_64/SLES_SAP-SP2-migration/15.1/%{_target_cpu}" />
%endif
%ifarch ppc64le
      <repository type="pool" repoid="obsproduct://build.suse.de/SUSE:Products:SLE-Product-SLES_SAP:15-SP1:ppc64le/SLES_SAP-SP2-migration/15.1/%{_target_cpu}" />
%endif
%ifarch x86_64
      <repository type="pool" repoid="obsproduct://build.suse.de/SUSE:Products:SLE-Product-SLES_SAP:15-SP1:x86_64/SLES_SAP-SP2-migration/15.1/%{_target_cpu}" />
%endif
%ifarch ppc64le
      <repository type="pool" repoid="obsproduct://build.suse.de/SUSE:Products:SLE-Product-SLES_SAP:15-SP1:ppc64le/SLES_SAP-SP2-migration/15.1/%{_target_cpu}" />
%endif
  </repositories>
  <summary>SLES_SAP Service Pack 2 Migration Product</summary>
  <shortsummary>SLES_SAP Service Pack 2 Migration Product</shortsummary>
  <description>SUSE Linux Enterprise offers a comprehensive
        suite of products built on a single code base.
        The platform addresses business needs from
        the smallest thin-client devices to the world's
        most powerful high-performance computing
        and mainframe servers. SUSE Linux Enterprise
        offers common management tools and technology
        certifications across the platform, and
        each product is enterprise-class.</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/15-SP1/release-notes-sles-for-sap.rpm</url>
  </urls>
  <buildconfig>
    <producttheme>SLES_SAP</producttheme>
  </buildconfig>
  <installconfig>
    <defaultlang>en_US</defaultlang>
    <releasepackage name="%{name}" flag="EQ" version="%{version}" release="%{release}"/>
    <distribution>SUSE_SLE</distribution>
  </installconfig>
  <runtimeconfig/>
  <productdependency relationship="provides" name="SUSE_SLE" baseversion="15" patchlevel="1" flag="EQ"/>
  <productdependency relationship="provides" name="SUSE_SLE-SP1" baseversion="15" patchlevel="1" flag="EQ"/>
</product>

EOF


%clean
rm -rf %buildroot

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

%changelog
openSUSE Build Service is sponsored by