source: rtems/contrib/crossrpms/rtems4.10/bfin/rtems-4.10-bfin-rtems4.10-gcc.spec @ f1322b47

4.104.11
Last change on this file since f1322b47 was f1322b47, checked in by Ralf Corsepius <ralf.corsepius@…>, on Nov 10, 2008 at 10:47:51 AM

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