]>
Commit | Line | Data |
---|---|---|
87ba1399 PS |
1 | # |
2 | # MUST SEE: | |
122725ef PS |
3 | # - GCC ARM Improvement Project - http://www.inf.u-szeged.hu/gcc-arm/ |
4 | # - Developing StrongARM shellocde - http://phrack.org/show.php?p=58&a=10 | |
0c705155 | 5 | |
c415cd34 | 6 | Summary: Cross ARM GNU binary utility development utilities - gcc |
08f9d5fb ER |
7 | Summary(es.UTF-8): Utilitarios para desarrollo de binarios de la GNU - ARM gcc |
8 | Summary(fr.UTF-8): Utilitaires de développement binaire de GNU - ARM gcc | |
9 | Summary(pl.UTF-8): Skrośne narzędzia programistyczne GNU dla ARM - gcc | |
10 | Summary(pt_BR.UTF-8): Utilitários para desenvolvimento de binários da GNU - ARM gcc | |
11 | Summary(tr.UTF-8): GNU geliştirme araçları - ARM gcc | |
5e3613d1 | 12 | Name: crossarm-gcc |
81f66e09 | 13 | Version: 13.2.0 |
8292ac9a | 14 | Release: 1 |
c415cd34 PS |
15 | Epoch: 1 |
16 | License: GPL | |
17 | Group: Development/Languages | |
0ee7b513 | 18 | Source0: https://gcc.gnu.org/pub/gcc/releases/gcc-%{version}/gcc-%{version}.tar.xz |
81f66e09 | 19 | # Source0-md5: e0e48554cc6e4f261d55ddee9ab69075 |
4eb8e400 | 20 | URL: http://gcc.gnu.org/ |
0c705155 JP |
21 | BuildRequires: autoconf >= 2.64 |
22 | BuildRequires: automake >= 1:1.11.1 | |
4eb8e400 | 23 | BuildRequires: bison |
0c705155 JP |
24 | BuildRequires: crossarm-binutils >= 2.30 |
25 | BuildRequires: flex >= 2.5.4 | |
c6ade5bf | 26 | BuildRequires: gmp-devel >= 4.3.2 |
0c705155 | 27 | BuildRequires: isl-devel >= 0.15 |
c6ade5bf | 28 | BuildRequires: libmpc-devel >= 0.8.1 |
22a59ae9 | 29 | BuildRequires: libstdc++-devel |
c6ade5bf | 30 | BuildRequires: mpfr-devel >= 3.1.0 |
0c705155 JP |
31 | BuildRequires: tar >= 1:1.22 |
32 | BuildRequires: xz | |
33 | BuildRequires: zlib-devel | |
34 | BuildRequires: zstd-devel | |
35 | Requires: crossarm-binutils >= 2.30 | |
05ff8a1e | 36 | Requires: gcc-dirs |
c6ade5bf | 37 | Requires: gmp >= 4.3.2 |
0c705155 | 38 | Requires: isl >= 0.15 |
c6ade5bf JP |
39 | Requires: libmpc >= 0.8.1 |
40 | Requires: mpfr >= 3.1.0 | |
0c705155 | 41 | ExcludeArch: %{arm} |
c415cd34 PS |
42 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
43 | ||
0c705155 | 44 | %define target arm-linux-gnueabi |
c415cd34 PS |
45 | %define arch %{_prefix}/%{target} |
46 | %define gccarch %{_libdir}/gcc/%{target} | |
47 | %define gcclib %{gccarch}/%{version} | |
0c705155 | 48 | %define filterout -Werror=format-security |
c415cd34 PS |
49 | |
50 | %description | |
51 | This package contains a cross-gcc which allows the creation of | |
238b3134 | 52 | binaries to be run on ARM Linux on other machines. |
c415cd34 | 53 | |
c41b0597 JR |
54 | %description -l de.UTF-8 |
55 | Dieses Paket enthält einen Cross-gcc, der es erlaubt, auf einem | |
56 | anderem Rechner Code für ARM Linux zu generieren. | |
c415cd34 | 57 | |
c41b0597 JR |
58 | %description -l pl.UTF-8 |
59 | Ten pakiet zawiera skrośny gcc pozwalający na robienie na innych | |
60 | maszynach binariów do uruchamiania na Linuksie ARM. | |
c415cd34 | 61 | |
4d088317 | 62 | %package c++ |
5518affa | 63 | Summary: C++ support for crossarm-gcc |
08f9d5fb | 64 | Summary(pl.UTF-8): Obsługa C++ dla crossarm-gcc |
4d088317 PS |
65 | Group: Development/Languages |
66 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
67 | ||
68 | %description c++ | |
69 | This package adds C++ support to the GNU Compiler Collection for ARM. | |
70 | ||
c41b0597 JR |
71 | %description c++ -l pl.UTF-8 |
72 | Ten pakiet dodaje obsługę C++ do kompilatora gcc dla ARM. | |
4d088317 | 73 | |
c415cd34 | 74 | %prep |
0c705155 | 75 | %setup -q -n gcc-%{version} |
c415cd34 PS |
76 | |
77 | %build | |
78 | rm -rf obj-%{target} | |
79 | install -d obj-%{target} | |
80 | cd obj-%{target} | |
81 | ||
0c705155 JP |
82 | CFLAGS="%{rpmcflags}" \ |
83 | CXXFLAGS="%{rpmcxxflags}" \ | |
c415cd34 PS |
84 | TEXCONFIG=false \ |
85 | ../configure \ | |
86 | --prefix=%{_prefix} \ | |
87 | --infodir=%{_infodir} \ | |
88 | --mandir=%{_mandir} \ | |
89 | --bindir=%{_bindir} \ | |
90 | --libdir=%{_libdir} \ | |
91 | --libexecdir=%{_libdir} \ | |
92 | --disable-shared \ | |
93 | --disable-threads \ | |
13c08d25 PS |
94 | --enable-languages="c,c++" \ |
95 | --enable-c99 \ | |
da5e7395 | 96 | --enable-long-long \ |
215fb91a | 97 | --disable-nls \ |
c415cd34 PS |
98 | --with-gnu-as \ |
99 | --with-gnu-ld \ | |
215fb91a | 100 | --with-demangler-in-ld \ |
c415cd34 | 101 | --with-system-zlib \ |
bb8a4179 | 102 | --enable-multilib \ |
c415cd34 PS |
103 | --without-x \ |
104 | --target=%{target} \ | |
105 | --host=%{_target_platform} \ | |
106 | --build=%{_target_platform} | |
107 | ||
13c08d25 | 108 | %{__make} all-gcc |
0c705155 | 109 | %{__make} all-target-libgcc |
c415cd34 PS |
110 | |
111 | %install | |
112 | rm -rf $RPM_BUILD_ROOT | |
da247dda | 113 | install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
c415cd34 | 114 | |
0c705155 | 115 | %{__make} -C obj-%{target} install-gcc install-target-libgcc \ |
c415cd34 PS |
116 | DESTDIR=$RPM_BUILD_ROOT |
117 | ||
215fb91a PS |
118 | install obj-%{target}/gcc/specs $RPM_BUILD_ROOT%{gcclib} |
119 | ||
c415cd34 PS |
120 | # don't want this here |
121 | rm -f $RPM_BUILD_ROOT%{_libdir}/libiberty.a | |
122 | ||
215fb91a PS |
123 | # include/ contains install-tools/include/* and headers that were fixed up |
124 | # by fixincludes, we don't want former | |
125 | gccdir=$(echo $RPM_BUILD_ROOT%{_libdir}/gcc/*/*/) | |
215fb91a PS |
126 | cp -f $gccdir/install-tools/include/*.h $gccdir/include |
127 | # but we don't want anything more from install-tools | |
128 | rm -rf $gccdir/install-tools | |
129 | ||
c415cd34 PS |
130 | %clean |
131 | rm -rf $RPM_BUILD_ROOT | |
132 | ||
133 | %files | |
134 | %defattr(644,root,root,755) | |
135 | %attr(755,root,root) %{_bindir}/%{target}-cpp | |
4d088317 | 136 | %attr(755,root,root) %{_bindir}/%{target}-gcc |
0477463e | 137 | %attr(755,root,root) %{_bindir}/%{target}-gcc-%{version} |
0c705155 JP |
138 | %attr(755,root,root) %{_bindir}/%{target}-gcc-ar |
139 | %attr(755,root,root) %{_bindir}/%{target}-gcc-nm | |
140 | %attr(755,root,root) %{_bindir}/%{target}-gcc-ranlib | |
0477463e | 141 | %attr(755,root,root) %{_bindir}/%{target}-gcov |
0c705155 JP |
142 | %attr(755,root,root) %{_bindir}/%{target}-gcov-dump |
143 | %attr(755,root,root) %{_bindir}/%{target}-gcov-tool | |
144 | %attr(755,root,root) %{_bindir}/%{target}-lto-dump | |
c415cd34 PS |
145 | %dir %{gccarch} |
146 | %dir %{gcclib} | |
147 | %attr(755,root,root) %{gcclib}/cc1 | |
148 | %attr(755,root,root) %{gcclib}/collect2 | |
0ee7b513 JP |
149 | %attr(755,root,root) %{gcclib}/lto-wrapper |
150 | %attr(755,root,root) %{gcclib}/lto1 | |
151 | %attr(755,root,root) %{gcclib}/liblto_plugin.so* | |
549fc8e3 | 152 | %{gcclib}/*crt*.o |
0c705155 JP |
153 | %{gcclib}/libgcc.a |
154 | %{gcclib}/libgcov.a | |
c415cd34 PS |
155 | %{gcclib}/specs* |
156 | %dir %{gcclib}/include | |
157 | %{gcclib}/include/*.h | |
4d088317 | 158 | %{_mandir}/man1/%{target}-cpp.1* |
c415cd34 | 159 | %{_mandir}/man1/%{target}-gcc.1* |
0477463e | 160 | %{_mandir}/man1/%{target}-gcov.1* |
0c705155 JP |
161 | %{_mandir}/man1/%{target}-gcov-dump.1* |
162 | %{_mandir}/man1/%{target}-gcov-tool.1* | |
163 | %{_mandir}/man1/%{target}-lto-dump.1* | |
da247dda | 164 | %{_examplesdir}/%{name}-%{version} |
4d088317 PS |
165 | |
166 | %files c++ | |
167 | %defattr(644,root,root,755) | |
0477463e | 168 | %attr(755,root,root) %{_bindir}/%{target}-c++ |
4d088317 PS |
169 | %attr(755,root,root) %{_bindir}/%{target}-g++ |
170 | %attr(755,root,root) %{gcclib}/cc1plus | |
171 | %{_mandir}/man1/%{target}-g++.1* |