source: rtems/contrib/crossrpms/rtems4.10/mips/rtems-4.10-mips-rtems4.10-gcc.spec @ f1322b47

4.104.11
Last change on this file since f1322b47 was f1322b47, checked in by Ralf Corsepius <ralf.corsepius@…>, on Nov 10, 2008 at 10:47:51 AM

Regenerate.

  • Property mode set to 100644
File size: 18.2 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-mips-rtems4.10-gcc
51Summary:        mips-rtems4.10 gcc
52
53Group:          Development/Tools
54Version:        %{gcc_rpmvers}
55Release:        9%{?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-mips-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-mips-rtems4.10-binutils
93
94Requires:       rtems-4.10-gcc-common
95Requires:       rtems-4.10-mips-rtems4.10-binutils
96Requires:       rtems-4.10-mips-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-20081003.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-20081003.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 mips-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=mips-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/mips-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}/mips-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}/mips-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}/mips-rtems4.10-mips-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}/mips-rtems4.10/%{gcc_version}/install-tools
263  rm -rf ${RPM_BUILD_ROOT}%{gccexec}/mips-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}/mips-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}/mips-rtems4.10" >> dirs
289
290  TGTDIR="%{gcclib}/mips-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}/mips-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}/mips-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}/mips-rtems4.10/(lib|include|sys-root)' \
377  | grep -v '^${RPM_BUILD_ROOT}%{gcclib}/mips-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}/mips-rtems4.10/(lib|include|sys-root)' \
385  | grep -v '^${RPM_BUILD_ROOT}%{gcclib}/mips-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%ifnarch noarch
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%endif
413
414%clean
415  rm -rf $RPM_BUILD_ROOT
416
417# ==============================================================
418# rtems-4.10-mips-rtems4.10-gcc
419# ==============================================================
420# %package -n rtems-4.10-mips-rtems4.10-gcc
421# Summary:        GNU cc compiler for mips-rtems4.10
422# Group:          Development/Tools
423# Version:        %{gcc_rpmvers}
424# Requires:       rtems-4.10-mips-rtems4.10-binutils
425# Requires:       rtems-4.10-mips-rtems4.10-newlib = %{newlib_version}-%{release}
426# License:      GPL
427
428# %if %build_infos
429# Requires:      rtems-4.10-gcc-common
430# %endif
431
432%description -n rtems-4.10-mips-rtems4.10-gcc
433GNU cc compiler for mips-rtems4.10.
434
435%files -n rtems-4.10-mips-rtems4.10-gcc -f build/files.gcc
436%defattr(-,root,root)
437%dir %{_mandir}
438%dir %{_mandir}/man1
439%{_mandir}/man1/mips-rtems4.10-gcc.1*
440%if "%{gcc_version}" >= "3.4"
441%{_mandir}/man1/mips-rtems4.10-cpp.1*
442%{_mandir}/man1/mips-rtems4.10-gcov.1*
443%endif
444
445%dir %{_bindir}
446%{_bindir}/mips-rtems4.10-cpp%{_exeext}
447%{_bindir}/mips-rtems4.10-gcc%{_exeext}
448%if "%{gcc_version}" >= "3.3"
449%{_bindir}/mips-rtems4.10-gcc-%{gcc_version}%{_exeext}
450%endif
451%{_bindir}/mips-rtems4.10-gcov%{_exeext}
452%{_bindir}/mips-rtems4.10-gccbug
453
454%dir %{gcclib}/mips-rtems4.10/%{gcc_version}/include
455%if "%{gcc_version}" > "4.0.3"
456%if "mips-rtems4.10" != "bfin-rtems4.10"
457%if "mips-rtems4.10" != "avr-rtems4.10"
458%dir %{gcclib}/mips-rtems4.10/%{gcc_version}/include/ssp
459%endif
460%endif
461%endif
462
463%if "%{gcc_version}" >= "4.3.0"
464%dir %{gcclib}/mips-rtems4.10/%{gcc_version}/include-fixed
465%endif
466
467%dir %{gccexec}
468%dir %{gccexec}/mips-rtems4.10
469%dir %{gccexec}/mips-rtems4.10/%{gcc_version}
470%{gccexec}/mips-rtems4.10/%{gcc_version}/cc1%{_exeext}
471%{gccexec}/mips-rtems4.10/%{gcc_version}/collect2%{_exeext}
472
473# ==============================================================
474# rtems-4.10-gcc-common
475# ==============================================================
476%package -n rtems-4.10-gcc-common
477Summary:        Base package for rtems gcc and newlib C Library
478Group:          Development/Tools
479Version:        %{gcc_rpmvers}
480License:        GPL
481
482Requires(post):         /sbin/install-info
483Requires(preun):        /sbin/install-info
484
485%description -n rtems-4.10-gcc-common
486GCC files that are shared by all targets.
487
488%files -n rtems-4.10-gcc-common
489%defattr(-,root,root)
490%dir %{_infodir}
491%ghost %{_infodir}/dir
492%{_infodir}/cpp.info*
493%{_infodir}/cppinternals.info*
494%{_infodir}/gcc.info*
495%{_infodir}/gccint.info*
496%if "%{gcc_version}" >= "3.4"
497%{_infodir}/gccinstall.info*
498%endif
499
500%dir %{_mandir}
501%if "%{gcc_version}" < "3.4"
502%dir %{_mandir}/man1
503%{_mandir}/man1/cpp.1*
504%{_mandir}/man1/gcov.1*
505%endif
506%dir %{_mandir}/man7
507%{_mandir}/man7/fsf-funding.7*
508%{_mandir}/man7/gfdl.7*
509%{_mandir}/man7/gpl.7*
510
511%post -n rtems-4.10-gcc-common
512  /sbin/install-info --info-dir=%{_infodir} %{_infodir}/cpp.info.gz || :
513  /sbin/install-info --info-dir=%{_infodir} %{_infodir}/cppinternals.info.gz || :
514  /sbin/install-info --info-dir=%{_infodir} %{_infodir}/gcc.info.gz || :
515  /sbin/install-info --info-dir=%{_infodir} %{_infodir}/gccint.info.gz || :
516%if "%{gcc_version}" >= "3.4"
517  /sbin/install-info --info-dir=%{_infodir} %{_infodir}/gccinstall.info.gz || :
518%endif
519
520%preun -n rtems-4.10-gcc-common
521if [ $1 -eq 0 ]; then
522  /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/cpp.info.gz || :
523  /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/cppinternals.info.gz || :
524  /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/gcc.info.gz || :
525  /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/gccint.info.gz || :
526%if "%{gcc_version}" >= "3.4"
527  /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/gccinstall.info.gz || :
528%endif
529fi
530
531# ==============================================================
532# rtems-4.10-mips-rtems4.10-gcc-c++
533# ==============================================================
534%package -n rtems-4.10-mips-rtems4.10-gcc-c++
535Summary:        GCC c++ compiler for mips-rtems4.10
536Group:          Development/Tools
537Version:        %{gcc_rpmvers}
538License:        GPL
539
540%if "%{_build}" != "%{_host}"
541BuildRequires:  rtems-4.10-mips-rtems4.10-gcc-c++
542%endif
543Provides:       rtems-4.10-mips-rtems4.10-c++ = %{gcc_rpmvers}-%{release}
544Obsoletes:      rtems-4.10-mips-rtems4.10-c++ < %{gcc_rpmvers}-%{release}
545
546Requires:       rtems-4.10-gcc-common
547Requires:       rtems-4.10-mips-rtems4.10-gcc = %{gcc_rpmvers}-%{release}
548
549%description -n rtems-4.10-mips-rtems4.10-gcc-c++
550GCC c++ compiler for mips-rtems4.10.
551
552%files -n rtems-4.10-mips-rtems4.10-gcc-c++ -f build/files.g++
553%defattr(-,root,root)
554%{_mandir}/man1/mips-rtems4.10-g++.1*
555
556%{_bindir}/mips-rtems4.10-c++%{_exeext}
557%{_bindir}/mips-rtems4.10-g++%{_exeext}
558
559%dir %{gccexec}
560%dir %{gccexec}/mips-rtems4.10
561%dir %{gccexec}/mips-rtems4.10/%{gcc_version}
562%{gccexec}/mips-rtems4.10/%{gcc_version}/cc1plus%{_exeext}
563
564%dir %{gcclib}/mips-rtems4.10/%{gcc_version}/include
565%if "%{gcc_version}" >= "3.2"
566%{gcclib}/mips-rtems4.10/%{gcc_version}/include/c++
567%else
568%{gcclib}/mips-rtems4.10/%{gcc_version}/include/g++
569%endif
570
571
572
573# ==============================================================
574# rtems-4.10-mips-rtems4.10-newlib
575# ==============================================================
576%package -n rtems-4.10-mips-rtems4.10-newlib
577Summary:        C Library (newlib) for mips-rtems4.10
578Group:          Development/Tools
579License:        Distributable
580Version:        %{newlib_version}
581
582Provides:       rtems-4.10-mips-rtems4.10-libc = %{newlib_version}-%{release}
583Obsoletes:      rtems-4.10-mips-rtems4.10-libc < %{newlib_version}-%{release}
584
585Requires:       rtems-4.10-newlib-common
586
587%description -n rtems-4.10-mips-rtems4.10-newlib
588Newlib C Library for mips-rtems4.10.
589
590%files -n rtems-4.10-mips-rtems4.10-newlib -f build/files.newlib
591%defattr(-,root,root)
592%dir %{_prefix}
593%dir %{_exec_prefix}/mips-rtems4.10
594%{_exec_prefix}/mips-rtems4.10/include
595
596# ==============================================================
597# rtems-4.10-newlib-common
598# ==============================================================
599%package -n rtems-4.10-newlib-common
600Summary:        Base package for RTEMS newlib C Library
601Group:          Development/Tools
602Version:        %{newlib_version}
603License:        Distributable
604
605Requires(post):         /sbin/install-info
606Requires(preun):        /sbin/install-info
607
608%description -n rtems-4.10-newlib-common
609newlib files that are shared by all targets.
610
611%files -n rtems-4.10-newlib-common
612%defattr(-,root,root)
613%dir %{_infodir}
614%ghost %{_infodir}/dir
615%{_infodir}/libc.info*
616%{_infodir}/libm.info*
617
618%post -n rtems-4.10-newlib-common
619  /sbin/install-info --info-dir=%{_infodir} %{_infodir}/libc.info.gz || :
620  /sbin/install-info --info-dir=%{_infodir} %{_infodir}/libm.info.gz || :
621
622%preun -n rtems-4.10-newlib-common
623if [ $1 -eq 0 ]; then
624  /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/libc.info.gz || :
625  /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/libm.info.gz || :
626fi
627
Note: See TracBrowser for help on using the repository browser.