Accepting request 229732 from Base:System

- also add an os-release

OBS-URL: https://build.opensuse.org/request/show/229732
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/dummy-release?expand=0&rev=15
This commit is contained in:
Stephan Kulow 2014-04-14 04:43:25 +00:00 committed by Git OBS Bridge
commit 812cb9987e
2 changed files with 15 additions and 11 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Fri Apr 11 11:50:24 UTC 2014 - coolo@suse.com
- also add an os-release
-------------------------------------------------------------------
Sun Sep 18 17:17:12 UTC 2011 - jengelh@medozas.de

View File

@ -1,7 +1,7 @@
#
# spec file for package dummy-release
#
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
# 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
@ -16,24 +16,19 @@
#
Name: dummy-release
%define product SUSE_SLES
%define flavor DVD
%define real_version %{version}
%define ncc_target sle-11
License: BSD-3-Clause
Group: System/Fhs
Version: 11
Release: 3
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
%description
This package contains the files: /etc/SuSE-release, /etc/issue,
/etc/issue.net, and /etc/products.d/openSUSE.prod
/etc/issue.net and /etc/os-release
%prep
@ -46,9 +41,13 @@ echo -e "Welcome to Dummy Product (%{_target_cpu}) - Kernel %%r (%%t)." > $RPM_B
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
%files
%defattr(644,root,root,755)
/etc/SuSE-release
/etc/os-release
%config(noreplace) /etc/motd
%config(noreplace) /etc/issue
%config(noreplace) /etc/issue.net