File sles-ltss-release.spec of Package sles-ltss-release.2792

#
# spec file for package sles-ltss-release (Version 12)
#
# Copyright (c) 2016 SUSE.
#
# 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.


Name:           sles-ltss-release
%define         product SLES-LTSS
Summary:        SUSE Linux Enterprise Server 12 LTSS
Version:        12
Release:        0
License:        BSD-3-Clause
Group:          System/Fhs

Provides:       %name-%version
Provides:       product() = SLES-LTSS
Provides:       product(SLES-LTSS) = 12-0
%ifarch x86_64
Provides:       product-register-target() = sle%2D12%2Dx86_64
%endif
%ifarch s390x
Provides:       product-register-target() = sle%2D12%2Ds390x
%endif
%ifarch ppc64le
Provides:       product-register-target() = sle%2D12%2Dppc64le
%endif
Provides:       product-label() = SLES12%20LTSS
Provides:       product-cpeid() = cpe%3A%2Fo%3Asuse%3Asles%2Dltss%3A12
Provides:       product-url(releasenotes) = https%3A%2F%2Fwww.suse.com%2Freleasenotes%2F%{_target_cpu}%2FSUSE%2DSLES%2F12%2Frelease%2Dnotes%2Dsles.rpm
%ifarch x86_64
Provides:       product-updates-repoid() = obsrepository%3A%2F%2Fbuild.suse.de%2FSUSE%3AUpdates%3ASLE%2DSERVER%3A12%2DLTSS%3Ax86_64%2Fupdate
%endif
%ifarch s390x
Provides:       product-updates-repoid() = obsrepository%3A%2F%2Fbuild.suse.de%2FSUSE%3AUpdates%3ASLE%2DSERVER%3A12%2DLTSS%3As390x%2Fupdate
%endif
%ifarch ppc64le
Provides:       product-updates-repoid() = obsrepository%3A%2F%2Fbuild.suse.de%2FSUSE%3AUpdates%3ASLE%2DSERVER%3A12%2DLTSS%3Appc64le%2Fupdate
%endif
%ifarch x86_64
Provides:       product-updates-repoid() = obsrepository%3A%2F%2Fbuild.suse.de%2FSUSE%3AUpdates%3ASLE%2DSERVER%3A12%2DLTSS%3Ax86_64%2Fupdate_debug
%endif
%ifarch s390x
Provides:       product-updates-repoid() = obsrepository%3A%2F%2Fbuild.suse.de%2FSUSE%3AUpdates%3ASLE%2DSERVER%3A12%2DLTSS%3As390x%2Fupdate_debug
%endif
%ifarch ppc64le
Provides:       product-updates-repoid() = obsrepository%3A%2F%2Fbuild.suse.de%2FSUSE%3AUpdates%3ASLE%2DSERVER%3A12%2DLTSS%3Appc64le%2Fupdate_debug
%endif
Provides:       product-register-flavor() = extension
Obsoletes:       product:SUSE_SLES
Provides:       product-endoflife() = 2024%2D10%2D31
Requires:       product_flavor(SLES-LTSS)

Requires:       product(SUSE_SLE) = 12

AutoReqProv:    on
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%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.


%package MINI
License:        BSD-3-Clause
Group:          System/Fhs
Provides:       product_flavor()
Provides:       flavor(MINI)
Provides:       product_flavor(SLES-LTSS) = 12-0
Summary:        SUSE Linux Enterprise Server 12 LTSS

%description MINI
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.

%files MINI
%defattr(-,root,root)
%doc %{_defaultdocdir}/sles-ltss-release-MINI

%package DVD
License:        BSD-3-Clause
Group:          System/Fhs
Provides:       product_flavor()
Provides:       flavor(DVD)
Provides:       product_flavor(SLES-LTSS) = 12-0
Summary:        SUSE Linux Enterprise Server 12 LTSS

%description DVD
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.

%files DVD
%defattr(-,root,root)
%doc %{_defaultdocdir}/sles-ltss-release-DVD

%package POOL
License:        BSD-3-Clause
Group:          System/Fhs
Provides:       product_flavor()
Provides:       flavor(POOL)
Provides:       product_flavor(SLES-LTSS) = 12-0
Summary:        SUSE Linux Enterprise Server 12 LTSS

