1 # Note about the source for these tools:
3 # Apple distributes a set of tools called cctools under the APSL2.0
4 # license. You can get it from
5 # http://www.opensource.apple.com/darwinsource/Current/
6 # but you will need an Apple ID (although it's still open source).
8 # These are the OpenDarwin odcctools, which are an enhanced version of
9 # an older version of these tools. However OpenDarwin and odcctools
10 # appears to be dead, replaced first by DarwinPorts, but even that
11 # hasn't seen a release for more than 2 years.
13 # Nevertheless, this is odcctools, until I can work out what is the
14 # right upstream we should be using.
16 # The version number is based on the original cctools from which this
17 # odcctools was derived.
19 %define odcc_version 590.36
20 %define odcc_stamp 20060413
22 Name: darwinx-odcctools
23 Version: %{odcc_version}
24 Release: 0.%{odcc_stamp}.4%{?dist}
25 Summary: Darwin (Mac OS X) cross-compiler tools
28 Group: Development/Libraries
30 URL: http://odcctools.darwinports.com/
31 Source0: odcctools-%{odcc_stamp}.tar.bz2
33 Patch1: odcctools-headers.patch
34 Patch2: odcctools-lp64.patch
35 Patch3: odcctools-x86-64.patch
36 Patch4: odcctools-ofile.patch
38 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
40 BuildRequires: darwinx-filesystem >= 1
42 BuildRequires: elfutils, kernel-headers, libstdc++-devel
44 Requires: darwinx-filesystem >= 1
48 The odcctools project is geared towards improving the Darwin
49 cctools build system and code base to support Darwin development.
53 %setup -q -n odcctools-%{odcc_stamp}
61 for arch in powerpc i386; do
66 --target=$arch-apple-darwin8 \
69 --datadir=%{_datadir} \
71 --libexecdir=%{_libexecdir}
79 rm -rf $RPM_BUILD_ROOT
81 for arch in powerpc i386; do
82 make -C build-$arch DESTDIR=$RPM_BUILD_ROOT install
85 # Rename the manual pages so they don't conflict with the
86 # ones for the native tools.
87 for f in $RPM_BUILD_ROOT%{_mandir}/*/*; do
88 d=$(dirname $f); b=$(basename $f)
89 mv $f $d/i386-apple-darwin8-$b
90 ln $d/i386-apple-darwin8-$b $d/powerpc-apple-darwin8-$b
95 rm -rf $RPM_BUILD_ROOT
101 %{_bindir}/i386-apple-darwin8-*
102 %{_bindir}/powerpc-apple-darwin8-*
103 %{_includedir}/mach-o/
105 %{_libdir}/libmacho.a
106 %{_mandir}/man1/i386-apple-darwin8-*.1*
107 %{_mandir}/man1/powerpc-apple-darwin8-*.1*
108 %{_mandir}/man3/i386-apple-darwin8-*.3*
109 %{_mandir}/man3/powerpc-apple-darwin8-*.3*
110 %{_mandir}/man5/i386-apple-darwin8-*.5*
111 %{_mandir}/man5/powerpc-apple-darwin8-*.5*
115 * Sun Feb 8 2009 Richard W.M. Jones <rjones@redhat.com> - 590.36-0.20060413.4
116 - Initial RPM release for Fedora.
118 * Tue Mar 28 2006 Benjamin Reed <rangerrick@befunk.com> - 590.36-1
119 - fixed build to just use srcdir != builddir, changed to 10.3/10.4-specific
121 * Sun Feb 26 2006 Benjamin Reed <rangerrick@befunk.com> - 590.23.2od12-1