source: rtems/contrib/crossrpms/rtems4.9/powerpc/rtems-4.9-powerpc-rtems4.9-gcc.spec @ caeacf7b

4.104.114.9
Last change on this file since caeacf7b was caeacf7b, checked in by Ralf Corsepius <ralf.corsepius@…>, on Feb 27, 2008 at 2:16:53 PM

Upgrade to gcc-4.3.0-RC-20080222.

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