source: rtems/contrib/crossrpms/rtems4.10/powerpc/rtems-4.10-powerpc-rtems4.10-gcc.spec @ f63871e3

4.104.11
Last change on this file since f63871e3 was f63871e3, checked in by Ralf Corsepius <ralf.corsepius@…>, on Sep 17, 2008 at 2:02:49 PM

Switch to gcc-core-4.3.2-rtems4.10-20080917.diff.

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