source: rtems/contrib/crossrpms/rtems4.10/arm/rtems-4.10-arm-rtems4.10-gcc.spec @ d9bf21e

4.104.115
Last change on this file since d9bf21e was d9bf21e, checked in by Ralf Corsepius <ralf.corsepius@…>, on Nov 27, 2009 at 6:35:32 AM

Regenerate.

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