]>
Commit | Line | Data |
---|---|---|
08a0a700 JB |
1 | Summary: Cross MinGW32 GNU binary utility development utilities - binutils |
2 | Summary(es.UTF-8): Utilitarios para desarrollo de binarios de la GNU - MinGW32 binutils | |
3 | Summary(fr.UTF-8): Utilitaires de développement binaire de GNU - MinGW32 binutils | |
4 | Summary(pl.UTF-8): Skrośne narzędzia programistyczne GNU dla MinGW32 - binutils | |
5 | Summary(pt_BR.UTF-8): Utilitários para desenvolvimento de binários da GNU - MinGW32 binutils | |
6 | Summary(tr.UTF-8): GNU geliştirme araçları - MinGW32 binutils | |
27199da8 | 7 | Name: crossmingw32-binutils |
f700d08b | 8 | Version: 2.22.52.0.4 |
b9d2a816 | 9 | Release: 1 |
30e4c16a | 10 | License: GPL v3+ |
27199da8 | 11 | Group: Development/Tools |
259e8ba5 | 12 | Source0: http://www.kernel.org/pub/linux/devel/binutils/binutils-%{version}.tar.bz2 |
f700d08b | 13 | # Source0-md5: 2a5beea06d6f3e21107365b91184e11c |
dc1e8c40 | 14 | URL: http://sources.redhat.com/binutils/ |
4f0c3487 | 15 | BuildRequires: automake |
53ff67d5 | 16 | BuildRequires: bash |
27199da8 | 17 | BuildRequires: bison |
53ff67d5 | 18 | BuildRequires: flex |
bf6fa86a | 19 | BuildRequires: gettext-devel |
e16d9692 | 20 | BuildRequires: perl-tools-pod |
21 | BuildRequires: texinfo >= 4.2 | |
27199da8 JB |
22 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
23 | ||
ee911cc9 | 24 | %define target i386-mingw32 |
25 | %define arch %{_prefix}/%{target} | |
27199da8 JB |
26 | |
27 | %description | |
28 | crossmingw32 is a complete cross-compiling development system for | |
29 | building stand-alone Microsoft Windows applications under Linux using | |
08a0a700 | 30 | the MinGW32 build libraries. This includes a binutils, gcc with g++ |
27199da8 JB |
31 | and objc, and libstdc++, all cross targeted to i386-mingw32, along |
32 | with supporting Win32 libraries in 'coff' format from free sources. | |
33 | ||
34 | This package contains cross targeted binutils. | |
35 | ||
d4620862 JR |
36 | %description -l pl.UTF-8 |
37 | crossmingw32 jest kompletnym systemem do kroskompilacji, pozwalającym | |
08a0a700 | 38 | budować aplikacje MS Windows pod Linuksem używając bibliotek MinGW32. |
d4620862 JR |
39 | System składa się z binutils, gcc z g++ i objc, libstdc++ - wszystkie |
40 | generujące kod dla platformy i386-mingw32, oraz z bibliotek w formacie | |
809ab9a3 JB |
41 | COFF. |
42 | ||
d4620862 | 43 | Ten pakiet zawiera binutils generujące skrośnie binaria dla Win32. |
809ab9a3 | 44 | |
27199da8 | 45 | %prep |
d92f4db4 | 46 | %setup -q -n binutils-%{version} |
27199da8 JB |
47 | |
48 | %build | |
4f0c3487 | 49 | cp /usr/share/automake/config.sub . |
27199da8 JB |
50 | |
51 | # Because of a bug in binutils-2.9.1, a cross libbfd.so* is not named | |
52 | # lib<target>bfd.so*. To prevent confusion with native binutils, we | |
53 | # forget about shared libraries right now, and do not install libbfd.a | |
d92f4db4 | 54 | # [the same applies to binutils 2.10.1.0.4] |
27199da8 JB |
55 | |
56 | # ldscripts won't be generated properly if SHELL is not bash... | |
d5223c76 | 57 | CFLAGS="%{rpmcflags}" \ |
58 | LDFLAGS="%{rpmldflags}" \ | |
27199da8 JB |
59 | CONFIG_SHELL="/bin/bash" \ |
60 | ./configure \ | |
950dee07 | 61 | --disable-nls \ |
3ca2e5a8 | 62 | --disable-shared \ |
27199da8 JB |
63 | --prefix=%{_prefix} \ |
64 | --libdir=%{_libdir} \ | |
65 | --mandir=%{_mandir} \ | |
66 | --infodir=%{_infodir} \ | |
e662051a AF |
67 | --host=%{_target_platform} \ |
68 | --build=%{_target_platform} \ | |
27199da8 JB |
69 | --target=%{target} |
70 | ||
d5223c76 | 71 | %{__make} all \ |
72 | tooldir=%{_prefix} | |
27199da8 JB |
73 | |
74 | %install | |
27199da8 | 75 | rm -rf $RPM_BUILD_ROOT |
27199da8 JB |
76 | |
77 | %{__make} install \ | |
115e75b8 | 78 | INSTALL='$$s/install-sh -c' \ |
27199da8 JB |
79 | prefix=$RPM_BUILD_ROOT%{_prefix} \ |
80 | mandir=$RPM_BUILD_ROOT%{_mandir} \ | |
273616bd | 81 | infodir=$RPM_BUILD_ROOT%{_infodir} \ |
82 | libdir=$RPM_BUILD_ROOT%{_libdir} | |
27199da8 | 83 | |
8273746d | 84 | # remove this man page unless we cross-build for netware platform. |
85 | # however, this should be done in Makefiles. | |
d0446d94 | 86 | %{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/*nlmconv.1 |
8273746d | 87 | |
e662051a | 88 | # libiberty.a is ELF not PE |
d0446d94 | 89 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libiberty.a |
e662051a | 90 | |
6b67d375 | 91 | # "filesystem" for crossmingw32-* packages (move to crossmingw32-dirs?) |
b9d2a816 | 92 | install -d $RPM_BUILD_ROOT%{arch}/lib/pkgconfig |
6b67d375 | 93 | |
dc1e8c40 JB |
94 | %clean |
95 | rm -rf $RPM_BUILD_ROOT | |
96 | ||
27199da8 JB |
97 | %files |
98 | %defattr(644,root,root,755) | |
b7a83bb2 | 99 | %doc README |
09545d41 | 100 | # mingw32 directory tree |
e662051a AF |
101 | %dir %{arch} |
102 | %dir %{arch}/lib | |
6b67d375 | 103 | %dir %{arch}/lib/pkgconfig |
e662051a | 104 | %dir %{arch}/bin |
09545d41 JB |
105 | # binutils files |
106 | %attr(755,root,root) %{arch}/bin/ar | |
107 | %attr(755,root,root) %{arch}/bin/as | |
108 | %attr(755,root,root) %{arch}/bin/dlltool | |
109 | %attr(755,root,root) %{arch}/bin/ld | |
d0446d94 | 110 | %attr(755,root,root) %{arch}/bin/ld.bfd |
09545d41 JB |
111 | %attr(755,root,root) %{arch}/bin/nm |
112 | %attr(755,root,root) %{arch}/bin/objcopy | |
113 | %attr(755,root,root) %{arch}/bin/objdump | |
114 | %attr(755,root,root) %{arch}/bin/ranlib | |
115 | %attr(755,root,root) %{arch}/bin/strip | |
e662051a | 116 | %{arch}/lib/ldscripts |
09545d41 JB |
117 | %attr(755,root,root) %{_bindir}/%{target}-addr2line |
118 | %attr(755,root,root) %{_bindir}/%{target}-ar | |
119 | %attr(755,root,root) %{_bindir}/%{target}-as | |
120 | %attr(755,root,root) %{_bindir}/%{target}-c++filt | |
121 | %attr(755,root,root) %{_bindir}/%{target}-dlltool | |
122 | %attr(755,root,root) %{_bindir}/%{target}-dllwrap | |
123 | %attr(755,root,root) %{_bindir}/%{target}-elfedit | |
124 | %attr(755,root,root) %{_bindir}/%{target}-gprof | |
125 | %attr(755,root,root) %{_bindir}/%{target}-ld | |
d0446d94 | 126 | %attr(755,root,root) %{_bindir}/%{target}-ld.bfd |
09545d41 JB |
127 | %attr(755,root,root) %{_bindir}/%{target}-nm |
128 | %attr(755,root,root) %{_bindir}/%{target}-objcopy | |
129 | %attr(755,root,root) %{_bindir}/%{target}-objdump | |
130 | %attr(755,root,root) %{_bindir}/%{target}-ranlib | |
131 | %attr(755,root,root) %{_bindir}/%{target}-readelf | |
132 | %attr(755,root,root) %{_bindir}/%{target}-size | |
133 | %attr(755,root,root) %{_bindir}/%{target}-strings | |
134 | %attr(755,root,root) %{_bindir}/%{target}-strip | |
135 | %attr(755,root,root) %{_bindir}/%{target}-windmc | |
136 | %attr(755,root,root) %{_bindir}/%{target}-windres | |
137 | %{_mandir}/man1/%{target}-addr2line.1* | |
138 | %{_mandir}/man1/%{target}-ar.1* | |
139 | %{_mandir}/man1/%{target}-as.1* | |
140 | %{_mandir}/man1/%{target}-c++filt.1* | |
141 | %{_mandir}/man1/%{target}-dlltool.1* | |
142 | %{_mandir}/man1/%{target}-elfedit.1* | |
143 | %{_mandir}/man1/%{target}-gprof.1* | |
144 | %{_mandir}/man1/%{target}-ld.1* | |
145 | %{_mandir}/man1/%{target}-nm.1* | |
146 | %{_mandir}/man1/%{target}-objcopy.1* | |
147 | %{_mandir}/man1/%{target}-objdump.1* | |
148 | %{_mandir}/man1/%{target}-ranlib.1* | |
149 | %{_mandir}/man1/%{target}-readelf.1* | |
150 | %{_mandir}/man1/%{target}-size.1* | |
151 | %{_mandir}/man1/%{target}-strings.1* | |
152 | %{_mandir}/man1/%{target}-strip.1* | |
153 | %{_mandir}/man1/%{target}-windmc.1* | |
154 | %{_mandir}/man1/%{target}-windres.1* |