source: rtems/contrib/crossrpms/rtems4.10/m68k/rtems-4.10-m68k-rtems4.10-gcc.spec @ 7f7a3ca4

4.104.11
Last change on this file since 7f7a3ca4 was 7f7a3ca4, checked in by Ralf Corsepius <ralf.corsepius@…>, on Feb 3, 2009 at 6:40:33 AM

Regenerate.

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