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
|
|
|
#
|
2022-01-10 10:05:11 +01:00
|
|
|
# Copyright (c) 2022 SUSE LLC
|
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.
|
|
|
|
|
2019-03-19 13:45:18 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2008-09-22 16:15:38 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: dummy-release
|
2017-08-21 07:40:08 +02:00
|
|
|
Version: 15
|
2014-04-11 13:50:35 +02:00
|
|
|
Release: 0
|
2008-11-03 00:59:25 +01:00
|
|
|
Provides: distribution-release
|
2017-07-19 14:06:57 +02:00
|
|
|
Conflicts: otherproviders(distribution-release)
|
2019-03-19 13:45:18 +01:00
|
|
|
Requires: this-is-only-for-build-envs
|
2017-08-21 07:40:08 +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
|
2017-08-21 07:40:08 +02:00
|
|
|
This package contains the files: /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
|
|
|
|
touch $RPM_BUILD_ROOT/etc/motd
|
|
|
|
|
2014-04-11 13:50:35 +02:00
|
|
|
echo 'NAME=Dummy' > $RPM_BUILD_ROOT/etc/os-release
|
2022-01-10 10:05:11 +01:00
|
|
|
echo 'ID="suse"' >> $RPM_BUILD_ROOT/etc/os-release
|
2014-04-11 13:50:35 +02:00
|
|
|
echo 'ID_LIKE="suse"' >> $RPM_BUILD_ROOT/etc/os-release
|
2020-12-11 11:50:49 +01:00
|
|
|
echo 'VERSION_ID="Dummy"' >> $RPM_BUILD_ROOT/etc/os-release
|
2014-04-11 13:50:35 +02:00
|
|
|
|
2008-09-22 16:15:38 +02:00
|
|
|
%files
|
|
|
|
%defattr(644,root,root,755)
|
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
|