This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: gcc-2.95: Naming of the TAR file? GCC-2.95.tar.gz? gcc-2.95.tar.gz?


While on the subject of making an RPM, I used to make RPMS from the
snapshots for RedHat Contrib|Net, and I've attached the .spec file and
patches I needed. The .spec makes a couple of additional info files, runs
the testsuite and packages the results, and adds libgcj to the RPM.

-- arvind

On Sun, Jul 25, 1999 at 09:57:22AM +0200, Franz Sirl wrote:
> Am Sam, 24 Jul 1999 schrieb Jeffrey A Law:
> >In message <4.2.0.58.19990722125609.00ab06c0@mail.lauterbach.com>you write:
> >  > to package it with the uppercase GCC, it came to me that this might be not 
> >  > a good idea at all if the TAR file still uses the lowercase gcc. I think 
> >  > the naming should be consistent. What's the position of the steering 
> >  > committee here?
> >  > 
> >  > - gcc-2.95.tar.{gz|bz2} or GCC-2.95.tar.{gz|bz2}?
> >  > - unpack into ./gcc-2.95/ or ./GCC-2.95/?
> >The name of the project is the GCC project.  However, I do not think that
> >means we need to switch to using upper case in the distributions.  In fact,
> >I've always found mixed case in distributions a major pain.
> >
> >So I think we should use "GCC" whenever referring to the project, but
> >continue to use "gcc" for directory names, tarballs, etc.
> 
> I have no strong opinion either way, I just need somekind of final decision
> here. If the TAR packaging would be uppercase GCC-*, I would package the RPM as
> follows:
> 
> GCC-c
> GCC-c++
> ...
> GCC-libstdc++
> 
> But I don't think this is a good idea if the TAR naming is lowercase gcc-*,
> this would just confuse people. If the TAR remains lowercase, staying with the
> RedHat-style package layout seems to be the best solution IMHO:
> 
> cpp
> gcc
> gcc-c++
> ...
> gcc-g77
> libstdc++
> 
> This is the least confusing layout for users of a lot of RPM-based distributions
> (not only RedHat) and for new users it makes no difference.
> 
> The spec is otherwise final now, so if there's some consensus I would run a
> last test and you can put it in the contrib dir of gcc-2.95.
> 
> Franz.
%define EGCS_DATE 19990712
%define LIBGCJ_DATE 1999-07-12
%define EGCS_SS_PREFIX /opt/egcs
%define GCC_VERSION 2.95
Summary: egcs compilation system
Name: gcc-ss
Version: %{GCC_VERSION}
Release: 0.%{EGCS_DATE}.1
Serial: %{EGCS_DATE}
Copyright: GPL
Group: Development/Languages
Source0: ftp://egcs.cygnus.com/pub/egcs/snapshots/egcs-%{EGCS_DATE}/egcs-%{EGCS_DATE}.tar.gz
Source1: ftp://sourceware.cygnus.com/pub/java/snapshots/libgcj-snapshot-%{LIBGCJ_DATE}.tar.bz2
Patch0: egcs-ss-objc.exp.patch
Patch1: egcs-ss-libgcj-config.patch
#Patch2: libgcj-ss-mprec.h.patch
URL: http://egcs.cygnus.com/
Packager: Red Hat Contrib|Net <rhcn-bugs@redhat.com>
Distribution: Red Hat Contrib|Net
BuildRoot: /var/tmp/gcc-ss-%{EGCS_DATE}
Requires: binutils >= 2.9.1.0.15
Obsoletes: egcs-ss

%description
This package contains the x86 native egcs C compiler and the corressponding
libraries.

egcs is a collaborative effort involving several groups of hackers using an
open development model to accelerate development and testing of GNU compilers
and runtime libraries. This package is generated from a snapshot of the current
sources.

Note that this package will install under %{EGCS_SS_PREFIX}, to avoid
overwriting your old compiler.

%package c++
Summary: C++ support for gcc
Group: Development/Languages
Requires: gcc-ss =S %{EGCS_DATE}
Obsoletes: egcs-ss-c++

%description c++
This package adds C++ support to the GNU C compiler. It includes support
for most of the current C++ specification, including templates and
exception handling. It does not include the standard C++ library.

%package libstdc++
Summary: GNU c++ library
Group: Libraries
Obsoletes: egcs-ss-libstdc++

%description libstdc++
This is the GNU implementation of the standard C++ libraries This package
includes the shared libraries necessary to run C++ applications.

%package libstdc++-devel
Summary: Header files and libraries for C++ development
Group: Development/Libraries
Obsoletes: egcs-ss-libstdc++-devel

%description libstdc++-devel
This is the GNU implementation of the standard C++ libraries.  This
package includes the header files and libraries needed for C++
development. This includes SGI's implementation of the STL.

%package objc
Summary: Objective C support for gcc
Group: Development/Languages
Requires: gcc-ss =S %{EGCS_DATE}
Obsoletes: egcs-ss-objc

%description objc
This package adds Objective C support to the GNU C compiler. Objective
C is a object oriented derivative of the C language, mainly used on
systems running NeXTSTEP. This package does not include the standard
objective C object library.

