]> git.pld-linux.org Git - packages/crossmingw32-binutils.git/blob - crossmingw32-binutils.spec
76ff9ff08cd65c102ca8f144ae2199b43cc38218
[packages/crossmingw32-binutils.git] / crossmingw32-binutils.spec
1 Summary:        Mingw32 Binary Utility Development Utilities - GNU binutils
2 Summary(pl):    Zestaw narzêdzi mingw32 - GNU binutils
3 Name:           crossmingw32-binutils
4 Version:        2.11.90.0.19
5 Release:        1
6 License:        GPL
7 Group:          Development/Tools
8 Group(de):      Entwicklung/Werkzeuge
9 Group(fr):      Development/Outils
10 Group(pl):      Programowanie/Narzêdzia
11 ExclusiveArch:  %{ix86}
12 Source0:        ftp://ftp.kernel.org/pub/linux/devel/binutils/binutils-%{version}.tar.bz2
13 Patch0:         binutils-info.patch
14 BuildRequires:  flex
15 BuildRequires:  bison
16 BuildRequires:  bash
17 Requires:       crossmingw32-platform
18 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19
20 %define         target          i386-mingw32
21 %define         arch            %{_prefix}/%{target}
22
23 %description
24 crossmingw32 is a complete cross-compiling development system for
25 building stand-alone Microsoft Windows applications under Linux using
26 the Mingw32 build libraries. This includes a binutils, gcc with g++
27 and objc, and libstdc++, all cross targeted to i386-mingw32, along
28 with supporting Win32 libraries in 'coff' format from free sources.
29
30 This package contains cross targeted binutils.
31
32 %description -l pl
33 crossmingw32 jest kompletnym systemem do kroskompilacji, pozwalaj±cym
34 budowaæ aplikacje MS Windows pod Linuksem u¿ywaj±c bibliotek mingw32.
35 System sk³ada siê z binutils, gcc z g++ i objc, libstdc++ - wszystkie
36 generuj±ce kod dla platformy i386-mingw32, oraz z bibliotek w formacie
37 COFF.
38
39 Ten pakiet zawiera binutils generuj±ce binaria Win32.
40
41 %prep
42 %setup -q -n binutils-%{version}
43 %patch -p1
44
45 %build
46 rm -rf $RPM_BUILD_ROOT
47
48 # Because of a bug in binutils-2.9.1, a cross libbfd.so* is not named
49 # lib<target>bfd.so*. To prevent confusion with native binutils, we
50 # forget about shared libraries right now, and do not install libbfd.a
51 # [the same applies to binutils 2.10.1.0.4]
52
53 # ldscripts won't be generated properly if SHELL is not bash...
54 CFLAGS="%{rpmcflags}" LDFLAGS="%{rpmldflags}" \
55 CONFIG_SHELL="/bin/bash" \
56 ./configure \
57         --prefix=%{_prefix} \
58         --libdir=%{_libdir} \
59         --mandir=%{_mandir} \
60         --infodir=%{_infodir} \
61         --target=%{target}
62
63 %{__make} tooldir=%{_prefix} EXEEXT="" all
64
65 %install
66 rm -rf $RPM_BUILD_ROOT
67
68 %{__make} install \
69         prefix=$RPM_BUILD_ROOT%{_prefix} \
70         mandir=$RPM_BUILD_ROOT%{_mandir} \
71         infodir=$RPM_BUILD_ROOT%{_infodir} \
72         libdir=$RPM_BUILD_ROOT%{_libdir}
73
74 %files
75 %defattr(644,root,root,755)
76 %attr(755,root,root) %{arch}/bin/*
77 %{arch}/lib/*
78 %attr(755,root,root) %{_bindir}/%{target}-*
79 %{_mandir}/man1/%{target}-*
80
81 %clean
82 rm -rf $RPM_BUILD_ROOT
This page took 0.091617 seconds and 2 git commands to generate.