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