%package g77
Summary: Fortran 77 support for gcc
Group: Development/Languages
Requires: gcc-ss =S %{EGCS_DATE}
Obsoletes: egcs-ss-g77

%description g77
This package adds support for compiling Fortran 77 programs with the GNU
compiler.

%package chill
Summary: CHILL support for gcc
Group: Development/Languages
Requires: gcc-ss =S %{EGCS_DATE}
Obsoletes: egcs-ss-CHILL

%description chill
This package adds support for compiling CHILL programs with the GNU
compiler.

Chill is the "CCITT High-Level Language", where CCITT is the old
name for what is now ITU, the International Telecommunications Union.
It is is language in the Modula2 family, and targets many of the
same applications as Ada (especially large embedded systems).
Chill was never used much in the United States, but is still
being used in Europe, Brazil, Korea, and other places.

%package java
Summary: Java support for gcc
Group: Development/Languages
Url: http://sourceware.cygnus.com/java/
Requires: gcc-ss =S %{EGCS_DATE}
Obsoletes: egcs-ss-java

%description java
This package adds experimental support for compiling Java(tm) programs and
bytecode into native code. To use this you will also need the gcc-ss-libgcj
package.

%package libgcj
Summary: Java runtime library for egcs
Group: Development/Libraries
Url: http://sourceware.cygnus.com/java/
Requires: zip >= 2.1
Obsoletes: egcs-ss-libgcj

%description libgcj
The Java runtime library. You will need this package to compile your Java
programs using the egcs Java compiler (gcj).

%prep
%setup -q -n egcs-%{EGCS_DATE}
%setup -q -a1 -D -T -n egcs-%{EGCS_DATE}
mv libgcj-snapshot-%{LIBGCJ_DATE} libgcj
mv libgcj/boehm-gc libgcj/libjava libgcj/zlib libgcj/zip .
cp -f libgcj/ltmain.sh libgcj/ltconfig .
%patch0 -p1
%patch1 -p1
#%patch2 -p1

%build
rm -fr obj-%{_target_platform}
mkdir obj-%{_target_platform}
cd obj-%{_target_platform}
# FIXME
# --host=%{_target_platform} is weird.
# Should we --enable-haifa?
CFLAGS="$RPM_OPT_FLAGS" ../configure --prefix=%{EGCS_SS_PREFIX} \
	--enable-shared --enable-threads=posix \
	--host=%{_target_platform}
make bootstrap-lean

# run the tests.
# rpm seems to terminate when make -k check fails.
make -k check || true

# FIXME
# The bootstrap-lean target generates some info files, but not all
#   First, try the info target (makes iostream.info and objc-features.info)
make info
#   The others....
make MAKEINFO="`pwd`/texinfo/makeinfo/makeinfo" gcc/cp/g++FAQ.info gcc/cp/gxxint.info

# Copy various doc files here and there
cd ..
mkdir -p rpm.doc/libstdc++ rpm.doc/g77 rpm.doc/chill rpm.doc/objc rpm.doc/libgcj
(cd libio; for i in ChangeLog*; do
	cp -p $i ../rpm.doc/libstdc++/$i.libio
done)
(cd libstdc++; for i in ChangeLog*; do
	cp -p $i ../rpm.doc/libstdc++/$i.libstdc++
done)
(cd gcc/f; for i in ChangeLog*; do
	cp -p $i ../../rpm.doc/g77/$i.f
done)
(cd libf2c; for i in ChangeLog*; do
	cp -p $i ../rpm.doc/g77/$i.libf2c
done)
(cd gcc/ch; for i in ChangeLog*; do
	cp -p $i ../../rpm.doc/chill/$i.ch
done)
(cd libchill; for i in ChangeLog*; do
	cp -p $i ../rpm.doc/chill/$i.libchill
done)
(cd gcc/objc; for i in README*; do
	cp -p $i ../../rpm.doc/objc/$i.objc
done)
(cd libobjc; for i in README*; do
	cp -p $i ../rpm.doc/objc/$i.libobjc
done)
cp -p libgcj/ChangeLog rpm.doc/libgcj/ChangeLog
for i in boehm-gc/ChangeLog libjava/ChangeLog zlib/ChangeLog; do
	cp -p $i rpm.doc/libgcj/ChangeLog.`echo $i | sed 's|/.*||'`
done

%install
rm -fr $RPM_BUILD_ROOT
cd obj-%{_target_platform}
make prefix=$RPM_BUILD_ROOT%{EGCS_SS_PREFIX} install

# FIXME
# Some info files are not installed
install -m 755 -d $RPM_BUILD_ROOT%{EGCS_SS_PREFIX}/info
(cd gcc/cp; for i in g++FAQ.info*; do
	install -m 644 $i $RPM_BUILD_ROOT%{EGCS_SS_PREFIX}/info/$i
done)
(cd gcc/cp; for i in gxxint.info*; do
	install -m 644 $i $RPM_BUILD_ROOT%{EGCS_SS_PREFIX}/info/$i
done)
(cd %{_target_platform}/libio; for i in iostream.info*; do
	install -m 644 $i $RPM_BUILD_ROOT%{EGCS_SS_PREFIX}/info/$i
done)
(cd %{_target_platform}/libobjc; for i in objc-features.info*; do
	install -m 644 $i $RPM_BUILD_ROOT%{EGCS_SS_PREFIX}/info/$i
done)

