]> git.pld-linux.org Git - packages/crossmingw32-binutils.git/blob - crossmingw32-binutils.spec
- added dll patch (fix new bug which caused cross dllwrap to call native gcc)
[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.15.91.0.2
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:  41983069bef07af4f1350c6d30666b2d
14 Patch0:         binutils-dll.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 # not necessary unless we patch .texi docs; but they are not packaged here anyway
22 #BuildRequires: texinfo >= 4.2
23 %ifarch sparc sparc32
24 BuildRequires:  sparc32
25 %endif
26 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27
28 %define         target          i386-mingw32
29 %define         arch            %{_prefix}/%{target}
30
31 %description
32 crossmingw32 is a complete cross-compiling development system for
33 building stand-alone Microsoft Windows applications under Linux using
34 the Mingw32 build libraries. This includes a binutils, gcc with g++
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
40 %description -l pl
41 crossmingw32 jest kompletnym systemem do kroskompilacji, pozwalaj±cym
42 budowaæ aplikacje MS Windows pod Linuksem u¿ywaj±c bibliotek mingw32.
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
45 COFF.
46
47 Ten pakiet zawiera binutils generuj±ce skro¶nie binaria dla Win32.
48
49 %prep
50 %setup -q -n binutils-%{version}
51 %patch0 -p1
52
53 %build
54 cp /usr/share/automake/config.sub .
55
56 # Because of a bug in binutils-2.9.1, a cross libbfd.so* is not named
57 # lib<target>bfd.so*. To prevent confusion with native binutils, we
58 # forget about shared libraries right now, and do not install libbfd.a
59 # [the same applies to binutils 2.10.1.0.4]
60
61 # ldscripts won't be generated properly if SHELL is not bash...
62 CFLAGS="%{rpmcflags}" \
63 LDFLAGS="%{rpmldflags}" \
64 CONFIG_SHELL="/bin/bash" \
65 %ifarch sparc
66 sparc32 \
67 %endif
68 ./configure \
69         --prefix=%{_prefix} \
70         --libdir=%{_libdir} \
71         --mandir=%{_mandir} \
72         --infodir=%{_infodir} \
73         --host=%{_target_platform} \
74         --build=%{_target_platform} \
75         --target=%{target}
76
77 %{__make} all \
78         tooldir=%{_prefix}
79
80 %install
81 rm -rf $RPM_BUILD_ROOT
82
83 %{__make} install \
84         INSTALL='$$s/install-sh -c' \
85         prefix=$RPM_BUILD_ROOT%{_prefix} \
86         mandir=$RPM_BUILD_ROOT%{_mandir} \
87         infodir=$RPM_BUILD_ROOT%{_infodir} \
88         libdir=$RPM_BUILD_ROOT%{_libdir}
89
90 # remove this man page unless we cross-build for netware platform.
91 # however, this should be done in Makefiles.
92 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/*nlmconv.1
93
94 # libiberty.a is ELF not PE
95 rm -f $RPM_BUILD_ROOT%{arch}/lib/libiberty.a
96
97 %clean
98 rm -rf $RPM_BUILD_ROOT
99
100 %files
101 %defattr(644,root,root,755)
102 %doc README
103 %dir %{arch}
104 %dir %{arch}/lib
105 %dir %{arch}/bin
106 %attr(755,root,root) %{arch}/bin/*
107 %{arch}/lib/ldscripts
108 %attr(755,root,root) %{_bindir}/%{target}-*
109 %{_mandir}/man1/%{target}-*
This page took 0.050975 seconds and 3 git commands to generate.