File sle-we-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-we-release
Summary:        SUSE Linux Enterprise Workstation Extension 15 SP1 
License:        MIT
Group:          System/Fhs
Version:        15.1
Release:        0
Provides:       sled-release

# used by yast to show where the product will be shown during installation.
# lowest number will be top-most
Provides:       displayorder(220)

#bsc#1071720
Obsoletes:      sle-we-release-DVD  < 15
Obsoletes:      sle-we-release-POOL < 15
 # we never had this, but just in case :)
Obsoletes:      sle-we-release-MINI < 15

# bsc#1083611 (we need this pattern selected only on SLES + WE, not SLED + WE)
Recommends: (patterns-gnome-gnome_x11 if sles-release) 


Provides:       %name-%version
Provides:       product() = sle-we
Provides:       product(sle-we) = 15.1-0
Provides:       product-register-target() = sle%2D15%2Dx86_64
Provides:       product-label() = SLEWE15%2DSP1
Provides:       product-cpeid() = cpe%3A%2Fo%3Asuse%3Asle%2Dwe%3A15%3Asp1
Provides:       product-url(bugtracker) = https%3A%2F%2Fbugzilla.suse.com%2F
Provides:       product-url(releasenotes) = https%3A%2F%2Fwww.suse.com%2Freleasenotes%2F%{_target_cpu}%2FSLE%2DSLED%2F15%2DSP1%2Frelease%2Dnotes%2Dsled.rpm
%ifarch x86_64
Provides:       product-updates-repoid() = obsrepository%3A%2F%2Fbuild.suse.de%2FSUSE%3AUpdates%3ASLE%2DProduct%2DWE%3A15%2DSP1%3Ax86_64%2Fupdate
%endif
%ifarch x86_64
Provides:       product-updates-repoid() = obsrepository%3A%2F%2Fbuild.suse.de%2FSUSE%3AUpdates%3ASLE%2DProduct%2DWE%3A15%2DSP1%3Ax86_64%2Fupdate_debug
%endif
Provides:       product-endoflife()
Provides:       product(sle-we-SP1) = %version-%release
Obsoletes:      sle-we-SP1-migration
Obsoletes:      product:sle-we-SP1-migration


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


ExclusiveArch:  %ix86 x86_64

%description
SUSE Linux Enterprise Workstation Extension adds additional functionality
	to a base SUSE Linux Enterprise installation. The Workstation Extension
	offers additional desktop applications (office suite, email client,
	graphical editor, multimedia tools) and libraries.

	Workstation Extension is enabled and installed by default on SUSE Linux 
	Enterprise Desktop installation.

	Adding the Workstation Extension to a SUSE Linux Enterprise Server
	installation allows to seamlessly combine both products to create
       	a full featured server workstation.



%prep

%build

%install

mkdir -p $RPM_BUILD_ROOT/etc/products.d
cat >$RPM_BUILD_ROOT/etc/products.d/sle-we.prod << EOF
<?xml version="1.0" encoding="UTF-8"?>
<product schemeversion="0">
  <vendor>SUSE</vendor>
  <name>sle-we</name>
  <version>15.1</version>
  <baseversion>15</baseversion>
  <patchlevel>1</patchlevel>
  <release>0</release>
  <endoflife></endoflife>
  <arch>%{_target_cpu}</arch>
  <cpeid>cpe:/o:suse:sle-we:15:sp1</cpeid>
  <productline>sle-we</productline>
  <register>
      <target>sle-15-x86_64</target>
    <flavor>extension</flavor>
  </register>
  <repositories>
%ifarch x86_64
      <repository type="update" repoid="obsrepository://build.suse.de/SUSE:Updates:SLE-Product-WE:15-SP1:x86_64/update" />
%endif
%ifarch x86_64
      <repository type="update" repoid="obsrepository://build.suse.de/SUSE:Updates:SLE-Product-WE:15-SP1:x86_64/update_debug" />
%endif
%ifarch x86_64
      <repository type="pool" repoid="obsproduct://build.suse.de/SUSE:Products:SLE-Product-WE:15-SP1:x86_64/sle-we/15.1/%{_target_cpu}" />
%endif
%ifarch x86_64
      <repository type="pool" repoid="obsproduct://build.suse.de/SUSE:Products:SLE-Product-WE:15-SP1:x86_64/sle-we/15.1/%{_target_cpu}" />
%endif
%ifarch x86_64
      <repository type="pool" repoid="obsproduct://build.suse.de/SUSE:Products:SLE-Product-WE:15-SP1:x86_64/sle-we/15.1/%{_target_cpu}" />
%endif
  </repositories>
  <upgrades/>
  <summary>SUSE Linux Enterprise Workstation Extension 15 SP1</summary>
  <shortsummary>SLEWE15-SP1</shortsummary>
  <description>SUSE Linux Enterprise Workstation Extension adds additional functionality
	to a base SUSE Linux Enterprise installation. The Workstation Extension
	offers additional desktop applications (office suite, email client,
	graphical editor, multimedia tools) and libraries.

	Workstation Extension is enabled and installed by default on SUSE Linux 
	Enterprise Desktop installation.

	Adding the Workstation Extension to a SUSE Linux Enterprise Server
	installation allows to seamlessly combine both products to create
       	a full featured server workstation.</description>
  <urls>
    <url name="bugtracker">https://bugzilla.suse.com/</url>
    <url name="releasenotes">https://www.suse.com/releasenotes/%{_target_cpu}/SLE-SLED/15-SP1/release-notes-sled.rpm</url>
  </urls>
  <buildconfig>
    <producttheme>SLED</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="EQ"/>
  <productdependency relationship="recommends" name="sle-module-python2" baseversion="15" patchlevel="1" flag="GE"/>
</product>

EOF



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

%changelog
openSUSE Build Service is sponsored by