source: rtems/contrib/crossrpms/rtems4.10/sparc/rtems-4.10-sparc-rtems4.10-gcc.spec @ 5c7a69ba

4.104.114.95
Last change on this file since 5c7a69ba was 3f6e3fa, checked in by Ralf Corsepius <ralf.corsepius@…>, on Jul 3, 2008 at 3:30:57 PM

New.

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