]>
Commit | Line | Data |
---|---|---|
a3bdc2a1 | 1 | # |
83afd976 | 2 | # TODO: |
83afd976 ŁK |
3 | # - openmp |
4 | # | |
a3bdc2a1 | 5 | # Conditional build: |
8c4c66e6 | 6 | %bcond_with bootstrap # bootstrap build (using binary w32api/mingwrt) |
a3bdc2a1 | 7 | # |
8c4c66e6 JB |
8 | Summary: Cross MinGW32 GNU binary utility development utilities - gcc |
9 | Summary(es.UTF-8): Utilitarios para desarrollo de binarios de la GNU - MinGW32 gcc | |
10 | Summary(fr.UTF-8): Utilitaires de développement binaire de GNU - MinGW32 gcc | |
11 | Summary(pl.UTF-8): Skrośne narzędzia programistyczne GNU dla MinGW32 - gcc | |
12 | Summary(pt_BR.UTF-8): Utilitários para desenvolvimento de binários da GNU - MinGW32 gcc | |
13 | Summary(tr.UTF-8): GNU geliştirme araçları - MinGW32 gcc | |
b336056d | 14 | Name: crossmingw32-gcc |
d12456cd | 15 | Version: 4.5.2 |
00383376 | 16 | Release: 2 |
d3f237e2 | 17 | Epoch: 1 |
acb9fe67 | 18 | License: GPL v3+ |
d3f237e2 | 19 | Group: Development/Languages |
dee9b92f | 20 | Source0: ftp://gcc.gnu.org/pub/gcc/releases/gcc-%{version}/gcc-%{version}.tar.bz2 |
d12456cd | 21 | # Source0-md5: d6559145853fbaaa0fd7556ed93bce9a |
73ff33c1 JB |
22 | %define apiver 3.15 |
23 | Source1: http://downloads.sourceforge.net/mingw/w32api-%{apiver}-1-mingw32-dev.tar.lzma | |
24 | # Source1-md5: efcbcadd0299a6413d95b9ce919ede9f | |
25 | %define runver 3.18 | |
26 | Source2: http://downloads.sourceforge.net/mingw/mingwrt-%{runver}-mingw32-dev.tar.gz | |
27 | # Source2-md5: e49803d8c14b1ffa6e24e5b5fee31a3d | |
d12456cd | 28 | # svn diff -x --ignore-eol-style svn://gcc.gnu.org/svn/gcc/tags/gcc_4_5_2_release svn://gcc.gnu.org/svn/gcc/branches/gcc-4_5-branch > gcc-branch.diff |
83afd976 ŁK |
29 | Patch100: gcc-branch.diff |
30 | Patch0: %{name}-buildsystem1.patch | |
31 | Patch1: %{name}-buildsystem2.patch | |
32 | Patch2: %{name}-lfs.patch | |
d12aabe0 | 33 | BuildRequires: autoconf |
59d75dd2 | 34 | BuildRequires: automake |
d12aabe0 | 35 | BuildRequires: bison |
43a95438 | 36 | BuildRequires: crossmingw32-binutils >= 2.15.91.0.2-2 |
b336056d | 37 | BuildRequires: flex |
83afd976 | 38 | BuildRequires: libmpc-devel |
5b936a1d | 39 | %if %{without bootstrap} |
43a95438 JK |
40 | BuildRequires: crossmingw32-runtime >= 3.5 |
41 | BuildRequires: crossmingw32-w32api >= 3.1 | |
b399bc1a | 42 | %endif |
f24c8266 | 43 | BuildRequires: mpfr-devel |
207a380a | 44 | BuildRequires: perl-tools-pod |
d81c803d | 45 | BuildRequires: texinfo >= 4.2 |
73ff33c1 JB |
46 | %if %{with booststrap} |
47 | BuildRequires: tar >= 1:1.22 | |
48 | BuildRequires: xz | |
49 | %endif | |
43a95438 | 50 | Requires: crossmingw32-binutils >= 2.15.91.0.2-2 |
6ab368b0 | 51 | Requires: gcc-dirs |
b336056d JB |
52 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
53 | ||
d3f237e2 | 54 | %define target i386-mingw32 |
8f1d5c0c JB |
55 | %define sysprefix /usr |
56 | %define arch %{sysprefix}/%{target} | |
73ff33c1 JB |
57 | %define gccarchdir %{_libdir}/gcc/%{target} |
58 | %define gcclibdir %{gccarchdir}/%{version} | |
59 | %define _dlldir /usr/share/wine/windows/system | |
dee9b92f | 60 | |
5b936a1d | 61 | %define _noautostrip .*/lib.*\\.a |
b336056d | 62 | |
66f480ce JP |
63 | %define _enable_debug_packages 0 |
64 | ||
b336056d JB |
65 | %description |
66 | crossmingw32 is a complete cross-compiling development system for | |
67 | building stand-alone Microsoft Windows applications under Linux using | |
8c4c66e6 | 68 | the MinGW32 build libraries. This includes a binutils, gcc with g++ |
b336056d JB |
69 | and objc, and libstdc++, all cross targeted to i386-mingw32, along |
70 | with supporting Win32 libraries in 'coff' format from free sources. | |
71 | ||
d3f237e2 | 72 | This package contains cross targeted gcc. |
b336056d | 73 | |
4a6c89d0 | 74 | %description -l de.UTF-8 |
75 | Dieses Paket enthält einen Cross-gcc, der es erlaubt, auf einem | |
76 | anderem Rechner Code für Win32 zu generieren. | |
9dd4c848 | 77 | |
4a6c89d0 | 78 | %description -l pl.UTF-8 |
79 | crossmingw32 jest kompletnym systemem do kompilacji skrośnej, | |
80 | pozwalającym budować aplikacje MS Windows pod Linuksem używając | |
8c4c66e6 | 81 | bibliotek MinGW32. System składa się z binutils, gcc z g++ i objc, |
4a6c89d0 | 82 | libstdc++ - wszystkie generujące kod dla platformy i386-mingw32, oraz |
2e5b9011 | 83 | z bibliotek w formacie COFF. |
d790a8ba | 84 | |
4a6c89d0 | 85 | Ten pakiet zawiera gcc generujące skrośnie kod dla Win32. |
d790a8ba | 86 | |
73ff33c1 JB |
87 | %package -n crossmingw32-libgcc-dll |
88 | Summary: libgcc DLL library for Windows | |
89 | Summary(pl.UTF-8): Biblioteka DLL libgcc dla Windows | |
90 | Group: Applications/Emulators | |
91 | Requires: wine | |
92 | ||
93 | %description -n crossmingw32-libgcc-dll | |
94 | libgcc DLL library for Windows. | |
95 | ||
96 | %description -n crossmingw32-libgcc-dll -l pl.UTF-8 | |
97 | Biblioteka DLL libgcc dla Windows. | |
98 | ||
d3f237e2 | 99 | %package c++ |
8c4c66e6 JB |
100 | Summary: MinGW32 binary utility development utilities - g++ |
101 | Summary(pl.UTF-8): Zestaw narzędzi MinGW32 - g++ | |
d3f237e2 | 102 | Group: Development/Languages |
cae974d4 | 103 | Requires: %{name} = %{epoch}:%{version}-%{release} |
b336056d | 104 | |
d3f237e2 JB |
105 | %description c++ |
106 | crossmingw32 is a complete cross-compiling development system for | |
107 | building stand-alone Microsoft Windows applications under Linux using | |
8c4c66e6 | 108 | the MinGW32 build libraries. This includes a binutils, gcc with g++ |
d3f237e2 JB |
109 | and objc, and libstdc++, all cross targeted to i386-mingw32, along |
110 | with supporting Win32 libraries in 'coff' format from free sources. | |
111 | ||
112 | This package contains cross targeted g++ and (static) libstdc++. | |
113 | ||
4a6c89d0 | 114 | %description c++ -l pl.UTF-8 |
115 | crossmingw32 jest kompletnym systemem do kompilacji skrośnej, | |
116 | pozwalającym budować aplikacje MS Windows pod Linuksem używając | |
8c4c66e6 | 117 | bibliotek MinGW32. System składa się z binutils, gcc z g++ i objc, |
4a6c89d0 | 118 | libstdc++ - wszystkie generujące kod dla platformy i386-mingw32, oraz |
2e5b9011 | 119 | z bibliotek w formacie COFF. |
d790a8ba | 120 | |
4a6c89d0 | 121 | Ten pakiet zawiera g++ generujące kod pod Win32 oraz bibliotekę |
d790a8ba JB |
122 | libstdc++. |
123 | ||
73ff33c1 JB |
124 | %package -n crossmingw32-libstdc++-static |
125 | Summary: Static standard C++ library - cross MinGW32 version | |
126 | Summary(pl.UTF-8): Statyczna biblioteka standardowa C++ - wersja skrośna MinGW32 | |
127 | Group: Development/Libraries | |
128 | Requires: %{name}-c++ = %{epoch}:%{version}-%{release} | |
129 | ||
130 | %description -n crossmingw32-libstdc++-static | |
131 | Static standard C++ library - cross MinGW32 version. | |
132 | ||
133 | %description -n crossmingw32-libstdc++-static -l pl.UTF-8 | |
134 | Statyczna biblioteka standardowa C++ - wersja skrośna MinGW32. | |
135 | ||
136 | %package -n crossmingw32-libstdc++-dll | |
137 | Summary: libstdc++ DLL library for Windows | |
138 | Summary(pl.UTF-8): Biblioteka DLL libstdc++ dla Windows | |
139 | Group: Applications/Emulators | |
140 | Requires: crossmingw32-libgcc-dll = %{epoch}:%{version}-%{release} | |
141 | Requires: wine | |
142 | ||
143 | %description -n crossmingw32-libstdc++-dll | |
144 | libstdc++ DLL library for Windows. | |
145 | ||
146 | %description -n crossmingw32-libstdc++-dll -l pl.UTF-8 | |
147 | Biblioteka DLL libstdc++ dla Windows. | |
148 | ||
d3f237e2 | 149 | %package objc |
8c4c66e6 JB |
150 | Summary: MinGW32 binary utility development utilities - objc |
151 | Summary(pl.UTF-8): Zestaw narzędzi MinGW32 - objc | |
d3f237e2 | 152 | Group: Development/Languages |
cae974d4 | 153 | Requires: %{name} = %{epoch}:%{version}-%{release} |
d3f237e2 JB |
154 | |
155 | %description objc | |
156 | crossmingw32 is a complete cross-compiling development system for | |
157 | building stand-alone Microsoft Windows applications under Linux using | |
8c4c66e6 | 158 | the MinGW32 build libraries. This includes a binutils, gcc with g++ |
d3f237e2 JB |
159 | and objc, and libstdc++, all cross targeted to i386-mingw32, along |
160 | with supporting Win32 libraries in 'coff' format from free sources. | |
161 | ||
37948e2b | 162 | This package contains cross targeted objc compiler. |
d3f237e2 | 163 | |
4a6c89d0 | 164 | %description objc -l pl.UTF-8 |
165 | crossmingw32 jest kompletnym systemem do kompilacji skrośnej, | |
166 | pozwalającym budować aplikacje MS Windows pod Linuksem używając | |
8c4c66e6 | 167 | bibliotek MinGW32. System składa się z binutils, gcc z g++ i objc, |
4a6c89d0 | 168 | libstdc++ - wszystkie generujące kod dla platformy i386-mingw32, oraz |
2e5b9011 | 169 | z bibliotek w formacie COFF. |
d790a8ba | 170 | |
4a6c89d0 | 171 | Ten pakiet zawiera kompilator objc generujący kod pod Win32. |
d790a8ba | 172 | |
8f1d5c0c JB |
173 | %package -n crossmingw32-libobjc-static |
174 | Summary: Static Objective C library - cross MinGW32 version | |
175 | Summary(pl.UTF-8): Statyczna biblioteka Objective C - wersja skrośna MinGW32 | |
176 | Group: Development/Libraries | |
177 | Requires: %{name}-objc = %{epoch}:%{version}-%{release} | |
178 | ||
179 | %description -n crossmingw32-libobjc-static | |
180 | Static Objective C library - cross MinGW32 version. | |
181 | ||
182 | %description -n crossmingw32-libobjc-static -l pl.UTF-8 | |
183 | Statyczna biblioteka Objective C - wersja skrośna MinGW32. | |
184 | ||
185 | %package -n crossmingw32-libobjc-dll | |
186 | Summary: libobjc DLL library for Windows | |
187 | Summary(pl.UTF-8): Biblioteka DLL libobjc dla Windows | |
188 | Group: Applications/Emulators | |
189 | Requires: crossmingw32-libgcc-dll = %{epoch}:%{version}-%{release} | |
190 | Requires: wine | |
191 | ||
192 | %description -n crossmingw32-libobjc-dll | |
193 | libobjc DLL library for Windows. | |
194 | ||
195 | %description -n crossmingw32-libobjc-dll -l pl.UTF-8 | |
196 | Biblioteka DLL libobjc dla Windows. | |
197 | ||
52a544a1 | 198 | %package fortran |
8c4c66e6 JB |
199 | Summary: MinGW32 binary utility development utilities - Fortran |
200 | Summary(pl.UTF-8): Zestaw narzędzi MinGW32 - Fortran | |
d3f237e2 | 201 | Group: Development/Languages |
cae974d4 | 202 | Requires: %{name} = %{epoch}:%{version}-%{release} |
37948e2b | 203 | Obsoletes: crossmingw32-gcc-g77 |
d3f237e2 | 204 | |
52a544a1 | 205 | %description fortran |
d3f237e2 JB |
206 | crossmingw32 is a complete cross-compiling development system for |
207 | building stand-alone Microsoft Windows applications under Linux using | |
8c4c66e6 | 208 | the MinGW32 build libraries. This includes a binutils, gcc with g++ |
d3f237e2 JB |
209 | and objc, and libstdc++, all cross targeted to i386-mingw32, along |
210 | with supporting Win32 libraries in 'coff' format from free sources. | |
211 | ||
37948e2b | 212 | This package contains cross targeted Fortran compiler. |
d3f237e2 | 213 | |
4a6c89d0 | 214 | %description fortran -l pl.UTF-8 |
215 | crossmingw32 jest kompletnym systemem do kompilacji skrośnej, | |
216 | pozwalającym budować aplikacje MS Windows pod Linuksem używając | |
8c4c66e6 | 217 | bibliotek MinGW32. System składa się z binutils, gcc z g++ i objc, |
4a6c89d0 | 218 | libstdc++ - wszystkie generujące kod dla platformy i386-mingw32, oraz |
2e5b9011 | 219 | z bibliotek w formacie COFF. |
d790a8ba | 220 | |
4a6c89d0 | 221 | Ten pakiet zawiera kompilator Fortranu generujący kod pod Win32. |
d790a8ba | 222 | |
0d9cd0a8 JB |
223 | %package -n crossmingw32-libgfortran-static |
224 | Summary: Static Fortran library - cross MinGW32 version | |
225 | Summary(pl.UTF-8): Statyczna biblioteka Fortrana - wersja skrośna MinGW32 | |
226 | Group: Development/Libraries | |
227 | Requires: %{name}-fortran = %{epoch}:%{version}-%{release} | |
228 | ||
229 | %description -n crossmingw32-libgfortran-static | |
230 | Static Fortran library - cross MinGW32 version. | |
231 | ||
232 | %description -n crossmingw32-libgfortran-static -l pl.UTF-8 | |
233 | Statyczna biblioteka Fortrana - wersja skrośna MinGW32. | |
234 | ||
235 | %package -n crossmingw32-libgfortran-dll | |
236 | Summary: libgfortran DLL library for Windows | |
237 | Summary(pl.UTF-8): Biblioteka DLL libgfortran dla Windows | |
238 | Group: Applications/Emulators | |
239 | Requires: wine | |
240 | ||
241 | %description -n crossmingw32-libgfortran-dll | |
242 | libgfortran DLL library for Windows. | |
243 | ||
244 | %description -n crossmingw32-libgfortran-dll -l pl.UTF-8 | |
245 | Biblioteka DLL libgfortran dla Windows. | |
246 | ||
d3f237e2 | 247 | %package java |
8c4c66e6 JB |
248 | Summary: MinGW32 binary utility development utilities - Java |
249 | Summary(pl.UTF-8): Zestaw narzędzi MinGW32 - Java | |
d3f237e2 | 250 | Group: Development/Languages |
cae974d4 | 251 | Requires: %{name} = %{epoch}:%{version}-%{release} |
d3f237e2 JB |
252 | |
253 | %description java | |
254 | crossmingw32 is a complete cross-compiling development system for | |
255 | building stand-alone Microsoft Windows applications under Linux using | |
8c4c66e6 | 256 | the MinGW32 build libraries. This includes a binutils, gcc with g++ |
d3f237e2 JB |
257 | and objc, and libstdc++, all cross targeted to i386-mingw32, along |
258 | with supporting Win32 libraries in 'coff' format from free sources. | |
259 | ||
37948e2b | 260 | This package contains cross targeted Java compiler. |
d3f237e2 | 261 | |
4a6c89d0 | 262 | %description java -l pl.UTF-8 |
4a6c89d0 | 263 | crossmingw32 jest kompletnym systemem do kompilacji skrośnej, |
264 | pozwalającym budować aplikacje MS Windows pod Linuksem używając | |
8c4c66e6 | 265 | bibliotek MinGW32. System składa się z binutils, gcc z g++ i objc, |
4a6c89d0 | 266 | libstdc++ - wszystkie generujące kod dla platformy i386-mingw32, oraz |
2e5b9011 | 267 | z bibliotek w formacie COFF. |
d790a8ba | 268 | |
4a6c89d0 | 269 | Ten pakiet zawiera kompilator Javy generujący kod pod Win32. |
d790a8ba | 270 | |
d3f237e2 | 271 | %prep |
dee9b92f | 272 | %setup -q -n gcc-%{version} |
83afd976 ŁK |
273 | %patch100 -p0 |
274 | %patch0 -p1 | |
275 | %patch2 -p1 | |
276 | ||
b399bc1a | 277 | %if %{with bootstrap} |
73ff33c1 JB |
278 | # note: "winsup" dirs below are special, handled by gcc's configure |
279 | install -d winsup/{mingw,w32api} | |
280 | tar xf %{SOURCE1} -C winsup/w32api | |
281 | tar xf %{SOURCE2} -C winsup/mingw | |
b399bc1a | 282 | %endif |
83afd976 ŁK |
283 | |
284 | # override snapshot version. | |
285 | echo %{version} > gcc/BASE-VER | |
286 | echo "release" > gcc/DEV-PHASE | |
b336056d JB |
287 | |
288 | %build | |
73ff33c1 | 289 | rm -rf builddir && install -d builddir && cd builddir |
b399bc1a | 290 | %if %{with bootstrap} |
73ff33c1 | 291 | install -d %{target}/winsup |
73ff33c1 JB |
292 | ln -sf ../../../winsup/mingw/lib %{target}/winsup/mingw |
293 | ln -sf ../../../winsup/w32api %{target}/winsup/w32api | |
294 | WINSUPDIR=$(cd ..; pwd)/winsup | |
b399bc1a AF |
295 | %endif |
296 | ||
83afd976 | 297 | CC="%{__cc}" \ |
b4c37c30 | 298 | CFLAGS="%{rpmcflags}" \ |
83afd976 | 299 | CXXFLAGS="%{rpmcxxflags}" \ |
b4c37c30 | 300 | TEXCONFIG=false \ |
b336056d | 301 | ../configure \ |
8f1d5c0c JB |
302 | --prefix=%{sysprefix} \ |
303 | --bindir=%{arch}/bin \ | |
73ff33c1 | 304 | --libdir=%{_libdir} \ |
8f1d5c0c | 305 | --includedir=%{arch}/include \ |
73ff33c1 | 306 | --libexecdir=%{_libdir} \ |
b336056d JB |
307 | --infodir=%{_infodir} \ |
308 | --mandir=%{_mandir} \ | |
73ff33c1 JB |
309 | %{!?with_bootstrap:--with-headers=%{arch}/include} \ |
310 | --with-libs=%{!?with_bootstrap:%{arch}/lib}%{?with_bootstrap:${WINSUPDIR}/mingw/lib} \ | |
83afd976 ŁK |
311 | --with-build-time-tools=%{arch}/bin \ |
312 | --with-dwarf2 \ | |
313 | --with-gnu-as \ | |
314 | --with-gnu-ld \ | |
315 | --with-mangler-in-ld \ | |
316 | --with-long-double-128 \ | |
0dcd3a97 | 317 | --enable-threads \ |
0d9cd0a8 | 318 | --enable-languages="c,c++,fortran,java,objc" \ |
0dcd3a97 PS |
319 | --enable-c99 \ |
320 | --enable-long-long \ | |
83afd976 ŁK |
321 | --enable-fully-dynamic-string \ |
322 | --enable-libstdcxx-allocator=new \ | |
323 | --enable-version-specific-runtime-libs \ | |
324 | --enable-shared \ | |
0dcd3a97 | 325 | --disable-nls \ |
83afd976 ŁK |
326 | --disable-symvers \ |
327 | --disable-sjlj-exceptions \ | |
328 | --disable-win32-registry \ | |
329 | --disable-multilib \ | |
330 | --disable-libssp \ | |
b336056d JB |
331 | --target=%{target} |
332 | ||
83afd976 ŁK |
333 | cd .. |
334 | %{__make} -C builddir all-host | |
335 | patch -p1 <%{PATCH1} | |
336 | %{__make} -C builddir | |
b336056d JB |
337 | |
338 | %install | |
b336056d | 339 | rm -rf $RPM_BUILD_ROOT |
73ff33c1 | 340 | install -d $RPM_BUILD_ROOT%{_bindir} |
b336056d | 341 | |
83afd976 | 342 | %{__make} -C builddir install \ |
d12aabe0 | 343 | DESTDIR=$RPM_BUILD_ROOT |
b336056d | 344 | |
73ff33c1 JB |
345 | # host (ELF) library |
346 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libiberty.a | |
347 | ||
73ff33c1 JB |
348 | mv $RPM_BUILD_ROOT%{gcclibdir}/include-fixed/{limits,syslimits}.h $RPM_BUILD_ROOT%{gcclibdir}/include |
349 | %{__rm} -r $RPM_BUILD_ROOT%{gcclibdir}/include-fixed | |
350 | %{__rm} -r $RPM_BUILD_ROOT%{gcclibdir}/install-tools | |
d12aabe0 | 351 | |
82f2d40f JB |
352 | # these must be symlinks: gcclibdir is calculated relatively to real binary path |
353 | ln -sf %{arch}/bin/%{target}-gcc $RPM_BUILD_ROOT%{_bindir}/%{target}-gcc | |
354 | ln -sf %{arch}/bin/%{target}-g++ $RPM_BUILD_ROOT%{_bindir}/%{target}-g++ | |
355 | ln -sf %{arch}/bin/%{target}-cpp $RPM_BUILD_ROOT%{_bindir}/%{target}-cpp | |
356 | ln -sf %{arch}/bin/%{target}-gcov $RPM_BUILD_ROOT%{_bindir}/%{target}-gcov | |
357 | ln -sf %{arch}/bin/%{target}-gcj $RPM_BUILD_ROOT%{_bindir}/%{target}-gcj | |
358 | ln -sf %{arch}/bin/%{target}-jcf-dump $RPM_BUILD_ROOT%{_bindir}/%{target}-jcf-dump | |
359 | ln -sf %{arch}/bin/%{target}-gfortran $RPM_BUILD_ROOT%{_bindir}/%{target}-gfortran | |
83afd976 | 360 | |
73ff33c1 JB |
361 | # DLLs |
362 | install -d $RPM_BUILD_ROOT%{_dlldir} | |
8f1d5c0c JB |
363 | mv -f $RPM_BUILD_ROOT%{arch}/bin/*.dll $RPM_BUILD_ROOT%{_dlldir} |
364 | if [ ! -f $RPM_BUILD_ROOT%{_dlldir}/libgcc_s_dw2-1.dll ]; then | |
365 | echo "libgcc DLL not installed?" | |
366 | install builddir/i386-mingw32/libgcc/shlib/libgcc_s_dw2-1.dll $RPM_BUILD_ROOT%{_dlldir} | |
367 | fi | |
d12aabe0 | 368 | |
73ff33c1 JB |
369 | %if 0%{!?debug:1} |
370 | %{target}-strip --strip-unneeded -R.comment -R.note $RPM_BUILD_ROOT%{_dlldir}/*.dll | |
371 | %{target}-strip -g -R.comment -R.note $RPM_BUILD_ROOT%{gcclibdir}/lib*.a \ | |
372 | $RPM_BUILD_ROOT%{arch}/lib/lib*.a | |
373 | %endif | |
83afd976 | 374 | |
73ff33c1 JB |
375 | # already in native gcc |
376 | %{__rm} -r $RPM_BUILD_ROOT%{_infodir} | |
377 | # common FSF man pages | |
378 | %{__rm} $RPM_BUILD_ROOT%{_mandir}/man7/{fsf-funding,gfdl,gpl}.7 | |
7f7a2048 JB |
379 | # programs not packaged |
380 | %{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/%{target}-{aot-compile,gc-analyze,gcj-dbtool,gij,grmic,jv-convert,rebuild-gcj-db}.1 | |
8c4c66e6 | 381 | |
b336056d | 382 | %clean |
b336056d JB |
383 | rm -rf $RPM_BUILD_ROOT |
384 | ||
385 | %files | |
386 | %defattr(644,root,root,755) | |
83afd976 | 387 | %attr(755,root,root) %{_bindir}/%{target}-gcc |
b4c37c30 | 388 | %attr(755,root,root) %{_bindir}/%{target}-cpp |
389 | %attr(755,root,root) %{_bindir}/%{target}-gcov | |
73ff33c1 JB |
390 | %attr(755,root,root) %{arch}/bin/%{target}-gcc |
391 | %attr(755,root,root) %{arch}/bin/%{target}-gcc-%{version} | |
392 | %attr(755,root,root) %{arch}/bin/%{target}-gccbug | |
83afd976 ŁK |
393 | %attr(755,root,root) %{arch}/bin/%{target}-cpp |
394 | %attr(755,root,root) %{arch}/bin/%{target}-gcov | |
8f1d5c0c | 395 | %attr(755,root,root) %{arch}/bin/gcc |
73ff33c1 JB |
396 | %{arch}/lib/libiberty.a |
397 | %dir %{gccarchdir} | |
398 | %dir %{gcclibdir} | |
399 | %attr(755,root,root) %{gcclibdir}/cc1 | |
400 | %attr(755,root,root) %{gcclibdir}/collect2 | |
401 | %attr(755,root,root) %{gcclibdir}/lto-wrapper | |
402 | %{gcclibdir}/libgcc.a | |
403 | %{gcclibdir}/libgcc_eh.a | |
404 | %{gcclibdir}/libgcc_s.a | |
405 | %{gcclibdir}/libgcov.a | |
00383376 AF |
406 | %{gcclibdir}/crtbegin.o |
407 | %{gcclibdir}/crtend.o | |
408 | %{gcclibdir}/crtfastmath.o | |
73ff33c1 JB |
409 | %dir %{gcclibdir}/include |
410 | %{gcclibdir}/include/*.h | |
539d7886 | 411 | %{_mandir}/man1/%{target}-cpp.1* |
d3f237e2 | 412 | %{_mandir}/man1/%{target}-gcc.1* |
539d7886 | 413 | %{_mandir}/man1/%{target}-gcov.1* |
d3f237e2 | 414 | |
73ff33c1 JB |
415 | %files -n crossmingw32-libgcc-dll |
416 | %defattr(644,root,root,755) | |
417 | %{_dlldir}/libgcc_s_dw2-1.dll | |
418 | ||
d3f237e2 JB |
419 | %files c++ |
420 | %defattr(644,root,root,755) | |
83afd976 ŁK |
421 | %attr(755,root,root) %{_bindir}/%{target}-g++ |
422 | %attr(755,root,root) %{arch}/bin/%{target}-c++ | |
423 | %attr(755,root,root) %{arch}/bin/%{target}-g++ | |
8f1d5c0c JB |
424 | %attr(755,root,root) %{arch}/bin/c++ |
425 | %attr(755,root,root) %{arch}/bin/g++ | |
73ff33c1 JB |
426 | %attr(755,root,root) %{gcclibdir}/cc1plus |
427 | %{gcclibdir}/libstdc++.dll.a | |
428 | %{gcclibdir}/libstdc++.la | |
429 | %{gcclibdir}/libsupc++.la | |
430 | %{gcclibdir}/libsupc++.a | |
73ff33c1 | 431 | %{gcclibdir}/include/c++ |
d3f237e2 JB |
432 | %{_mandir}/man1/%{target}-g++.1* |
433 | ||
73ff33c1 JB |
434 | %files -n crossmingw32-libstdc++-static |
435 | %defattr(644,root,root,755) | |
436 | %{gcclibdir}/libstdc++.a | |
437 | ||
438 | %files -n crossmingw32-libstdc++-dll | |
439 | %defattr(644,root,root,755) | |
440 | %{_dlldir}/libstdc++-6.dll | |
441 | ||
d3f237e2 JB |
442 | %files objc |
443 | %defattr(644,root,root,755) | |
8f1d5c0c JB |
444 | %attr(755,root,root) %{gcclibdir}/cc1obj |
445 | %{gcclibdir}/libobjc.dll.a | |
446 | %{gcclibdir}/libobjc.la | |
447 | %{gcclibdir}/include/objc | |
d3f237e2 | 448 | |
8f1d5c0c JB |
449 | %files -n crossmingw32-libobjc-static |
450 | %defattr(644,root,root,755) | |
451 | %{gcclibdir}/libobjc.a | |
452 | ||
453 | %files -n crossmingw32-libobjc-dll | |
454 | %defattr(644,root,root,755) | |
455 | %{_dlldir}/libobjc-2.dll | |
456 | ||
52a544a1 | 457 | %files fortran |
d3f237e2 | 458 | %defattr(644,root,root,755) |
52a544a1 | 459 | %attr(755,root,root) %{_bindir}/%{target}-gfortran |
0d9cd0a8 | 460 | %attr(755,root,root) %{arch}/bin/%{target}-gfortran |
52a544a1 | 461 | %attr(755,root,root) %{arch}/bin/gfortran |
7f7a2048 | 462 | %attr(755,root,root) %{gcclibdir}/f951 |
0d9cd0a8 JB |
463 | %{gcclibdir}/finclude |
464 | %{gcclibdir}/libgfortran.dll.a | |
465 | %{gcclibdir}/libgfortran.la | |
466 | %{gcclibdir}/libgfortranbegin.a | |
467 | %{gcclibdir}/libgfortranbegin.la | |
52a544a1 | 468 | %{_mandir}/man1/%{target}-gfortran.1* |
0d9cd0a8 JB |
469 | |
470 | %files -n crossmingw32-libgfortran-static | |
471 | %defattr(644,root,root,755) | |
472 | %{gcclibdir}/libgfortran.a | |
473 | ||
474 | %files -n crossmingw32-libgfortran-dll | |
475 | %defattr(644,root,root,755) | |
476 | %{_dlldir}/libgfortran-3.dll | |
d3f237e2 | 477 | |
d3f237e2 JB |
478 | %files java |
479 | %defattr(644,root,root,755) | |
480 | %attr(755,root,root) %{_bindir}/%{target}-gcj | |
7fc2a2bb | 481 | %attr(755,root,root) %{_bindir}/%{target}-jcf-dump |
7f7a2048 JB |
482 | %attr(755,root,root) %{arch}/bin/%{target}-gcj |
483 | %attr(755,root,root) %{arch}/bin/%{target}-jcf-dump | |
484 | %attr(755,root,root) %{gcclibdir}/jc1 | |
485 | %attr(755,root,root) %{gcclibdir}/jvgenmain | |
d12aabe0 | 486 | %{_mandir}/man1/%{target}-gcj.1* |
539d7886 | 487 | %{_mandir}/man1/%{target}-jcf-dump.1* |