OBS User unknown 2007-01-19 11:33:03 +00:00 committed by Git OBS Bridge
commit 164b37c08b
7 changed files with 652 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

33
README.packaging Normal file
View File

@ -0,0 +1,33 @@
Packaging GCC
=============
Shared libraries used by programs that are linked _with_ gcc need
to go into separate packages. Shared library package names should
contain the libraries major .so version to allow parallel installation
of both programs using and gccs linking against those libraries.
An example is the libgfortran and libgfortran2 packages.
The development part of language runtime libraries go into
libFOOver-devel packages and depend on the proper libFOOsover package.
Build variants supported
========================
The gcc packages can build different flavors of compiler packages.
- The standard compiler packages are installed beyond /usr.
- Sets of packages for installation beyond /opt/gcc are provided
if enabled by %{gcc_for_opt} (related: @PREFIX_FOR_OPT@, @LIBDIR_FOR_OPT@,
@GCC_FOR_OPT@
- cross.spec.in is used for auto-generation of
cross-*-gcc-icecream-backend.spec by the change_spec script using
parts of the configuration from the main compiler. These packages
provide tarballs with just cc1 and cc1plus serving as icecream environments.
- micro-cross.spec.in is a script that is called from change_spec and
outputs cross-*-gcc.spec files. These packages provide cross compiler
environments beyond /opt/cross for C and C++ as a single package.

3
cpp Normal file
View File

@ -0,0 +1,3 @@
#!/bin/sh
# Traditionally, /lib/cpp only knew about C
exec /usr/bin/cpp -xc "$@"

56
gcc.changes Normal file
View File

@ -0,0 +1,56 @@
-------------------------------------------------------------------
Tue Jan 16 17:05:32 CET 2007 - rguenther@suse.de
- Do not mark README.packaging as NoSource.
-------------------------------------------------------------------
Thu Nov 9 17:40:49 CET 2006 - rguenther@suse.de
- Remove gcc-c++-32bit and gcc-c++-64bit packages.
-------------------------------------------------------------------
Tue Oct 31 15:03:02 CET 2006 - dmueller@suse.de
- don't build as root
-------------------------------------------------------------------
Mon Oct 30 12:11:34 CET 2006 - rguenther@suse.de
- Make gcc architecture dependent again. [#215971]
-------------------------------------------------------------------
Thu Oct 26 11:40:43 CEST 2006 - rguenther@suse.de
- Add dependencies to the gcc and non-32/64bit packages. [#215217]
-------------------------------------------------------------------
Tue Sep 19 16:27:15 CEST 2006 - rguenther@suse.de
- New gcc-gij package.
-------------------------------------------------------------------
Fri Aug 25 10:37:29 CEST 2006 - rguenther@suse.de
- Add 32bit and 64bit support packages to gcc, gcc-c++, gcc-fortran,
gcc-objc and libffi-devel.
-------------------------------------------------------------------
Thu Aug 24 08:24:20 CEST 2006 - rguenther@suse.de
- Make gcc require cpp to pull in /lib/cpp.
-------------------------------------------------------------------
Fri Aug 18 10:54:23 CEST 2006 - rguenther@suse.de
- gcc obsoletes gcc-mudflap which is no longer.
-------------------------------------------------------------------
Mon Aug 7 11:28:34 CEST 2006 - rguenther@suse.de
- Provide gcc-mudflap, gcc-info and gcc-locale packages [#197515].
-------------------------------------------------------------------
Fri Jul 14 14:46:31 CEST 2006 - rguenther@suse.de
- New package.

536
gcc.spec Normal file
View File

@ -0,0 +1,536 @@
#
# spec file for package gcc (Version 4.1.3)
#
# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: gcc
%define separate_bi32 0
%define separate_bi64 0
%ifarch ppc
%define separate_bi64 1
%endif
%ifarch x86_64 s390x
%define separate_bi32 1
%endif
URL: http://gcc.gnu.org/
%define gcc_version 41
%define gcc_suffix 4.1
License: GNU General Public License (GPL)
Version: 4.1.3
Release: 33
Group: Development/Languages/C and C++
Summary: The system GNU C Compiler
Provides: c_compiler
Obsoletes: gcc-mudflap
Requires: cpp gcc%{gcc_version}
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Source: cpp
Source99: README.packaging
%description
The system GNU C Compiler.
Authors:
--------
The GCC team.
%package -n gcc-32bit
Group: Development/Languages/C and C++
Summary: The system GNU C Compiler
Requires: gcc%{gcc_version}-32bit
Requires: gcc
%description -n gcc-32bit
This rpm was re-packaged from gcc-3.2.2-56, whose source rpm
is gcc-3.2.2-56.src.rpm.
(srcrep:0d3b68d75fbbf4c5837b7f63c9f8c066-gcc)
The system GNU C Compiler.
Authors:
--------
The GCC team.
%package -n gcc-64bit
Group: Development/Languages/C and C++
Summary: The system GNU C Compiler
Requires: gcc%{gcc_version}-64bit
Requires: gcc
%description -n gcc-64bit
This rpm was re-packaged from gcc-3.2.2-56, whose source rpm
is gcc-3.2.2-56.src.rpm.
(srcrep:0d3b68d75fbbf4c5837b7f63c9f8c066-gcc)
The system GNU C Compiler.
Authors:
--------
The GCC team.
%package -n cpp
Group: Development/Languages/C and C++
Summary: The system GNU Preprocessor
Requires: cpp%{gcc_version}
%description -n cpp
The system GNU Preprocessor.
Authors:
--------
The GCC team.
%package -n gcc-locale
Group: Development/Languages/C and C++
Summary: The system GNU Compiler locale files
Requires: gcc%{gcc_version}-locale
%description -n gcc-locale
The system GNU Compiler locale files.
%package -n gcc-info
Group: Development/Languages/C and C++
Summary: The system GNU Compiler documentation
Requires: gcc%{gcc_version}-info
%description -n gcc-info
The system GNU Compiler documentation.
%package -n gcc-c++
Group: Development/Languages/C and C++
Summary: The system GNU C++ Compiler
Provides: c++_compiler
Requires: gcc%{gcc_version}-c++
Requires: gcc
%description -n gcc-c++
The system GNU C++ Compiler.
%package -n libstdc++-devel
Group: System/Libraries
Summary: The system GNU C++ development files
Requires: libstdc++%{gcc_version}-devel
%description -n libstdc++-devel
The system GNU C++ development files.
%package -n gcc-fortran
Group: Development/Languages/Fortran
Summary: The system GNU Fortran Compiler
Requires: gcc%{gcc_version}-fortran
Requires: gcc
%description -n gcc-fortran
The system GNU Fortran Compiler.
Authors:
--------
The GCC team.
%package -n gcc-fortran-32bit
Group: Development/Languages/Fortran
Summary: The system GNU Fortran Compiler
Requires: gcc%{gcc_version}-fortran-32bit
Requires: gcc-fortran
%description -n gcc-fortran-32bit
This is a re-packaged binary rpm. For the package source, please look
for the source of the package without the "32bit" ending
The system GNU Fortran Compiler.
Authors:
--------
The GCC team.
%package -n gcc-fortran-64bit
Group: Development/Languages/Fortran
Summary: The system GNU Fortran Compiler
Requires: gcc%{gcc_version}-fortran-64bit
Requires: gcc-fortran
%description -n gcc-fortran-64bit
This is a re-packaged binary rpm. For the package source, please look
for the source of the package without the "64bit" ending
The system GNU Fortran Compiler.
Authors:
--------
The GCC team.
%package -n gcc-java
Group: Development/Languages/Java
Summary: The system GNU Java Compiler
Requires: gcc%{gcc_version}-java
Requires: gcc
%description -n gcc-java
The system GNU Java Compiler.
%package -n libgcj-devel
Group: Development/Libraries/Java
Summary: The system GNU Java development files.
Requires: libgcj%{gcc_version}-devel
%description -n libgcj-devel
The system GNU Java development files.
%package -n gcc-gij
Group: Development/Languages/Java
Summary: The system GNU Java bytecode interpreter
Requires: gcc%{gcc_version}-gij
%description -n gcc-gij
The system GNU Java bytecode interpreter.
%package -n gcc-objc
Group: Development/Languages/Other
Summary: The system GNU Objective C Compiler
Requires: gcc%{gcc_version}-objc
Requires: gcc
%description -n gcc-objc
The system GNU Objective C Compiler.
%package -n gcc-objc-32bit
Group: Development/Languages/Other
Summary: The system GNU Objective C Compiler
Requires: gcc%{gcc_version}-objc-32bit
Requires: gcc-objc
%description -n gcc-objc-32bit
This is a re-packaged binary rpm. For the package source, please look
for the source of the package without the "32bit" ending
The system GNU Objective C Compiler.
%package -n gcc-objc-64bit
Group: Development/Languages/Other
Summary: The system GNU Objective C Compiler
Requires: gcc%{gcc_version}-objc-64bit
Requires: gcc-objc
%description -n gcc-objc-64bit
This is a re-packaged binary rpm. For the package source, please look
for the source of the package without the "64bit" ending
The system GNU Objective C Compiler.
%package -n gcc-obj-c++
Group: Development/Languages/Other
Summary: The system GNU Objective C++ Compiler
Requires: gcc%{gcc_version}-obj-c++
Requires: gcc-objc
%description -n gcc-obj-c++
The system GNU Objective C++ Compiler.
%package -n gcc-ada
Group: Development/Languages/C and C++
Summary: The system GNU Ada Compiler
Requires: gcc%{gcc_version}-ada
Requires: gcc
%description -n gcc-ada
The system GNU Ada Compiler.
Authors:
--------
The GCC team.
%package -n libffi-devel
Group: System/Libraries
Summary: The system GNU Foreign Function Interface library development files
Requires: libffi%{gcc_version}-devel
%description -n libffi-devel
The system GNU Foreign Function Interface library development files.
%package -n libffi-devel-32bit
Group: System/Libraries
Summary: The system GNU Foreign Function Interface library development files
Requires: libffi%{gcc_version}-devel-32bit
%description -n libffi-devel-32bit
This is a re-packaged binary rpm. For the package source, please look
for the source of the package without the "32bit" ending
The system GNU Foreign Function Interface library development files.
%package -n libffi-devel-64bit
Group: System/Libraries
Summary: The system GNU Foreign Function Interface library development files
Requires: libffi%{gcc_version}-devel-64bit
%description -n libffi-devel-64bit
This is a re-packaged binary rpm. For the package source, please look
for the source of the package without the "64bit" ending
The system GNU Foreign Function Interface library development files.
%prep
%build
echo "This is a dummy package to provide a dependency on the system compiler." > README
%install
mkdir -p $RPM_BUILD_ROOT/lib
mkdir -p $RPM_BUILD_ROOT%{_prefix}/bin
mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1
mkdir -p $RPM_BUILD_ROOT%{_prefix}/share/doc/packages/gcc-objc/
mkdir -p $RPM_BUILD_ROOT%{_prefix}/share/doc/packages/gcc-obj-c++/
# Link all the binaries
for program in \
gcc gcov \
g++ \
cpp \
gcj gcjh gij gjnih gcj-dbtool grmic grmiregistry jcf-dump jv-convert jv-scan \
gfortran \
gnat gnatbind gnatbl gnatchop gnatclean gnatfind gnatkr \
gnatlink gnatls gnatmake gnatname gnatprep gnatxref gprmake \
; do
ln -sf $program-%{gcc_suffix} $RPM_BUILD_ROOT%{_prefix}/bin/$program
done
# Link section 1 manpages
for man1 in \
gcc gcov \
g++ \
cpp \
gfortran \
gcj gcjh gjnih jcf-dump jv-scan gcj-dbtool gij grmic grmiregistry \
; do
ln -sf $man1-%{gcc_suffix}.1.gz $RPM_BUILD_ROOT%{_mandir}/man1/$man1.1.gz
done
# Provide the traditional /lib/cpp that only handles C
cp $RPM_SOURCE_DIR/cpp $RPM_BUILD_ROOT/lib/
chmod 755 $RPM_BUILD_ROOT/lib/cpp
# Provide extra symlinks
ln -sf g++-%{gcc_suffix} $RPM_BUILD_ROOT%{_prefix}/bin/c++
ln -sf gcc-%{gcc_suffix} $RPM_BUILD_ROOT%{_prefix}/bin/cc
ln -sf g++-%{gcc_suffix}.1.gz $RPM_BUILD_ROOT%{_mandir}/man1/c++.1.gz
ln -sf gcc-%{gcc_suffix}.1.gz $RPM_BUILD_ROOT%{_mandir}/man1/cc.1.gz
%files
%defattr(-,root,root)
%{_prefix}/bin/gcc
%{_prefix}/bin/cc
%{_prefix}/bin/gcov
%doc %{_mandir}/man1/gcc.1.gz
%doc %{_mandir}/man1/cc.1.gz
%doc %{_mandir}/man1/gcov.1.gz
%files -n cpp
%defattr(-,root,root)
/lib/cpp
%{_prefix}/bin/cpp
%doc %{_mandir}/man1/cpp.1.gz
%files -n gcc-c++
%defattr(-,root,root)
%{_prefix}/bin/g++
%{_prefix}/bin/c++
%doc %{_mandir}/man1/g++.1.gz
%doc %{_mandir}/man1/c++.1.gz
%files -n gcc-fortran
%defattr(-,root,root)
%{_prefix}/bin/gfortran
%doc %{_mandir}/man1/gfortran.1.gz
%files -n gcc-java
%defattr(-,root,root)
%{_prefix}/bin/gcj
%{_prefix}/bin/gcjh
%{_prefix}/bin/gjnih
%{_prefix}/bin/jcf-dump
%{_prefix}/bin/jv-scan
%doc %{_mandir}/man1/gcj.1.gz
%doc %{_mandir}/man1/gcjh.1.gz
%doc %{_mandir}/man1/gjnih.1.gz
%doc %{_mandir}/man1/jcf-dump.1.gz
%doc %{_mandir}/man1/jv-scan.1.gz
%files -n gcc-gij
%defattr(-,root,root)
%{_prefix}/bin/gcj-dbtool
%{_prefix}/bin/gij
%{_prefix}/bin/grmic
%{_prefix}/bin/grmiregistry
%{_prefix}/bin/jv-convert
%doc %{_mandir}/man1/gcj-dbtool.1.gz
%doc %{_mandir}/man1/gij.1.gz
%doc %{_mandir}/man1/grmic.1.gz
%doc %{_mandir}/man1/grmiregistry.1.gz
%files -n gcc-objc
%defattr(-,root,root)
# empty - only for the dependency
%doc README
%files -n gcc-obj-c++
%defattr(-,root,root)
# empty - only for the dependency
%doc README
%files -n gcc-locale
%defattr(-,root,root)
# empty - only for the dependency
%doc README
%files -n gcc-info
%defattr(-,root,root)
# empty - only for the dependency
%doc README
%files -n gcc-ada
%defattr(-,root,root)
%{_prefix}/bin/gnat
%{_prefix}/bin/gnatbind
%{_prefix}/bin/gnatbl
%{_prefix}/bin/gnatchop
%{_prefix}/bin/gnatclean
%{_prefix}/bin/gnatfind
%{_prefix}/bin/gnatkr
%{_prefix}/bin/gnatlink
%{_prefix}/bin/gnatls
%{_prefix}/bin/gnatmake
%{_prefix}/bin/gnatname
%{_prefix}/bin/gnatprep
%{_prefix}/bin/gnatxref
%{_prefix}/bin/gprmake
%files -n libstdc++-devel
%defattr(-,root,root)
# empty - only for the dependency
%doc README
%files -n libgcj-devel
%defattr(-,root,root)
# empty - only for the dependency
%doc README
%files -n libffi-devel
%defattr(-,root,root)
# empty - only for the dependency
%doc README
%if %{separate_bi32}
%files -n gcc-32bit
%defattr(-,root,root)
# empty - only for the dependency
%doc README
%files -n gcc-fortran-32bit
%defattr(-,root,root)
# empty - only for the dependency
%doc README
%files -n gcc-objc-32bit
%defattr(-,root,root)
# empty - only for the dependency
%doc README
%files -n libffi-devel-32bit
%defattr(-,root,root)
# empty - only for the dependency
%doc README
%endif
%if %{separate_bi64}
%files -n gcc-64bit
%defattr(-,root,root)
# empty - only for the dependency
%doc README
%files -n gcc-fortran-64bit
%defattr(-,root,root)
# empty - only for the dependency
%doc README
%files -n gcc-objc-64bit
%defattr(-,root,root)
# empty - only for the dependency
%doc README
%files -n libffi-devel-64bit
%defattr(-,root,root)
# empty - only for the dependency
%doc README
%endif
%changelog -n gcc
* Tue Jan 16 2007 - rguenther@suse.de
- Do not mark README.packaging as NoSource.
* Thu Nov 09 2006 - rguenther@suse.de
- Remove gcc-c++-32bit and gcc-c++-64bit packages.
* Tue Oct 31 2006 - dmueller@suse.de
- don't build as root
* Mon Oct 30 2006 - rguenther@suse.de
- Make gcc architecture dependent again. [#215971]
* Thu Oct 26 2006 - rguenther@suse.de
- Add dependencies to the gcc and non-32/64bit packages. [#215217]
* Tue Sep 19 2006 - rguenther@suse.de
- New gcc-gij package.
* Fri Aug 25 2006 - rguenther@suse.de
- Add 32bit and 64bit support packages to gcc, gcc-c++, gcc-fortran,
gcc-objc and libffi-devel.
* Thu Aug 24 2006 - rguenther@suse.de
- Make gcc require cpp to pull in /lib/cpp.
* Fri Aug 18 2006 - rguenther@suse.de
- gcc obsoletes gcc-mudflap which is no longer.
* Mon Aug 07 2006 - rguenther@suse.de
- Provide gcc-mudflap, gcc-info and gcc-locale packages [#197515].
* Fri Jul 14 2006 - rguenther@suse.de
- New package.

0
ready Normal file
View File