source: rtems/contrib/crossrpms/rtems4.10/h8300/rtems-4.10-h8300-rtems4.10-gcc.spec @ fddb62c

4.104.11
Last change on this file since fddb62c was 35381baa, checked in by Ralf Corsepius <ralf.corsepius@…>, on Jan 26, 2009 at 7:17:37 AM

BR: exact version of build host tools for Cdn-X builds.

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