]>
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 |
38c0b36a | 8 | Version: 2.42 |
b9d2a816 | 9 | Release: 1 |
30e4c16a | 10 | License: GPL v3+ |
27199da8 | 11 | Group: Development/Tools |
a686d844 | 12 | Source0: https://ftp.gnu.org/gnu/binutils/binutils-%{version}.tar.lz |
38c0b36a | 13 | # Source0-md5: c1526faed7197b4e79dfe04eded7fc11 |
a0bbb202 | 14 | URL: http://www.sourceware.org/binutils/ |
29846a8c | 15 | BuildRequires: autoconf >= 2.69 |
adc12180 | 16 | BuildRequires: automake >= 1:1.11 |
53ff67d5 | 17 | BuildRequires: bash |
27199da8 | 18 | BuildRequires: bison |
5727f7de | 19 | BuildRequires: elfutils-debuginfod-devel >= 0.179 |
53ff67d5 | 20 | BuildRequires: flex |
448c4073 | 21 | BuildRequires: gettext-tools |
f56bf5a5 | 22 | BuildRequires: lzip |
5727f7de | 23 | BuildRequires: msgpack-devel |
e16d9692 | 24 | BuildRequires: perl-tools-pod |
ba9fdff3 | 25 | BuildRequires: tar >= 1:1.22 |
0e07084e JB |
26 | BuildRequires: texinfo >= 6.3 |
27 | BuildRequires: zstd-devel | |
27199da8 JB |
28 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
29 | ||
ee911cc9 | 30 | %define target i386-mingw32 |
31 | %define arch %{_prefix}/%{target} | |
27199da8 JB |
32 | |
33 | %description | |
34 | crossmingw32 is a complete cross-compiling development system for | |
35 | building stand-alone Microsoft Windows applications under Linux using | |
08a0a700 | 36 | the MinGW32 build libraries. This includes a binutils, gcc with g++ |
27199da8 JB |
37 | and objc, and libstdc++, all cross targeted to i386-mingw32, along |
38 | with supporting Win32 libraries in 'coff' format from free sources. | |
39 | ||
40 | This package contains cross targeted binutils. | |
41 | ||
d4620862 JR |
42 | %description -l pl.UTF-8 |
43 | crossmingw32 jest kompletnym systemem do kroskompilacji, pozwalającym | |
08a0a700 | 44 | budować aplikacje MS Windows pod Linuksem używając bibliotek MinGW32. |
d4620862 JR |
45 | System składa się z binutils, gcc z g++ i objc, libstdc++ - wszystkie |
46 | generujące kod dla platformy i386-mingw32, oraz z bibliotek w formacie | |
809ab9a3 JB |
47 | COFF. |
48 | ||
d4620862 | 49 | Ten pakiet zawiera binutils generujące skrośnie binaria dla Win32. |
809ab9a3 | 50 | |
27199da8 | 51 | %prep |
d92f4db4 | 52 | %setup -q -n binutils-%{version} |
86668342 | 53 | |
29846a8c | 54 | # file contains hacks for ac 2.69 only |
86668342 JB |
55 | %{__rm} config/override.m4 |
56 | %{__sed} -i '/^m4_include(config\/override\.m4/d' configure.ac | |
27199da8 JB |
57 | |
58 | %build | |
86668342 JB |
59 | cp -f /usr/share/automake/config.* . |
60 | %{__aclocal} | |
61 | %{__autoconf} | |
62 | ||
63 | # non-standard regeneration (needed because of libdir patch) | |
64 | # AM_BINUTILS_WARNINGS in bfd/warning.m4, ZW_GNU_GETTEXT_SISTER_DIR in config/gettext-sister.m4 | |
65 | for dir in gas bfd; do | |
66 | cd $dir || exit 1 | |
67 | %{__aclocal} -I .. -I ../config -I ../bfd | |
68 | %{__automake} Makefile | |
ee5a09f8 | 69 | test -f doc/Makefile.am && %{__automake} doc/Makefile |
86668342 JB |
70 | %{__autoconf} |
71 | cd .. | |
72 | done | |
27199da8 | 73 | |
86668342 JB |
74 | # We don't install libbfd (nor use shared binutils libraries) to avoid |
75 | # conflict with native binutils. | |
27199da8 JB |
76 | |
77 | # ldscripts won't be generated properly if SHELL is not bash... | |
d5223c76 | 78 | CFLAGS="%{rpmcflags}" \ |
79 | LDFLAGS="%{rpmldflags}" \ | |
27199da8 JB |
80 | CONFIG_SHELL="/bin/bash" \ |
81 | ./configure \ | |
950dee07 | 82 | --disable-nls \ |
3ca2e5a8 | 83 | --disable-shared \ |
ee5a09f8 | 84 | --disable-silent-rules \ |
27199da8 JB |
85 | --prefix=%{_prefix} \ |
86 | --libdir=%{_libdir} \ | |
87 | --mandir=%{_mandir} \ | |
88 | --infodir=%{_infodir} \ | |
e662051a AF |
89 | --host=%{_target_platform} \ |
90 | --build=%{_target_platform} \ | |
27199da8 JB |
91 | --target=%{target} |
92 | ||
d5223c76 | 93 | %{__make} all \ |
94 | tooldir=%{_prefix} | |
27199da8 JB |
95 | |
96 | %install | |
27199da8 | 97 | rm -rf $RPM_BUILD_ROOT |
27199da8 JB |
98 | |
99 | %{__make} install \ | |
115e75b8 | 100 | INSTALL='$$s/install-sh -c' \ |
27199da8 JB |
101 | prefix=$RPM_BUILD_ROOT%{_prefix} \ |
102 | mandir=$RPM_BUILD_ROOT%{_mandir} \ | |
273616bd | 103 | infodir=$RPM_BUILD_ROOT%{_infodir} \ |
104 | libdir=$RPM_BUILD_ROOT%{_libdir} | |
27199da8 | 105 | |
b060dee2 JB |
106 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/bfd-plugins/*.a |
107 | ||
235f1ea4 JB |
108 | # not prefixed, keep infos only from native packages |
109 | %{__rm} -r $RPM_BUILD_ROOT%{_infodir} | |
110 | ||
6b67d375 | 111 | # "filesystem" for crossmingw32-* packages (move to crossmingw32-dirs?) |
b9d2a816 | 112 | install -d $RPM_BUILD_ROOT%{arch}/lib/pkgconfig |
6b67d375 | 113 | |
dc1e8c40 JB |
114 | %clean |
115 | rm -rf $RPM_BUILD_ROOT | |
116 | ||
27199da8 JB |
117 | %files |
118 | %defattr(644,root,root,755) | |
b7a83bb2 | 119 | %doc README |
09545d41 | 120 | # mingw32 directory tree |
e662051a AF |
121 | %dir %{arch} |
122 | %dir %{arch}/lib | |
6b67d375 | 123 | %dir %{arch}/lib/pkgconfig |
e662051a | 124 | %dir %{arch}/bin |
09545d41 JB |
125 | # binutils files |
126 | %attr(755,root,root) %{arch}/bin/ar | |
127 | %attr(755,root,root) %{arch}/bin/as | |
128 | %attr(755,root,root) %{arch}/bin/dlltool | |
129 | %attr(755,root,root) %{arch}/bin/ld | |
d0446d94 | 130 | %attr(755,root,root) %{arch}/bin/ld.bfd |
09545d41 JB |
131 | %attr(755,root,root) %{arch}/bin/nm |
132 | %attr(755,root,root) %{arch}/bin/objcopy | |
133 | %attr(755,root,root) %{arch}/bin/objdump | |
134 | %attr(755,root,root) %{arch}/bin/ranlib | |
a1e77e46 | 135 | %attr(755,root,root) %{arch}/bin/readelf |
09545d41 | 136 | %attr(755,root,root) %{arch}/bin/strip |
e662051a | 137 | %{arch}/lib/ldscripts |
09545d41 JB |
138 | %attr(755,root,root) %{_bindir}/%{target}-addr2line |
139 | %attr(755,root,root) %{_bindir}/%{target}-ar | |
140 | %attr(755,root,root) %{_bindir}/%{target}-as | |
141 | %attr(755,root,root) %{_bindir}/%{target}-c++filt | |
142 | %attr(755,root,root) %{_bindir}/%{target}-dlltool | |
143 | %attr(755,root,root) %{_bindir}/%{target}-dllwrap | |
144 | %attr(755,root,root) %{_bindir}/%{target}-elfedit | |
145 | %attr(755,root,root) %{_bindir}/%{target}-gprof | |
146 | %attr(755,root,root) %{_bindir}/%{target}-ld | |
d0446d94 | 147 | %attr(755,root,root) %{_bindir}/%{target}-ld.bfd |
09545d41 JB |
148 | %attr(755,root,root) %{_bindir}/%{target}-nm |
149 | %attr(755,root,root) %{_bindir}/%{target}-objcopy | |
150 | %attr(755,root,root) %{_bindir}/%{target}-objdump | |
151 | %attr(755,root,root) %{_bindir}/%{target}-ranlib | |
152 | %attr(755,root,root) %{_bindir}/%{target}-readelf | |
153 | %attr(755,root,root) %{_bindir}/%{target}-size | |
154 | %attr(755,root,root) %{_bindir}/%{target}-strings | |
155 | %attr(755,root,root) %{_bindir}/%{target}-strip | |
156 | %attr(755,root,root) %{_bindir}/%{target}-windmc | |
157 | %attr(755,root,root) %{_bindir}/%{target}-windres | |
158 | %{_mandir}/man1/%{target}-addr2line.1* | |
159 | %{_mandir}/man1/%{target}-ar.1* | |
160 | %{_mandir}/man1/%{target}-as.1* | |
161 | %{_mandir}/man1/%{target}-c++filt.1* | |
162 | %{_mandir}/man1/%{target}-dlltool.1* | |
163 | %{_mandir}/man1/%{target}-elfedit.1* | |
164 | %{_mandir}/man1/%{target}-gprof.1* | |
165 | %{_mandir}/man1/%{target}-ld.1* | |
166 | %{_mandir}/man1/%{target}-nm.1* | |
167 | %{_mandir}/man1/%{target}-objcopy.1* | |
168 | %{_mandir}/man1/%{target}-objdump.1* | |
169 | %{_mandir}/man1/%{target}-ranlib.1* | |
170 | %{_mandir}/man1/%{target}-readelf.1* | |
171 | %{_mandir}/man1/%{target}-size.1* | |
172 | %{_mandir}/man1/%{target}-strings.1* | |
173 | %{_mandir}/man1/%{target}-strip.1* | |
174 | %{_mandir}/man1/%{target}-windmc.1* | |
175 | %{_mandir}/man1/%{target}-windres.1* |