source: rtems/contrib/crossrpms/rtems4.10/bfin/rtems-4.10-bfin-rtems4.10-gcc.spec @ 0c9bb8ad

4.104.115
Last change on this file since 0c9bb8ad was 0c9bb8ad, checked in by Ralf Corsepius <ralf.corsepius@…>, on Oct 9, 2009 at 4:20:09 AM

Regenerate.

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