]>
Commit | Line | Data |
---|---|---|
aaa42a3a | 1 | Summary: Cross S/390 GNU binary utility development utilities - gcc |
79ed83ad ER |
2 | Summary(es.UTF-8): Utilitarios para desarrollo de binarios de la GNU - S/390 gcc |
3 | Summary(fr.UTF-8): Utilitaires de développement binaire de GNU - S/390 gcc | |
4 | Summary(pl.UTF-8): Skrośne narzędzia programistyczne GNU dla S/390 - gcc | |
5 | Summary(pt_BR.UTF-8): Utilitários para desenvolvimento de binários da GNU - S/390 gcc | |
6 | Summary(tr.UTF-8): GNU geliştirme araçları - S/390 gcc | |
aaa42a3a | 7 | Name: crosss390x-gcc |
a59cfd58 PS |
8 | Version: 4.0.2 |
9 | Release: 1 | |
aaa42a3a PS |
10 | Epoch: 1 |
11 | License: GPL | |
12 | Group: Development/Languages | |
a59cfd58 PS |
13 | Source0: ftp://gcc.gnu.org/pub/gcc/releases/gcc-%{version}/gcc-%{version}.tar.bz2 |
14 | # Source0-md5: a659b8388cac9db2b13e056e574ceeb0 | |
aaa42a3a PS |
15 | URL: http://gcc.gnu.org/ |
16 | BuildRequires: autoconf | |
17 | BuildRequires: automake | |
18 | BuildRequires: bison | |
19 | BuildRequires: crosss390x-binutils | |
20 | BuildRequires: fileutils >= 4.1.41 | |
21 | BuildRequires: flex | |
22 | BuildRequires: rpmbuild(macros) >= 1.211 | |
23 | BuildRequires: texinfo >= 4.1 | |
24 | Requires: crosss390x-binutils | |
25 | Requires: gcc-dirs | |
26 | ExcludeArch: s390x | |
27 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
28 | ||
29 | %define target s390x-pld-linux | |
30 | %define arch %{_prefix}/%{target} | |
31 | %define gccarch %{_libdir}/gcc/%{target} | |
32 | %define gcclib %{gccarch}/%{version} | |
33 | ||
34 | %define _noautostrip .*/libgc.*\\.a | |
35 | ||
36 | %description | |
37 | This package contains a cross-gcc which allows the creation of | |
38 | binaries to be run on S/390 Linux on other machines. | |
39 | ||
1ca37fb2 JR |
40 | %description -l de.UTF-8 |
41 | Dieses Paket enthält einen Cross-gcc, der es erlaubt, auf einem | |
42 | anderem Rechner Code für S/390 Linux zu generieren. | |
aaa42a3a | 43 | |
1ca37fb2 JR |
44 | %description -l pl.UTF-8 |
45 | Ten pakiet zawiera skrośny gcc pozwalający na robienie na innych | |
46 | maszynach binariów do uruchamiania na Linuksie S/390. | |
aaa42a3a PS |
47 | |
48 | %package c++ | |
49 | Summary: C++ support for crosss390x-gcc | |
79ed83ad | 50 | Summary(pl.UTF-8): Obsługa C++ dla crosss390x-gcc |
aaa42a3a PS |
51 | Group: Development/Languages |
52 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
53 | ||
54 | %description c++ | |
55 | This package adds C++ support to the GNU Compiler Collection for | |
56 | S/390. | |
57 | ||
1ca37fb2 JR |
58 | %description c++ -l pl.UTF-8 |
59 | Ten pakiet dodaje obsługę C++ do kompilatora gcc dla S/390. | |
aaa42a3a PS |
60 | |
61 | %prep | |
a59cfd58 | 62 | %setup -q -n gcc-%{version} |
aaa42a3a PS |
63 | |
64 | %build | |
65 | cp -f /usr/share/automake/config.* . | |
66 | rm -rf obj-%{target} | |
67 | install -d obj-%{target} | |
68 | cd obj-%{target} | |
69 | ||
70 | CFLAGS="%{rpmcflags}" \ | |
71 | CXXFLAGS="%{rpmcflags}" \ | |
72 | TEXCONFIG=false \ | |
73 | ../configure \ | |
74 | --prefix=%{_prefix} \ | |
75 | --infodir=%{_infodir} \ | |
76 | --mandir=%{_mandir} \ | |
77 | --bindir=%{_bindir} \ | |
78 | --libdir=%{_libdir} \ | |
79 | --libexecdir=%{_libdir} \ | |
80 | --disable-shared \ | |
81 | --disable-threads \ | |
82 | --enable-languages="c,c++" \ | |
83 | --enable-c99 \ | |
84 | --enable-long-long \ | |
85 | --disable-nls \ | |
86 | --with-gnu-as \ | |
87 | --with-gnu-ld \ | |
88 | --with-mangler-in-ld \ | |
89 | --with-system-zlib \ | |
90 | --enable-multilib \ | |
91 | --without-headers \ | |
92 | --without-x \ | |
93 | --target=%{target} \ | |
94 | --host=%{_target_platform} \ | |
95 | --build=%{_target_platform} | |
96 | ||
97 | %{__make} all-gcc | |
98 | ||
99 | %install | |
100 | rm -rf $RPM_BUILD_ROOT | |
101 | ||
102 | %{__make} -C obj-%{target} install-gcc \ | |
103 | DESTDIR=$RPM_BUILD_ROOT | |
104 | ||
105 | install obj-%{target}/gcc/specs $RPM_BUILD_ROOT%{gcclib} | |
106 | ||
107 | # don't want this here | |
108 | rm -f $RPM_BUILD_ROOT%{_libdir}/libiberty.a | |
109 | ||
110 | # include/ contains install-tools/include/* and headers that were fixed up | |
111 | # by fixincludes, we don't want former | |
112 | gccdir=$RPM_BUILD_ROOT%{gcclib} | |
113 | mkdir $gccdir/tmp | |
114 | # we have to save these however | |
115 | mv -f $gccdir/include/syslimits.h $gccdir/tmp | |
116 | rm -rf $gccdir/include | |
117 | mv -f $gccdir/tmp $gccdir/include | |
118 | cp -f $gccdir/install-tools/include/*.h $gccdir/include | |
119 | # but we don't want anything more from install-tools | |
120 | rm -rf $gccdir/install-tools | |
121 | ||
122 | %if 0%{!?debug:1} | |
123 | %{target}-strip -g -R.note -R.comment $RPM_BUILD_ROOT%{gcclib}/32/libgcc.a | |
124 | %{target}-strip -g -R.note -R.comment $RPM_BUILD_ROOT%{gcclib}/32/libgcov.a | |
125 | %{target}-strip -g -R.note -R.comment $RPM_BUILD_ROOT%{gcclib}/libgcc.a | |
126 | %{target}-strip -g -R.note -R.comment $RPM_BUILD_ROOT%{gcclib}/libgcov.a | |
127 | %endif | |
128 | ||
129 | %clean | |
130 | rm -rf $RPM_BUILD_ROOT | |
131 | ||
132 | %files | |
133 | %defattr(644,root,root,755) | |
134 | %attr(755,root,root) %{_bindir}/%{target}-cpp | |
135 | %attr(755,root,root) %{_bindir}/%{target}-gcc | |
136 | %dir %{gccarch} | |
137 | %dir %{gcclib} | |
138 | %attr(755,root,root) %{gcclib}/cc1 | |
139 | %attr(755,root,root) %{gcclib}/collect2 | |
140 | %dir %{gcclib}/32 | |
141 | %{gcclib}/32/crt*.o | |
142 | %{gcclib}/32/libgcc.a | |
143 | %{gcclib}/crt*.o | |
144 | %{gcclib}/libgcc.a | |
145 | %{gcclib}/specs* | |
146 | %dir %{gcclib}/include | |
147 | %{gcclib}/include/*.h | |
148 | %{_mandir}/man1/%{target}-cpp.1* | |
149 | %{_mandir}/man1/%{target}-gcc.1* | |
150 | ||
151 | %files c++ | |
152 | %defattr(644,root,root,755) | |
153 | %attr(755,root,root) %{_bindir}/%{target}-g++ | |
154 | %attr(755,root,root) %{gcclib}/cc1plus | |
155 | %{_mandir}/man1/%{target}-g++.1* |