source: rtems/contrib/crossrpms/rtems4.10/avr/rtems-4.10-avr-rtems4.10-gcc.spec @ 8429438

4.104.11
Last change on this file since 8429438 was 8429438, checked in by Ralf Corsepius <ralf.corsepius@…>, on Nov 19, 2008 at 5:07:56 PM

Regenerate.

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