File openSUSE-release-appliance-wsl.spec of Package openSUSE-release-appliance-wsl
#
# spec file for package openSUSE-release.spec
#
# Copyright (c) 2019 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://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-wsl
License: BSD-3-Clause
Group: System/Fhs
Provides: product_flavor()
Provides: flavor(appliance-wsl)
Provides: product_flavor(openSUSE) = %os_version-1
Summary: %os_pretty_name
%description appliance-wsl
%os_pretty_name
%files appliance-wsl
%defattr(-,root,root)
%doc %{_defaultdocdir}/openSUSE-release-appliance-wsl
%prep
%build
%install
mkdir -p $RPM_BUILD_ROOT/%{_defaultdocdir}/openSUSE-release-appliance-wsl
cat
>$RPM_BUILD_ROOT/%{_defaultdocdir}/openSUSE-release-appliance-wsl/README << EOF
This package only exists for providing the product flavor 'appliance-wsl'.
EOF
%changelog