| 1 | %global gcc_version 3.3.5
|
|---|
| 2 |
|
|---|
| 3 | Summary: Various compilers (C, C++, Objective-C, Java, ...)
|
|---|
| 4 | Name: gcc
|
|---|
| 5 | Version: %{gcc_version}
|
|---|
| 6 | Release: 6%{?dist}
|
|---|
| 7 | # libgcc, libgfortran, libmudflap, libgomp, libstdc++ and crtstuff have
|
|---|
| 8 | # GCC Runtime Exception.
|
|---|
| 9 | License: GPLv3+ and GPLv3+ with exceptions and GPLv2+ with exceptions
|
|---|
| 10 | Group: Development/Languages
|
|---|
| 11 | Source0: gcc-%{version}.zip
|
|---|
| 12 | URL: http://gcc.gnu.org
|
|---|
| 13 |
|
|---|
| 14 | BuildRoot: %{_tmppath}/%{name}-%{version}-root-%(%{__id_u} -n)
|
|---|
| 15 |
|
|---|
| 16 | Requires: libgcc335 = %{gcc_version}
|
|---|
| 17 | Requires: libc-devel >= 0.6.3
|
|---|
| 18 | Requires: binutils
|
|---|
| 19 |
|
|---|
| 20 | %description
|
|---|
| 21 | The gcc package contains the GNU Compiler Collection version 4.4.
|
|---|
| 22 | You'll need this package in order to compile C code.
|
|---|
| 23 |
|
|---|
| 24 | %package -n libgcc335
|
|---|
| 25 | Summary: GCC version 3.3 shared support library
|
|---|
| 26 | Group: System Environment/Libraries
|
|---|
| 27 | Autoreq: false
|
|---|
| 28 |
|
|---|
| 29 | %description -n libgcc335
|
|---|
| 30 | This package contains GCC shared support library which is needed
|
|---|
| 31 | e.g. for exception handling support.
|
|---|
| 32 |
|
|---|
| 33 | %prep
|
|---|
| 34 | %setup -q -c
|
|---|
| 35 |
|
|---|
| 36 |
|
|---|
| 37 | %install
|
|---|
| 38 | rm -rf $RPM_BUILD_ROOT
|
|---|
| 39 | mkdir -p %{buildroot}%{_bindir}
|
|---|
| 40 | mkdir -p %{buildroot}%{_includedir}
|
|---|
| 41 | mkdir -p %{buildroot}%{_libdir}
|
|---|
| 42 | mkdir -p %{buildroot}%{_usr}/man
|
|---|
| 43 | mkdir -p %{buildroot}%{_usr}/share
|
|---|
| 44 | cp -p -r "usr/bin/*" %{buildroot}%{_bindir}
|
|---|
| 45 | cp -p -r "usr/include/*" %{buildroot}%{_includedir}
|
|---|
| 46 | cp -p -r "usr/lib/*" %{buildroot}%{_libdir}
|
|---|
| 47 | cp -p -r "usr/man/*" %{buildroot}%{_usr}/man
|
|---|
| 48 | cp -p -r "usr/share/*" %{buildroot}%{_usr}/share
|
|---|
| 49 |
|
|---|
| 50 | %clean
|
|---|
| 51 | rm -rf %{buildroot}
|
|---|
| 52 |
|
|---|
| 53 |
|
|---|
| 54 | %files
|
|---|
| 55 | %defattr(-,root,root,-)
|
|---|
| 56 | %{_usr}/bin
|
|---|
| 57 | %{_usr}/include
|
|---|
| 58 | %{_libdir}/*.*a
|
|---|
| 59 | %{_libdir}/gcc-lib/*
|
|---|
| 60 | %{_usr}/man
|
|---|
| 61 | %{_usr}/share
|
|---|
| 62 |
|
|---|
| 63 |
|
|---|
| 64 | %files -n libgcc335
|
|---|
| 65 | %defattr(-,root,root,-)
|
|---|
| 66 | %{_libdir}/gcc335.dll
|
|---|
| 67 | %doc usr/doc/gcc-3.3.5/*
|
|---|
| 68 |
|
|---|
| 69 |
|
|---|
| 70 | %changelog
|
|---|
| 71 | * Tue Sep 04 2011 yd
|
|---|
| 72 | - update to csd4
|
|---|