From 2c8d46b47f13ea699ae12bd9c30539b280355a05 Mon Sep 17 00:00:00 2001 From: Jean-Paul Chaput Date: Sun, 12 May 2002 19:58:57 +0000 Subject: [PATCH] * distrib/alliance.spec.in : - Utilisation de %attr() pour forcer les droits en execution des scripts alc_env.*. Les scripts doivent etre executables pour que le profile.d en tienne compte. - Substitution d'ALLIANCE_TOP dans les scripts au moment de la creation du package : le prefix peut etre different de celui qui a ete donne au moment de l'execution du configure, il faut le mettre a jour. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * distrib/Makefile.am : - Ajout des fichiers alliance.spec.in et alliance.spec dans la liste des fichiers distribués (EXTRA_DIST). Distribuer le ".spec" dans le ".tar.gz" permet de reconstruire les RPMs avec l'option "-ta". * distrib/etc/Makefile.am : - Ajout des fichiers alc_env.*.in dans la liste des fichiers distribues (EXTRA_DIST). --- alliance/src/distrib/Makefile.am | 5 ++++- alliance/src/distrib/alliance.spec.in | 24 +++++++++++++++++++++++- alliance/src/distrib/etc/Makefile.am | 5 ++--- 3 files changed, 29 insertions(+), 5 deletions(-) diff --git a/alliance/src/distrib/Makefile.am b/alliance/src/distrib/Makefile.am index 7f2e75d7..93852f42 100644 --- a/alliance/src/distrib/Makefile.am +++ b/alliance/src/distrib/Makefile.am @@ -1,3 +1,6 @@ -# $Id: Makefile.am,v 1.1 2002/05/07 10:39:29 czo Exp $ +# $Id: Makefile.am,v 1.2 2002/05/12 19:58:46 jpc Exp $ SUBDIRS = doc etc + + +EXTRA_DIST = alliance.spec.in alliance.spec diff --git a/alliance/src/distrib/alliance.spec.in b/alliance/src/distrib/alliance.spec.in index a4cb972d..919fdecd 100644 --- a/alliance/src/distrib/alliance.spec.in +++ b/alliance/src/distrib/alliance.spec.in @@ -77,6 +77,21 @@ Sources of the Alliance VLSI CAD System, as you might guess... mkdir -p %{buildroot}%{prefix}/src tar cf - * | (cd %{buildroot}%{prefix}/src; tar xvf -) +# Set execution rights on the alc_env.* batchs and adjust ALLIANCE_TOP. +# This is not clean and has to be moved in the package itself in the +# future. + chmod a+rx %{buildroot}%{prefix}/etc/alc_env.* + sed "s,ALLIANCE_TOP *= *\([^;]*\),ALLIANCE_TOP=%{prefix}," \ + %{buildroot}%{prefix}/etc/alc_env.sh > \ + %{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}," \ + %{buildroot}%{prefix}/etc/alc_env.csh > \ + %{buildroot}%{prefix}/etc/alc_env.csh.1 + mv %{buildroot}%{prefix}/etc/alc_env.csh.1 \ + %{buildroot}%{prefix}/etc/alc_env.csh + %post ln -sf %{prefix}/etc/alc_env.sh /etc/profile.d @@ -93,8 +108,15 @@ Sources of the Alliance VLSI CAD System, as you might guess... %files +%attr(755, root, root) %{prefix}/etc/alc_env.* +%{prefix}/etc/*.dreal +%{prefix}/etc/*.graal +%{prefix}/etc/*.rds +%{prefix}/etc/*.elp +%{prefix}/etc/*.cfg +%{prefix}/etc/*.par +%{prefix}/etc/*.scapin %{prefix}/cells/* -%{prefix}/etc/* %{prefix}/bin/* %{prefix}/lib/* %{prefix}/include/* diff --git a/alliance/src/distrib/etc/Makefile.am b/alliance/src/distrib/etc/Makefile.am index 8f773c9e..1fccbf34 100644 --- a/alliance/src/distrib/etc/Makefile.am +++ b/alliance/src/distrib/etc/Makefile.am @@ -1,8 +1,7 @@ -# $Id: Makefile.am,v 1.2 2002/05/08 21:07:25 jpc Exp $ +# $Id: Makefile.am,v 1.3 2002/05/12 19:58:57 jpc Exp $ etcdir=$(prefix)/etc etc_DATA=alc_env.csh alc_env.sh -EXTRA_DIST=$(etc_DATA) - +EXTRA_DIST=$(etc_DATA) alc_env.csh.in alc_env.sh.in