Browse Source

vine-release-7.0-0.0.2

git-svn-id: http://trac.vinelinux.org/repos/projects/specs@11247 ec354946-7b23-47d6-9f5a-488ba84defc7
tomop 5 years ago
parent
commit
7d7af984ff
1 changed files with 20 additions and 1 deletions
  1. 20 1
      v/vine-release/vine-release-vl.spec

+ 20 - 1
v/vine-release/vine-release-vl.spec

@@ -13,7 +13,7 @@
 #define vinecr 1
 
 # release=1+, alpha/beta=0.1+, seed=0.0.1+
-%define relbase 0.0.1
+%define relbase 0.0.2
 
 Summary: Vine Linux release file
 Summary(ja): Vine Linux リリースファイル
@@ -40,6 +40,20 @@ Vine Linux リリースファイル
 mkdir -p ${RPM_BUILD_ROOT}/etc
 echo "Vine Linux %{vine_version} %{?vinecr:CR }%{?vineseed:(+VineSeed) }%{?vinebeta:(BETA) }(%{vine_codename})" > ${RPM_BUILD_ROOT}/etc/vine-release
 
+ln -sf vine-release ${RPM_BUILD_ROOT}/etc/system-release
+
+cat <<EOF > ${RPM_BUILD_ROOT}/etc/os-release
+PRETTY_NAME="Vine Linux %{vine_version} %{?vinecr:CR }%{?vineseed:(+VineSeed) }%{?vinebeta:(BETA) }(%{vine_codename})"
+NAME="Vine Linux"
+VERSION="%{vine_version} %{?vinecr:CR }%{?vineseed:(+VineSeed) }%{?vinebeta:(BETA) }(%{vine_codename})"
+ID="vine"
+VERSION_ID="%{vine_version}"
+ANSI_COLOR="0;34"
+CPE_NAME="cpe:/o:vinelinux:vine:%{vine_version}"
+HOME_URL="https://vinelinux.org/"
+BUG_REPORT_URL="http://mantis.vinelinux.org/"
+EOF
+
 cat <<EOF > ${RPM_BUILD_ROOT}/etc/lsb-release
 LSB_VERSION="%{lsb_version}"
 DISTRIB_ID="Vine"
@@ -58,9 +72,14 @@ fi
 %files
 %defattr(-,root,root)
 /etc/vine-release
+/etc/system-release
+/etc/os-release
 /etc/lsb-release
 
 %changelog
+* Sun Oct 29 2017 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 7.0-0.0.2vl7.seed
+- added /etc/{os,system}-release.
+
 * Sat Aug 06 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 7.0-0.0.1vl7.seed
 - build for VineSeed(vl7)