source: rtems/contrib/crossrpms/rtems4.10/m32c/rtems-4.10-m32c-rtems4.10-gcc.spec @ 0b45f1a2

4.104.11
Last change on this file since 0b45f1a2 was a2f4fc1, checked in by Ralf Corsepius <ralf.corsepius@…>, on Mar 15, 2010 at 4:38:34 PM

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