]> git.pld-linux.org Git - packages/crossmingw64-binutils.git/blob - crossmingw64-binutils.spec
- fix 32-bit build, release 2.
[packages/crossmingw64-binutils.git] / crossmingw64-binutils.spec
1 Summary:        Cross Mingw64 GNU binary utility development utilities - binutils
2 Summary(es.UTF-8):      Utilitarios para desarrollo de binarios de la GNU - Mingw64 binutils
3 Summary(fr.UTF-8):      Utilitaires de développement binaire de GNU - Mingw64 binutils
4 Summary(pl.UTF-8):      Skrośne narzędzia programistyczne GNU dla Mingw64 - binutils
5 Summary(pt_BR.UTF-8):   Utilitários para desenvolvimento de binários da GNU - Mingw64 binutils
6 Summary(tr.UTF-8):      GNU geliştirme araçları - Mingw64 binutils
7 Name:           crossmingw64-binutils
8 Version:        2.20.51.0.11
9 Release:        2
10 License:        GPL v3+
11 Group:          Development/Tools
12 Source0:        ftp://ftp.kernel.org/pub/linux/devel/binutils/binutils-%{version}.tar.bz2
13 # Source0-md5:  d2306466e669700abbb3d1a64b10d5d2
14 Patch0:         %{name}-zlib.patch
15 URL:            http://sources.redhat.com/binutils/
16 BuildRequires:  automake
17 BuildRequires:  bash
18 BuildRequires:  bison
19 BuildRequires:  flex
20 BuildRequires:  gettext-devel
21 BuildRequires:  zlib-devel
22 # not necessary unless we patch .texi docs; but they are not packaged here anyway
23 #BuildRequires: texinfo >= 4.2
24 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25
26 %define         target          x86_64-mingw32
27 %define         arch            %{_prefix}/%{target}
28
29 %description
30 crossmingw64 is a complete cross-compiling development system for
31 building stand-alone Microsoft Windows applications under Linux using
32 the Mingw64 build libraries. This includes a binutils, gcc with g++
33 and objc, and libstdc++, all cross targeted to x86_64-mingw32, along
34 with supporting Win64 libraries in 'coff' format from free sources.
35
36 This package contains cross targeted binutils.
37
38 %description -l pl.UTF-8
39 crossmingw64 jest kompletnym systemem do kroskompilacji, pozwalającym
40 budować aplikacje MS Windows pod Linuksem używając bibliotek mingw64.
41 System składa się z binutils, gcc z g++ i objc, libstdc++ - wszystkie
42 generujące kod dla platformy x86_64-mingw32, oraz z bibliotek w formacie
43 COFF.
44
45 Ten pakiet zawiera binutils generujące skrośnie binaria dla Win64.
46
47 %prep
48 %setup -q -n binutils-%{version}
49 %patch0 -p1
50
51 %build
52 # ldscripts won't be generated properly if SHELL is not bash...
53 CFLAGS="%{rpmcflags}" \
54 LDFLAGS="%{rpmldflags}" \
55 CONFIG_SHELL="/bin/bash" \
56 ./configure \
57         --disable-shared \
58         --disable-nls \
59         --prefix=%{_prefix} \
60         --libdir=%{_libdir} \
61         --mandir=%{_mandir} \
62         --infodir=%{_infodir} \
63         --with-sysroot=%{arch} \
64         --host=%{_target_platform} \
65         --build=%{_target_platform} \
66         --target=%{target}
67
68 %{__make} all \
69         tooldir=%{_prefix}
70
71 %install
72 rm -rf $RPM_BUILD_ROOT
73
74 %{__make} install \
75         INSTALL='$$s/install-sh -c' \
76         prefix=$RPM_BUILD_ROOT%{_prefix} \
77         mandir=$RPM_BUILD_ROOT%{_mandir} \
78         infodir=$RPM_BUILD_ROOT%{_infodir} \
79         libdir=$RPM_BUILD_ROOT%{_libdir}
80
81 # remove this man page unless we cross-build for netware platform.
82 # however, this should be done in Makefiles.
83 rm $RPM_BUILD_ROOT%{_mandir}/man1/*nlmconv.1
84
85 # libiberty.a is ELF not PE
86 rm $RPM_BUILD_ROOT%{_libdir}/libiberty.a
87
88 %clean
89 rm -rf $RPM_BUILD_ROOT
90
91 %files
92 %defattr(644,root,root,755)
93 %doc README
94 %dir %{arch}
95 %dir %{arch}/lib
96 %dir %{arch}/bin
97 %attr(755,root,root) %{arch}/bin/*
98 %{arch}/lib/ldscripts
99 %attr(755,root,root) %{_bindir}/%{target}-*
100 %{_mandir}/man1/%{target}-*
This page took 0.048568 seconds and 4 git commands to generate.