From 16f3739ebe65b352c61cd277508fdf0b708ce00d Mon Sep 17 00:00:00 2001 From: Marek Marczykowski Date: Wed, 13 Feb 2013 23:53:03 +0100 Subject: [PATCH] qubes-release: provide os-release file; fix CPE release --- qubes-release/qubes-release.spec | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/qubes-release/qubes-release.spec b/qubes-release/qubes-release.spec index 52f7d49..14b70ce 100644 --- a/qubes-release/qubes-release.spec +++ b/qubes-release/qubes-release.spec @@ -42,7 +42,7 @@ Qubes release notes package. rm -rf $RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT/etc echo "Qubes release %{version} (%{release_name})" > $RPM_BUILD_ROOT/etc/qubes-release -echo "cpe://o:qubes:qubes:%{version}" > $RPM_BUILD_ROOT/etc/system-release-cpe +echo "cpe:/o:ITL:qubes:%{version}" > $RPM_BUILD_ROOT/etc/system-release-cpe cp -p $RPM_BUILD_ROOT/etc/qubes-release $RPM_BUILD_ROOT/etc/issue echo "Kernel \r on an \m (\l)" >> $RPM_BUILD_ROOT/etc/issue cp -p $RPM_BUILD_ROOT/etc/issue $RPM_BUILD_ROOT/etc/issue.net @@ -51,6 +51,16 @@ ln -s qubes-release $RPM_BUILD_ROOT/etc/fedora-release ln -s qubes-release $RPM_BUILD_ROOT/etc/redhat-release ln -s qubes-release $RPM_BUILD_ROOT/etc/system-release +cat << EOF >>$RPM_BUILD_ROOT/etc/os-release +NAME=Qubes +VERSION="%{version} (%{release_name})" +ID=qubes +VERSION_ID=%{version} +PRETTY_NAME="Qubes %{version} (%{release_name})" +ANSI_COLOR="0;31" +CPE_NAME="cpe:/o:ITL:qubes:%{version}" +EOF + install -d -m 755 $RPM_BUILD_ROOT/etc/pki/rpm-gpg install -m 644 RPM-GPG-KEY* $RPM_BUILD_ROOT/etc/pki/rpm-gpg/ @@ -86,6 +96,7 @@ rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc GPL +%config %attr(0644,root,root) /etc/os-release %config %attr(0644,root,root) /etc/qubes-release %config %attr(0644,root,root) /etc/fedora-release /etc/redhat-release