]> git.pld-linux.org Git - packages/crossmingw32-binutils.git/blob - crossmingw32-binutils.spec
- added pe-types patch (fixes ld SEGV on mingw-runtime @alpha); release 2
[packages/crossmingw32-binutils.git] / crossmingw32-binutils.spec
1 Summary:        Cross Mingw32 GNU binary utility development utilities - binutils
2 Summary(es):    Utilitarios para desarrollo de binarios de la GNU - Mingw32 binutils
3 Summary(fr):    Utilitaires de développement binaire de GNU - Mingw32 binutils
4 Summary(pl):    Skro¶ne narzêdzia programistyczne GNU dla Mingw32 - binutils
5 Summary(pt_BR): Utilitários para desenvolvimento de binários da GNU - Mingw32 binutils
6 Summary(tr):    GNU geliþtirme araçlarý - Mingw32 binutils
7 Name:           crossmingw32-binutils
8 Version:        2.14.90.0.8
9 Release:        2
10 License:        GPL
11 Group:          Development/Tools
12 Source0:        ftp://ftp.kernel.org/pub/linux/devel/binutils/binutils-%{version}.tar.bz2
13 # Source0-md5:  3e28792a585e14b57838cd24130a24dd
14 Patch0:         binutils-pe-types.patch
15 URL:            http://sources.redhat.com/binutils/
16 BuildRequires:  automake
17 BuildRequires:  bash
18 BuildRequires:  bison
19 BuildRequires:  flex
20 BuildRequires:  perl-devel
21 BuildRequires:  texinfo >= 4.2
22 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23
24 %define         target          i386-mingw32
25 %define         arch            %{_prefix}/%{target}
26
27 %description
28 crossmingw32 is a complete cross-compiling development system for
29 building stand-alone Microsoft Windows applications under Linux using
30 the Mingw32 build libraries. This includes a binutils, gcc with g++
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
36 %description -l pl
37 crossmingw32 jest kompletnym systemem do kroskompilacji, pozwalaj±cym
38 budowaæ aplikacje MS Windows pod Linuksem u¿ywaj±c bibliotek mingw32.
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
41 COFF.
42
43 Ten pakiet zawiera binutils generuj±ce skro¶nie binaria dla Win32.
44
45 %prep
46 %setup -q -n binutils-%{version}
47 %patch0 -p1
48
49 %build
50 rm -rf $RPM_BUILD_ROOT
51 cp /usr/share/automake/config.sub .
52
53 # Because of a bug in binutils-2.9.1, a cross libbfd.so* is not named
54 # lib<target>bfd.so*. To prevent confusion with native binutils, we
55 # forget about shared libraries right now, and do not install libbfd.a
56 # [the same applies to binutils 2.10.1.0.4]
57
58 # ldscripts won't be generated properly if SHELL is not bash...
59 CFLAGS="%{rpmcflags}" LDFLAGS="%{rpmldflags}" \
60 CONFIG_SHELL="/bin/bash" \
61 ./configure \
62         --prefix=%{_prefix} \
63         --libdir=%{_libdir} \
64         --mandir=%{_mandir} \
65         --infodir=%{_infodir} \
66         --host=%{_target_platform} \
67         --build=%{_target_platform} \
68         --target=%{target}
69
70 %{__make} tooldir=%{_prefix} all
71
72 %install
73 rm -rf $RPM_BUILD_ROOT
74
75 %{__make} install \
76         INSTALL='$$s/install-sh -c' \
77         prefix=$RPM_BUILD_ROOT%{_prefix} \
78         mandir=$RPM_BUILD_ROOT%{_mandir} \
79         infodir=$RPM_BUILD_ROOT%{_infodir} \
80         libdir=$RPM_BUILD_ROOT%{_libdir}
81
82 # remove this man page unless we cross-build for netware platform.
83 # however, this should be done in Makefiles.
84 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/*nlmconv.1
85
86 # libiberty.a is ELF not PE
87 rm -f $RPM_BUILD_ROOT%{arch}/lib/libiberty.a
88
89 %clean
90 rm -rf $RPM_BUILD_ROOT
91
92 %files
93 %defattr(644,root,root,755)
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.071642 seconds and 4 git commands to generate.