*** empty log message ***
This commit is contained in:
parent
0a391eaf10
commit
bc92ca06a7
|
@ -1,138 +0,0 @@
|
|||
|
||||
%define name alliance
|
||||
%define ver 5.0
|
||||
%define release 20020620
|
||||
%define prefix /usr/local/alliance
|
||||
|
||||
|
||||
Name: %{name}
|
||||
Summary: Alliance VLSI CAD Sytem
|
||||
Version: %{ver}
|
||||
Release: %{release}
|
||||
Copyright: GPL
|
||||
Group: Applications/VLSI
|
||||
Source: %{name}-%{ver}.tar.gz
|
||||
URL: http://www-asim.lip6.fr/alliance/
|
||||
Packager: Jean-Paul Chaput <Jean-Paul.Chaput@lip6.fr>
|
||||
BuildRoot: /var/tmp/root-%{name}
|
||||
|
||||
|
||||
|
||||
%description
|
||||
Alliance is a complete set of free CAD tools and portable libraries for
|
||||
VLSI design. It includes a VHDL compiler and simulator, logic synthesis
|
||||
tools, and automatic place and route tools. A complete set of portable
|
||||
CMOS libraries is provided, including a RAM generator, a ROM generator
|
||||
and a data-path compiler. Alliance is the result of a ten year effort
|
||||
spent at ASIM department of LIP6 laboratory of the Pierre et Marie Curie
|
||||
University (Paris VI, France). Alliance has been used for research projects
|
||||
such as the 875 000 transistors StaCS superscalar microprocessor and 400 000
|
||||
transistors IEEE Gigabit HSL Router.
|
||||
|
||||
|
||||
%package sources
|
||||
Summary: Alliance VLSI CAD Sytem - sources
|
||||
Group: Applications/VLSI
|
||||
|
||||
|
||||
%description sources
|
||||
Sources of the Alliance VLSI CAD System, as you might guess...
|
||||
|
||||
|
||||
%prep
|
||||
%setup -n %{name}-%{ver}
|
||||
|
||||
|
||||
%build
|
||||
if [ -d %{buildroot} ]; then rm -r %{buildroot}; fi
|
||||
|
||||
# Should be done in the Makefiles...
|
||||
mkdir -p %{buildroot}%{prefix}/etc
|
||||
|
||||
# As we use libraries for tools that we build in the same run, we have to
|
||||
# do the "install" step within the "build" step.
|
||||
|
||||
export CPPFLAGS="-I%{buildroot}%{prefix}/include"
|
||||
export LIBS="-L%{buildroot}%{prefix}/lib"
|
||||
export ALLIANCE_TOP=%{prefix}
|
||||
|
||||
mkdir %{_os}
|
||||
if [ ! -f configure ]; then
|
||||
./autostuff
|
||||
fi
|
||||
cd %{_os}
|
||||
../configure --prefix=%{prefix}
|
||||
make DESTDIR=%{buildroot} install
|
||||
|
||||
cd ..
|
||||
rm -r %{_os}
|
||||
|
||||
|
||||
%install
|
||||
# Clean the source tree.
|
||||
#(cd src; ./autostuff clean)
|
||||
|
||||
# Copy the sources in the install tree.
|
||||
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,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 \
|
||||
%{buildroot}%{prefix}/etc/alc_env.csh
|
||||
|
||||
|
||||
%post
|
||||
ln -sf %{prefix}/etc/alc_env.sh /etc/profile.d
|
||||
ln -sf %{prefix}/etc/alc_env.csh /etc/profile.d
|
||||
|
||||
|
||||
%preun
|
||||
if [ $1 -eq 0 ]; then
|
||||
rm -f /etc/profile.d/alc_env.sh
|
||||
rm -f /etc/profile.d/alc_env.csh
|
||||
fi
|
||||
|
||||
|
||||
%clean
|
||||
if [ -d %{buildroot} ]; then rm -r %{buildroot}; fi
|
||||
|
||||
|
||||
%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}/bin/*
|
||||
%{prefix}/lib/*
|
||||
%{prefix}/include/*
|
||||
%{prefix}/man/man?/*
|
||||
|
||||
|
||||
%files sources
|
||||
%{prefix}/src
|
||||
|
||||
|
||||
%changelog
|
||||
* Thu May 16 2002 Jean-Paul.Chaput <Jean-Paul.Chaput@lip6.fr>
|
||||
- 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 <Jean-Paul.Chaput@lip6.fr>
|
||||
- Initial packaging for release 5.0 (alpha stage).
|
|
@ -1,7 +1,7 @@
|
|||
# $Id: Makefile.am,v 1.3 2002/05/12 19:58:57 jpc Exp $
|
||||
# $Id: Makefile.am,v 1.4 2002/06/25 14:09:38 czo Exp $
|
||||
|
||||
etcdir=$(prefix)/etc
|
||||
|
||||
etc_DATA=alc_env.csh alc_env.sh
|
||||
etc_SCRIPTS=alc_env.csh alc_env.sh
|
||||
|
||||
EXTRA_DIST=$(etc_DATA) alc_env.csh.in alc_env.sh.in
|
||||
EXTRA_DIST=alc_env.csh.in alc_env.sh.in
|
||||
|
|
|
@ -4,34 +4,36 @@
|
|||
# Copyright (C) 1999, 2000 Czo <Olivier.Sirol@lip6.fr>
|
||||
# License: GPL (http://www.gnu.org/copyleft/gpl.html)
|
||||
# Started: April 2000
|
||||
# Last Change: Thursday 06 June 2002, 14:45
|
||||
# Edit Time: 127:43:45
|
||||
# Last Change: Tuesday 25 June 2002, 16:08
|
||||
# Edit Time: 202:41:33
|
||||
# Description:
|
||||
#
|
||||
# $Id: mkdistrib,v 1.3 2002/06/06 12:46:26 czo Exp $
|
||||
# $Id: mkdistrib,v 1.4 2002/06/25 14:09:37 czo Exp $
|
||||
#
|
||||
|
||||
###################################################################
|
||||
#set -x
|
||||
#set -v
|
||||
|
||||
DISTRIBDIR=/users/soft5/newlabo/distrib
|
||||
ALC_DISTRIBDIR=/users/soft5/newlabo/distrib
|
||||
|
||||
WKSLIST="bip beny"
|
||||
FTPDISTRIBDIR=/users/largo2/ftp/pub/alliance/unstable/distribution
|
||||
LOGFILE=/tmp/albuild.$$
|
||||
ALC_WKSLIST="bip beny"
|
||||
ALC_FTPDISTRIBDIR=/users/largo2/ftp/pub/alliance/unstable/distribution
|
||||
ALC_LOGFILE=/tmp/albuild.$$
|
||||
|
||||
DATE=`date +%Y%m%d`
|
||||
ALC_RELEASE=`date +%Y%m%d`
|
||||
|
||||
ALC_VER="5.0"
|
||||
ALC_DIR="alliance-$ALC_VER"
|
||||
ALC_PACK="$ALC_DIR-$DATE"
|
||||
ALC_VERSION="5.0"
|
||||
ALC_DIR="alliance-$ALC_VERSION"
|
||||
ALC_PACK="$ALC_DIR-$ALC_RELEASE"
|
||||
|
||||
ALC_TMPDIR=tmp-$$
|
||||
TMPBUILD=tmpbuild-$$
|
||||
TMPINSTALL=tmpinstall-$$
|
||||
TMPALLIANCE=alliance-tmp-$$
|
||||
ALC_TMPBUILD=tmpbuild-$$
|
||||
ALC_TMPINSTALL=tmpinstall-$$
|
||||
ALC_TMPALLIANCE=alliance-tmp-$$
|
||||
|
||||
TMPDESTDIR=tmpdestdir-$$
|
||||
TMPBUILDDIR=tmpbuilddir-$$
|
||||
ALC_TMPDESTDIR=tmpdestdir-$$
|
||||
ALC_TMPBUILDDIR=tmpbuilddir-$$
|
||||
|
||||
CVSROOT=/users/outil/alliance/cvsroot
|
||||
export CVSROOT
|
||||
|
@ -75,43 +77,75 @@ echo -e "\
|
|||
echo ""
|
||||
}
|
||||
|
||||
try() {
|
||||
$*
|
||||
try1() {
|
||||
((
|
||||
echo "--> TRY $*"
|
||||
$*
|
||||
EXECEXIT=$?
|
||||
if [ $EXECEXIT != 0 ] ; then
|
||||
fail
|
||||
echo "TRYFAIL $*"
|
||||
echo " <-- ERROR: $*"
|
||||
exit $EXECEXIT
|
||||
else
|
||||
echo "TRYOK $*"
|
||||
echo " <-- OK: $*"
|
||||
fi
|
||||
) | perl -ne 'printf("%s%s", "[m", $_)' ) 2>&1 | perl -ne 'printf("%s%s%s", "[1;31;40m", $_, "[m")'
|
||||
}
|
||||
|
||||
try() {
|
||||
echo "--> TRY $*"
|
||||
$*
|
||||
EXECEXIT=$?
|
||||
if [ $EXECEXIT != 0 ] ; then
|
||||
fail
|
||||
echo " <-- ERROR: $*"
|
||||
exit $EXECEXIT
|
||||
else
|
||||
echo " <-- OK: $*"
|
||||
fi
|
||||
}
|
||||
|
||||
###################################################################
|
||||
echo "--> mk-distrib"
|
||||
|
||||
try cd $DISTRIBDIR
|
||||
((
|
||||
echo "%%%%%%%%%%%%%%% mk-distrib"
|
||||
|
||||
echo "--> Removing old test..."
|
||||
try cd $ALC_DISTRIBDIR
|
||||
|
||||
echo "%%%%%%%%%%%%%%% Removing old test..."
|
||||
mkdir $ALC_TMPDIR
|
||||
mv alliance* tmpdestdir-* tmpbuilddir-* $ALC_TMPDIR
|
||||
rm -fr $ALC_TMPDIR &
|
||||
|
||||
echo "--> Checkout CVS sources..."
|
||||
echo "%%%%%%%%%%%%%%% Checkout CVS sources..."
|
||||
if true
|
||||
then
|
||||
cvs co -P -r TAG_DISTRIB alliance/src
|
||||
else
|
||||
cvs co -P alliance/src/mbk
|
||||
for f in Makefile.am alliance.m4 autostuff configure.in motif.m4 xpm.m4 ylwrap
|
||||
do
|
||||
cvs co alliance/src/$f
|
||||
done
|
||||
fi
|
||||
|
||||
echo "--> Makedist, generation de alliance-5.0.tar.gz"
|
||||
perl -pi -e "s§AC_DEFINE_UNQUOTED.*ALLIANCE_VERSION.*§AC_DEFINE_UNQUOTED(ALLIANCE_VERSION, \"$ALC_VERSION \[$ALC_RELEASE\]\")§" alliance/src/alliance.m4
|
||||
|
||||
perl -p -e "s§MYSPEC_VERSION§$ALC_VERSION§ ; s§MYSPEC_RELEASE§$ALC_RELEASE§" alliance/src/distrib/myspec > alliance/src/distrib/alliance.spec
|
||||
|
||||
|
||||
echo "%%%%%%%%%%%%%%% Makedist, generation de alliance-5.0.tar.gz"
|
||||
|
||||
try cd alliance/src
|
||||
|
||||
try ./autostuff
|
||||
cd ..
|
||||
mkdir $TMPBUILD
|
||||
mkdir $TMPINSTALL
|
||||
try cd $TMPBUILD
|
||||
mkdir $ALC_TMPBUILD
|
||||
mkdir $ALC_TMPINSTALL
|
||||
try cd $ALC_TMPBUILD
|
||||
|
||||
export ALLIANCE_TOP=$DISTRIBDIR/alliance/$TMPINSTALL
|
||||
export ALLIANCE_TOP=$ALC_DISTRIBDIR/alliance/$ALC_TMPINSTALL
|
||||
export ALLIANCE_TOP
|
||||
|
||||
try ../src/configure --prefix=$ALLIANCE_TOP
|
||||
|
||||
|
@ -119,31 +153,42 @@ try make install
|
|||
try make distcheck
|
||||
|
||||
mv "$ALC_DIR.tar.gz" "$ALC_PACK.tar.gz"
|
||||
cp -f "$ALC_PACK.tar.gz" $FTPDISTRIBDIR
|
||||
mv -f "$ALC_PACK.tar.gz" ../..
|
||||
|
||||
cd ../..
|
||||
|
||||
mv alliance $TMPALLIANCE
|
||||
(chmod -R 777 $TMPALLIANCE ; rm -fr $TMPALLIANCE)&
|
||||
mv alliance $ALC_TMPALLIANCE
|
||||
(chmod -R 777 $ALC_TMPALLIANCE ; rm -fr $ALC_TMPALLIANCE)&
|
||||
|
||||
try tar -xvzf "$ALC_PACK.tar.gz"
|
||||
|
||||
for WKS in $WKSLIST
|
||||
ALLIANCE_TOP=/usr/local/alliance
|
||||
export ALLIANCE_TOP
|
||||
|
||||
for WKS in $ALC_WKSLIST
|
||||
do
|
||||
|
||||
mkdir $TMPDESTDIR-$WKS $TMPBUILDDIR-$WKS
|
||||
ssh -n $WKS "cd $DISTRIBDIR/$TMPBUILDDIR-$WKS ; \
|
||||
export ALLIANCE_TOP=$DISTRIBDIR/$TMPDESTDIR-$WKS/usr/local/alliance; \
|
||||
echo "%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% $ALLIANCE_TOP" ; \
|
||||
try mkdir $ALC_TMPDESTDIR-$WKS $ALC_TMPBUILDDIR-$WKS
|
||||
ssh -n $WKS "cd $ALC_DISTRIBDIR/$ALC_TMPBUILDDIR-$WKS ; \
|
||||
ALLIANCE_TOP=$ALC_DISTRIBDIR/$ALC_TMPDESTDIR-$WKS/usr/local/alliance ; \
|
||||
export ALLIANCE_TOP ; \
|
||||
../$ALC_DIR/configure --prefix=/usr/local/alliance ; \
|
||||
make DESTDIR=$ALLIANCE_TOP install" 2>&1 | tee $LOGFILE
|
||||
|
||||
gmake DESTDIR=$ALC_DISTRIBDIR/$ALC_TMPDESTDIR-$WKS install && echo Alliance_compilation_OK" 2>&1 | tee $ALC_LOGFILE
|
||||
try grep Alliance_compilation_OK $ALC_LOGFILE
|
||||
try cd $ALC_DISTRIBDIR/$ALC_TMPDESTDIR-$WKS/usr/local
|
||||
try tar chozf $ALC_DISTRIBDIR/$ALC_PACK-$WKS.tar.gz alliance
|
||||
try cd $ALC_DISTRIBDIR
|
||||
done
|
||||
|
||||
echo "done..."
|
||||
echo "########### O K pour tout le monde #############"
|
||||
try mv $ALC_PACK-bip.tar.gz $ALC_PACK-i386-linux-2.4.9.tar.gz
|
||||
try mv $ALC_PACK-beny.tar.gz $ALC_PACK-sparc-solaris-2.7.tar.gz
|
||||
|
||||
try rpm -ta $ALC_PACK-i386-linux-2.4.9.tar.gz
|
||||
|
||||
try cp -f "$ALC_PACK.tar.gz" $ALC_FTPDISTRIBDIR
|
||||
try cp -f "$ALC_PACK-i386-linux-2.4.9.tar.gz" $ALC_FTPDISTRIBDIR
|
||||
try cp -f "$ALC_PACK-sparc-solaris-2.7.tar.gz" $ALC_FTPDISTRIBDIR
|
||||
|
||||
|
||||
|
||||
) | perl -ne '$|=1; printf("%s%s", "[m", $_)' ) 2>&1 | perl -ne '$|=1; printf("%s%s%s", "[1;31;40m", $_, "[m")'
|
||||
|
||||
|
|
|
@ -0,0 +1,87 @@
|
|||
# RPM SPEC file for Alliance
|
||||
# (C) 2000, Czo [Olivier Sirol]
|
||||
# -*- vim: set filetype=spec: -*-
|
||||
# rpm -ba /var/tmp/czo/rpm/SPECS/alliance.spec
|
||||
# avec $HOME/.rpmmacros :
|
||||
# %_topdir /var/tmp/czo/rpm
|
||||
# $Id: myspec,v 1.1 2002/06/25 14:09:38 czo Exp $
|
||||
|
||||
%define name alliance
|
||||
%define prefix /usr/local/alliance
|
||||
%define version MYSPEC_VERSION
|
||||
%define release MYSPEC_RELEASE
|
||||
|
||||
|
||||
Name: %{name}
|
||||
Version: %{version}
|
||||
Release: %{release}
|
||||
Source: %{name}-%{version}-%{release}.tar.gz
|
||||
Summary: Alliance, a free VLSI CAD System
|
||||
Url: http://www-asim.lip6.fr/alliance/
|
||||
Copyright: LGPL/GPL
|
||||
Vendor: LIP6
|
||||
Packager: Czo <Olivier.Sirol@lip6.fr>
|
||||
Group: Applications/VLSI
|
||||
Buildroot: /var/tmp/root-%{name}-%{version}-%{release}
|
||||
|
||||
%description
|
||||
|
||||
Alliance is a complete set of free CAD tools and portable libraries for
|
||||
VLSI design. It includes a VHDL compiler and simulator, logic synthesis
|
||||
tools, and automatic place and route tools. A complete set of portable
|
||||
CMOS libraries is provided. Alliance is the result of a ten year effort
|
||||
spent at ASIM departement of LIP6 laboratory of the Pierre et Marie
|
||||
Curie University (Paris VI, France). Alliance has been used for
|
||||
research projects such as the 875 000 transistors StaCS superscalar
|
||||
microprocessor and 400 000 transistors IEEE Gigabit HSL Router.
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
|
||||
%build
|
||||
if [ -d %{buildroot} ]; then rm -rf %{buildroot}; fi
|
||||
|
||||
%install
|
||||
# As we use libraries for tools that we build in the same run, we have to
|
||||
# do the "install" step within the "build" step.
|
||||
|
||||
export CPPFLAGS="-I%{buildroot}%{prefix}/include"
|
||||
export LIBS="-L%{buildroot}%{prefix}/lib"
|
||||
export ALLIANCE_TOP=%{prefix}
|
||||
|
||||
mkdir %{_os}
|
||||
cd %{_os}
|
||||
../configure --prefix=%{prefix}
|
||||
make DESTDIR=%{buildroot} install
|
||||
cd ..
|
||||
rm -r %{_os}
|
||||
|
||||
%post
|
||||
ln -sf %{prefix}/etc/alc_env.sh /etc/profile.d
|
||||
ln -sf %{prefix}/etc/alc_env.csh /etc/profile.d
|
||||
|
||||
%preun
|
||||
if [ $1 -eq 0 ]; then
|
||||
rm -f /etc/profile.d/alc_env.sh
|
||||
rm -f /etc/profile.d/alc_env.csh
|
||||
fi
|
||||
|
||||
%clean
|
||||
if [ -d %{buildroot} ]; then rm -rf %{buildroot}; fi
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%{prefix}
|
||||
|
||||
|
||||
%changelog
|
||||
* Tue Jun 25 2002 Czo <Olivier.Sirol@lip6.fr>
|
||||
- real .spec from Jean-Paul Chaput's one, with same
|
||||
numbering scheme as before :
|
||||
alliance-5.0-20020624 where 20020624 is the date
|
||||
of checkout.
|
||||
* Tue Jun 5 2001 Czo <Olivier.Sirol@lip6.fr>
|
||||
- ./configure done on RedHat 7.1.
|
||||
* Wed Feb 2 2000 Czo <Olivier.Sirol@lip6.fr>
|
||||
- Packaged from the tgz distrib.
|
||||
|
Loading…
Reference in New Issue