source: rtems/contrib/crossrpms/freebsd7.2/i586/i586-pc-freebsd7.2-gcc.spec @ 55e45f8d

4.104.11
Last change on this file since 55e45f8d was 55e45f8d, checked in by Ralf Corsepius <ralf.corsepius@…>, on Aug 31, 2009 at 8:00:11 AM

Upgrade.

  • Property mode set to 100644
File size: 17.8 KB
Line 
1#
2# Please send bugfixes or comments to
3#       http://www.rtems.org/bugzilla
4#
5
6
7%ifos cygwin cygwin32 mingw mingw32
8%define _exeext .exe
9%define debug_package           %{nil}
10%define _libdir                 %{_exec_prefix}/lib
11%else
12%define _exeext %{nil}
13%endif
14
15%ifos cygwin cygwin32
16%define optflags -O3 -pipe -march=i486 -funroll-loops
17%endif
18
19%ifos mingw mingw32
20%if %{defined _mingw32_cflags}
21%define optflags %{_mingw32_cflags}
22%else
23%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4 -mms-bitfields
24%endif
25%endif
26
27%if "%{_build}" != "%{_host}"
28%define _host_rpmprefix %{_host}-
29%else
30%define _host_rpmprefix %{nil}
31%endif
32
33
34%define gcc_pkgvers 4.4.1
35%define gcc_version 4.4.1
36%define gcc_rpmvers %{expand:%(echo "4.4.1" | tr - _ )}
37
38
39Name:           i586-pc-freebsd7.2-gcc
40Summary:        i586-pc-freebsd7.2 gcc
41
42Group:          Development/Tools
43Version:        %{gcc_rpmvers}
44Release:        0.20090831.1%{?dist}
45License:        GPL
46URL:            http://gcc.gnu.org
47BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
48
49%define _use_internal_dependency_generator 0
50
51BuildRequires:  %{_host_rpmprefix}gcc
52
53%if "%{gcc_version}" >= "4.3.0"
54%define _gmp_minvers            4.1
55%else
56%if "%{gcc_version}" >= "4.2.0"
57%define _gmp_minvers            4.1
58%endif
59%endif
60
61%if %{defined _gmp_minvers}
62BuildRequires: gmp-devel >= %{_gmp_minvers}
63%if "%{_build}" != "%{_host}"
64BuildRequires:  %{_host_rpmprefix}gmp-devel >= %{_gmp_minvers}
65%endif
66%endif
67
68
69%if "%{gcc_version}" >= "4.4.0"
70%define _mpfr_minvers   2.3.2
71%define mpfr_version    2.4.1
72%else
73%if "%{gcc_version}" >= "4.3.0"
74%define _mpfr_minvers   2.3.1
75%define mpfr_version    2.3.2
76%else
77%if "%{gcc_version}" >= "4.2.0"
78%define _mpfr_minvers   2.2.1
79%define mpfr_version    2.3.2
80%endif
81%endif
82%endif
83
84%if %{defined _mpfr_minvers}
85# FIXME: This is an ugly cludge
86%{?fc10:%global mpfr_provided 2.3.2}
87%{?fc11:%global mpfr_provided 2.4.1}
88%{?suse10_3:%global mpfr_provided 2.2.1}
89%{?suse11_0:%global mpfr_provided 2.3.1}
90%{?suse11_1:%global mpfr_provided 2.3.2}
91%{?cygwin:%global mpfr_provided 2.4.1}
92%{?mingw32:%global mpfr_provided %{nil}}
93
94%if %{defined mpfr_provided}
95%if "%{mpfr_provided}" < "%{_mpfr_minvers}"
96%define _build_mpfr 1
97%else
98%if "%{_build}" != "%{_host}"
99BuildRequires:  %{_host_rpmprefix}mpfr-devel >= %{_mpfr_minvers}
100%else
101BuildRequires: mpfr-devel >= %{_mpfr_minvers}
102%endif
103%endif
104%else
105%define _build_mpfr 1
106%endif
107
108%endif
109
110%if "%{_build}" != "%{_host}"
111BuildRequires:  i586-pc-freebsd7.2-gcc = %{gcc_rpmvers}
112%endif
113
114%if "%{gcc_version}" >= "4.2.0"
115BuildRequires:  flex bison
116%endif
117
118
119BuildRequires:  texinfo >= 4.2
120BuildRequires:  i586-pc-freebsd7.2-binutils
121BuildRequires:  i586-pc-freebsd7.2-sys-root
122
123Requires:       i586-pc-freebsd7.2-binutils
124Requires:       i586-pc-freebsd7.2-sys-root
125Requires:       i586-pc-freebsd7.2-gcc-libgcc = %{gcc_rpmvers}-%{release}
126
127
128%define _gcclibdir %{_prefix}/lib
129
130Source0:        ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_version}/gcc-core-%{gcc_pkgvers}.tar.bz2
131%{?_without_sources:NoSource:   0}
132
133Source1:        ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_version}/gcc-g++-%{gcc_pkgvers}.tar.bz2
134%{?_without_sources:NoSource:   1}
135
136Source2:        ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_version}/gcc-fortran-%{gcc_pkgvers}.tar.bz2
137%{?_without_sources:NoSource:   2}
138
139Source5:        ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_version}/gcc-objc-%{gcc_pkgvers}.tar.bz2
140%{?_without_sources:NoSource:   5}
141
142%if "%{gcc_version}" >= "4.3.0"
143Source60:    http://www.mpfr.org/mpfr-current/mpfr-%{mpfr_version}.tar.bz2
144%endif
145
146%description
147Cross gcc for i586-pc-freebsd7.2.
148
149%prep
150%setup -c -T -n %{name}-%{version}
151
152%setup -q -T -D -n %{name}-%{version} -a0
153%{?PATCH0:%patch0 -p0}
154
155%setup -q -T -D -n %{name}-%{version} -a1
156%{?PATCH1:%patch1 -p0}
157
158%setup -q -T -D -n %{name}-%{version} -a2
159%{?PATCH2:%patch2 -p0}
160
161
162
163%setup -q -T -D -n %{name}-%{version} -a5
164%{?PATCH5:%patch5 -p0}
165
166
167%if 0%{?_build_mpfr}
168%setup -q -T -D -n %{name}-%{version} -a60
169%{?PATCH60:%patch60 -p1}
170  # Build mpfr one-tree style
171  ln -s ../mpfr-%{mpfr_version} gcc-%{gcc_pkgvers}/mpfr
172%endif
173
174
175  # Fix timestamps
176  cd gcc-%{gcc_pkgvers}
177  contrib/gcc_update --touch
178  cd ..
179%build
180  mkdir -p build
181
182  cd build
183
184  languages="c"
185  languages="$languages,c++"
186  languages="$languages,fortran"
187  languages="$languages,objc"
188%if "%{_build}" != "%{_host}"
189  CFLAGS_FOR_BUILD="-g -O2 -Wall" \
190  CC="%{_host}-gcc ${RPM_OPT_FLAGS}" \
191%else
192# gcc is not ready to be compiled with -std=gnu99
193  CC=$(echo "%{__cc} ${RPM_OPT_FLAGS}" | sed -e 's,-std=gnu99 ,,') \
194%endif
195  ../gcc-%{gcc_pkgvers}/configure \
196    --prefix=%{_prefix} \
197    --bindir=%{_bindir} \
198    --exec_prefix=%{_exec_prefix} \
199    --includedir=%{_includedir} \
200    --libdir=%{_gcclibdir} \
201    --libexecdir=%{_libexecdir} \
202    --mandir=%{_mandir} \
203    --infodir=%{_infodir} \
204    --datadir=%{_datadir} \
205    --build=%_build --host=%_host \
206    --target=i586-pc-freebsd7.2 \
207    --disable-libstdcxx-pch \
208    --with-gnu-as --with-gnu-ld --verbose \
209    --with-system-zlib \
210    --disable-nls --without-included-gettext \
211    --disable-win32-registry \
212    --enable-version-specific-runtime-libs \
213    --enable-threads \
214    --with-sysroot=%{_exec_prefix}/i586-pc-freebsd7.2/sys-root \
215    --enable-languages="$languages" $optargs
216
217%if "%_host" != "%_build"
218  # Bug in gcc-3.2.1:
219  # Somehow, gcc doesn't get syslimits.h right for Cdn-Xs
220  mkdir -p gcc/include
221  cp ../gcc-%{gcc_pkgvers}/gcc/gsyslimits.h gcc/include/syslimits.h
222%endif
223
224  make %{?_smp_mflags} all
225  cd ..
226
227%install
228  rm -rf $RPM_BUILD_ROOT
229
230  cd build
231
232  make DESTDIR=$RPM_BUILD_ROOT install
233  cd ..
234
235
236%if "%{gcc_version}" <= "4.1.2"
237# Misplaced header file
238  if test -f $RPM_BUILD_ROOT%{_includedir}/mf-runtime.h; then
239    mv $RPM_BUILD_ROOT%{_includedir}/mf-runtime.h \
240      $RPM_BUILD_ROOT%{_gcclibdir}/gcc/i586-pc-freebsd7.2/%{gcc_version}/include/
241  fi
242%endif
243
244  # host library
245%if "%{gcc_version}" >= "4.2.0"
246  # libiberty doesn't honor --libdir, but always installs to a
247  # magically guessed _libdir
248  rm -f  ${RPM_BUILD_ROOT}%{_libdir}/libiberty.a
249%else
250  # libiberty installs to --libdir=...
251  rm -f ${RPM_BUILD_ROOT}%{_gcclibdir}/libiberty.a
252%endif
253
254  # We use the version from binutils
255  rm -f $RPM_BUILD_ROOT%{_bindir}/i586-pc-freebsd7.2-c++filt%{_exeext}
256
257
258# Conflict with a native GCC's infos
259  rm -rf $RPM_BUILD_ROOT%{_infodir}
260
261# Conflict with a native GCC's man pages
262  rm -rf $RPM_BUILD_ROOT%{_mandir}/man7
263
264  # Bug in gcc-3.4.0pre
265  rm -f $RPM_BUILD_ROOT%{_bindir}/i586-pc-freebsd7.2-i586-pc-freebsd7.2-gcjh%{_exeext}
266
267  # Bug in gcc-3.3.x/gcc-3.4.x: Despite we don't need fixincludes, it installs
268  # the fixinclude-install-tools
269  rm -rf ${RPM_BUILD_ROOT}%{_gcclibdir}/gcc/i586-pc-freebsd7.2/%{gcc_version}/install-tools
270  rm -rf ${RPM_BUILD_ROOT}%{_libexecdir}/gcc/i586-pc-freebsd7.2/%{gcc_version}/install-tools
271
272  # Bug in gcc > 4.1.0: Installs an unused, empty directory
273  if test -d ${RPM_BUILD_ROOT}%{_prefix}/i586-pc-freebsd7.2/include/bits; then
274    rmdir ${RPM_BUILD_ROOT}%{_prefix}/i586-pc-freebsd7.2/include/bits
275  fi
276
277  # Collect multilib subdirectories
278  multilibs=`build/gcc/xgcc -Bbuild/gcc/ --print-multi-lib | sed -e 's,;.*$,,'`
279
280
281  rm -f dirs ;
282  echo "%defattr(-,root,root,-)" >> dirs
283  TGTDIR="%{_gcclibdir}/gcc/i586-pc-freebsd7.2/%{gcc_version}"
284  for i in $multilibs; do
285    case $i in
286    \.) echo "%dir ${TGTDIR}" >> dirs
287      ;;
288    *)  echo "%dir ${TGTDIR}/$i" >> dirs
289      ;;
290    esac
291  done
292
293  # Collect files to go into different packages
294  cp dirs build/files.gcc
295  cp dirs build/files.gfortran
296  cp dirs build/files.objc
297  cp dirs build/files.gcj
298  cp dirs build/files.g++
299
300  TGTDIR="%{_gcclibdir}/gcc/i586-pc-freebsd7.2/%{gcc_version}"
301  f=`find ${RPM_BUILD_ROOT}${TGTDIR} ! -type d -print | sed -e "s,^$RPM_BUILD_ROOT,,g"`;
302  for i in $f; do
303    case $i in
304    *lib*.la) rm ${RPM_BUILD_ROOT}/$i ;; # ignore: gcc produces bogus libtool libs
305    *f771) ;;
306    *f951) ;;
307    *cc1) ;;
308    *cc1obj) ;;
309    *cc1plus) ;; # ignore: explicitly put into rpm elsewhere
310    *collect2) ;;
311    *libobjc*) echo "$i" >> build/files.objc ;;
312    *include/objc*) ;;
313    *include/g++*);;
314    *include/c++*);;
315    *include-fixed/*);;
316    *finclude/*);;
317    *adainclude*);;
318    *adalib*);;
319    *gnat1);;
320    *jc1) ;;
321    *jvgenmain) ;;
322    */libgfortran*.*) echo "$i" >> build/files.gfortran ;;
323    */libstdc++.*) echo "$i" >> build/files.g++ ;;
324    */libsupc++.*) echo "$i" >> build/files.g++ ;;
325    *) echo "$i" >> build/files.gcc ;;
326    esac
327  done
328
329  TGTDIR="%{_exec_prefix}/i586-pc-freebsd7.2/lib"
330  f=`find ${RPM_BUILD_ROOT}${TGTDIR} ! -type d -print | sed -e "s,^$RPM_BUILD_ROOT,,g"`;
331  for i in $f; do
332    case $i in
333    *lib*.la) rm ${RPM_BUILD_ROOT}/$i;; # ignore - gcc produces bogus libtool libs
334    *libiberty.a) rm ${RPM_BUILD_ROOT}/$i ;; # ignore - GPL'ed
335# all other files belong to newlib
336    *) echo "$i" >> build/files.newlib ;;
337    esac
338  done
339# Extract %%__os_install_post into os_install_post~
340cat << \EOF > os_install_post~
341%__os_install_post
342EOF
343
344# Generate customized brp-*scripts
345cat os_install_post~ | while read a x y; do
346case $a in
347# Prevent brp-strip* from trying to handle foreign binaries
348*/brp-strip*)
349  b=$(basename $a)
350  sed -e 's,find $RPM_BUILD_ROOT,find $RPM_BUILD_ROOT%_bindir $RPM_BUILD_ROOT%_libexecdir,' $a > $b
351  chmod a+x $b
352  ;;
353esac
354done
355
356sed -e 's,^[ ]*/usr/lib/rpm.*/brp-strip,./brp-strip,' \
357< os_install_post~ > os_install_post
358%define __os_install_post . ./os_install_post
359
360
361cat << EOF > %{_builddir}/%{name}-%{gcc_rpmvers}/find-provides
362#!/bin/sh
363grep -E -v '^${RPM_BUILD_ROOT}%{_exec_prefix}/i586-pc-freebsd7.2/(lib|include|sys-root)' \
364  %{?_gcclibdir:| grep -v '^${RPM_BUILD_ROOT}%{_gcclibdir}/gcc/i586-pc-freebsd7.2/'} | %__find_provides
365EOF
366chmod +x %{_builddir}/%{name}-%{gcc_rpmvers}/find-provides
367%define __find_provides %{_builddir}/%{name}-%{gcc_rpmvers}/find-provides
368
369cat << EOF > %{_builddir}/%{name}-%{gcc_rpmvers}/find-requires
370#!/bin/sh
371grep -E -v '^${RPM_BUILD_ROOT}%{_exec_prefix}/i586-pc-freebsd7.2/(lib|include|sys-root)' \
372  %{?_gcclibdir:| grep -v '^${RPM_BUILD_ROOT}%{_gcclibdir}/gcc/i586-pc-freebsd7.2/'} | %__find_requires
373EOF
374chmod +x %{_builddir}/%{name}-%{gcc_rpmvers}/find-requires
375%define __find_requires %{_builddir}/%{name}-%{gcc_rpmvers}/find-requires
376
377%ifnarch noarch
378# Extract %%__debug_install_post into debug_install_post~
379cat << \EOF > debug_install_post~
380%__debug_install_post
381EOF
382
383# Generate customized debug_install_post script
384cat debug_install_post~ | while read a x y; do
385case $a in
386# Prevent find-debuginfo.sh* from trying to handle foreign binaries
387*/find-debuginfo.sh)
388  b=$(basename $a)
389  sed -e 's,find "$RPM_BUILD_ROOT" !,find "$RPM_BUILD_ROOT"%_bindir "$RPM_BUILD_ROOT"%_libexecdir !,' $a > $b
390  chmod a+x $b
391  ;;
392esac
393done
394
395sed -e 's,^[ ]*/usr/lib/rpm/find-debuginfo.sh,./find-debuginfo.sh,' \
396< debug_install_post~ > debug_install_post
397%define __debug_install_post . ./debug_install_post
398
399%endif
400
401%clean
402  rm -rf $RPM_BUILD_ROOT
403
404# ==============================================================
405# i586-pc-freebsd7.2-gcc
406# ==============================================================
407# %package -n i586-pc-freebsd7.2-gcc
408# Summary:        GNU cc compiler for i586-pc-freebsd7.2
409# Group:          Development/Tools
410# Version:        %{gcc_rpmvers}
411# Requires:       i586-pc-freebsd7.2-binutils
412# License:      GPL
413
414# %if %build_infos
415# Requires:      gcc-common
416# %endif
417
418%description -n i586-pc-freebsd7.2-gcc
419GNU cc compiler for i586-pc-freebsd7.2.
420
421# ==============================================================
422# i586-pc-freebsd7.2-gcc-libgcc
423# ==============================================================
424%package -n i586-pc-freebsd7.2-gcc-libgcc
425Summary:        libgcc for i586-pc-freebsd7.2-gcc
426Group:          Development/Tools
427Version:        %{gcc_rpmvers}
428%{?_with_noarch_subpackages:BuildArch: noarch}
429License:        GPL
430
431%description -n i586-pc-freebsd7.2-gcc-libgcc
432libgcc i586-pc-freebsd7.2-gcc.
433
434
435%files -n i586-pc-freebsd7.2-gcc
436%defattr(-,root,root)
437
438%{_mandir}/man1/i586-pc-freebsd7.2-gcc.1*
439%{_mandir}/man1/i586-pc-freebsd7.2-cpp.1*
440%{_mandir}/man1/i586-pc-freebsd7.2-gcov.1*
441
442%{_bindir}/i586-pc-freebsd7.2-cpp%{_exeext}
443%{_bindir}/i586-pc-freebsd7.2-gcc%{_exeext}
444%{_bindir}/i586-pc-freebsd7.2-gcc-%{gcc_version}%{_exeext}
445%{_bindir}/i586-pc-freebsd7.2-gcov%{_exeext}
446%{_bindir}/i586-pc-freebsd7.2-gccbug
447
448%dir %{_libexecdir}/gcc
449%dir %{_libexecdir}/gcc/i586-pc-freebsd7.2
450%dir %{_libexecdir}/gcc/i586-pc-freebsd7.2/%{gcc_version}
451%{_libexecdir}/gcc/i586-pc-freebsd7.2/%{gcc_version}/cc1%{_exeext}
452%{_libexecdir}/gcc/i586-pc-freebsd7.2/%{gcc_version}/collect2%{_exeext}
453
454
455%files -n i586-pc-freebsd7.2-gcc-libgcc -f build/files.gcc
456%defattr(-,root,root)
457%dir %{_gcclibdir}/gcc
458%dir %{_gcclibdir}/gcc/i586-pc-freebsd7.2
459%dir %{_gcclibdir}/gcc/i586-pc-freebsd7.2/%{gcc_version}
460%dir %{_gcclibdir}/gcc/i586-pc-freebsd7.2/%{gcc_version}/include
461
462%if "%{gcc_version}" > "4.0.3"
463%if "i586-pc-freebsd7.2" != "bfin-rtems4.10"
464%if "i586-pc-freebsd7.2" != "avr-rtems4.10"
465%dir %{_gcclibdir}/gcc/i586-pc-freebsd7.2/%{gcc_version}/include/ssp
466%endif
467%endif
468%endif
469
470%if "%{gcc_version}" >= "4.3.0"
471%{_gcclibdir}/gcc/i586-pc-freebsd7.2/%{gcc_version}/include-fixed
472%endif
473
474# ==============================================================
475# i586-pc-freebsd7.2-gcc-c++
476# ==============================================================
477%package -n i586-pc-freebsd7.2-gcc-c++
478Summary:        GCC c++ compiler for i586-pc-freebsd7.2
479Group:          Development/Tools
480Version:        %{gcc_rpmvers}
481License:        GPL
482Requires:       i586-pc-freebsd7.2-gcc-libstdc++ = %{gcc_rpmvers}-%{release}
483
484%if "%{_build}" != "%{_host}"
485BuildRequires:  i586-pc-freebsd7.2-gcc-c++ = %{gcc_rpmvers}
486%endif
487
488Requires:       i586-pc-freebsd7.2-gcc = %{gcc_rpmvers}-%{release}
489
490%description -n i586-pc-freebsd7.2-gcc-c++
491GCC c++ compiler for i586-pc-freebsd7.2.
492
493
494%package -n i586-pc-freebsd7.2-gcc-libstdc++
495Summary:        libstdc++ for i586-pc-freebsd7.2
496Group:          Development/Tools
497Version:        %{gcc_rpmvers}
498%{?_with_noarch_subpackages:BuildArch: noarch}
499License:        GPL
500
501%description -n i586-pc-freebsd7.2-gcc-libstdc++
502%{_summary}
503
504
505%files -n i586-pc-freebsd7.2-gcc-c++
506%defattr(-,root,root)
507
508%{_mandir}/man1/i586-pc-freebsd7.2-g++.1*
509
510%{_bindir}/i586-pc-freebsd7.2-c++%{_exeext}
511%{_bindir}/i586-pc-freebsd7.2-g++%{_exeext}
512
513%dir %{_libexecdir}/gcc
514%dir %{_libexecdir}/gcc/i586-pc-freebsd7.2
515%dir %{_libexecdir}/gcc/i586-pc-freebsd7.2/%{gcc_version}
516%{_libexecdir}/gcc/i586-pc-freebsd7.2/%{gcc_version}/cc1plus%{_exeext}
517
518
519%files -n i586-pc-freebsd7.2-gcc-libstdc++ -f build/files.g++
520%defattr(-,root,root)
521%dir %{_gcclibdir}/gcc
522%dir %{_gcclibdir}/gcc/i586-pc-freebsd7.2
523%dir %{_gcclibdir}/gcc/i586-pc-freebsd7.2/%{gcc_version}
524%dir %{_gcclibdir}/gcc/i586-pc-freebsd7.2/%{gcc_version}/include
525%{_gcclibdir}/gcc/i586-pc-freebsd7.2/%{gcc_version}/include/c++
526
527# ==============================================================
528# i586-pc-freebsd7.2-gcc-gfortran
529# ==============================================================
530%package -n i586-pc-freebsd7.2-gcc-gfortran
531Summary:        Fortran 95 support for i586-pc-freebsd7.2-gcc
532Group:          Development/Tools
533Version:        %{gcc_rpmvers}
534License:        GPL
535
536Requires:       i586-pc-freebsd7.2-gcc = %{gcc_rpmvers}-%{release}
537Requires:       i586-pc-freebsd7.2-gcc-libgfortran = %{gcc_rpmvers}-%{release}
538
539%description -n i586-pc-freebsd7.2-gcc-gfortran
540GCC fortran compiler for i586-pc-freebsd7.2.
541
542%files -n i586-pc-freebsd7.2-gcc-gfortran
543%defattr(-,root,root)
544%{_bindir}/i586-pc-freebsd7.2-gfortran%{_exeext}
545
546%{_mandir}/man1/i586-pc-freebsd7.2-gfortran.1*
547
548%dir %{_libexecdir}/gcc
549%dir %{_libexecdir}/gcc/i586-pc-freebsd7.2
550%dir %{_libexecdir}/gcc/i586-pc-freebsd7.2/%{gcc_version}
551%{_libexecdir}/gcc/i586-pc-freebsd7.2/%{gcc_version}/f951%{_exeext}
552
553# ==============================================================
554# i586-pc-freebsd7.2-gcc-libgfortran
555# ==============================================================
556%package -n i586-pc-freebsd7.2-gcc-libgfortran
557Summary:        Fortran 95 support libraries for i586-pc-freebsd7.2-gcc
558Group:          Development/Tools
559Version:        %{gcc_rpmvers}
560%{?_with_noarch_subpackages:BuildArch: noarch}
561License:        GPL
562
563%description -n i586-pc-freebsd7.2-gcc-libgfortran
564%{_summary}
565
566%files -n i586-pc-freebsd7.2-gcc-libgfortran -f build/files.gfortran
567%defattr(-,root,root)
568%dir %{_gcclibdir}/gcc
569%dir %{_gcclibdir}/gcc/i586-pc-freebsd7.2
570%dir %{_gcclibdir}/gcc/i586-pc-freebsd7.2/%{gcc_version}
571%if "%{gcc_version}" >= "4.2.0"
572%{_gcclibdir}/gcc/i586-pc-freebsd7.2/%{gcc_version}/finclude
573%endif
574
575# ==============================================================
576# i586-pc-freebsd7.2-gcc-objc
577# ==============================================================
578%package -n i586-pc-freebsd7.2-gcc-objc
579Summary:        Objective C support for i586-pc-freebsd7.2-gcc
580Group:          Development/Tools
581Version:        %{gcc_rpmvers}
582License:        GPL
583
584Requires:       i586-pc-freebsd7.2-gcc = %{gcc_rpmvers}-%{release}
585Requires:       i586-pc-freebsd7.2-gcc-libobjc = %{gcc_rpmvers}-%{release}
586
587%description -n i586-pc-freebsd7.2-gcc-objc
588GCC objc compiler for i586-pc-freebsd7.2.
589
590%files -n i586-pc-freebsd7.2-gcc-objc
591%defattr(-,root,root)
592%dir %{_libexecdir}/gcc
593%dir %{_libexecdir}/gcc/i586-pc-freebsd7.2
594%dir %{_libexecdir}/gcc/i586-pc-freebsd7.2/%{gcc_version}
595%{_libexecdir}/gcc/i586-pc-freebsd7.2/%{gcc_version}/cc1obj%{_exeext}
596
597# ==============================================================
598# i586-pc-freebsd7.2-gcc-libobjc
599# ==============================================================
600%package -n i586-pc-freebsd7.2-gcc-libobjc
601Summary:        Objective C support for i586-pc-freebsd7.2-gcc
602Group:          Development/Tools
603Version:        %{gcc_rpmvers}
604%{?_with_noarch_subpackages:BuildArch: noarch}
605License:        GPL
606
607%description -n i586-pc-freebsd7.2-gcc-libobjc
608Support libraries for GCC's objc compiler for i586-pc-freebsd7.2.
609
610%files -n i586-pc-freebsd7.2-gcc-libobjc -f build/files.objc
611%defattr(-,root,root)
612%dir %{_gcclibdir}/gcc
613%dir %{_gcclibdir}/gcc/i586-pc-freebsd7.2
614%dir %{_gcclibdir}/gcc/i586-pc-freebsd7.2/%{gcc_version}
615%dir %{_gcclibdir}/gcc/i586-pc-freebsd7.2/%{gcc_version}/include
616%{_gcclibdir}/gcc/i586-pc-freebsd7.2/%{gcc_version}/include/objc
617
Note: See TracBrowser for help on using the repository browser.