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

4.104.11
Last change on this file since fddb62c was 35381baa, checked in by Ralf Corsepius <ralf.corsepius@…>, on Jan 26, 2009 at 7:17:37 AM

BR: exact version of build host tools for Cdn-X builds.

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