source: rtems/contrib/crossrpms/rtems4.8/mips/rtems-4.8-mips-rtems4.8-gcc.spec @ 4acc7e2

4.104.114.84.95
Last change on this file since 4acc7e2 was 55e9fca, checked in by Ralf Corsepius <ralf.corsepius@…>, on Jun 18, 2007 at 10:32:03 AM

Preps for next spin.

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