%description POOL
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.

%files POOL
%defattr(-,root,root)
%doc %{_defaultdocdir}/sles-ltss-release-POOL



%prep

%build


%install
mkdir -p $RPM_BUILD_ROOT/etc/products.d
cat >$RPM_BUILD_ROOT/etc/products.d/SLES-LTSS.prod << EOF
<?xml version="1.0" encoding="UTF-8"?>
<product schemeversion="0">
  <vendor>SUSE</vendor>
  <name>SLES-LTSS</name>
  <version>12</version>
  <baseversion>12</baseversion>
  <patchlevel>0</patchlevel>
  <predecessor>SUSE_SLES</predecessor>
  <release>0</release>
  <endoflife>2024-10-31</endoflife>
  <arch>%{_target_cpu}</arch>
  <cpeid>cpe:/o:suse:sles-ltss:12</cpeid>
  <productline>sles</productline>
  <register>
%ifarch x86_64
      <target>sle-12-x86_64</target>
%endif
%ifarch s390x
      <target>sle-12-s390x</target>
%endif
%ifarch ppc64le
      <target>sle-12-ppc64le</target>
%endif
    <flavor>extension</flavor>
    <updates>
%ifarch x86_64
      <repository repoid="obsrepository://build.suse.de/SUSE:Updates:SLE-SERVER:12-LTSS:x86_64/update" />
%endif
%ifarch s390x
      <repository repoid="obsrepository://build.suse.de/SUSE:Updates:SLE-SERVER:12-LTSS:s390x/update" />
%endif
%ifarch ppc64le
      <repository repoid="obsrepository://build.suse.de/SUSE:Updates:SLE-SERVER:12-LTSS:ppc64le/update" />
%endif
%ifarch x86_64
      <repository repoid="obsrepository://build.suse.de/SUSE:Updates:SLE-SERVER:12-LTSS:x86_64/update_debug" />
%endif
%ifarch s390x
      <repository repoid="obsrepository://build.suse.de/SUSE:Updates:SLE-SERVER:12-LTSS:s390x/update_debug" />
%endif
%ifarch ppc64le
      <repository repoid="obsrepository://build.suse.de/SUSE:Updates:SLE-SERVER:12-LTSS:ppc64le/update_debug" />
%endif
    </updates>
  </register>
  <upgrades />
  <updaterepokey>A43242DKD</updaterepokey>
  <summary>SUSE Linux Enterprise Server 12 LTSS</summary>
  <shortsummary>SLES12 LTSS</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}/SUSE-SLES/12/release-notes-sles.rpm</url>
  </urls>
  <buildconfig>
    <producttheme>SLES</producttheme>
  </buildconfig>
  <installconfig>
    <defaultlang>en_US</defaultlang>
    <datadir>suse</datadir>
    <descriptiondir>suse/setup/descr</descriptiondir>
    <releasepackage name="%{name}" flag="EQ" version="%{version}" release="%{release}" />
    <distribution>SUSE_SLE</distribution>
  </installconfig>
  <runtimeconfig />
  <productdependency relationship="requires" name="SUSE_SLE" baseversion="12" patchlevel="0" flag="EQ" />
</product>

EOF

mkdir -p $RPM_BUILD_ROOT/%{_defaultdocdir}/sles-ltss-release-MINI
cat >$RPM_BUILD_ROOT/%{_defaultdocdir}/sles-ltss-release-MINI/README << EOF
This package only exists for providing the product flavor 'MINI'.

EOF

mkdir -p $RPM_BUILD_ROOT/%{_defaultdocdir}/sles-ltss-release-DVD
cat >$RPM_BUILD_ROOT/%{_defaultdocdir}/sles-ltss-release-DVD/README << EOF
This package only exists for providing the product flavor 'DVD'.

EOF

mkdir -p $RPM_BUILD_ROOT/%{_defaultdocdir}/sles-ltss-release-POOL
cat >$RPM_BUILD_ROOT/%{_defaultdocdir}/sles-ltss-release-POOL/README << EOF
This package only exists for providing the product flavor 'POOL'.

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