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

4.104.11
Last change on this file since 719a5c7 was 719a5c7, checked in by Ralf Corsepius <ralf.corsepius@…>, on Nov 7, 2008 at 2:54:05 AM

Regenerate.

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