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