]> TLD Linux GIT Repositories - packages/issue.git/commitdiff
- added /etc/os-release
authorMarcin Krol <hawk@tld-linux.org>
Mon, 2 Apr 2012 13:25:11 +0000 (13:25 +0000)
committerMarcin Krol <hawk@tld-linux.org>
Mon, 2 Apr 2012 13:25:11 +0000 (13:25 +0000)
issue.spec

index 91c9501b68702cab065935c78134c85a9d755b42..8b3edb0c0118ea4aae37fb02645fbc4a89485b00 100644 (file)
@@ -22,7 +22,7 @@ Summary(tr.UTF-8):    Titanium Linux Distribution sürüm dosyası
 Summary(zh_CN.UTF-8):  Titanium Linux Distribution 版本文件。
 Name:          issue
 Version:       %{distversion}
-Release:       5
+Release:       6
 License:       GPL
 Group:         Base
 Provides:      issue-package
@@ -31,8 +31,6 @@ Obsoletes:    issue-fancy
 Obsoletes:     issue-logo
 Obsoletes:     issue-package
 Obsoletes:     issue-pure
-Obsoletes:     mandrake-release
-Obsoletes:     redhat-release
 Conflicts:     issue-alpha < 2.99-2
 Conflicts:     issue-fancy < 2.99-2
 Conflicts:     issue-logo < 2.99-2
@@ -130,10 +128,23 @@ EOF
 
 echo "Titanium Linux Distribution %{distversion}" > $RPM_BUILD_ROOT%{_sysconfdir}/tld-release
 
+# CPE_NAME = cpe:/ {part} : {vendor} : {product} : {version} : {update} : {edition} : {language}
+# http://cpe.mitre.org/specification/
+cat >$RPM_BUILD_ROOT%{_sysconfdir}/os-release <<EOF
+NAME="Titanium Linux Distribution"
+VERSION="%{distversion}"
+ID="tld"
+VERSION_ID="%{distversion}"
+PRETTY_NAME="Titanium Linux Distribution %{distversion}"
+ANSI_COLOR="0;32"
+CPE_NAME="cpe:/o:tld-linux:tld:%{distversion}"
+EOF
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
+%{_sysconfdir}/os-release
 %{_sysconfdir}/tld-release
 %config(noreplace) %{_sysconfdir}/issue*