# get rid of the texinfo crap
make prefix=$RPM_BUILD_ROOT%{EGCS_SS_PREFIX} -C texinfo uninstall

FULLVER=`$RPM_BUILD_ROOT%{EGCS_SS_PREFIX}/bin/%{_target_platform}-gcc --version | \
	cut -d' ' -f1`
FULLPATH=$(dirname $RPM_BUILD_ROOT%{EGCS_SS_PREFIX}/lib/gcc-lib/%{_target_platform}/$FULLVER/cc1)

strip $RPM_BUILD_ROOT%{EGCS_SS_PREFIX}/bin/{c++filt,g++,g77,gcc,gcj,gcjh,gcov,jcf-dump,jv-scan,protoize,unprotoize}
strip $FULLPATH/{cc1,cc1obj,f771,jc1,jvgenmain,cc1chill}

# fix some things
ln -sf gcc $RPM_BUILD_ROOT%{EGCS_SS_PREFIX}/bin/cc

rm -f $RPM_BUILD_ROOT%{EGCS_SS_PREFIX}/info/dir
gzip -n -9f $RPM_BUILD_ROOT%{EGCS_SS_PREFIX}/info/*.info*

ln -sf g77 $RPM_BUILD_ROOT%{EGCS_SS_PREFIX}/bin/f77

ln -sf cccp.1 $RPM_BUILD_ROOT%{EGCS_SS_PREFIX}/man/man1/cpp.1

cd ..
cat >egcs-filelist <<EOF
%defattr(-,root,root)
%{EGCS_SS_PREFIX}/bin/gcc
%{EGCS_SS_PREFIX}/bin/cc
%{EGCS_SS_PREFIX}/bin/protoize
%{EGCS_SS_PREFIX}/bin/unprotoize
%{EGCS_SS_PREFIX}/bin/gcov
%{EGCS_SS_PREFIX}/bin/%{_target_platform}-gcc
%{EGCS_SS_PREFIX}/man/man1/gcc.1
%{EGCS_SS_PREFIX}/man/man1/cpp.1
%{EGCS_SS_PREFIX}/man/man1/cccp.1
%{EGCS_SS_PREFIX}/info/gcc*
%{EGCS_SS_PREFIX}/info/cpp*
%dir %{EGCS_SS_PREFIX}/lib/gcc-lib
%dir %{EGCS_SS_PREFIX}/lib/gcc-lib/%{_target_platform}
%dir %{EGCS_SS_PREFIX}/lib/gcc-lib/%{_target_platform}/%{GCC_VERSION}
%dir %{EGCS_SS_PREFIX}/lib/gcc-lib/%{_target_platform}/%{GCC_VERSION}/include
%{EGCS_SS_PREFIX}/lib/gcc-lib/%{_target_platform}/%{GCC_VERSION}/cc1
%{EGCS_SS_PREFIX}/lib/gcc-lib/%{_target_platform}/%{GCC_VERSION}/cpp
%{EGCS_SS_PREFIX}/lib/gcc-lib/%{_target_platform}/%{GCC_VERSION}/collect2
%{EGCS_SS_PREFIX}/lib/gcc-lib/%{_target_platform}/%{GCC_VERSION}/crt*.o
%{EGCS_SS_PREFIX}/lib/gcc-lib/%{_target_platform}/%{GCC_VERSION}/libgcc.a
%{EGCS_SS_PREFIX}/lib/gcc-lib/%{_target_platform}/%{GCC_VERSION}/SYSCALLS.c.X
%{EGCS_SS_PREFIX}/lib/gcc-lib/%{_target_platform}/%{GCC_VERSION}/specs
%doc gcc/README* gcc/*ChangeLog*
%doc obj-%{_target_platform}/gcc/testsuite/gcc.{log,sum}
EOF

(cd $RPM_BUILD_ROOT%{EGCS_SS_PREFIX}/lib/gcc-lib/%{_target_platform}/%{GCC_VERSION}/include &&
	ls | egrep -v '^((objc)|(exception)|(typeinfo)|(new(\.h)?))$'
) | sed 's|^|%{EGCS_SS_PREFIX}/lib/gcc-lib/%{_target_platform}/%{GCC_VERSION}/include/|' \
	>>egcs-filelist

%clean
rm -rf $RPM_BUILD_ROOT

%post
/sbin/install-info \
        --section="EGCS snapshot:" --entry="* gcc: (gcc).                   The GNU C compiler." \
        --info-dir=%{EGCS_SS_PREFIX}/info %{EGCS_SS_PREFIX}/info/gcc.info.gz
/sbin/install-info \
        --section="EGCS snapshot:" --entry="* cpp: (cpp).                   The C preprocessor." \
        --info-dir=%{EGCS_SS_PREFIX}/info %{EGCS_SS_PREFIX}/info/cpp.info.gz

%preun
if [ $1 = 0 ]; then
   /sbin/install-info --delete \
        --section="EGCS snapshot:" --entry="* cpp: (cpp).                   The C preprocessor." \
        --info-dir=%{EGCS_SS_PREFIX}/info %{EGCS_SS_PREFIX}/info/cpp.info.gz
   /sbin/install-info --delete \
        --section="EGCS snapshot:" --entry="* gcc: (gcc).                   The GNU C compiler." \
        --info-dir=%{EGCS_SS_PREFIX}/info %{EGCS_SS_PREFIX}/info/gcc.info.gz
fi

%post c++
/sbin/install-info \
	--section="EGCS snapshot:" --entry="* g++ FAQ: (g++FAQ).            The egcs C++ compiler FAQ." \
	--info-dir=%{EGCS_SS_PREFIX}/info %{EGCS_SS_PREFIX}/info/g++FAQ.info.gz
/sbin/install-info \
	--section="EGCS snapshot:" --entry="* g++ Internals: (gxxint).      The egcs C++ compiler internals." \
	--info-dir=%{EGCS_SS_PREFIX}/info %{EGCS_SS_PREFIX}/info/gxxint.info.gz

%preun c++
if [ $1 = 0 ]; then
   /sbin/install-info --delete \
	--section="EGCS snapshot:" --entry="* g++ FAQ: (g++FAQ).            The egcs C++ compiler FAQ." \
	--info-dir=%{EGCS_SS_PREFIX}/info %{EGCS_SS_PREFIX}/info/g++FAQ.info.gz
   /sbin/install-info --delete \
	--section="EGCS snapshot:" --entry="* g++ Internals: (gxxint).      The egcs C++ compiler internals." \
	--info-dir=%{EGCS_SS_PREFIX}/info %{EGCS_SS_PREFIX}/info/gxxint.info.gz
fi

%post libstdc++
if ! grep '^%{EGCS_SS_PREFIX}/lib$' /etc/ld.so.conf > /dev/null 2>&1; then
	echo %{EGCS_SS_PREFIX}/lib >>/etc/ld.so.conf
fi
/sbin/ldconfig

%postun libstdc++
if [ "$1" = "0" ]; then
	grep -v "%{EGCS_SS_PREFIX}/lib" /etc/ld.so.conf >/etc/ld.so.conf.new
	mv -f /etc/ld.so.conf.new /etc/ld.so.conf
fi
/sbin/ldconfig

%post libstdc++-devel
/sbin/install-info \
	--section="EGCS snapshot:" --entry="* iostream: (iostream).         The C++ I/O streams library." \
	--info-dir=%{EGCS_SS_PREFIX}/info %{EGCS_SS_PREFIX}/info/iostream.info.gz

%preun libstdc++-devel
if [ $1 = 0 ]; then
   /sbin/install-info --delete \
	--section="EGCS snapshot:" --entry="* iostream: (iostream).         The C++ I/O streams library." \
	--info-dir=%{EGCS_SS_PREFIX}/info %{EGCS_SS_PREFIX}/info/iostream.info.gz
fi

%post objc
/sbin/install-info \
	--section="EGCS snapshot:" --entry="* objc: (objc-features).        The egcs Objective C compiler." \
	--info-dir=%{EGCS_SS_PREFIX}/info %{EGCS_SS_PREFIX}/info/objc-features.info.gz

%preun objc
if [ $1 = 0 ]; then
   /sbin/install-info --delete \
	--section="EGCS snapshot:" --entry="* objc: (objc-features).        The egcs Objective C compiler." \
	--info-dir=%{EGCS_SS_PREFIX}/info %{EGCS_SS_PREFIX}/info/objc-features.info.gz
fi

%post g77
/sbin/install-info \
	--section="EGCS snapshot:" --entry="* g77: (g77).                   The GNU Fortran 77 compiler." \
	--info-dir=%{EGCS_SS_PREFIX}/info %{EGCS_SS_PREFIX}/info/g77.info.gz

%preun g77
if [ $1 = 0 ]; then
   /sbin/install-info --delete \
	--section="EGCS snapshot:" --entry="* g77: (g77).                   The GNU Fortran 77 compiler." \
	--info-dir=%{EGCS_SS_PREFIX}/info %{EGCS_SS_PREFIX}/info/g77.info.gz
fi

%post chill
/sbin/install-info \
	--section="EGCS snapshot:" --entry="* CHILL: (chill).               The egcs CHILL compiler." \
	--info-dir=%{EGCS_SS_PREFIX}/info %{EGCS_SS_PREFIX}/info/chill.info.gz

%preun chill
if [ $1 = 0 ]; then
   /sbin/install-info --delete \
	--section="EGCS snapshot:" --entry="* CHILL: (chill).               The egcs CHILL compiler." \
	--info-dir=%{EGCS_SS_PREFIX}/info %{EGCS_SS_PREFIX}/info/chill.info.gz
fi

%post libgcj
if ! grep '^%{EGCS_SS_PREFIX}/%{_target_platform}/lib$' /etc/ld.so.conf > /dev/null 2>&1; then
	echo %{EGCS_SS_PREFIX}/lib >>/etc/ld.so.conf
fi
/sbin/ldconfig

%postun libgcj
if [ "$1" = "0" ]; then
	grep -v "%{EGCS_SS_PREFIX}/%{_target_platform}/lib" /etc/ld.so.conf >/etc/ld.so.conf.new
	mv -f /etc/ld.so.conf.new /etc/ld.so.conf
fi
/sbin/ldconfig

%files -f egcs-filelist

%files c++
%defattr(-,root,root)
%{EGCS_SS_PREFIX}/man/man1/g++.1
%{EGCS_SS_PREFIX}/bin/g++
%{EGCS_SS_PREFIX}/bin/c++
%{EGCS_SS_PREFIX}/info/g++FAQ*
%{EGCS_SS_PREFIX}/info/gxxint*
%dir %{EGCS_SS_PREFIX}/lib/gcc-lib
%dir %{EGCS_SS_PREFIX}/lib/gcc-lib/%{_target_platform}
%dir %{EGCS_SS_PREFIX}/lib/gcc-lib/%{_target_platform}/%{GCC_VERSION}
%dir %{EGCS_SS_PREFIX}/lib/gcc-lib/%{_target_platform}/%{GCC_VERSION}/include
%{EGCS_SS_PREFIX}/lib/gcc-lib/%{_target_platform}/%{GCC_VERSION}/cc1plus
%{EGCS_SS_PREFIX}/lib/gcc-lib/%{_target_platform}/%{GCC_VERSION}/include/exception
%{EGCS_SS_PREFIX}/lib/gcc-lib/%{_target_platform}/%{GCC_VERSION}/include/new
%{EGCS_SS_PREFIX}/lib/gcc-lib/%{_target_platform}/%{GCC_VERSION}/include/new.h
%{EGCS_SS_PREFIX}/lib/gcc-lib/%{_target_platform}/%{GCC_VERSION}/include/typeinfo
%doc gcc/cp/ChangeLog*
%doc obj-%{_target_platform}/gcc/testsuite/g++.{log,sum}

%files libstdc++
%defattr(-,root,root)
%{EGCS_SS_PREFIX}/lib/libstdc++-*so
%{EGCS_SS_PREFIX}/lib/libstdc++-*so.2
%dir %{EGCS_SS_PREFIX}/lib/gcc-lib
%dir %{EGCS_SS_PREFIX}/lib/gcc-lib/%{_target_platform}
%dir %{EGCS_SS_PREFIX}/lib/gcc-lib/%{_target_platform}/%{GCC_VERSION}
%dir %{EGCS_SS_PREFIX}/lib/gcc-lib/%{_target_platform}/%{GCC_VERSION}/include
%{EGCS_SS_PREFIX}/lib/gcc-lib/%{_target_platform}/%{GCC_VERSION}/libstdc++.so

%files libstdc++-devel
%defattr(-,root,root)
%{EGCS_SS_PREFIX}/info/iostream*
%{EGCS_SS_PREFIX}/lib/libstdc++-*a
%{EGCS_SS_PREFIX}/lib/libstdc++-*a.2
%{EGCS_SS_PREFIX}/include/g++-2
%dir %{EGCS_SS_PREFIX}/lib/gcc-lib
%dir %{EGCS_SS_PREFIX}/lib/gcc-lib/%{_target_platform}
%dir %{EGCS_SS_PREFIX}/lib/gcc-lib/%{_target_platform}/%{GCC_VERSION}
%dir %{EGCS_SS_PREFIX}/lib/gcc-lib/%{_target_platform}/%{GCC_VERSION}/include
%{EGCS_SS_PREFIX}/lib/gcc-lib/%{_target_platform}/%{GCC_VERSION}/libstdc++.a
%doc rpm.doc/libstdc++/*
%doc obj-%{_target_platform}/%{_target_platform}/libio/testsuite/libio.{log,sum}
%doc obj-%{_target_platform}/%{_target_platform}/libstdc++/testsuite/libstdc++.{log,sum}

%files objc
%defattr(-,root,root)
%{EGCS_SS_PREFIX}/info/objc*
%dir %{EGCS_SS_PREFIX}/lib/gcc-lib
%dir %{EGCS_SS_PREFIX}/lib/gcc-lib/%{_target_platform}
%dir %{EGCS_SS_PREFIX}/lib/gcc-lib/%{_target_platform}/%{GCC_VERSION}
%dir %{EGCS_SS_PREFIX}/lib/gcc-lib/%{_target_platform}/%{GCC_VERSION}/include
%{EGCS_SS_PREFIX}/lib/gcc-lib/%{_target_platform}/%{GCC_VERSION}/cc1obj
%{EGCS_SS_PREFIX}/lib/gcc-lib/%{_target_platform}/%{GCC_VERSION}/libobjc.a
#%{EGCS_SS_PREFIX}/lib/gcc-lib/%{_target_platform}/%{GCC_VERSION}/libobjc_gc.a
%{EGCS_SS_PREFIX}/lib/gcc-lib/%{_target_platform}/%{GCC_VERSION}/include/objc
%doc rpm.doc/objc/*
%doc libobjc/THREADS* libobjc/ChangeLog
%doc obj-%{_target_platform}/gcc/testsuite/objc.{log,sum}

%files g77
%defattr(-,root,root)
%{EGCS_SS_PREFIX}/bin/g77
%{EGCS_SS_PREFIX}/bin/f77
%{EGCS_SS_PREFIX}/info/g77*
%dir %{EGCS_SS_PREFIX}/lib/gcc-lib
%dir %{EGCS_SS_PREFIX}/lib/gcc-lib/%{_target_platform}
%dir %{EGCS_SS_PREFIX}/lib/gcc-lib/%{_target_platform}/%{GCC_VERSION}
%dir %{EGCS_SS_PREFIX}/lib/gcc-lib/%{_target_platform}/%{GCC_VERSION}/include
%{EGCS_SS_PREFIX}/lib/gcc-lib/%{_target_platform}/%{GCC_VERSION}/f771
%{EGCS_SS_PREFIX}/lib/gcc-lib/%{_target_platform}/%{GCC_VERSION}/libg2c.a
%{EGCS_SS_PREFIX}/man/man1/g77.1
%{EGCS_SS_PREFIX}/lib/gcc-lib/%{_target_platform}/%{GCC_VERSION}/include/g2c.h
%doc gcc/f/README rpm.doc/g77/*
%doc obj-%{_target_platform}/gcc/testsuite/g77.{log,sum}

%files chill
%defattr(-,root,root)
%{EGCS_SS_PREFIX}/bin/chill
%{EGCS_SS_PREFIX}/info/chill*
%dir %{EGCS_SS_PREFIX}/lib/gcc-lib
%dir %{EGCS_SS_PREFIX}/lib/gcc-lib/%{_target_platform}
%dir %{EGCS_SS_PREFIX}/lib/gcc-lib/%{_target_platform}/%{GCC_VERSION}
%dir %{EGCS_SS_PREFIX}/lib/gcc-lib/%{_target_platform}/%{GCC_VERSION}/include
%{EGCS_SS_PREFIX}/lib/gcc-lib/%{_target_platform}/%{GCC_VERSION}/cc1chill
%{EGCS_SS_PREFIX}/lib/gcc-lib/%{_target_platform}/%{GCC_VERSION}/chill*.o
%{EGCS_SS_PREFIX}/lib/gcc-lib/%{_target_platform}/%{GCC_VERSION}/libchill.a
%doc gcc/ch/README gcc/ch/chill.brochure rpm.doc/chill/*

%files java
%defattr(-,root,root)
%{EGCS_SS_PREFIX}/bin/gcj
%{EGCS_SS_PREFIX}/bin/gcjh
%{EGCS_SS_PREFIX}/bin/jcf-dump
%{EGCS_SS_PREFIX}/bin/jv-scan
%dir %{EGCS_SS_PREFIX}/lib/gcc-lib
%dir %{EGCS_SS_PREFIX}/lib/gcc-lib/%{_target_platform}
%dir %{EGCS_SS_PREFIX}/lib/gcc-lib/%{_target_platform}/%{GCC_VERSION}
%dir %{EGCS_SS_PREFIX}/lib/gcc-lib/%{_target_platform}/%{GCC_VERSION}/include
%{EGCS_SS_PREFIX}/lib/gcc-lib/%{_target_platform}/%{GCC_VERSION}/jc1
%{EGCS_SS_PREFIX}/lib/gcc-lib/%{_target_platform}/%{GCC_VERSION}/jvgenmain
%doc gcc/java/ChangeLog*

%files libgcj
%defattr(-,root,root)
%{EGCS_SS_PREFIX}/bin/jv-convert
%{EGCS_SS_PREFIX}/lib/lib*gcj*
%{EGCS_SS_PREFIX}/share/libgcj.zip
%doc rpm.doc/libgcj/ChangeLog*

%changelog
* Mon Jul 12 1999 Arvind Sankar <arvinds@mit.edu>
- gcc-2.95 -> 2.95

* Wed Jun 23 1999 Arvind Sankar <arvinds@mit.edu>
- Darn! libgcj moved into libdir and I didn't notice.

* Tue Jun 15 1999 Arvind Sankar <arvinds@mit.edu>
- snapshots now from main branch again?
- No, Jeff bummed.

* Tue Jun  8 1999 Arvind Sankar <arvinds@mit.edu>
- gcc/java on the 2.95 branch fixed, so no longer need the HEAD patch

* Thu Jun  3 1999 Arvind Sankar <arvinds@mit.edu>
- update gcc/java to HEAD

* Tue May 25 1999 Arvind Sankar <arvinds@mit.edu>
- change name of package to gcc-ss

* Fri May  7 1999 Arvind Sankar <arvinds@mit.edu>
- add the libgcj Java runtime library

* Tue Mar 16 1999 Arvind Sankar <arvinds@mit.edu>
- run make check and put the output into /usr/doc

* Sun Mar 14 1999 Arvind Sankar <arvinds@mit.edu>
- Changed EGCS_SS_PREFIX to /opt/egcs

* Sat Mar 13 1999 Arvind Sankar <arvinds@mit.edu>
- Changed /usr/local to a %define EGCS_SS_PREFIX
- Changed the post step of libstdc++ to check if EGCS_SS_PREFIX/lib is in
  ld.so.conf and add it if it isn't
- Added some info files
- Added the ChangeLog files to %doc

* Thu Mar 11 1999 Arvind Sankar <arvinds@mit.edu>
- Copied the spec file from egcs-rhcn
- Changed prefix to install under /usr/local for safety
- Add the CHILL and java packages
--- egcs-ss/libgcj/libjava/Makefile.am.orig	Fri May 21 09:09:50 1999
+++ egcs-19990524/libjava/Makefile.am	Tue May 25 10:39:29 1999
@@ -29,30 +29,9 @@
 ##
 ## Compilers and compilation flags.
 ##
-
-## CANADIAN is a misnomer.  Really we check to see if we must pick up
-## the tools from the path.
-if CANADIAN
-if NULL_TARGET
-## In this case, gcj is found outside the build tree.  However, zip is
-## found in the build tree.
-GCJ = gcj
-ZIP = $(MULTIBUILDTOP)../$(COMPPATH)/zip/zip$(EXEEXT)
-else
-GCJ = $(target_alias)-gcj
-ZIP = zip
-endif
-GCJH = gcjh
-else # CANADIAN
-## JAVAC is set to `$(GCJ) -C'.  However, JAVAC is run from the srcdir
-## (due to problems running it in builddir).  In this case the obvious
-## definition of GCJ won't work; instead we resort to this ugly
-## definition that gives us absolute paths.
-expanded = `cd $(MULTIBUILDTOP)../$(COMPPATH)/gcc && pwd`
-GCJ = $(expanded)/gcj$(EXEEXT) -B$(expanded)/
-GCJH = $(MULTIBUILDTOP)../$(COMPPATH)/gcc/gcjh$(EXEEXT)
-ZIP = $(MULTIBUILDTOP)../$(COMPPATH)/zip/zip$(EXEEXT)
-endif # CANADIAN
+GCJ = $$r/gcc/gcj -B$$r/gcc/
+GCJH = $$r/gcc/gcjh
+ZIP = $$r/zip/zip
 
 GCJCOMPILE = CLASSPATH=$(here) $(LIBTOOL) --mode=compile $(GCJ) -fassume-compiled $(JC1FLAGS) -c
 
@@ -277,7 +256,7 @@
 ## `.la' file.
 jv_convert_LDFLAGS = --main=gnu.gcj.convert.Convert \
 	-rpath $(toolexeclibdir)
-jv_convert_LINK = $(LIBTOOL) --mode=link $(GCJ) $(JC1FLAGS) $(LDFLAGS) \
+jv_convert_LINK = $(LIBTOOL) --mode=link "$(GCJ)" $(JC1FLAGS) $(LDFLAGS) \
 	-o jv-convert
 ## We explicitly link in the libraries we need.  This way we don't
 ## need -nodefaultlibs, so we can still rely on gcj picking up the
--- egcs-ss/libgcj/libjava/Makefile.in.orig	Fri May 21 09:09:51 1999
+++ egcs-19990524/libjava/Makefile.in	Tue May 25 10:39:29 1999
@@ -118,24 +118,9 @@
 
 @NATIVE_TRUE@bin_PROGRAMS = \
 @NATIVE_TRUE@jv-convert
-@CANADIAN_TRUE@@NULL_TARGET_TRUE@GCJ = \
-@CANADIAN_TRUE@@NULL_TARGET_TRUE@gcj
-@CANADIAN_TRUE@@NULL_TARGET_FALSE@GCJ = \
-@CANADIAN_TRUE@@NULL_TARGET_FALSE@$(target_alias)-gcj
-@CANADIAN_FALSE@GCJ = \
-@CANADIAN_FALSE@$(expanded)/gcj$(EXEEXT) -B$(expanded)/
-@CANADIAN_TRUE@@NULL_TARGET_TRUE@ZIP = \
-@CANADIAN_TRUE@@NULL_TARGET_TRUE@$(MULTIBUILDTOP)../$(COMPPATH)/zip/zip$(EXEEXT)
-@CANADIAN_TRUE@@NULL_TARGET_FALSE@ZIP = \
-@CANADIAN_TRUE@@NULL_TARGET_FALSE@zip
-@CANADIAN_FALSE@ZIP = \
-@CANADIAN_FALSE@$(MULTIBUILDTOP)../$(COMPPATH)/zip/zip$(EXEEXT)
-@CANADIAN_TRUE@GCJH = \
-@CANADIAN_TRUE@gcjh
-@CANADIAN_FALSE@GCJH = \
-@CANADIAN_FALSE@$(MULTIBUILDTOP)../$(COMPPATH)/gcc/gcjh$(EXEEXT)
-@CANADIAN_FALSE@expanded = \
-@CANADIAN_FALSE@`cd $(MULTIBUILDTOP)../$(COMPPATH)/gcc && pwd`
+GCJ = $$r/gcc/gcj -B$$r/gcc/
+GCJH = $$r/gcc/gcjh
+ZIP = $$r/zip/zip
 
 GCJCOMPILE = CLASSPATH=$(here) $(LIBTOOL) --mode=compile $(GCJ) -fassume-compiled $(JC1FLAGS) -c
 
@@ -202,7 +187,7 @@
 jv_convert_LDFLAGS = --main=gnu.gcj.convert.Convert \
 	-rpath $(toolexeclibdir)
 
-jv_convert_LINK = $(LIBTOOL) --mode=link $(GCJ) $(JC1FLAGS) $(LDFLAGS) \
+jv_convert_LINK = $(LIBTOOL) --mode=link "$(GCJ)" $(JC1FLAGS) $(LDFLAGS) \
 	-o jv-convert
 
 jv_convert_LDADD = $(convert_source_files:.java=.lo) libgcj.la \
@@ -663,12 +648,12 @@
 CXXCOMPILE = $(CXX) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS)
 LTCXXCOMPILE = $(LIBTOOL) --mode=compile $(CXX) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS)
 CXXLD = $(CXX)
-CXXLINK = $(LIBTOOL) --mode=link $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) $(LDFLAGS) -o $@
+CXXLINK = $(LIBTOOL) --mode=link "$(CXXLD)" $(AM_CXXFLAGS) $(CXXFLAGS) $(LDFLAGS) -o $@
 CFLAGS = @CFLAGS@
 COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
 LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
 CCLD = $(CC)
-LINK = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@
+LINK = $(LIBTOOL) --mode=link "$(CCLD)" $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@
 DATA =  $(data_DATA) $(toolexeclib_DATA)
 
 DIST_COMMON =  COPYING.LIB ChangeLog Makefile.am Makefile.in acconfig.h \
--- egcs-ss/libgcj/zlib/Makefile.in	Mon May 10 04:05:41 1999
+++ egcs-19990517/zlib/Makefile.in	Mon May 17 13:30:10 1999
@@ -123,7 +123,7 @@
 COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
 LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
 CCLD = $(CC)
-LINK = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@
+LINK = $(LIBTOOL) --mode=link "$(CCLD)" $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@
 DIST_COMMON =  README ChangeLog Makefile.am Makefile.in acinclude.m4 \
 aclocal.m4 configure configure.in
 
--- egcs-ss/libgcj/boehm-gc/Makefile.am	Mon Apr 26 10:14:59 1999
+++ egcs-19990502/boehm-gc/Makefile.am	Sat May  8 21:41:36 1999
@@ -56,7 +56,7 @@
 LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(INCLUDES) \
 	$(AM_CPPFLAGS) $(CPPFLAGS) \
 	$(AM_CFLAGS) $(MY_CFLAGS) $(BOEHM_GC_CFLAGS) 
-LINK = $(LIBTOOL) --mode=link $(CC) $(AM_CFLAGS) $(MY_CFLAGS) $(LDFLAGS) -o $@
+LINK = $(LIBTOOL) --mode=link "$(CC)" $(AM_CFLAGS) $(MY_CFLAGS) $(LDFLAGS) -o $@
 
 AM_CFLAGS = @BOEHM_GC_CFLAGS@
 
--- egcs-ss/libgcj/boehm-gc/Makefile.in	Mon Apr 26 10:15:00 1999
+++ egcs-19990502/boehm-gc/Makefile.in	Sat May  8 21:41:36 1999
@@ -135,7 +135,7 @@
 	$(AM_CPPFLAGS) $(CPPFLAGS) \
 	$(AM_CFLAGS) $(MY_CFLAGS) $(BOEHM_GC_CFLAGS) 
 
-LINK = $(LIBTOOL) --mode=link $(CC) $(AM_CFLAGS) $(MY_CFLAGS) $(LDFLAGS) -o $@
+LINK = $(LIBTOOL) --mode=link "$(CC)" $(AM_CFLAGS) $(MY_CFLAGS) $(LDFLAGS) -o $@
 
 # Work around what appears to be a GNU make bug handling MAKEFLAGS
 # values defined in terms of make variables, as is the case for CC and
@@ -206,7 +206,7 @@
 CXXCOMPILE = $(CXX) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS)
 LTCXXCOMPILE = $(LIBTOOL) --mode=compile $(CXX) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS)
 CXXLD = $(CXX)
-CXXLINK = $(LIBTOOL) --mode=link $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) $(LDFLAGS) -o $@
+CXXLINK = $(LIBTOOL) --mode=link "$(CXXLD)" $(AM_CXXFLAGS) $(CXXFLAGS) $(LDFLAGS) -o $@
 CFLAGS = @CFLAGS@
 COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
 CCLD = $(CC)
--- egcs-19990321/gcc/testsuite/lib/objc.exp.org	Mon Mar 22 19:51:29 1999
+++ egcs-19990321/gcc/testsuite/lib/objc.exp	Mon Mar 22 19:51:45 1999
@@ -118,7 +118,7 @@
     global OBJC_UNDER_TEST
     global TOOL_OPTIONS
 
-    lappend options "libs=-lobjc"
+    lappend options "libs=-lobjc -lpthread"
     if { [target_info needs_status_wrapper]!="" && [info exists gluefile] } {
 	lappend options "libs=${gluefile}"
 	lappend options "ldflags=$wrap_flags"

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]