]>
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 |
8292ac9a JP |
13 | Version: 12.1.0 |
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 |
8292ac9a | 19 | # Source0-md5: ed45b55ee859ada4b25a1e76e0c4d966 |
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 JP |
28 | BuildRequires: libmpc-devel >= 0.8.1 |
29 | BuildRequires: mpfr-devel >= 3.1.0 | |
0c705155 JP |
30 | BuildRequires: tar >= 1:1.22 |
31 | BuildRequires: xz | |
32 | BuildRequires: zlib-devel | |
33 | BuildRequires: zstd-devel | |
34 | Requires: crossarm-binutils >= 2.30 | |
05ff8a1e | 35 | Requires: gcc-dirs |
c6ade5bf | 36 | Requires: gmp >= 4.3.2 |
0c705155 | 37 | Requires: isl >= 0.15 |
c6ade5bf JP |
38 | Requires: libmpc >= 0.8.1 |
39 | Requires: mpfr >= 3.1.0 | |
0c705155 | 40 | ExcludeArch: %{arm} |
c415cd34 PS |
41 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
42 | ||
0c705155 | 43 | %define target arm-linux-gnueabi |
c415cd34 PS |
44 | %define arch %{_prefix}/%{target} |
45 | %define gccarch %{_libdir}/gcc/%{target} | |
46 | %define gcclib %{gccarch}/%{version} | |
0c705155 | 47 | %define filterout -Werror=format-security |
c415cd34 PS |
48 | |
49 | %description | |
50 | This package contains a cross-gcc which allows the creation of | |
238b3134 | 51 | binaries to be run on ARM Linux on other machines. |
c415cd34 | 52 | |
c41b0597 JR |
53 | %description -l de.UTF-8 |
54 | Dieses Paket enthält einen Cross-gcc, der es erlaubt, auf einem | |
55 | anderem Rechner Code für ARM Linux zu generieren. | |
c415cd34 | 56 | |
c41b0597 JR |
57 | %description -l pl.UTF-8 |
58 | Ten pakiet zawiera skrośny gcc pozwalający na robienie na innych | |
59 | maszynach binariów do uruchamiania na Linuksie ARM. | |
c415cd34 | 60 | |
4d088317 | 61 | %package c++ |
5518affa | 62 | Summary: C++ support for crossarm-gcc |
08f9d5fb | 63 | Summary(pl.UTF-8): Obsługa C++ dla crossarm-gcc |
4d088317 PS |
64 | Group: Development/Languages |
65 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
66 | ||
67 | %description c++ | |
68 | This package adds C++ support to the GNU Compiler Collection for ARM. | |
69 | ||
c41b0597 JR |
70 | %description c++ -l pl.UTF-8 |
71 | Ten pakiet dodaje obsługę C++ do kompilatora gcc dla ARM. | |
4d088317 | 72 | |
c415cd34 | 73 | %prep |
0c705155 | 74 | %setup -q -n gcc-%{version} |
c415cd34 PS |
75 | |
76 | %build | |
77 | rm -rf obj-%{target} | |
78 | install -d obj-%{target} | |
79 | cd obj-%{target} | |
80 | ||
0c705155 JP |
81 | CFLAGS="%{rpmcflags}" \ |
82 | CXXFLAGS="%{rpmcxxflags}" \ | |
c415cd34 PS |
83 | TEXCONFIG=false \ |
84 | ../configure \ | |
85 | --prefix=%{_prefix} \ | |
86 | --infodir=%{_infodir} \ | |
87 | --mandir=%{_mandir} \ | |
88 | --bindir=%{_bindir} \ | |
89 | --libdir=%{_libdir} \ | |
90 | --libexecdir=%{_libdir} \ | |
91 | --disable-shared \ | |
92 | --disable-threads \ | |
13c08d25 PS |
93 | --enable-languages="c,c++" \ |
94 | --enable-c99 \ | |
da5e7395 | 95 | --enable-long-long \ |
215fb91a | 96 | --disable-nls \ |
c415cd34 PS |
97 | --with-gnu-as \ |
98 | --with-gnu-ld \ | |
215fb91a | 99 | --with-demangler-in-ld \ |
c415cd34 | 100 | --with-system-zlib \ |
bb8a4179 | 101 | --enable-multilib \ |
c415cd34 PS |
102 | --without-x \ |
103 | --target=%{target} \ | |
104 | --host=%{_target_platform} \ | |
105 | --build=%{_target_platform} | |
106 | ||
13c08d25 | 107 | %{__make} all-gcc |
0c705155 | 108 | %{__make} all-target-libgcc |
c415cd34 PS |
109 | |
110 | %install | |
111 | rm -rf $RPM_BUILD_ROOT | |
da247dda | 112 | install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
c415cd34 | 113 | |
0c705155 | 114 | %{__make} -C obj-%{target} install-gcc install-target-libgcc \ |
c415cd34 PS |
115 | DESTDIR=$RPM_BUILD_ROOT |
116 | ||
215fb91a PS |
117 | install obj-%{target}/gcc/specs $RPM_BUILD_ROOT%{gcclib} |
118 | ||
c415cd34 PS |
119 | # don't want this here |
120 | rm -f $RPM_BUILD_ROOT%{_libdir}/libiberty.a | |
121 | ||
215fb91a PS |
122 | # include/ contains install-tools/include/* and headers that were fixed up |
123 | # by fixincludes, we don't want former | |
124 | gccdir=$(echo $RPM_BUILD_ROOT%{_libdir}/gcc/*/*/) | |
0c705155 | 125 | cp -p $gccdir/include-fixed/syslimits.h $gccdir/include |
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* |