* distrib/alliance.spec.in :

- Mise a jour pour les librairies dynamiques.
This commit is contained in:
Jean-Paul Chaput 2002-10-16 14:17:04 +00:00
parent de37729db3
commit 5a7f474469
1 changed files with 43 additions and 9 deletions

View File

@ -1,15 +1,15 @@
%define name alliance %define name alliance
%define ver @VERSION@ %define ver @VERSION@
%define tag alpha.4 %define release 20021016
%define release 1.asim.1 %define tag alpha.1
%define prefix @prefix@ %define prefix @prefix@
Name: %{name} Name: %{name}
Summary: Alliance VLSI CAD Sytem Summary: Alliance VLSI CAD Sytem
Version: %{ver}.%{tag} Version: %{ver}
Release: %{release} Release: %{release}.%{tag}
Copyright: GPL Copyright: GPL
Group: Applications/VLSI Group: Applications/VLSI
Source: %{name}-%{ver}.tar.gz Source: %{name}-%{ver}.tar.gz
@ -31,6 +31,15 @@ such as the 875 000 transistors StaCS superscalar microprocessor and 400 000
transistors IEEE Gigabit HSL Router. transistors IEEE Gigabit HSL Router.
#%package tutorials
#Summary: Alliance VLSI CAD Sytem - tutorials
#Group: Applications/VLSI
#%description tutorials
#Some tutorails for the Alliance VLSI CAD Sytem.
%package sources %package sources
Summary: Alliance VLSI CAD Sytem - sources Summary: Alliance VLSI CAD Sytem - sources
Group: Applications/VLSI Group: Applications/VLSI
@ -62,7 +71,7 @@ Sources of the Alliance VLSI CAD System, as you might guess...
./autostuff ./autostuff
fi fi
cd %{_os} cd %{_os}
../configure --prefix=%{prefix} ../configure --prefix=%{prefix} --enable-alc-shared
make DESTDIR=%{buildroot} install make DESTDIR=%{buildroot} install
cd .. cd ..
@ -78,9 +87,9 @@ Sources of the Alliance VLSI CAD System, as you might guess...
tar cf - * | (cd %{buildroot}%{prefix}/src; tar xvf -) tar cf - * | (cd %{buildroot}%{prefix}/src; tar xvf -)
# Copy the Alliance autoconf macros in the right place. # Copy the Alliance autoconf macros in the right place.
mkdir -p %{buildroot}/usr/share/aclocal #mkdir -p %{buildroot}/usr/share/aclocal
(cd %{buildroot}%{prefix}/src; \ #(cd %{buildroot}%{prefix}/src; \
cp alliance.m4 xpm.m4 motif.m4 %{buildroot}/usr/share/aclocal) # cp alliance.m4 xpm.m4 motif.m4 %{buildroot}/usr/share/aclocal)
# Set execution rights on the alc_env.* batchs and adjust ALLIANCE_TOP. # 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 # This is not clean and has to be moved in the package itself in the
@ -102,14 +111,28 @@ Sources of the Alliance VLSI CAD System, as you might guess...
ln -sf %{prefix}/etc/alc_env.sh /etc/profile.d ln -sf %{prefix}/etc/alc_env.sh /etc/profile.d
ln -sf %{prefix}/etc/alc_env.csh /etc/profile.d ln -sf %{prefix}/etc/alc_env.csh /etc/profile.d
grep "^%{prefix}/lib$" /etc/ld.so.conf &> /dev/null
[ $? -ne 0 ] && echo "%{prefix}/lib" >> /etc/ld.so.conf
/sbin/ldconfig
%preun %preun
if [ $1 -eq 0 ]; then if [ $1 -eq 0 ]; then
rm -f /etc/profile.d/alc_env.sh rm -f /etc/profile.d/alc_env.sh
rm -f /etc/profile.d/alc_env.csh rm -f /etc/profile.d/alc_env.csh
grep -v "^%{prefix}/lib$" /etc/ld.so.conf > /etc/ld.so.conf.new
# preserve permissions
cat /etc/ld.so.conf.new > /etc/ld.so.conf
rm -f /etc/ld.so.conf.new
/sbin/ldconfig
fi fi
%clean %clean
if [ -d %{buildroot} ]; then rm -r %{buildroot}; fi if [ -d %{buildroot} ]; then rm -r %{buildroot}; fi
@ -131,12 +154,23 @@ Sources of the Alliance VLSI CAD System, as you might guess...
%{prefix}/doc/* %{prefix}/doc/*
#%files tutorials
#%{prefix}/tutorials
%files sources %files sources
%{prefix}/src %{prefix}/src
/usr/share/aclocal/*.m4 #/usr/share/aclocal/*.m4
%changelog %changelog
* Sun Oct 13 2002 Jean-Paul.Chaput <Jean-Paul.Chaput@lip6.fr>
- autoconf m4 macros moved back in the Alliance source tree to avoid
re-declaration on our development computers (on which the macros
are in teh source tree).
- Adopt the versioning scheme from czo.
- Try to switch to dynamic libraries.
* Wed Jul 17 2002 Jean-Paul.Chaput <Jean-Paul.Chaput@lip6.fr> * Wed Jul 17 2002 Jean-Paul.Chaput <Jean-Paul.Chaput@lip6.fr>
- Moved autoconf m4 macros to /usr/share/aclocal. - Moved autoconf m4 macros to /usr/share/aclocal.
- Synched with the current CVS version of Alliance. - Synched with the current CVS version of Alliance.