* 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. * 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).
This commit is contained in:
parent
3dc944d982
commit
2c8d46b47f
|
@ -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
|
SUBDIRS = doc etc
|
||||||
|
|
||||||
|
|
||||||
|
EXTRA_DIST = alliance.spec.in alliance.spec
|
||||||
|
|
|
@ -77,6 +77,21 @@ Sources of the Alliance VLSI CAD System, as you might guess...
|
||||||
mkdir -p %{buildroot}%{prefix}/src
|
mkdir -p %{buildroot}%{prefix}/src
|
||||||
tar cf - * | (cd %{buildroot}%{prefix}/src; tar xvf -)
|
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
|
%post
|
||||||
ln -sf %{prefix}/etc/alc_env.sh /etc/profile.d
|
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
|
%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}/cells/*
|
||||||
%{prefix}/etc/*
|
|
||||||
%{prefix}/bin/*
|
%{prefix}/bin/*
|
||||||
%{prefix}/lib/*
|
%{prefix}/lib/*
|
||||||
%{prefix}/include/*
|
%{prefix}/include/*
|
||||||
|
|
|
@ -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
|
etcdir=$(prefix)/etc
|
||||||
|
|
||||||
etc_DATA=alc_env.csh alc_env.sh
|
etc_DATA=alc_env.csh alc_env.sh
|
||||||
|
|
||||||
EXTRA_DIST=$(etc_DATA)
|
EXTRA_DIST=$(etc_DATA) alc_env.csh.in alc_env.sh.in
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue