2008-09-22 16:15:38 +02:00
|
|
|
#
|
2011-09-20 12:52:36 +02:00
|
|
|
# spec file for package dummy-release
|
2008-09-22 16:15:38 +02:00
|
|
|
#
|
2014-04-11 13:50:35 +02:00
|
|
|
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2008-09-22 16:15:38 +02:00
|
|
|
#
|
|
|
|
# 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 http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: dummy-release
|
2014-04-11 13:50:35 +02:00
|
|
|
Version: 12
|
|
|
|
Release: 0
|
2008-11-03 00:59:25 +01:00
|
|
|
Provides: distribution-release
|
|
|
|
Conflicts: openSUSE-release sled-release sles-release
|
2008-09-22 16:15:38 +02:00
|
|
|
Summary: SuSE release version files
|
2014-04-11 13:50:35 +02:00
|
|
|
License: BSD-3-Clause
|
|
|
|
Group: System/Fhs
|
2008-09-22 16:15:38 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
|
|
|
%description
|
|
|
|
This package contains the files: /etc/SuSE-release, /etc/issue,
|
2014-04-11 13:50:35 +02:00
|
|
|
/etc/issue.net and /etc/os-release
|
2008-09-22 16:15:38 +02:00
|
|
|
|
|
|
|
%prep
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
|
|
|
%install
|
|
|
|
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/issue.net
|
|
|
|
echo "Dummy Product (%{_target_cpu})" > $RPM_BUILD_ROOT/etc/SuSE-release
|
|
|
|
touch $RPM_BUILD_ROOT/etc/motd
|
|
|
|
|
2014-04-11 13:50:35 +02:00
|
|
|
echo 'NAME=Dummy' > $RPM_BUILD_ROOT/etc/os-release
|
|
|
|
echo 'ID_LIKE="suse"' >> $RPM_BUILD_ROOT/etc/os-release
|
|
|
|
|
2008-09-22 16:15:38 +02:00
|
|
|
%files
|
|
|
|
%defattr(644,root,root,755)
|
|
|
|
/etc/SuSE-release
|
2014-04-11 13:50:35 +02:00
|
|
|
/etc/os-release
|
2008-09-22 16:15:38 +02:00
|
|
|
%config(noreplace) /etc/motd
|
|
|
|
%config(noreplace) /etc/issue
|
|
|
|
%config(noreplace) /etc/issue.net
|
|
|
|
|
|
|
|
%changelog
|