[packages/issue-pure] - fixed version, only use /etc/os-release for generating issue file

baggins baggins at pld-linux.org
Sun Jun 16 22:22:31 CEST 2013


commit 16a3829592cf5fcaf29a4ec1a0eac83d2a2649be
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Sun Jun 16 22:22:30 2013 +0200

    - fixed version, only use /etc/os-release for generating issue file

 issue-pure.spec | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)
---
diff --git a/issue-pure.spec b/issue-pure.spec
index 4565310..7a81e6b 100644
--- a/issue-pure.spec
+++ b/issue-pure.spec
@@ -1,5 +1,4 @@
-%define	distnamever	%(. /etc/os-release 2>/dev/null ; echo $VERSION)
-%define	distversion	%([ -e /etc/os-release ] && . /etc/os-release 2>/dev/null ; echo ${VERSION_ID:-0})
+%define	distversion	%(. /etc/os-release 2>/dev/null ; echo $VERSION)
 
 Summary:	PLD Linux prelogin message and identification file
 Summary(de.UTF-8):	PLD Linux Systemidentifikationsdatei
@@ -11,7 +10,7 @@ Summary(pl.UTF-8):	Plik identyfikujący system PLD Linux, wyświetlany przed zal
 Summary(pt.UTF-8):	Mensagem anteriores ao login e arquivo de identificaçăo do PLD Linux
 Summary(ru.UTF-8):	Файл идентификации, содержащий сообщение, выдаваемым перед приглашением в систему PLD Linux
 Name:		issue-pure
-Version:	%{distversion}
+Version:	3.0
 Release:	2
 License:	GPL
 Group:		Base
@@ -61,7 +60,7 @@ rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT%{_sysconfdir}
 
 cat > $RPM_BUILD_ROOT%{_sysconfdir}/issue <<EOF
-PLD Linux %{distnamever} \m, \r
+PLD Linux %{distversion} \m, \r
 Welcome to \n
 \u user(s)
 
@@ -69,7 +68,7 @@ EOF
 echo -ne "\l " >> $RPM_BUILD_ROOT%{_sysconfdir}/issue
 
 cat > $RPM_BUILD_ROOT%{_sysconfdir}/issue.net <<EOF
-PLD Linux %{distnamever} %m, %r
+PLD Linux %{distversion} %m, %r
 Welcome to %h
 
 EOF
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/issue-pure.git/commitdiff/16a3829592cf5fcaf29a4ec1a0eac83d2a2649be



More information about the pld-cvs-commit mailing list