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