| 1 | %global gcc_version 4.4.4
|
|---|
| 2 |
|
|---|
| 3 | Summary: Various compilers (C, C++, Objective-C, Java, ...)
|
|---|
| 4 | Name: gcc
|
|---|
| 5 | Version: %{gcc_version}
|
|---|
| 6 | Release: 3%{?dist}
|
|---|
| 7 |
|
|---|
| 8 | # libgcc, libgfortran, libmudflap, libgomp, libstdc++ and crtstuff have
|
|---|
| 9 | # GCC Runtime Exception.
|
|---|
| 10 | License: GPLv3+ and GPLv3+ with exceptions and GPLv2+ with exceptions
|
|---|
| 11 | Group: Development/Languages
|
|---|
| 12 | URL: http://gcc.gnu.org
|
|---|
| 13 |
|
|---|
| 14 | Source0: gcc-%{version}-os2-20100712.zip
|
|---|
| 15 | Source1: gpl.zip
|
|---|
| 16 | Source2: gcc-ssp.zip
|
|---|
| 17 |
|
|---|
| 18 | BuildRoot: %{_tmppath}/%{name}-%{version}-root-%(%{__id_u} -n)
|
|---|
| 19 |
|
|---|
| 20 | Obsoletes: gcc < %{gcc_version}
|
|---|
| 21 | Requires: libgcc444 = %{gcc_version}
|
|---|
| 22 | Requires: libc-devel >= 0.6.3
|
|---|
| 23 |
|
|---|
| 24 | %description
|
|---|
| 25 | The gcc package contains the GNU Compiler Collection version 4.4.
|
|---|
| 26 | You'll need this package in order to compile C code.
|
|---|
| 27 |
|
|---|
| 28 | %package -n libgcc444
|
|---|
| 29 | Summary: GCC version 4.4 shared support library
|
|---|
| 30 | Group: System Environment/Libraries
|
|---|
| 31 | Autoreq: false
|
|---|
| 32 |
|
|---|
| 33 | %description -n libgcc444
|
|---|
| 34 | This package contains GCC shared support library which is needed
|
|---|
| 35 | e.g. for exception handling support.
|
|---|
| 36 |
|
|---|
| 37 | %prep
|
|---|
| 38 | %setup -q -c -a 1 -a 2
|
|---|
| 39 |
|
|---|
| 40 | %install
|
|---|
| 41 | rm -rf $RPM_BUILD_ROOT
|
|---|
| 42 | mkdir -p %{buildroot}%{_usr}
|
|---|
| 43 | cp -r usr/local444/* %{buildroot}%{_usr}/
|
|---|
| 44 |
|
|---|
| 45 | mkdir -p %{buildroot}/%_docdir/%{name}-%{version}
|
|---|
| 46 | cp COPYING %{buildroot}%_docdir/%{name}-%{version}/
|
|---|
| 47 | cp COPYING.LGPL %{buildroot}%_docdir/%{name}-%{version}/
|
|---|
| 48 |
|
|---|
| 49 | cp ssp* %{buildroot}%{_libdir}
|
|---|
| 50 | rm %{buildroot}%{_libdir}/ssp*.lib
|
|---|
| 51 | rm %{buildroot}%{_libdir}/ssp*.dll
|
|---|
| 52 |
|
|---|
| 53 | mv %{buildroot}%{_usr}/gcc444.cmd $RPM_BUILD_ROOT%_docdir/%{name}-%{version}/
|
|---|
| 54 | mv %{buildroot}%{_usr}/readme.os2 $RPM_BUILD_ROOT%_docdir/%{name}-%{version}/
|
|---|
| 55 | mv %{buildroot}%{_usr}/stdio.diff $RPM_BUILD_ROOT%_docdir/%{name}-%{version}/
|
|---|
| 56 |
|
|---|
| 57 | ln -s /@unixroot/usr/libexec/gcc/i386-pc-os2-emx/4.4.4/cc1.exe %{buildroot}/@unixroot/usr/bin/cc1.exe
|
|---|
| 58 | ln -s /@unixroot/usr/libexec/gcc/i386-pc-os2-emx/4.4.4/cc1plus.exe %{buildroot}/@unixroot/usr/bin/cc1plus.exe
|
|---|
| 59 |
|
|---|
| 60 |
|
|---|
| 61 | %clean
|
|---|
| 62 | rm -rf %{buildroot}
|
|---|
| 63 |
|
|---|
| 64 | %files
|
|---|
| 65 | %defattr(-,root,root,-)
|
|---|
| 66 | %{_usr}/bin
|
|---|
| 67 | %{_usr}/include
|
|---|
| 68 | %{_usr}/info
|
|---|
| 69 | %{_libdir}/*.*a
|
|---|
| 70 | %{_libdir}/*.spec
|
|---|
| 71 | %{_libdir}/gcc/*
|
|---|
| 72 | %{_usr}/libexec
|
|---|
| 73 | %{_usr}/man
|
|---|
| 74 | %{_usr}/share
|
|---|
| 75 |
|
|---|
| 76 |
|
|---|
| 77 | %files -n libgcc444
|
|---|
| 78 | %defattr(-,root,root,-)
|
|---|
| 79 | %{_libdir}/gcc444.dll
|
|---|
| 80 | %doc %{_datadir}/doc/*
|
|---|
| 81 |
|
|---|
| 82 | %changelog
|
|---|