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

4.104.114.95
Last change on this file since e2fe8948 was e2fe8948, checked in by Ralf Corsepius <ralf.corsepius@…>, on Mar 2, 2008 at 6:52:59 AM

Regenerate.

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