packages: issue/issue.spec - added /etc/os-release (http://www.freedesktop....

baggins baggins at pld-linux.org
Thu Feb 16 11:44:14 CET 2012


Author: baggins                      Date: Thu Feb 16 10:44:14 2012 GMT
Module: packages                      Tag: HEAD
---- Log message:
- added /etc/os-release (http://www.freedesktop.org/software/systemd/man/os-release.html)

---- Files affected:
packages/issue:
   issue.spec (1.51 -> 1.52) 

---- Diffs:

================================================================
Index: packages/issue/issue.spec
diff -u packages/issue/issue.spec:1.51 packages/issue/issue.spec:1.52
--- packages/issue/issue.spec:1.51	Sat Jan 29 01:06:47 2011
+++ packages/issue/issue.spec	Thu Feb 16 11:44:09 2012
@@ -35,8 +35,6 @@
 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
@@ -134,11 +132,24 @@
 
 echo %{distrelease} > $RPM_BUILD_ROOT%{_sysconfdir}/pld-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="PLD Linux"
+VERSION="%{distversion} (%{distname})"
+ID="pld"
+VERSION_ID="%{distversion}"
+PRETTY_NAME="PLD Linux %{distversion} (%{distname})"
+ANSI_COLOR="0;32"
+CPE_NAME="cpe:/o:pld-linux:pld:%{distversion}"
+EOF
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
+%{_sysconfdir}/os-release
 %{_sysconfdir}/pld-release
 %config(noreplace) %{_sysconfdir}/issue*
 
@@ -148,6 +159,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.52  2012/02/16 10:44:09  baggins
+- added /etc/os-release (http://www.freedesktop.org/software/systemd/man/os-release.html)
+
 Revision 1.51  2011/01/29 00:06:47  sparky
 - dropped pre-cvs changelog
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/issue/issue.spec?r1=1.51&r2=1.52&f=u



More information about the pld-cvs-commit mailing list