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