File ardana-centos-compute-release.spec of Package _product:ardana-centos-compute-release

#
# spec file for package ardana-centos-compute-release (Version 7.3)
#
# 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 https://bugzilla.suse.com/
#



Name:           ardana-centos-compute-release
%define         product ardana-centos-compute
Summary:        Ardana CentOS Compute
Version:        7.3
Release:        0
License:        BSD-3-Clause
Group:          System/Fhs

Provides:       %name-%version
Provides:       product() = ardana-centos-compute
Provides:       product(ardana-centos-compute) = 7.3-0
Provides:       product-label() = ACC
Provides:       product-cpeid() = cpe%3A%2Fo%3Asuse%3Aardana%2Dcentos%2Dcompute%3A7.3
Provides:       product-url(bugtracker) = https%3A%2F%2Fbugzilla.suse.com%2F
Provides:       product-endoflife() = 2021%2D05%2D31
Requires:       product_flavor(ardana-centos-compute)

Requires:       product(SLES) = 12.3

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

%description
Ardana CentOS 7.3 Compute


%package cd
License:        BSD-3-Clause
Group:          System/Fhs
Provides:       product_flavor()
Provides:       flavor(cd)
Provides:       product_flavor(ardana-centos-compute) = 7.3-0
Summary:        Ardana CentOS Compute

%description cd
Ardana CentOS 7.3 Compute

%files cd
%defattr(-,root,root)
%doc %{_defaultdocdir}/ardana-centos-compute-release-cd

%package POOL
License:        BSD-3-Clause
Group:          System/Fhs
Provides:       product_flavor()
Provides:       flavor(POOL)
Provides:       product_flavor(ardana-centos-compute) = 7.3-0
Summary:        Ardana CentOS Compute

%description POOL
Ardana CentOS 7.3 Compute

%files POOL
%defattr(-,root,root)
%doc %{_defaultdocdir}/ardana-centos-compute-release-POOL



%prep

%build


%install
mkdir -p $RPM_BUILD_ROOT/etc/products.d
cat >$RPM_BUILD_ROOT/etc/products.d/ardana-centos-compute.prod << EOF
<?xml version="1.0" encoding="UTF-8"?>
<product schemeversion="0">
  <vendor>SUSE LINUX GmbH, Nuernberg, Germany</vendor>
  <name>ardana-centos-compute</name>
  <version>7.3</version>
  <release>0</release>
  <endoflife>2021-05-31</endoflife>
  <arch>%{_target_cpu}</arch>
  <cpeid>cpe:/o:suse:ardana-centos-compute:7.3</cpeid>
  <productline>Ardana CentOS</productline>
  <register>
    <target/>
    <updates>
    </updates>
  </register>
  <summary>Ardana CentOS Compute</summary>
  <shortsummary>ACC</shortsummary>
  <description>Ardana CentOS 7.3 Compute</description>
  <urls>
    <url name="bugtracker">https://bugzilla.suse.com/</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="SLES" baseversion="12" patchlevel="3" flag="EQ" />
</product>

EOF

mkdir -p $RPM_BUILD_ROOT/%{_defaultdocdir}/ardana-centos-compute-release-cd
cat >$RPM_BUILD_ROOT/%{_defaultdocdir}/ardana-centos-compute-release-cd/README << EOF
This package only exists for providing the product flavor 'cd'.

EOF

mkdir -p $RPM_BUILD_ROOT/%{_defaultdocdir}/ardana-centos-compute-release-POOL
cat >$RPM_BUILD_ROOT/%{_defaultdocdir}/ardana-centos-compute-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