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

4.104.114.9
Last change on this file since 211c22eb was 211c22eb, checked in by Ralf Corsepius <ralf.corsepius@…>, on Mar 14, 2008 at 3:34:59 PM

Regenerate.

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