source: rtems/contrib/crossrpms/rtems4.10/h8300/rtems-4.10-h8300-rtems4.10-gcc.spec @ e1b4795

4.104.115
Last change on this file since e1b4795 was e1b4795, checked in by Ralf Corsepius <ralf.corsepius@…>, on Oct 1, 2009 at 3:25:28 AM

Bump GCC_RPMREL.

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