source: rtems/contrib/crossrpms/netbsd5.0.2/amd64/amd64-pc-netbsdelf5.0.2-gcc.spec @ 447de8f3

4.104.11
Last change on this file since 447de8f3 was 447de8f3, checked in by Ralf Corsepius <ralf.corsepius@…>, on Apr 19, 2010 at 2:19:21 PM

Regenerate.

  • Property mode set to 100644
File size: 22.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.5.0
35%define gcc_version 4.5.0
36%define gcc_rpmvers %{expand:%(echo "4.5.0" | tr - _ )}
37
38
39Name:           amd64-pc-netbsdelf5.0.2-gcc
40Summary:        amd64-pc-netbsdelf5.0.2 gcc
41
42Group:          Development/Tools
43Version:        %{gcc_rpmvers}
44Release:        0.20100419.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# FIXME: Disable lto for now, to avoid dependencies on libelf
54%bcond_with lto
55
56# FIXME: Disamble python gdb scripts
57# ATM, no idea how to package them
58%bcond_with pygdb
59
60# FIXME: Disable GCC-plugin
61# Bug in gcc-4.5-20100318, doesn't build them on x86_84 hosts.
62%bcond_with plugin
63
64# versions of libraries, we conditionally bundle if necessary
65%global mpc_version     0.8.1
66%global mpfr_version    2.4.1
67%global gmp_version     4.3.2
68%global libelf_version  0.8.13
69
70# versions of libraries these distros are known to ship
71%if 0%{?fc13}
72%global mpc_provided 0.8.1
73%global mpfr_provided 2.4.1
74%global gmp_provided 4.3.1
75%endif
76
77%if 0%{?fc12}
78%global mpc_provided 0.8
79%global mpfr_provided 2.4.1
80%global gmp_provided 4.3.1
81%endif
82
83%if 0%{?fc11}
84%global mpc_provided %{nil}
85%global mpfr_provided 2.4.1
86%global gmp_provided 4.2.4
87%endif
88
89%if 0%{?rhel5}
90%global mpc_provided %{nil}
91%global mpfr_provided %{nil}
92%global gmp_provided 4.1.4
93%endif
94
95%if 0%{?suse11_0}
96%global mpc_provided %{nil}
97%global mpfr_provided 2.3.1
98%global gmp_provided 4.2.2
99%endif
100
101%if 0%{?suse11_1}
102%global mpc_provided %{nil}
103%global mpfr_provided 2.3.2
104%global gmp_provided 4.2.3
105%endif
106
107%if 0%{?suse11_2}
108%global mpc_provided 0.7
109%global mpfr_provided 2.4.1
110%global gmp_provided 4.3.1
111%endif
112
113%if 0%{?cygwin}
114%global mpc_provided 0.8
115%global mpfr_provided 2.4.1
116%global gmp_provided 4.3.1
117%endif
118
119%if 0%{?mingw32}
120%global mpc_provided 0.8.1
121%global mpfr_provided 2.4.1
122%global gmp_provided 4.3.2
123%endif
124
125%if "%{gcc_version}" >= "4.2.0"
126%define gmp_required            4.1
127%define mpfr_required           2.2.1
128%endif
129
130%if "%{gcc_version}" >= "4.3.0"
131%define gmp_required            4.1
132%define mpfr_required           2.3.1
133%endif
134
135%if "%{gcc_version}" >= "4.3.3"
136%define cloog_required          0.15
137%endif
138
139%if "%{gcc_version}" >= "4.4.0"
140%define mpfr_required           2.3.2
141%endif
142
143%if "%{gcc_version}" >= "4.5.0"
144%define mpc_required            0.8
145%if %{with lto}
146%define libelf_required         0.8.12
147%endif
148%endif
149
150%if %{defined mpc_required}
151%if "%{mpc_provided}" >= "%{mpc_required}"
152%{?fedora:BuildRequires: libmpc-devel >= %{mpc_required}}
153%{?suse:BuildRequires: mpc-devel >= %{mpc_required}}
154%if "%{_build}" != "%{_host}"
155BuildRequires:  %{_host_rpmprefix}mpc-devel >= %{mpc_required}
156%endif
157%else
158%define _build_mpc 1
159%endif
160%endif
161
162%if %{defined gmp_required}
163%if "%{gmp_provided}" >= "%{gmp_required}"
164BuildRequires: gmp-devel >= %{gmp_required}
165%if "%{_build}" != "%{_host}"
166BuildRequires:  %{_host_rpmprefix}gmp-devel >= %{gmp_required}
167%endif
168%else
169%define _build_gmp 1
170%endif
171%endif
172
173%if %{defined libelf_required}
174%if "%{libelf_provided}" >= "%{libelf_required}"
175BuildRequires: libelf-devel >= %{libelf_required}
176%if "%{_build}" != "%{_host}"
177BuildRequires:  %{_host_rpmprefix}libelf-devel >= %{libelf_required}
178%endif
179%else
180%define _build_libelf 1
181%endif
182%endif
183
184
185%if %{defined cloog_required}
186%{?fc11:BuildRequires: cloog-ppl-devel >= %cloog_required}
187%{?fc12:BuildRequires: cloog-ppl-devel >= %cloog_required}
188%{?fc13:BuildRequires: cloog-ppl-devel >= %cloog_required}
189%{?suse11_2:BuildRequires: cloog-devel >= %cloog_required, ppl-devel}
190%{?suse11_1:BuildRequires: cloog-devel >= %cloog_required, ppl-devel}
191%endif
192
193
194%if %{defined mpfr_required}
195%if "%{mpfr_provided}" >= "%{mpfr_required}"
196BuildRequires: mpfr-devel >= %{mpfr_required}
197%if "%{_build}" != "%{_host}"
198BuildRequires:  %{_host_rpmprefix}mpfr-devel >= %{mpfr_required}
199%endif
200%else
201%define _build_mpfr 1
202%endif
203%endif
204
205%if "%{_build}" != "%{_host}"
206BuildRequires:  amd64-pc-netbsdelf5.0.2-gcc = %{gcc_rpmvers}
207%endif
208
209%if "%{gcc_version}" >= "4.2.0"
210BuildRequires:  flex bison
211%endif
212
213
214BuildRequires:  texinfo >= 4.2
215BuildRequires:  amd64-pc-netbsdelf5.0.2-binutils
216BuildRequires:  amd64-pc-netbsdelf5.0.2-sys-root
217
218Requires:       amd64-pc-netbsdelf5.0.2-binutils
219Requires:       amd64-pc-netbsdelf5.0.2-sys-root
220Requires:       amd64-pc-netbsdelf5.0.2-gcc-libgcc = %{gcc_rpmvers}-%{release}
221
222%if "%{gcc_version}" >= "4.5.0"
223BuildRequires:  zlib-devel
224%if "%{_build}" != "%{_host}"
225BuildRequires:  %{_host_rpmprefix}zlib-devel
226%endif
227%else
228%endif
229
230%global _gcclibdir %{_prefix}/lib
231
232Source0:        ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_version}/gcc-core-%{gcc_pkgvers}.tar.bz2
233%if "%{gcc_version}" == "4.5.0"
234Patch0:         ftp://ftp.rtems.org/pub/rtems/SOURCES/4.11/gcc-core-4.5.0-rtems4.11-20100419.diff
235%endif
236%{?_without_sources:NoSource:   0}
237
238Source1:        ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_version}/gcc-g++-%{gcc_pkgvers}.tar.bz2
239%{?_without_sources:NoSource:   1}
240
241Source2:        ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_version}/gcc-fortran-%{gcc_pkgvers}.tar.bz2
242%{?_without_sources:NoSource:   2}
243
244Source5:        ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_version}/gcc-objc-%{gcc_pkgvers}.tar.bz2
245%{?_without_sources:NoSource:   5}
246
247%if 0%{?_build_mpfr}
248Source60:    http://www.mpfr.org/mpfr-current/mpfr-%{mpfr_version}.tar.bz2
249%endif
250
251%if 0%{?_build_mpc}
252Source61:    http://www.multiprecision.org/mpc/download/mpc-%{mpc_version}.tar.gz
253%endif
254
255%if 0%{?_build_gmp}
256Source62:    ftp://ftp.gnu.org/gnu/gmp/gmp-%{gmp_version}.tar.bz2
257%endif
258
259%if 0%{?_build_libelf}
260Source63:    http://www.mr511.de/software/libelf-%{libelf_version}.tar.gz
261%endif
262
263%description
264Cross gcc for amd64-pc-netbsdelf5.0.2.
265
266%prep
267%setup -c -T -n %{name}-%{version}
268
269%setup -q -T -D -n %{name}-%{version} -a0
270cd gcc-%{gcc_pkgvers}
271%{?PATCH0:%patch0 -p1}
272cd ..
273
274%setup -q -T -D -n %{name}-%{version} -a1
275cd gcc-%{gcc_pkgvers}
276%{?PATCH1:%patch1 -p1}
277cd ..
278
279%setup -q -T -D -n %{name}-%{version} -a2
280%{?PATCH2:%patch2 -p0}
281
282
283
284%setup -q -T -D -n %{name}-%{version} -a5
285%{?PATCH5:%patch5 -p0}
286
287
288%if 0%{?_build_mpfr}
289%setup -q -T -D -n %{name}-%{version} -a60
290%{?PATCH60:%patch60 -p1}
291  # Build mpfr one-tree style
292  ln -s ../mpfr-%{mpfr_version} gcc-%{gcc_pkgvers}/mpfr
293%endif
294
295%if 0%{?_build_mpc}
296%setup -q -T -D -n %{name}-%{version} -a61
297%{?PATCH61:%patch61 -p1}
298  # Build mpc one-tree style
299  ln -s ../mpc-%{mpc_version} gcc-%{gcc_pkgvers}/mpc
300%endif
301
302%if 0%{?_build_gmp}
303%setup -q -T -D -n %{name}-%{version} -a62
304%{?PATCH62:%patch62 -p1}
305  # Build gmp one-tree style
306  ln -s ../gmp-%{gmp_version} gcc-%{gcc_pkgvers}/gmp
307%endif
308
309%if 0%{?_build_libelf}
310%setup -q -T -D -n %{name}-%{version} -a63
311%{?PATCH63:%patch63 -p1}
312  # Build libelf one-tree style
313  ln -s ../libelf-%{libelf_version} gcc-%{gcc_pkgvers}/libelf
314%endif
315
316
317  # Fix timestamps
318  cd gcc-%{gcc_pkgvers}
319  contrib/gcc_update --touch
320  cd ..
321%build
322  mkdir -p build
323
324  cd build
325
326  languages="c"
327  languages="$languages,c++"
328  languages="$languages,fortran"
329  languages="$languages,objc"
330%if "%{_build}" != "%{_host}"
331  CFLAGS_FOR_BUILD="-g -O2 -Wall" \
332  CC="%{_host}-gcc ${RPM_OPT_FLAGS}" \
333%else
334# gcc is not ready to be compiled with -std=gnu99
335  CC=$(echo "%{__cc} ${RPM_OPT_FLAGS}" | sed -e 's,-std=gnu99 ,,') \
336%endif
337  ../gcc-%{gcc_pkgvers}/configure \
338    --prefix=%{_prefix} \
339    --bindir=%{_bindir} \
340    --exec_prefix=%{_exec_prefix} \
341    --includedir=%{_includedir} \
342    --libdir=%{_gcclibdir} \
343    --libexecdir=%{_libexecdir} \
344    --mandir=%{_mandir} \
345    --infodir=%{_infodir} \
346    --datadir=%{_datadir} \
347    --build=%_build --host=%_host \
348    --target=amd64-pc-netbsdelf5.0.2 \
349    --disable-libstdcxx-pch \
350    --with-gnu-as --with-gnu-ld --verbose \
351    --with-system-zlib \
352    --disable-nls --without-included-gettext \
353    --disable-win32-registry \
354    --enable-version-specific-runtime-libs \
355    --enable-threads \
356    --with-sysroot=%{_exec_prefix}/amd64-pc-netbsdelf5.0.2/sys-root \
357    %{?with_lto:--enable-lto}%{!?with_lto:--disable-lto} \
358    %{?with_plugin:--enable-plugin}%{!?with_plugin:--disable-plugin} \
359    --enable-languages="$languages" $optargs
360
361%if "%_host" != "%_build"
362  # Bug in gcc-3.2.1:
363  # Somehow, gcc doesn't get syslimits.h right for Cdn-Xs
364  mkdir -p gcc/include
365  cp ../gcc-%{gcc_pkgvers}/gcc/gsyslimits.h gcc/include/syslimits.h
366%endif
367
368  make %{?_smp_mflags} all
369  cd ..
370
371%install
372  rm -rf $RPM_BUILD_ROOT
373
374  cd build
375
376  make DESTDIR=$RPM_BUILD_ROOT install
377  cd ..
378
379
380%if "%{gcc_version}" <= "4.1.2"
381# Misplaced header file
382  if test -f $RPM_BUILD_ROOT%{_includedir}/mf-runtime.h; then
383    mv $RPM_BUILD_ROOT%{_includedir}/mf-runtime.h \
384      $RPM_BUILD_ROOT%{_gcclibdir}/gcc/amd64-pc-netbsdelf5.0.2/%{gcc_version}/include/
385  fi
386%endif
387
388  # host library
389%if "%{gcc_version}" >= "4.2.0"
390  # libiberty doesn't honor --libdir, but always installs to a
391  # magically guessed _libdir
392  rm -f  ${RPM_BUILD_ROOT}%{_libdir}/libiberty.a
393%else
394  # libiberty installs to --libdir=...
395  rm -f ${RPM_BUILD_ROOT}%{_gcclibdir}/libiberty.a
396%endif
397
398  # We use the version from binutils
399  rm -f $RPM_BUILD_ROOT%{_bindir}/amd64-pc-netbsdelf5.0.2-c++filt%{_exeext}
400
401
402# Conflict with a native GCC's infos
403  rm -rf $RPM_BUILD_ROOT%{_infodir}
404
405# Conflict with a native GCC's man pages
406  rm -rf $RPM_BUILD_ROOT%{_mandir}/man7
407
408  # Bug in gcc-3.4.0pre
409  rm -f $RPM_BUILD_ROOT%{_bindir}/amd64-pc-netbsdelf5.0.2-amd64-pc-netbsdelf5.0.2-gcjh%{_exeext}
410
411  # Bug in gcc-3.3.x/gcc-3.4.x: Despite we don't need fixincludes, it installs
412  # the fixinclude-install-tools
413  rm -rf ${RPM_BUILD_ROOT}%{_gcclibdir}/gcc/amd64-pc-netbsdelf5.0.2/%{gcc_version}/install-tools
414  rm -rf ${RPM_BUILD_ROOT}%{_libexecdir}/gcc/amd64-pc-netbsdelf5.0.2/%{gcc_version}/install-tools
415
416  # Bug in gcc > 4.1.0: Installs an unused, empty directory
417  if test -d ${RPM_BUILD_ROOT}%{_prefix}/amd64-pc-netbsdelf5.0.2/include/bits; then
418    rmdir ${RPM_BUILD_ROOT}%{_prefix}/amd64-pc-netbsdelf5.0.2/include/bits
419  fi
420
421  # gcc >= 4.5.0: installs weird libstdc++ python bindings.
422%if ! %{with pygdb}
423  if test -d ${RPM_BUILD_ROOT}%{_datadir}/gcc-%{gcc_version}/python; then
424    rm -rf ${RPM_BUILD_ROOT}%{_datadir}/gcc-%{gcc_version}/python/libstdcxx
425  fi
426%endif
427
428  # Collect multilib subdirectories
429  multilibs=`build/gcc/xgcc -Bbuild/gcc/ --print-multi-lib | sed -e 's,;.*$,,'`
430
431
432  rm -f dirs ;
433  echo "%defattr(-,root,root,-)" >> dirs
434  TGTDIR="%{_gcclibdir}/gcc/amd64-pc-netbsdelf5.0.2/%{gcc_version}"
435  for i in $multilibs; do
436    case $i in
437    \.) ;; # ignore, handled elsewhere
438    *)  echo "%dir ${TGTDIR}/$i" >> dirs
439      ;;
440    esac
441  done
442
443  # Collect files to go into different packages
444  cp dirs build/files.gcc
445  cp dirs build/files.gfortran
446  cp dirs build/files.objc
447  cp dirs build/files.gcj
448  cp dirs build/files.g++
449
450  TGTDIR="%{_gcclibdir}/gcc/amd64-pc-netbsdelf5.0.2/%{gcc_version}"
451  f=`find ${RPM_BUILD_ROOT}${TGTDIR} ! -type d -print | sed -e "s,^$RPM_BUILD_ROOT,,g"`;
452  for i in $f; do
453    case $i in
454    *lib*.la) rm ${RPM_BUILD_ROOT}/$i ;; # ignore: gcc produces bogus libtool libs
455    *f771) ;;
456    *f951) ;;
457    *cc1) ;;
458    *cc1obj) ;;
459    *cc1plus) ;; # ignore: explicitly put into rpm elsewhere
460    *collect2) ;;
461    *libobjc*) echo "$i" >> build/files.objc ;;
462    *include/objc*) ;;
463    *include/g++*);;
464    *include/c++*);;
465    *include-fixed/*);;
466    *finclude/*);;
467    *adainclude*);;
468    *adalib*);;
469    *gnat1);;
470    *jc1) ;;
471    *jvgenmain) ;;
472    */libgfortran*.*) echo "$i" >> build/files.gfortran ;;
473    %{!?with_pygdb:*/libstdc++*gdb.py*) rm ${RPM_BUILD_ROOT}/$i ;;} # ignore for now
474    %{?with_pygdb:*/libstdc++*gdb.py*) >> build/files.g++ ;;}
475    */libstdc++.*) echo "$i" >> build/files.g++ ;;
476    */libsupc++.*) echo "$i" >> build/files.g++ ;;
477    *) echo "$i" >> build/files.gcc ;;
478    esac
479  done
480
481  TGTDIR="%{_exec_prefix}/amd64-pc-netbsdelf5.0.2/lib"
482  f=`find ${RPM_BUILD_ROOT}${TGTDIR} ! -type d -print | sed -e "s,^$RPM_BUILD_ROOT,,g"`;
483  for i in $f; do
484    case $i in
485    *lib*.la) rm ${RPM_BUILD_ROOT}/$i;; # ignore - gcc produces bogus libtool libs
486    *libiberty.a) rm ${RPM_BUILD_ROOT}/$i ;; # ignore - GPL'ed
487# all other files belong to newlib
488    *) echo "$i" >> build/files.newlib ;;
489    esac
490  done
491# Extract %%__os_install_post into os_install_post~
492cat << \EOF > os_install_post~
493%__os_install_post
494EOF
495
496# Generate customized brp-*scripts
497cat os_install_post~ | while read a x y; do
498case $a in
499# Prevent brp-strip* from trying to handle foreign binaries
500*/brp-strip*)
501  b=$(basename $a)
502  sed -e 's,find $RPM_BUILD_ROOT,find $RPM_BUILD_ROOT%_bindir $RPM_BUILD_ROOT%_libexecdir,' $a > $b
503  chmod a+x $b
504  ;;
505esac
506done
507
508sed -e 's,^[ ]*/usr/lib/rpm.*/brp-strip,./brp-strip,' \
509< os_install_post~ > os_install_post
510%define __os_install_post . ./os_install_post
511
512
513cat << EOF > %{_builddir}/%{name}-%{gcc_rpmvers}/find-provides
514#!/bin/sh
515grep -E -v '^${RPM_BUILD_ROOT}%{_exec_prefix}/amd64-pc-netbsdelf5.0.2/(lib|include|sys-root)' \
516  %{?_gcclibdir:| grep -v '^${RPM_BUILD_ROOT}%{_gcclibdir}/gcc/amd64-pc-netbsdelf5.0.2/'} | %__find_provides
517EOF
518chmod +x %{_builddir}/%{name}-%{gcc_rpmvers}/find-provides
519%define __find_provides %{_builddir}/%{name}-%{gcc_rpmvers}/find-provides
520
521cat << EOF > %{_builddir}/%{name}-%{gcc_rpmvers}/find-requires
522#!/bin/sh
523grep -E -v '^${RPM_BUILD_ROOT}%{_exec_prefix}/amd64-pc-netbsdelf5.0.2/(lib|include|sys-root)' \
524  %{?_gcclibdir:| grep -v '^${RPM_BUILD_ROOT}%{_gcclibdir}/gcc/amd64-pc-netbsdelf5.0.2/'} | %__find_requires
525EOF
526chmod +x %{_builddir}/%{name}-%{gcc_rpmvers}/find-requires
527%define __find_requires %{_builddir}/%{name}-%{gcc_rpmvers}/find-requires
528
529%ifnarch noarch
530# Extract %%__debug_install_post into debug_install_post~
531cat << \EOF > debug_install_post~
532%__debug_install_post
533EOF
534
535# Generate customized debug_install_post script
536cat debug_install_post~ | while read a x y; do
537case $a in
538# Prevent find-debuginfo.sh* from trying to handle foreign binaries
539*/find-debuginfo.sh)
540  b=$(basename $a)
541  sed -e 's,find "$RPM_BUILD_ROOT" !,find "$RPM_BUILD_ROOT"%_bindir "$RPM_BUILD_ROOT"%_libexecdir !,' $a > $b
542  chmod a+x $b
543  ;;
544esac
545done
546
547sed -e 's,^[ ]*/usr/lib/rpm/find-debuginfo.sh,./find-debuginfo.sh,' \
548< debug_install_post~ > debug_install_post
549%define __debug_install_post . ./debug_install_post
550
551%endif
552
553%clean
554  rm -rf $RPM_BUILD_ROOT
555
556# ==============================================================
557# amd64-pc-netbsdelf5.0.2-gcc
558# ==============================================================
559# %package -n amd64-pc-netbsdelf5.0.2-gcc
560# Summary:        GNU cc compiler for amd64-pc-netbsdelf5.0.2
561# Group:          Development/Tools
562# Version:        %{gcc_rpmvers}
563# Requires:       amd64-pc-netbsdelf5.0.2-binutils
564# License:      GPL
565
566# %if %build_infos
567# Requires:      gcc-common
568# %endif
569
570%description -n amd64-pc-netbsdelf5.0.2-gcc
571GNU cc compiler for amd64-pc-netbsdelf5.0.2.
572
573# ==============================================================
574# amd64-pc-netbsdelf5.0.2-gcc-libgcc
575# ==============================================================
576%package -n amd64-pc-netbsdelf5.0.2-gcc-libgcc
577Summary:        libgcc for amd64-pc-netbsdelf5.0.2-gcc
578Group:          Development/Tools
579Version:        %{gcc_rpmvers}
580%{?_with_noarch_subpackages:BuildArch: noarch}
581License:        GPL
582
583%description -n amd64-pc-netbsdelf5.0.2-gcc-libgcc
584libgcc amd64-pc-netbsdelf5.0.2-gcc.
585
586
587%files -n amd64-pc-netbsdelf5.0.2-gcc
588%defattr(-,root,root)
589
590%{_mandir}/man1/amd64-pc-netbsdelf5.0.2-gcc.1*
591%{_mandir}/man1/amd64-pc-netbsdelf5.0.2-cpp.1*
592%{_mandir}/man1/amd64-pc-netbsdelf5.0.2-gcov.1*
593
594%{_bindir}/amd64-pc-netbsdelf5.0.2-cpp%{_exeext}
595%{_bindir}/amd64-pc-netbsdelf5.0.2-gcc%{_exeext}
596%{_bindir}/amd64-pc-netbsdelf5.0.2-gcc-%{gcc_version}%{_exeext}
597%{_bindir}/amd64-pc-netbsdelf5.0.2-gcov%{_exeext}
598%{_bindir}/amd64-pc-netbsdelf5.0.2-gccbug
599
600%dir %{_libexecdir}/gcc
601%dir %{_libexecdir}/gcc/amd64-pc-netbsdelf5.0.2
602%dir %{_libexecdir}/gcc/amd64-pc-netbsdelf5.0.2/%{gcc_version}
603%{_libexecdir}/gcc/amd64-pc-netbsdelf5.0.2/%{gcc_version}/cc1%{_exeext}
604%{_libexecdir}/gcc/amd64-pc-netbsdelf5.0.2/%{gcc_version}/collect2%{_exeext}
605%if "%{gcc_version}" >= "4.5.0"
606%{?with_lto:%{_libexecdir}/gcc/amd64-pc-netbsdelf5.0.2/%{gcc_version}/lto%{_exeext}}
607%{_libexecdir}/gcc/amd64-pc-netbsdelf5.0.2/%{gcc_version}/lto-wrapper%{_exeext}
608%endif
609
610%files -n amd64-pc-netbsdelf5.0.2-gcc-libgcc -f build/files.gcc
611%defattr(-,root,root)
612%dir %{_gcclibdir}/gcc
613%dir %{_gcclibdir}/gcc/amd64-pc-netbsdelf5.0.2
614%dir %{_gcclibdir}/gcc/amd64-pc-netbsdelf5.0.2/%{gcc_version}
615%dir %{_gcclibdir}/gcc/amd64-pc-netbsdelf5.0.2/%{gcc_version}/include
616
617%if "%{gcc_version}" > "4.0.3"
618%dir %{_gcclibdir}/gcc/amd64-pc-netbsdelf5.0.2/%{gcc_version}/include/ssp
619%endif
620
621%if "%{gcc_version}" >= "4.3.0"
622%{_gcclibdir}/gcc/amd64-pc-netbsdelf5.0.2/%{gcc_version}/include-fixed
623%endif
624
625# ==============================================================
626# amd64-pc-netbsdelf5.0.2-gcc-c++
627# ==============================================================
628%package -n amd64-pc-netbsdelf5.0.2-gcc-c++
629Summary:        GCC c++ compiler for amd64-pc-netbsdelf5.0.2
630Group:          Development/Tools
631Version:        %{gcc_rpmvers}
632License:        GPL
633Requires:       amd64-pc-netbsdelf5.0.2-gcc-libstdc++ = %{gcc_rpmvers}-%{release}
634
635%if "%{_build}" != "%{_host}"
636BuildRequires:  amd64-pc-netbsdelf5.0.2-gcc-c++ = %{gcc_rpmvers}
637%endif
638
639Requires:       amd64-pc-netbsdelf5.0.2-gcc = %{gcc_rpmvers}-%{release}
640
641%description -n amd64-pc-netbsdelf5.0.2-gcc-c++
642GCC c++ compiler for amd64-pc-netbsdelf5.0.2.
643
644
645%package -n amd64-pc-netbsdelf5.0.2-gcc-libstdc++
646Summary:        libstdc++ for amd64-pc-netbsdelf5.0.2
647Group:          Development/Tools
648Version:        %{gcc_rpmvers}
649%{?_with_noarch_subpackages:BuildArch: noarch}
650License:        GPL
651
652%description -n amd64-pc-netbsdelf5.0.2-gcc-libstdc++
653%{summary}
654
655
656%files -n amd64-pc-netbsdelf5.0.2-gcc-c++
657%defattr(-,root,root)
658
659%{_mandir}/man1/amd64-pc-netbsdelf5.0.2-g++.1*
660
661%{_bindir}/amd64-pc-netbsdelf5.0.2-c++%{_exeext}
662%{_bindir}/amd64-pc-netbsdelf5.0.2-g++%{_exeext}
663
664%dir %{_libexecdir}/gcc
665%dir %{_libexecdir}/gcc/amd64-pc-netbsdelf5.0.2
666%dir %{_libexecdir}/gcc/amd64-pc-netbsdelf5.0.2/%{gcc_version}
667%{_libexecdir}/gcc/amd64-pc-netbsdelf5.0.2/%{gcc_version}/cc1plus%{_exeext}
668
669
670%files -n amd64-pc-netbsdelf5.0.2-gcc-libstdc++ -f build/files.g++
671%defattr(-,root,root)
672%dir %{_gcclibdir}/gcc
673%dir %{_gcclibdir}/gcc/amd64-pc-netbsdelf5.0.2
674%dir %{_gcclibdir}/gcc/amd64-pc-netbsdelf5.0.2/%{gcc_version}
675%dir %{_gcclibdir}/gcc/amd64-pc-netbsdelf5.0.2/%{gcc_version}/include
676%{_gcclibdir}/gcc/amd64-pc-netbsdelf5.0.2/%{gcc_version}/include/c++
677
678# ==============================================================
679# amd64-pc-netbsdelf5.0.2-gcc-gfortran
680# ==============================================================
681%package -n amd64-pc-netbsdelf5.0.2-gcc-gfortran
682Summary:        Fortran 95 support for amd64-pc-netbsdelf5.0.2-gcc
683Group:          Development/Tools
684Version:        %{gcc_rpmvers}
685License:        GPL
686
687Requires:       amd64-pc-netbsdelf5.0.2-gcc = %{gcc_rpmvers}-%{release}
688Requires:       amd64-pc-netbsdelf5.0.2-gcc-libgfortran = %{gcc_rpmvers}-%{release}
689
690%description -n amd64-pc-netbsdelf5.0.2-gcc-gfortran
691GCC fortran compiler for amd64-pc-netbsdelf5.0.2.
692
693%files -n amd64-pc-netbsdelf5.0.2-gcc-gfortran
694%defattr(-,root,root)
695%{_bindir}/amd64-pc-netbsdelf5.0.2-gfortran%{_exeext}
696
697%{_mandir}/man1/amd64-pc-netbsdelf5.0.2-gfortran.1*
698
699%dir %{_libexecdir}/gcc
700%dir %{_libexecdir}/gcc/amd64-pc-netbsdelf5.0.2
701%dir %{_libexecdir}/gcc/amd64-pc-netbsdelf5.0.2/%{gcc_version}
702%{_libexecdir}/gcc/amd64-pc-netbsdelf5.0.2/%{gcc_version}/f951%{_exeext}
703
704# ==============================================================
705# amd64-pc-netbsdelf5.0.2-gcc-libgfortran
706# ==============================================================
707%package -n amd64-pc-netbsdelf5.0.2-gcc-libgfortran
708Summary:        Fortran 95 support libraries for amd64-pc-netbsdelf5.0.2-gcc
709Group:          Development/Tools
710Version:        %{gcc_rpmvers}
711%{?_with_noarch_subpackages:BuildArch: noarch}
712License:        GPL
713
714%description -n amd64-pc-netbsdelf5.0.2-gcc-libgfortran
715%{summary}
716
717%files -n amd64-pc-netbsdelf5.0.2-gcc-libgfortran -f build/files.gfortran
718%defattr(-,root,root)
719%dir %{_gcclibdir}/gcc
720%dir %{_gcclibdir}/gcc/amd64-pc-netbsdelf5.0.2
721%dir %{_gcclibdir}/gcc/amd64-pc-netbsdelf5.0.2/%{gcc_version}
722%if "%{gcc_version}" >= "4.2.0"
723%{_gcclibdir}/gcc/amd64-pc-netbsdelf5.0.2/%{gcc_version}/finclude
724%endif
725
726# ==============================================================
727# amd64-pc-netbsdelf5.0.2-gcc-objc
728# ==============================================================
729%package -n amd64-pc-netbsdelf5.0.2-gcc-objc
730Summary:        Objective C support for amd64-pc-netbsdelf5.0.2-gcc
731Group:          Development/Tools
732Version:        %{gcc_rpmvers}
733License:        GPL
734
735Requires:       amd64-pc-netbsdelf5.0.2-gcc = %{gcc_rpmvers}-%{release}
736Requires:       amd64-pc-netbsdelf5.0.2-gcc-libobjc = %{gcc_rpmvers}-%{release}
737
738%description -n amd64-pc-netbsdelf5.0.2-gcc-objc
739GCC objc compiler for amd64-pc-netbsdelf5.0.2.
740
741%files -n amd64-pc-netbsdelf5.0.2-gcc-objc
742%defattr(-,root,root)
743%dir %{_libexecdir}/gcc
744%dir %{_libexecdir}/gcc/amd64-pc-netbsdelf5.0.2
745%dir %{_libexecdir}/gcc/amd64-pc-netbsdelf5.0.2/%{gcc_version}
746%{_libexecdir}/gcc/amd64-pc-netbsdelf5.0.2/%{gcc_version}/cc1obj%{_exeext}
747
748# ==============================================================
749# amd64-pc-netbsdelf5.0.2-gcc-libobjc
750# ==============================================================
751%package -n amd64-pc-netbsdelf5.0.2-gcc-libobjc
752Summary:        Objective C support for amd64-pc-netbsdelf5.0.2-gcc
753Group:          Development/Tools
754Version:        %{gcc_rpmvers}
755%{?_with_noarch_subpackages:BuildArch: noarch}
756License:        GPL
757
758%description -n amd64-pc-netbsdelf5.0.2-gcc-libobjc
759Support libraries for GCC's objc compiler for amd64-pc-netbsdelf5.0.2.
760
761%files -n amd64-pc-netbsdelf5.0.2-gcc-libobjc -f build/files.objc
762%defattr(-,root,root)
763%dir %{_gcclibdir}/gcc
764%dir %{_gcclibdir}/gcc/amd64-pc-netbsdelf5.0.2
765%dir %{_gcclibdir}/gcc/amd64-pc-netbsdelf5.0.2/%{gcc_version}
766%dir %{_gcclibdir}/gcc/amd64-pc-netbsdelf5.0.2/%{gcc_version}/include
767%{_gcclibdir}/gcc/amd64-pc-netbsdelf5.0.2/%{gcc_version}/include/objc
768
Note: See TracBrowser for help on using the repository browser.