File openSUSE-release-appliance-opennebula.spec of Package openSUSE-release-appliance-opennebula

#
# spec file for package openSUSE-release.spec
#
# Copyright (c) 2020 SUSE LLC
#
# 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://bugs.opensuse.org/
#

%define os_version %(rpm -q --qf '%%{VERSION}' openSUSE-release)
%define os_pretty_name %(rpm -q --qf '%%{SUMMARY}' openSUSE-release)

Name:           openSUSE-release
Version:        %os_version
Release:        0
# 1 is the product release, not the build release of this package 
Summary:        %os_pretty_name
License:        BSD-3-Clause
Group:          System/Fhs
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  openSUSE-release

%description
openSUSE %distro

%package appliance-opennebula
License:        BSD-3-Clause
Group:          System/Fhs
Provides:       product_flavor()
Provides:       flavor(appliance-opennebula)
Provides:       product_flavor(openSUSE) = %os_version-1
Summary:        %os_pretty_name

%description appliance-opennebula
%os_pretty_name

%files appliance-opennebula
%defattr(-,root,root)
%doc %{_defaultdocdir}/openSUSE-release-appliance-opennebula

%prep

%build

%install
mkdir -p $RPM_BUILD_ROOT/%{_defaultdocdir}/openSUSE-release-appliance-opennebula
cat
>$RPM_BUILD_ROOT/%{_defaultdocdir}/openSUSE-release-appliance-opennebula/README << EOF
This package only exists for providing the product flavor 'appliance-opennebula'.
EOF

%changelog
openSUSE Build Service is sponsored by