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 47
12 %define gcc_suffix 4.7
15 Summary: The system GNU C Compiler
17 Group: Development/Languages/C and C++
19 Obsoletes: gcc-mudflap
21 Requires: gcc%{gcc_version}
22 BuildRoot: %{_tmppath}/%{name}-%{version}-build
24 Source99: README.packaging
27 The system GNU C Compiler.
32 Summary: The system GNU C Compiler
34 Group: Development/Languages/C and C++
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 Group: Development/Languages/C and C++
47 Requires: gcc = %{version}
48 Requires: gcc%{gcc_version}-64bit
50 %description -n gcc-64bit
51 The system GNU C Compiler.
56 Summary: The system GNU Preprocessor
58 Group: Development/Languages/C and C++
59 Requires: cpp%{gcc_version}
62 The system GNU Preprocessor.
66 %package -n gcc-locale
67 Summary: The system GNU Compiler locale files
69 Group: Development/Languages/C and C++
70 Requires: gcc%{gcc_version}-locale
72 %description -n gcc-locale
73 The system GNU Compiler locale files.
78 Summary: The system GNU Compiler documentation
80 Group: Development/Languages/C and C++
81 Requires: gcc%{gcc_version}-info
83 %description -n gcc-info
84 The system GNU Compiler documentation.
86 # There is intentionally no postun with install_info_delete as there
87 # is no way to just remove the aliased entries. The content owners
88 # install_info_delete will also remove the aliases though.
89 # install-info does not pick up descriptions from the content.
92 Summary: The system GNU C++ Compiler
94 Group: Development/Languages/C and C++
95 Provides: c++_compiler
96 Requires: gcc = %{version}
97 Requires: gcc%{gcc_version}-c++
99 %description -n gcc-c++
100 The system GNU C++ Compiler.
103 %package -n gcc-c++-32bit
104 Summary: The system GNU C++ Compiler
106 Group: Development/Languages/C and C++
107 Requires: gcc-32bit = %{version}
108 Requires: gcc-c++ = %{version}
109 Requires: libstdc++%{gcc_version}-devel-32bit
111 %description -n gcc-c++-32bit
112 The system GNU C++ Compiler 32 bit support.
115 %package -n gcc-c++-64bit
116 Summary: The system GNU C++ Compiler
118 Group: Development/Languages/C and C++
119 Requires: gcc-64bit = %{version}
120 Requires: gcc-c++ = %{version}
121 Requires: libstdc++%{gcc_version}-devel-64bit
123 %description -n gcc-c++-64bit
124 The system GNU C++ Compiler 64 bit support.
128 %package -n libstdc++-devel
129 Summary: The system GNU C++ development files
130 License: GPL-3.0-with-GCC-exception
131 Group: System/Libraries
132 Requires: libstdc++%{gcc_version}-devel
134 %description -n libstdc++-devel
135 The system GNU C++ development files.
139 %package -n gcc-fortran
140 Summary: The system GNU Fortran Compiler
142 Group: Development/Languages/Fortran
143 Requires: gcc = %{version}
144 Requires: gcc%{gcc_version}-fortran
146 %description -n gcc-fortran
147 The system GNU Fortran Compiler.
150 %package -n gcc-fortran-32bit
151 Summary: The system GNU Fortran Compiler
153 Group: Development/Languages/Fortran
154 Requires: gcc%{gcc_version}-fortran-32bit
155 Requires: gcc-fortran = %{version}
157 %description -n gcc-fortran-32bit
158 The system GNU Fortran Compiler 32 bit support.
161 %package -n gcc-fortran-64bit
162 Summary: The system GNU Fortran Compiler
164 Group: Development/Languages/Fortran
165 Requires: gcc%{gcc_version}-fortran-64bit
166 Requires: gcc-fortran = %{version}
168 %description -n gcc-fortran-64bit
169 The system GNU Fortran Compiler 64 bit support.
173 Summary: The system GNU Java Compiler
175 Group: Development/Languages/Java
176 Requires: gcc%{gcc_version}-java
177 Requires: libgcj-devel = %{version}
178 Recommends: gcc-gij = %{version}
179 Requires: gcc = %{version}
181 %description -n gcc-java
182 The system GNU Java Compiler.
186 %package -n libgcj-devel
187 Summary: The system GNU Java development files.
188 License: GPL-2.0-with-classpath-exception
189 Group: Development/Libraries/Java
190 Requires: libgcj%{gcc_version}-devel
192 %description -n libgcj-devel
193 The system GNU Java development files.
198 Summary: The system GNU Java bytecode interpreter
200 Group: Development/Languages/Java
201 Requires: gcc%{gcc_version}-gij
203 %description -n gcc-gij
204 The system GNU Java bytecode interpreter.
208 %package -n gcc-gij-32bit
209 Summary: The system GNU Java bytecode interpreter
211 Group: Development/Languages/Java
212 Requires: gcc%{gcc_version}-gij-32bit
214 %description -n gcc-gij-32bit
215 The system GNU Java bytecode interpreter as 32 bit application.
219 %package -n gcc-gij-64bit
220 Summary: The system GNU Java bytecode interpreter
222 Group: Development/Languages/Java
223 Requires: gcc%{gcc_version}-gij-64bit
225 %description -n gcc-gij-64bit
226 The system GNU Java bytecode interpreter as 64 bit application.
231 Summary: The system GNU Objective C Compiler
233 Group: Development/Languages/Other
234 Requires: gcc = %{version}
235 Requires: gcc%{gcc_version}-objc
237 Obsoletes: gcc-objc-64bit
240 %description -n gcc-objc
241 The system GNU Objective C Compiler.
245 %package -n gcc-objc-32bit
246 Summary: The system GNU Objective C Compiler
248 Group: Development/Languages/Other
249 Requires: gcc%{gcc_version}-objc-32bit
250 Requires: gcc-objc = %{version}
252 %description -n gcc-objc-32bit
253 The system GNU Objective C Compiler 32 bit support.
257 %package -n gcc-objc-64bit
258 Summary: The system GNU Objective C Compiler
260 Group: Development/Languages/Other
261 Requires: gcc%{gcc_version}-objc-64bit
262 Requires: gcc-objc = %{version}
264 %description -n gcc-objc-64bit
265 The system GNU Objective C Compiler 64 bit support.
269 %package -n gcc-obj-c++
270 Summary: The system GNU Objective C++ Compiler
272 Group: Development/Languages/Other
273 Requires: gcc%{gcc_version}-obj-c++
274 Requires: gcc-objc = %{version}
276 %description -n gcc-obj-c++
277 The system GNU Objective C++ Compiler.
282 Summary: The system GNU Ada Compiler
284 Group: Development/Languages/C and C++
285 Requires: gcc = %{version}
286 Requires: gcc%{gcc_version}-ada
288 %description -n gcc-ada
289 The system GNU Ada Compiler.
293 Summary: The system GNU C Compiler
295 Group: Development/Languages/C and C++
298 %description -n gcc-z9
299 The system GNU C Compiler.
305 echo "This is a dummy package to provide a dependency on the system compiler." > README
308 mkdir -p $RPM_BUILD_ROOT/lib
309 mkdir -p $RPM_BUILD_ROOT%{_prefix}/bin
310 mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1
311 mkdir -p $RPM_BUILD_ROOT%{_prefix}/share/doc/packages/gcc-objc/
312 mkdir -p $RPM_BUILD_ROOT%{_prefix}/share/doc/packages/gcc-obj-c++/
313 # Link all the binaries
318 gcj gcjh gcj-dbtool jcf-dump jv-convert gc-analyze \
321 gjar gjarsigner gjavah gkeytool gnative2ascii gorbd grmic \
322 grmid grmiregistry gserialver gtnameserv \
332 gnat gnatbind gnatbl gnatchop gnatclean gnatfind gnatkr \
333 gnatlink gnatls gnatmake gnatname gnatprep gnatxref gprmake \
335 ln -sf $program-%{gcc_suffix} $RPM_BUILD_ROOT%{_prefix}/bin/$program
337 # Link section 1 manpages
343 gcj gcjh gcj-dbtool jcf-dump jv-convert gc-analyze \
345 gappletviewer gjar gjarsigner gjavah \
346 gkeytool gnative2ascii gorbd grmic grmid grmiregistry gserialver \
349 ln -sf $man1-%{gcc_suffix}.1.gz $RPM_BUILD_ROOT%{_mandir}/man1/$man1.1.gz
351 # Provide the traditional /lib/cpp that only handles C
352 cp $RPM_SOURCE_DIR/cpp $RPM_BUILD_ROOT/lib/
353 chmod 755 $RPM_BUILD_ROOT/lib/cpp
354 # Provide extra symlinks
355 ln -sf g++-%{gcc_suffix} $RPM_BUILD_ROOT%{_prefix}/bin/c++
356 ln -sf gcc-%{gcc_suffix} $RPM_BUILD_ROOT%{_prefix}/bin/cc
357 ln -sf g++-%{gcc_suffix}.1.gz $RPM_BUILD_ROOT%{_mandir}/man1/c++.1.gz
358 ln -sf gcc-%{gcc_suffix}.1.gz $RPM_BUILD_ROOT%{_mandir}/man1/cc.1.gz
360 dir=`gcc-%{gcc_suffix} -print-prog-name=cc1`
362 mkdir -p $RPM_BUILD_ROOT/$dir
363 cat > $RPM_BUILD_ROOT/$dir/defaults.spec <<EOF
365 %{!mtune=*:-mtune=z10} %{!march=*:-march=z9-109}
370 %defattr(-,root,root)
374 %doc %{_mandir}/man1/gcc.1.gz
375 %doc %{_mandir}/man1/cc.1.gz
376 %doc %{_mandir}/man1/gcov.1.gz
379 %defattr(-,root,root)
382 %doc %{_mandir}/man1/cpp.1.gz
385 %defattr(-,root,root)
388 %doc %{_mandir}/man1/g++.1.gz
389 %doc %{_mandir}/man1/c++.1.gz
391 %files -n gcc-fortran
392 %defattr(-,root,root)
393 %{_prefix}/bin/gfortran
394 %doc %{_mandir}/man1/gfortran.1.gz
397 %defattr(-,root,root)
400 %{_prefix}/bin/gcj-dbtool
401 %{_prefix}/bin/jcf-dump
402 %{_prefix}/bin/jv-convert
403 %{_prefix}/bin/gc-analyze
404 %doc %{_mandir}/man1/gcj.1.gz
405 %doc %{_mandir}/man1/gcjh.1.gz
406 %doc %{_mandir}/man1/gcj-dbtool.1.gz
407 %doc %{_mandir}/man1/jcf-dump.1.gz
408 %doc %{_mandir}/man1/jv-convert.1.gz
409 %doc %{_mandir}/man1/gc-analyze.1.gz
412 %defattr(-,root,root)
414 %{_prefix}/bin/gappletviewer
416 %{_prefix}/bin/gjarsigner
417 %{_prefix}/bin/gjavah
418 %{_prefix}/bin/gkeytool
419 %{_prefix}/bin/gnative2ascii
423 %{_prefix}/bin/grmiregistry
424 %{_prefix}/bin/gserialver
425 %{_prefix}/bin/gtnameserv
426 %doc %{_mandir}/man1/gij.1.gz
427 %doc %{_mandir}/man1/gappletviewer.1.gz
428 %doc %{_mandir}/man1/gjar.1.gz
429 %doc %{_mandir}/man1/gjarsigner.1.gz
430 %doc %{_mandir}/man1/gjavah.1.gz
431 %doc %{_mandir}/man1/gkeytool.1.gz
432 %doc %{_mandir}/man1/gnative2ascii.1.gz
433 %doc %{_mandir}/man1/gorbd.1.gz
434 %doc %{_mandir}/man1/grmic.1.gz
435 %doc %{_mandir}/man1/grmid.1.gz
436 %doc %{_mandir}/man1/grmiregistry.1.gz
437 %doc %{_mandir}/man1/gserialver.1.gz
438 %doc %{_mandir}/man1/gtnameserv.1.gz
441 %defattr(-,root,root)
442 # empty - only for the dependency
445 %files -n gcc-obj-c++
446 %defattr(-,root,root)
447 # empty - only for the dependency
451 %defattr(-,root,root)
452 # empty - only for the dependency
456 %defattr(-,root,root)
457 # empty - only for the dependency
461 %defattr(-,root,root)
463 %{_prefix}/bin/gnatbind
464 %{_prefix}/bin/gnatbl
465 %{_prefix}/bin/gnatchop
466 %{_prefix}/bin/gnatclean
467 %{_prefix}/bin/gnatfind
468 %{_prefix}/bin/gnatkr
469 %{_prefix}/bin/gnatlink
470 %{_prefix}/bin/gnatls
471 %{_prefix}/bin/gnatmake
472 %{_prefix}/bin/gnatname
473 %{_prefix}/bin/gnatprep
474 %{_prefix}/bin/gnatxref
475 %{_prefix}/bin/gprmake
477 %files -n libstdc++-devel
478 %defattr(-,root,root)
479 # empty - only for the dependency
482 %files -n libgcj-devel
483 %defattr(-,root,root)
484 # empty - only for the dependency
490 %defattr(-,root,root)
491 # empty - only for the dependency
494 %files -n gcc-c++-32bit
495 %defattr(-,root,root)
496 # empty - only for the dependency
499 %files -n gcc-fortran-32bit
500 %defattr(-,root,root)
501 # empty - only for the dependency
504 %files -n gcc-objc-32bit
505 %defattr(-,root,root)
506 # empty - only for the dependency
509 %files -n gcc-gij-32bit
510 %defattr(-,root,root)
512 %{_prefix}/bin/grmiregistry32
518 %defattr(-,root,root)
519 # empty - only for the dependency
522 %files -n gcc-c++-64bit
523 %defattr(-,root,root)
524 # empty - only for the dependency
527 %files -n gcc-fortran-64bit
528 %defattr(-,root,root)
529 # empty - only for the dependency
532 %files -n gcc-objc-64bit
533 %defattr(-,root,root)
534 # empty - only for the dependency
537 %files -n gcc-gij-64bit
538 %defattr(-,root,root)
540 %{_prefix}/bin/grmiregistry64
546 %defattr(-,root,root)
547 /usr/lib*/gcc/*-suse-linux/*/defaults.spec