File sle-module-cap-tools-release.spec of Package 000release-packages
#
# spec file for package sle-module-cap-tools-release (Version 15.3)
#
# Copyright (c) 2021 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.
# Please submit bugfixes or comments via https://bugzilla.suse.com/
#
Name: sle-module-cap-tools-release
%define product sle-module-cap-tools
%define betaversion Beta4
Summary: SUSE Cloud Application Platform Tools Module%{?betaversion: %{betaversion}}
Version: 15.3
Release: 0
License: BSD-3-Clause
Group: System/Fhs
Provides: %name-%version
Provides: product() = sle-module-cap-tools
Provides: product(sle-module-cap-tools) = 15.3-0
%ifarch x86_64
Provides: product-register-target() = sle%2D15%2Dx86_64
%endif
Provides: product-label() = SUSE%2DCAP%2DTools%2DModule
Provides: product-cpeid() = cpe%3A%2Fo%3Asuse%3Asle%2Dmodule%2Dcap%2Dtools%3A15%3Asp3
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%2DCAP%2DTools%3A15%2DSP3%3Ax86_64%2Fupdate
%endif
%ifarch x86_64
Provides: product-updates-repoid() = obsrepository%3A%2F%2Fbuild.suse.de%2FSUSE%3AUpdates%3ASLE%2DModule%2DCAP%2DTools%3A15%2DSP3%3Ax86_64%2Fupdate_debug
%endif
Provides: product-endoflife() = 2021%2D07%2D31
Provides: product(sle-module-cap-tools-SP3) = %version-%release
Obsoletes: sle-module-cap-tools-SP3-migration
Obsoletes: product:sle-module-cap-tools-SP3-migration
Requires: product(SUSE_SLE) >= 15.3
AutoReqProv: on
BuildRoot: %{_tmppath}/%{name}-%{version}-build
# this package should only be available for the "basearchs" of a product
ExclusiveArch: x86_64
%description
<p>
The SUSE Cloud Application Platform Tools Module is a collection of
tools that enables you to interact with the SUSE Cloud Application
Platform product itself, providing the commandline client for
instance.
</p>
<p>
Access to the SUSE Cloud Application Platform Tools Module is included
in your SUSE Linux Enterprise Server subscription. The module has a
different lifecycle than SUSE Linux Enterprise Server itself; please
check the Release Notes for further details.
</p>
%prep
%build
%install
mkdir -p $RPM_BUILD_ROOT/etc/products.d
cat >$RPM_BUILD_ROOT/etc/products.d/sle-module-cap-tools.prod << EOF
<?xml version="1.0" encoding="UTF-8"?>
<product schemeversion="0">
<vendor>SUSE</vendor>
<name>sle-module-cap-tools</name>
<version>15.3</version>
<baseversion>15</baseversion>
<patchlevel>3</patchlevel>
<release>0</release>
<endoflife>2021-07-31</endoflife>
<arch>%{_target_cpu}</arch>
<cpeid>cpe:/o:suse:sle-module-cap-tools:15:sp3</cpeid>
<productline>sle-module-cap-tools</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-CAP-Tools:15-SP3:x86_64/update" />
%endif
%ifarch x86_64
<repository type="update" repoid="obsrepository://build.suse.de/SUSE:Updates:SLE-Module-CAP-Tools:15-SP3:x86_64/update_debug" />
%endif
%ifarch x86_64
<repository type="pool" repoid="obsproduct://build.suse.de/SUSE:Products:SLE-Module-CAP-Tools:15-SP3:x86_64/sle-module-cap-tools/15.3/%{_target_cpu}" />
%endif
</repositories>
<summary>SUSE Cloud Application Platform Tools Module</summary>
<shortsummary>SUSE-CAP-Tools-Module</shortsummary>
<description><p>
The SUSE Cloud Application Platform Tools Module is a collection of
tools that enables you to interact with the SUSE Cloud Application
Platform product itself, providing the commandline client for
instance.
</p>
<p>
Access to the SUSE Cloud Application Platform Tools Module is included
in your SUSE Linux Enterprise Server subscription. The module has a
different lifecycle than SUSE Linux Enterprise Server itself; please
check the Release Notes for further details.
</p></description>
<urls>
<url name="bugtracker">https://bugzilla.suse.com/</url>
</urls>
<buildconfig>
<producttheme>SLES</producttheme>
<betaversion>Beta4</betaversion>
</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="3" flag="GE"/>
</product>
EOF
%clean
rm -rf %buildroot
%files
%defattr(644,root,root,755)
%dir /etc/products.d
/etc/products.d/*.prod
%changelog