From bb9562619942a32c4579c2b9991d57fad1f0f354b9b4d97883e934a66baa9821 Mon Sep 17 00:00:00 2001 From: Stephan Kulow Date: Fri, 11 Apr 2014 11:50:35 +0000 Subject: [PATCH] - also add an os-release OBS-URL: https://build.opensuse.org/package/show/Base:System/dummy-release?expand=0&rev=6 --- dummy-release.changes | 5 +++++ dummy-release.spec | 21 ++++++++++----------- 2 files changed, 15 insertions(+), 11 deletions(-) diff --git a/dummy-release.changes b/dummy-release.changes index efe57da..5412c2c 100644 --- a/dummy-release.changes +++ b/dummy-release.changes @@ -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 diff --git a/dummy-release.spec b/dummy-release.spec index f6f56b3..dde2840 100644 --- a/dummy-release.spec +++ b/dummy-release.spec @@ -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