source: rtems/contrib/crossrpms/rtems4.10/i386/rtems-4.10-i386-rtems4.10-gcc.spec @ ca8cbc4e

4.104.11
Last change on this file since ca8cbc4e was 1bb1f322, checked in by Ralf Corsepius <ralf.corsepius@…>, on Apr 17, 2009 at 2:23:14 AM

Regenerate.

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