3 %define apple_build 5566
6 Version: %{gcc_major}.%{gcc_minor}
7 Release: 0.%{apple_build}.1%{?dist}
8 Summary: Darwin (Mac OS X) GCC cross-compiler
11 Group: Development/Libraries
13 URL: http://www.opensource.apple.com/darwinsource/
14 Source0: http://www.opensource.apple.com/darwinsource/tarballs/other/gcc_%{gcc_major}%{gcc_minor}-%{apple_build}.tar.gz
16 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
19 BuildRequires: darwinx-filesystem >= 1
20 BuildRequires: darwinx-odcctools
21 BuildRequires: darwinx-headers
25 This is a GCC-based cross-compiler which creates Darwin (Mac OS X)
26 programs. This is a port of Apple's GCC %{gcc_major}.%{gcc_minor} from Xcode
27 (build %{apple_build}).
31 %setup -q -n gcc_%{gcc_major}%{gcc_minor}-%{apple_build}
36 languages="c,c++,objc,obj-c++"
38 for arch in powerpc i386; do
42 CC="%{__cc} ${RPM_OPT_FLAGS}" \
46 --includedir=%{_includedir} \
49 --infodir=%{_infodir} \
50 --datadir=%{_datadir} \
51 --build=%_build --host=%_host \
52 --target=${arch}-apple-darwin8 \
57 --disable-nls --without-included-gettext \
58 --disable-win32-registry \
59 --enable-languages="$languages" $optargs
61 # --with-sysroot=%{_prefix}/$arch-apple-darwin8
72 rm -rf $RPM_BUILD_ROOT
73 make DESTDIR=$RPM_BUILD_ROOT install
75 # Remove static libraries but DON'T remove *.dll.a files.
76 rm $RPM_BUILD_ROOT%{_mingw32_libdir}/libfoo.a
80 rm -rf $RPM_BUILD_ROOT
86 %{_mingw32_bindir}/foo.dll
87 %{_mingw32_libdir}/foo.dll.a
92 * Fri Jan 23 2009 Your Name <you@example.com> - 1.2.3-1
93 - Initial RPM release.