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

4.104.11
Last change on this file since 719a5c7 was 719a5c7, checked in by Ralf Corsepius <ralf.corsepius@…>, on Nov 7, 2008 at 2:54:05 AM

Regenerate.

  • Property mode set to 100644
File size: 16.6 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-avr-rtems4.10-gcc
51Summary:        avr-rtems4.10 gcc
52
53Group:          Development/Tools
54Version:        %{gcc_rpmvers}
55Release:        8%{?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-avr-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-avr-rtems4.10-binutils
93
94Requires:       rtems-4.10-gcc-common
95Requires:       rtems-4.10-avr-rtems4.10-binutils
96Requires:       rtems-4.10-avr-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 avr-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=avr-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/avr-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}/avr-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}/avr-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}/avr-rtems4.10-avr-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}/avr-rtems4.10/%{gcc_version}/install-tools
255  rm -rf ${RPM_BUILD_ROOT}%{gccexec}/avr-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}/avr-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}/avr-rtems4.10" >> dirs
281
282  TGTDIR="%{gcclib}/avr-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}/avr-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}/avr-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}/avr-rtems4.10/(lib|include|sys-root)' \
369  | grep -v '^${RPM_BUILD_ROOT}%{gcclib}/avr-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}/avr-rtems4.10/(lib|include|sys-root)' \
377  | grep -v '^${RPM_BUILD_ROOT}%{gcclib}/avr-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
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
405%clean
406  rm -rf $RPM_BUILD_ROOT
407
408# ==============================================================
409# rtems-4.10-avr-rtems4.10-gcc
410# ==============================================================
411# %package -n rtems-4.10-avr-rtems4.10-gcc
412# Summary:        GNU cc compiler for avr-rtems4.10
413# Group:          Development/Tools
414# Version:        %{gcc_rpmvers}
415# Requires:       rtems-4.10-avr-rtems4.10-binutils
416# Requires:       rtems-4.10-avr-rtems4.10-newlib = %{newlib_version}-%{release}
417# License:      GPL
418
419# %if %build_infos
420# Requires:      rtems-4.10-gcc-common
421# %endif
422
423%description -n rtems-4.10-avr-rtems4.10-gcc
424GNU cc compiler for avr-rtems4.10.
425
426%files -n rtems-4.10-avr-rtems4.10-gcc -f build/files.gcc
427%defattr(-,root,root)
428%dir %{_mandir}
429%dir %{_mandir}/man1
430%{_mandir}/man1/avr-rtems4.10-gcc.1*
431%if "%{gcc_version}" >= "3.4"
432%{_mandir}/man1/avr-rtems4.10-cpp.1*
433%{_mandir}/man1/avr-rtems4.10-gcov.1*
434%endif
435
436%dir %{_bindir}
437%{_bindir}/avr-rtems4.10-cpp%{_exeext}
438%{_bindir}/avr-rtems4.10-gcc%{_exeext}
439%if "%{gcc_version}" >= "3.3"
440%{_bindir}/avr-rtems4.10-gcc-%{gcc_version}%{_exeext}
441%endif
442%{_bindir}/avr-rtems4.10-gcov%{_exeext}
443%{_bindir}/avr-rtems4.10-gccbug
444
445%dir %{gcclib}/avr-rtems4.10/%{gcc_version}/include
446%if "%{gcc_version}" > "4.0.3"
447%if "avr-rtems4.10" != "bfin-rtems4.10"
448%if "avr-rtems4.10" != "avr-rtems4.10"
449%dir %{gcclib}/avr-rtems4.10/%{gcc_version}/include/ssp
450%endif
451%endif
452%endif
453
454%if "%{gcc_version}" >= "4.3.0"
455%dir %{gcclib}/avr-rtems4.10/%{gcc_version}/include-fixed
456%endif
457
458%dir %{gccexec}
459%dir %{gccexec}/avr-rtems4.10
460%dir %{gccexec}/avr-rtems4.10/%{gcc_version}
461%{gccexec}/avr-rtems4.10/%{gcc_version}/cc1%{_exeext}
462%{gccexec}/avr-rtems4.10/%{gcc_version}/collect2%{_exeext}
463
464# ==============================================================
465# rtems-4.10-gcc-common
466# ==============================================================
467%package -n rtems-4.10-gcc-common
468Summary:        Base package for rtems gcc and newlib C Library
469Group:          Development/Tools
470Version:        %{gcc_rpmvers}
471License:        GPL
472
473Requires(post):         /sbin/install-info
474Requires(preun):        /sbin/install-info
475
476%description -n rtems-4.10-gcc-common
477GCC files that are shared by all targets.
478
479%files -n rtems-4.10-gcc-common
480%defattr(-,root,root)
481%dir %{_infodir}
482%ghost %{_infodir}/dir
483%{_infodir}/cpp.info*
484%{_infodir}/cppinternals.info*
485%{_infodir}/gcc.info*
486%{_infodir}/gccint.info*
487%if "%{gcc_version}" >= "3.4"
488%{_infodir}/gccinstall.info*
489%endif
490
491%dir %{_mandir}
492%if "%{gcc_version}" < "3.4"
493%dir %{_mandir}/man1
494%{_mandir}/man1/cpp.1*
495%{_mandir}/man1/gcov.1*
496%endif
497%dir %{_mandir}/man7
498%{_mandir}/man7/fsf-funding.7*
499%{_mandir}/man7/gfdl.7*
500%{_mandir}/man7/gpl.7*
501
502%post -n rtems-4.10-gcc-common
503  /sbin/install-info --info-dir=%{_infodir} %{_infodir}/cpp.info.gz || :
504  /sbin/install-info --info-dir=%{_infodir} %{_infodir}/cppinternals.info.gz || :
505  /sbin/install-info --info-dir=%{_infodir} %{_infodir}/gcc.info.gz || :
506  /sbin/install-info --info-dir=%{_infodir} %{_infodir}/gccint.info.gz || :
507%if "%{gcc_version}" >= "3.4"
508  /sbin/install-info --info-dir=%{_infodir} %{_infodir}/gccinstall.info.gz || :
509%endif
510
511%preun -n rtems-4.10-gcc-common
512if [ $1 -eq 0 ]; then
513  /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/cpp.info.gz || :
514  /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/cppinternals.info.gz || :
515  /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/gcc.info.gz || :
516  /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/gccint.info.gz || :
517%if "%{gcc_version}" >= "3.4"
518  /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/gccinstall.info.gz || :
519%endif
520fi
521
522
523
524
525# ==============================================================
526# rtems-4.10-avr-rtems4.10-newlib
527# ==============================================================
528%package -n rtems-4.10-avr-rtems4.10-newlib
529Summary:        C Library (newlib) for avr-rtems4.10
530Group:          Development/Tools
531License:        Distributable
532Version:        %{newlib_version}
533
534Provides:       rtems-4.10-avr-rtems4.10-libc = %{newlib_version}-%{release}
535Obsoletes:      rtems-4.10-avr-rtems4.10-libc < %{newlib_version}-%{release}
536
537Requires:       rtems-4.10-newlib-common
538
539%description -n rtems-4.10-avr-rtems4.10-newlib
540Newlib C Library for avr-rtems4.10.
541
542%files -n rtems-4.10-avr-rtems4.10-newlib -f build/files.newlib
543%defattr(-,root,root)
544%dir %{_prefix}
545%dir %{_exec_prefix}/avr-rtems4.10
546%{_exec_prefix}/avr-rtems4.10/include
547
548# ==============================================================
549# rtems-4.10-newlib-common
550# ==============================================================
551%package -n rtems-4.10-newlib-common
552Summary:        Base package for RTEMS newlib C Library
553Group:          Development/Tools
554Version:        %{newlib_version}
555License:        Distributable
556
557Requires(post):         /sbin/install-info
558Requires(preun):        /sbin/install-info
559
560%description -n rtems-4.10-newlib-common
561newlib files that are shared by all targets.
562
563%files -n rtems-4.10-newlib-common
564%defattr(-,root,root)
565%dir %{_infodir}
566%ghost %{_infodir}/dir
567%{_infodir}/libc.info*
568%{_infodir}/libm.info*
569
570%post -n rtems-4.10-newlib-common
571  /sbin/install-info --info-dir=%{_infodir} %{_infodir}/libc.info.gz || :
572  /sbin/install-info --info-dir=%{_infodir} %{_infodir}/libm.info.gz || :
573
574%preun -n rtems-4.10-newlib-common
575if [ $1 -eq 0 ]; then
576  /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/libc.info.gz || :
577  /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/libm.info.gz || :
578fi
579
Note: See TracBrowser for help on using the repository browser.