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

4.104.11
Last change on this file since e2b68fc was e2b68fc, checked in by Ralf Corsepius <ralf.corsepius@…>, on Mar 17, 2010 at 5:29:35 AM

Regenerate *.spec.

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