]> git.pld-linux.org Git - packages/crossmingw32-binutils.git/blob - crossmingw32-binutils.spec
- 2.10.1.0.7
[packages/crossmingw32-binutils.git] / crossmingw32-binutils.spec
1 Summary:        Mingw32 GNU Binary Utility Development Utilities - binutils
2 Name:           crossmingw32-binutils
3 Version:        2.10.1.0.7
4 Release:        1
5 License:        GPL
6 Group:          Development/Tools
7 Group(de):      Entwicklung/Werkzeuge
8 Group(fr):      Development/Outils
9 Group(pl):      Programowanie/Narzêdzia
10 ExclusiveArch:  %{ix86}
11 Source0:        ftp://ftp.gnu.org/pub/gnu/binutils-%{version}.tar.gz
12 Patch0:         binutils-info.patch
13 BuildRequires:  flex
14 BuildRequires:  bison
15 BuildRequires:  /bin/bash
16 Requires:       crossmingw32-platform
17 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18
19 %define target i386-mingw32
20 %define arch %{_prefix}/%{target}
21
22 %description
23 crossmingw32 is a complete cross-compiling development system for
24 building stand-alone Microsoft Windows applications under Linux using
25 the Mingw32 build libraries. This includes a binutils, gcc with g++
26 and objc, and libstdc++, all cross targeted to i386-mingw32, along
27 with supporting Win32 libraries in 'coff' format from free sources.
28
29 This package contains cross targeted binutils.
30
31 %prep
32 %setup -q -n binutils-%{version}
33 %patch -p1
34
35 %build
36 rm -rf $RPM_BUILD_ROOT
37
38 # Because of a bug in binutils-2.9.1, a cross libbfd.so* is not named
39 # lib<target>bfd.so*. To prevent confusion with native binutils, we
40 # forget about shared libraries right now, and do not install libbfd.a
41 # [the same applies to binutils 2.10.1.0.4]
42
43 # ldscripts won't be generated properly if SHELL is not bash...
44 %{?debug:CFLAGS="-g -O0" LDFLAGS=""}%{!?debug:CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="-s"} \
45 CONFIG_SHELL="/bin/bash" \
46 ./configure \
47         --prefix=%{_prefix} \
48         --libdir=%{_libdir} \
49         --mandir=%{_mandir} \
50         --infodir=%{_infodir} \
51         --target=%{target}
52
53 %{__make} tooldir=%{_prefix} EXEEXT="" all
54
55 %install
56 rm -rf $RPM_BUILD_ROOT
57
58 %{__make} install \
59         prefix=$RPM_BUILD_ROOT%{_prefix} \
60         mandir=$RPM_BUILD_ROOT%{_mandir} \
61         infodir=$RPM_BUILD_ROOT%{_infodir} \
62         libdir=$RPM_BUILD_ROOT%{_libdir}
63
64 %files
65 %defattr(644,root,root,755)
66 %attr(755,root,root) %{arch}/bin/*
67 %{arch}/lib/*
68 %attr(755,root,root) %{_bindir}/%{target}-*
69 %{_mandir}/man1/%{target}-*
70
71 %clean
72 rm -rf $RPM_BUILD_ROOT
This page took 0.08103 seconds and 4 git commands to generate.