From f58de63f1a8cf8ad73a59a01f075a658a8058db9 Mon Sep 17 00:00:00 2001 From: Jean-Paul Chaput Date: Thu, 16 May 2002 22:24:32 +0000 Subject: [PATCH] * distrib/alliance.spec.in : - Correction d'une substitution foireuse d'ALLIANCE_TOP dans "alc_env.csh" (dans la procedure de rectification de @prefix@). - Dans %post : on ne detruit les liens symboliques dans /etc/profile.d que si l'on est le dernier package a etre desinstalle (pour eviter qu'en cas d'upgrade les liens ne soit detruits). - Incrementation du tag : "alpha.2". --- alliance/src/distrib/alliance.spec.in | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/alliance/src/distrib/alliance.spec.in b/alliance/src/distrib/alliance.spec.in index 919fdecd..fb14939e 100644 --- a/alliance/src/distrib/alliance.spec.in +++ b/alliance/src/distrib/alliance.spec.in @@ -1,7 +1,7 @@ %define name alliance %define ver @VERSION@ -%define tag alpha.1 +%define tag alpha.2 %define release 1.asim.1 %define prefix @prefix@ @@ -86,7 +86,7 @@ Sources of the Alliance VLSI CAD System, as you might guess... %{buildroot}%{prefix}/etc/alc_env.sh.1 mv %{buildroot}%{prefix}/etc/alc_env.sh.1 \ %{buildroot}%{prefix}/etc/alc_env.sh - sed "s,ALLIANCE_TOP *\([^;]*\),ALLIANCE_TOP %{prefix}," \ + sed "s,setenv *ALLIANCE_TOP *\([^;]*\), setenv ALLIANCE_TOP %{prefix}," \ %{buildroot}%{prefix}/etc/alc_env.csh > \ %{buildroot}%{prefix}/etc/alc_env.csh.1 mv %{buildroot}%{prefix}/etc/alc_env.csh.1 \ @@ -99,8 +99,10 @@ Sources of the Alliance VLSI CAD System, as you might guess... %preun - rm -f /etc/profile.d/alc_env.sh - rm -f /etc/profile.d/alc_env.csh + if [ $1 -eq 0 ]; then + rm -f /etc/profile.d/alc_env.sh + rm -f /etc/profile.d/alc_env.csh + fi %clean @@ -128,5 +130,10 @@ Sources of the Alliance VLSI CAD System, as you might guess... %changelog +* Thu May 16 2002 Jean-Paul.Chaput +- Corrected buggy substitution of ALLIANCE_TOP in alc_env.csh. +- Remove the alc_env.* scripts in "/etc/profile.d" only if this + is the last package to be removed. + * Mon May 6 2002 Jean-Paul.Chaput - Initial packaging for release 5.0 (alpha stage).