File dummy-release.spec of Package dummy-release

# spec file for package dummy-release
# Copyright (c) 2014 SUSE LINUX Products 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

Name:           dummy-release
Version:        12
Release:        0
Provides:       distribution-release
Conflicts:      openSUSE-release sled-release sles-release
Summary:        SuSE release version files
License:        BSD-3-Clause
Group:          System/Fhs
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

This package contains the files: /etc/SuSE-release, /etc/issue,
/etc/ and /etc/os-release



mkdir -p $RPM_BUILD_ROOT/etc
echo -e "\nWelcome to Dummy Product - Kernel \\\r (\\\l).\n\n" > $RPM_BUILD_ROOT/etc/issue
echo -e "Welcome to Dummy Product (%{_target_cpu}) - Kernel %%r (%%t)." > $RPM_BUILD_ROOT/etc/
echo "Dummy Product (%{_target_cpu})" > $RPM_BUILD_ROOT/etc/SuSE-release
touch $RPM_BUILD_ROOT/etc/motd

echo 'NAME=Dummy' > $RPM_BUILD_ROOT/etc/os-release
echo 'ID_LIKE="suse"' >> $RPM_BUILD_ROOT/etc/os-release

%config(noreplace) /etc/motd
%config(noreplace) /etc/issue
%config(noreplace) /etc/

openSUSE Build Service is sponsored by