File sle-module-legacy-SP2-migration.spec of Package 000release-packages

# 

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

%description
Product to migrate to sle-module-legacy Service Pack 2.



%prep

%build


%install
mkdir -p $RPM_BUILD_ROOT/etc/products.d
cat >$RPM_BUILD_ROOT/etc/products.d/sle-module-legacy-SP2-migration.prod << EOF
<?xml version="1.0" encoding="UTF-8"?>
<product schemeversion="0">
  <vendor>SUSE</vendor>
  <name>sle-module-legacy-SP2-migration</name>
  <version>15.1</version>
  <baseversion>15</baseversion>
  <patchlevel>1</patchlevel>
  <release>0</release>
  <endoflife>2021-07-31</endoflife>
  <arch>%{_target_cpu}</arch>
  <cpeid>cpe:/o:suse:sle-module-legacy-sp2-migration:15:sp1</cpeid>
  <productline>sle-module-legacy</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
%ifarch aarch64
      <target>sle-15-aarch64</target>
%endif
    <flavor>module</flavor>
  </register>
  <repositories>
%ifarch x86_64
      <repository type="update" repoid="obsrepository://build.suse.de/SUSE:Updates:SLE-Module-Legacy:15-SP1:x86_64/update" />
%endif
%ifarch s390x
      <repository type="update" repoid="obsrepository://build.suse.de/SUSE:Updates:SLE-Module-Legacy:15-SP1:s390x/update" />
%endif
%ifarch ppc64le
      <repository type="update" repoid="obsrepository://build.suse.de/SUSE:Updates:SLE-Module-Legacy:15-SP1:ppc64le/update" />
%endif
%ifarch aarch64
      <repository type="update" repoid="obsrepository://build.suse.de/SUSE:Updates:SLE-Module-Legacy:15-SP1:aarch64/update" />
%endif
%ifarch x86_64
      <repository type="update" repoid="obsrepository://build.suse.de/SUSE:Updates:SLE-Module-Legacy:15-SP1:x86_64/update_debug" />
%endif
%ifarch s390x
      <repository type="update" repoid="obsrepository://build.suse.de/SUSE:Updates:SLE-Module-Legacy:15-SP1:s390x/update_debug" />
%endif
%ifarch ppc64le
      <repository type="update" repoid="obsrepository://build.suse.de/SUSE:Updates:SLE-Module-Legacy:15-SP1:ppc64le/update_debug" />
%endif
%ifarch aarch64
      <repository type="update" repoid="obsrepository://build.suse.de/SUSE:Updates:SLE-Module-Legacy:15-SP1:aarch64/update_debug" />
%endif
%ifarch x86_64
      <repository type="pool" repoid="obsproduct://build.suse.de/SUSE:Products:SLE-Module-Legacy:15-SP1:x86_64/sle-module-legacy-SP2-migration/15.1/%{_target_cpu}" />
%endif
%ifarch s390x
      <repository type="pool" repoid="obsproduct://build.suse.de/SUSE:Products:SLE-Module-Legacy:15-SP1:s390x/sle-module-legacy-SP2-migration/15.1/%{_target_cpu}" />
%endif
%ifarch ppc64le
      <repository type="pool" repoid="obsproduct://build.suse.de/SUSE:Products:SLE-Module-Legacy:15-SP1:ppc64le/sle-module-legacy-SP2-migration/15.1/%{_target_cpu}" />
%endif
%ifarch aarch64
      <repository type="pool" repoid="obsproduct://build.suse.de/SUSE:Products:SLE-Module-Legacy:15-SP1:aarch64/sle-module-legacy-SP2-migration/15.1/%{_target_cpu}" />
%endif
%ifarch x86_64
      <repository type="pool" repoid="obsproduct://build.suse.de/SUSE:Products:SLE-Module-Legacy:15-SP1:x86_64/sle-module-legacy-SP2-migration/15.1/%{_target_cpu}" />
%endif
%ifarch s390x
      <repository type="pool" repoid="obsproduct://build.suse.de/SUSE:Products:SLE-Module-Legacy:15-SP1:s390x/sle-module-legacy-SP2-migration/15.1/%{_target_cpu}" />
%endif
%ifarch ppc64le
      <repository type="pool" repoid="obsproduct://build.suse.de/SUSE:Products:SLE-Module-Legacy:15-SP1:ppc64le/sle-module-legacy-SP2-migration/15.1/%{_target_cpu}" />
%endif
%ifarch aarch64
      <repository type="pool" repoid="obsproduct://build.suse.de/SUSE:Products:SLE-Module-Legacy:15-SP1:aarch64/sle-module-legacy-SP2-migration/15.1/%{_target_cpu}" />
%endif
%ifarch x86_64
      <repository type="pool" repoid="obsproduct://build.suse.de/SUSE:Products:SLE-Module-Legacy:15-SP1:x86_64/sle-module-legacy-SP2-migration/15.1/%{_target_cpu}" />
%endif
%ifarch s390x
      <repository type="pool" repoid="obsproduct://build.suse.de/SUSE:Products:SLE-Module-Legacy:15-SP1:s390x/sle-module-legacy-SP2-migration/15.1/%{_target_cpu}" />
%endif
%ifarch ppc64le
      <repository type="pool" repoid="obsproduct://build.suse.de/SUSE:Products:SLE-Module-Legacy:15-SP1:ppc64le/sle-module-legacy-SP2-migration/15.1/%{_target_cpu}" />
%endif
%ifarch aarch64
      <repository type="pool" repoid="obsproduct://build.suse.de/SUSE:Products:SLE-Module-Legacy:15-SP1:aarch64/sle-module-legacy-SP2-migration/15.1/%{_target_cpu}" />
%endif
  </repositories>
  <summary>sle-module-legacy Service Pack 2 Migration Product</summary>
  <shortsummary>sle-module-legacy Service Pack 2 Migration Product</shortsummary>
  <description>&lt;p&gt;
      The Legacy Module helps you migrating applications from SUSE Linux
      Enterprise 12 and other systems to SUSE Linux Enterprise 15, by
      providing packages which are discontinued on SUSE Linux Enterprise
      Server, such as: ntp, IBM Java 8, and a number of
      libraries.
	&lt;/p&gt;
	&lt;p&gt;
      Access to the Legacy Module is included in your SUSE Linux Enterprise
      Server subscription. The module has a different lifecycle than SUSE Linux
      Enterprise Server itself. Packages in the this module are usually
      supported for at most three years.
	&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="conflicts" name="SLED" baseversion="15" patchlevel="1" flag="GE"/>
</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