2 %define separate_bi32 0
3 %define separate_bi64 0
5 %define separate_bi64 1
7 %ifarch x86_64 s390x ppc64
8 %define separate_bi32 1
10 Url: http://gcc.gnu.org/
11 %define gcc_version 48
12 %define gcc_suffix 4.8
15 VCS: platform/upstream/gcc#submit/tizen/20130710.130950-0-g53ff3a85824df4cdadecc563ddb81c5a021bcc0b
16 Summary: The system GNU C Compiler
18 Group: Development/Toolchain
20 Obsoletes: gcc-mudflap
22 Requires: gcc%{gcc_version}
23 BuildRoot: %{_tmppath}/%{name}-%{version}-build
25 Source99: README.packaging
28 The system GNU C Compiler.
33 Summary: The system GNU C Compiler
35 Requires: gcc = %{version}
36 Requires: gcc%{gcc_version}-32bit
38 %description -n gcc-32bit
39 The system GNU C Compiler.
44 Summary: The system GNU C Compiler
46 Requires: gcc = %{version}
47 Requires: gcc%{gcc_version}-64bit
49 %description -n gcc-64bit
50 The system GNU C Compiler.
55 Summary: The system GNU Preprocessor
57 Requires: cpp%{gcc_version}
60 The system GNU Preprocessor.
64 %package -n gcc-locale
65 Summary: The system GNU Compiler locale files
67 Requires: gcc%{gcc_version}-locale
69 %description -n gcc-locale
70 The system GNU Compiler locale files.
75 Summary: The system GNU Compiler documentation
77 Requires: gcc%{gcc_version}-info
79 %description -n gcc-info
80 The system GNU Compiler documentation.
82 # There is intentionally no postun with install_info_delete as there
83 # is no way to just remove the aliased entries. The content owners
84 # install_info_delete will also remove the aliases though.
85 # install-info does not pick up descriptions from the content.
88 Summary: The system GNU C++ Compiler
90 Provides: c++_compiler
91 Requires: gcc = %{version}
92 Requires: gcc%{gcc_version}-c++
94 %description -n gcc-c++
95 The system GNU C++ Compiler.
98 %package -n gcc-c++-32bit
99 Summary: The system GNU C++ Compiler
101 Requires: gcc-32bit = %{version}
102 Requires: gcc-c++ = %{version}
103 Requires: libstdc++%{gcc_version}-devel-32bit
105 %description -n gcc-c++-32bit
106 The system GNU C++ Compiler 32 bit support.
109 %package -n gcc-c++-64bit
110 Summary: The system GNU C++ Compiler
112 Requires: gcc-64bit = %{version}
113 Requires: gcc-c++ = %{version}
114 Requires: libstdc++%{gcc_version}-devel-64bit
116 %description -n gcc-c++-64bit
117 The system GNU C++ Compiler 64 bit support.
121 %package -n libstdc++-devel
122 Summary: The system GNU C++ development files
123 License: GPL-3.0-with-GCC-exception
124 Requires: libstdc++%{gcc_version}-devel
126 %description -n libstdc++-devel
127 The system GNU C++ development files.
131 %package -n gcc-fortran
132 Summary: The system GNU Fortran Compiler
134 Requires: gcc = %{version}
135 Requires: gcc%{gcc_version}-fortran
137 %description -n gcc-fortran
138 The system GNU Fortran Compiler.
141 %package -n gcc-fortran-32bit
142 Summary: The system GNU Fortran Compiler
144 Requires: gcc%{gcc_version}-fortran-32bit
145 Requires: gcc-fortran = %{version}
147 %description -n gcc-fortran-32bit
148 The system GNU Fortran Compiler 32 bit support.
151 %package -n gcc-fortran-64bit
152 Summary: The system GNU Fortran Compiler
154 Requires: gcc%{gcc_version}-fortran-64bit
155 Requires: gcc-fortran = %{version}
157 %description -n gcc-fortran-64bit
158 The system GNU Fortran Compiler 64 bit support.
162 Summary: The system GNU Java Compiler
164 Requires: gcc%{gcc_version}-java
165 Requires: libgcj-devel = %{version}
166 Recommends: gcc-gij = %{version}
167 Requires: gcc = %{version}
169 %description -n gcc-java
170 The system GNU Java Compiler.
174 %package -n libgcj-devel
175 Summary: The system GNU Java development files.
176 License: GPL-2.0-with-classpath-exception
177 Requires: libgcj%{gcc_version}-devel
179 %description -n libgcj-devel
180 The system GNU Java development files.
185 Summary: The system GNU Java bytecode interpreter
187 Requires: gcc%{gcc_version}-gij
189 %description -n gcc-gij
190 The system GNU Java bytecode interpreter.
194 %package -n gcc-gij-32bit
195 Summary: The system GNU Java bytecode interpreter
197 Requires: gcc%{gcc_version}-gij-32bit
199 %description -n gcc-gij-32bit
200 The system GNU Java bytecode interpreter as 32 bit application.
204 %package -n gcc-gij-64bit
205 Summary: The system GNU Java bytecode interpreter
207 Requires: gcc%{gcc_version}-gij-64bit
209 %description -n gcc-gij-64bit
210 The system GNU Java bytecode interpreter as 64 bit application.
215 Summary: The system GNU Objective C Compiler
217 Requires: gcc = %{version}
218 Requires: gcc%{gcc_version}-objc
220 Obsoletes: gcc-objc-64bit
223 %description -n gcc-objc
224 The system GNU Objective C Compiler.
228 %package -n gcc-objc-32bit
229 Summary: The system GNU Objective C Compiler
231 Requires: gcc%{gcc_version}-objc-32bit
232 Requires: gcc-objc = %{version}
234 %description -n gcc-objc-32bit
235 The system GNU Objective C Compiler 32 bit support.
239 %package -n gcc-objc-64bit
240 Summary: The system GNU Objective C Compiler
242 Requires: gcc%{gcc_version}-objc-64bit
243 Requires: gcc-objc = %{version}
245 %description -n gcc-objc-64bit
246 The system GNU Objective C Compiler 64 bit support.
250 %package -n gcc-obj-c++
251 Summary: The system GNU Objective C++ Compiler
253 Requires: gcc%{gcc_version}-obj-c++
254 Requires: gcc-objc = %{version}
256 %description -n gcc-obj-c++
257 The system GNU Objective C++ Compiler.
262 Summary: The system GNU Ada Compiler
264 Requires: gcc = %{version}
265 Requires: gcc%{gcc_version}-ada
267 %description -n gcc-ada
268 The system GNU Ada Compiler.
272 Summary: The system GNU C Compiler
276 %description -n gcc-z9
277 The system GNU C Compiler.
283 echo "This is a dummy package to provide a dependency on the system compiler." > README
286 mkdir -p $RPM_BUILD_ROOT/lib
287 mkdir -p $RPM_BUILD_ROOT%{_prefix}/bin
288 mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1
289 mkdir -p $RPM_BUILD_ROOT%{_prefix}/share/doc/packages/gcc-objc/
290 mkdir -p $RPM_BUILD_ROOT%{_prefix}/share/doc/packages/gcc-obj-c++/
291 # Link all the binaries
296 gcj gcjh gcj-dbtool jcf-dump jv-convert gc-analyze \
299 gjar gjarsigner gjavah gkeytool gnative2ascii gorbd grmic \
300 grmid grmiregistry gserialver gtnameserv \
310 gnat gnatbind gnatbl gnatchop gnatclean gnatfind gnatkr \
311 gnatlink gnatls gnatmake gnatname gnatprep gnatxref gprmake \
313 ln -sf $program-%{gcc_suffix} $RPM_BUILD_ROOT%{_prefix}/bin/$program
315 # Link section 1 manpages
321 gcj gcjh gcj-dbtool jcf-dump jv-convert gc-analyze \
323 gappletviewer gjar gjarsigner gjavah \
324 gkeytool gnative2ascii gorbd grmic grmid grmiregistry gserialver \
327 ln -sf $man1-%{gcc_suffix}.1.gz $RPM_BUILD_ROOT%{_mandir}/man1/$man1.1.gz
329 # Provide the traditional /lib/cpp that only handles C
330 cp $RPM_SOURCE_DIR/cpp $RPM_BUILD_ROOT/lib/
331 chmod 755 $RPM_BUILD_ROOT/lib/cpp
332 # Provide extra symlinks
333 ln -sf g++-%{gcc_suffix} $RPM_BUILD_ROOT%{_prefix}/bin/c++
334 ln -sf gcc-%{gcc_suffix} $RPM_BUILD_ROOT%{_prefix}/bin/cc
335 ln -sf g++-%{gcc_suffix}.1.gz $RPM_BUILD_ROOT%{_mandir}/man1/c++.1.gz
336 ln -sf gcc-%{gcc_suffix}.1.gz $RPM_BUILD_ROOT%{_mandir}/man1/cc.1.gz
338 dir=`gcc-%{gcc_suffix} -print-prog-name=cc1`
340 mkdir -p $RPM_BUILD_ROOT/$dir
341 cat > $RPM_BUILD_ROOT/$dir/defaults.spec <<EOF
343 %{!mtune=*:-mtune=z10} %{!march=*:-march=z9-109}
348 %defattr(-,root,root)
352 %doc %{_mandir}/man1/gcc.1.gz
353 %doc %{_mandir}/man1/cc.1.gz
354 %doc %{_mandir}/man1/gcov.1.gz
357 %defattr(-,root,root)
360 %doc %{_mandir}/man1/cpp.1.gz
363 %defattr(-,root,root)
366 %doc %{_mandir}/man1/g++.1.gz
367 %doc %{_mandir}/man1/c++.1.gz
369 %files -n gcc-fortran
370 %defattr(-,root,root)
371 %{_prefix}/bin/gfortran
372 %doc %{_mandir}/man1/gfortran.1.gz
375 %defattr(-,root,root)
378 %{_prefix}/bin/gcj-dbtool
379 %{_prefix}/bin/jcf-dump
380 %{_prefix}/bin/jv-convert
381 %{_prefix}/bin/gc-analyze
382 %doc %{_mandir}/man1/gcj.1.gz
383 %doc %{_mandir}/man1/gcjh.1.gz
384 %doc %{_mandir}/man1/gcj-dbtool.1.gz
385 %doc %{_mandir}/man1/jcf-dump.1.gz
386 %doc %{_mandir}/man1/jv-convert.1.gz
387 %doc %{_mandir}/man1/gc-analyze.1.gz
390 %defattr(-,root,root)
392 %{_prefix}/bin/gappletviewer
394 %{_prefix}/bin/gjarsigner
395 %{_prefix}/bin/gjavah
396 %{_prefix}/bin/gkeytool
397 %{_prefix}/bin/gnative2ascii
401 %{_prefix}/bin/grmiregistry
402 %{_prefix}/bin/gserialver
403 %{_prefix}/bin/gtnameserv
404 %doc %{_mandir}/man1/gij.1.gz
405 %doc %{_mandir}/man1/gappletviewer.1.gz
406 %doc %{_mandir}/man1/gjar.1.gz
407 %doc %{_mandir}/man1/gjarsigner.1.gz
408 %doc %{_mandir}/man1/gjavah.1.gz
409 %doc %{_mandir}/man1/gkeytool.1.gz
410 %doc %{_mandir}/man1/gnative2ascii.1.gz
411 %doc %{_mandir}/man1/gorbd.1.gz
412 %doc %{_mandir}/man1/grmic.1.gz
413 %doc %{_mandir}/man1/grmid.1.gz
414 %doc %{_mandir}/man1/grmiregistry.1.gz
415 %doc %{_mandir}/man1/gserialver.1.gz
416 %doc %{_mandir}/man1/gtnameserv.1.gz
419 %defattr(-,root,root)
420 # empty - only for the dependency
423 %files -n gcc-obj-c++
424 %defattr(-,root,root)
425 # empty - only for the dependency
429 %defattr(-,root,root)
430 # empty - only for the dependency
434 %defattr(-,root,root)
435 # empty - only for the dependency
439 %defattr(-,root,root)
441 %{_prefix}/bin/gnatbind
442 %{_prefix}/bin/gnatbl
443 %{_prefix}/bin/gnatchop
444 %{_prefix}/bin/gnatclean
445 %{_prefix}/bin/gnatfind
446 %{_prefix}/bin/gnatkr
447 %{_prefix}/bin/gnatlink
448 %{_prefix}/bin/gnatls
449 %{_prefix}/bin/gnatmake
450 %{_prefix}/bin/gnatname
451 %{_prefix}/bin/gnatprep
452 %{_prefix}/bin/gnatxref
453 %{_prefix}/bin/gprmake
455 %files -n libstdc++-devel
456 %defattr(-,root,root)
457 # empty - only for the dependency
460 %files -n libgcj-devel
461 %defattr(-,root,root)
462 # empty - only for the dependency
468 %defattr(-,root,root)
469 # empty - only for the dependency
472 %files -n gcc-c++-32bit
473 %defattr(-,root,root)
474 # empty - only for the dependency
477 %files -n gcc-fortran-32bit
478 %defattr(-,root,root)
479 # empty - only for the dependency
482 %files -n gcc-objc-32bit
483 %defattr(-,root,root)
484 # empty - only for the dependency
487 %files -n gcc-gij-32bit
488 %defattr(-,root,root)
490 %{_prefix}/bin/grmiregistry32
496 %defattr(-,root,root)
497 # empty - only for the dependency
500 %files -n gcc-c++-64bit
501 %defattr(-,root,root)
502 # empty - only for the dependency
505 %files -n gcc-fortran-64bit
506 %defattr(-,root,root)
507 # empty - only for the dependency
510 %files -n gcc-objc-64bit
511 %defattr(-,root,root)
512 # empty - only for the dependency
515 %files -n gcc-gij-64bit
516 %defattr(-,root,root)
518 %{_prefix}/bin/grmiregistry64
524 %defattr(-,root,root)
525 /usr/lib*/gcc/*-suse-linux/*/defaults.spec