]> git.pld-linux.org Git - packages/crossmingw32-binutils.git/blob - crossmingw32-binutils.spec
- BuildRequires: perl-devel for man pages
[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:        2
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:  perl-devel
17 BuildRequires:  bash
18 Requires:       crossmingw32-platform
19 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20
21 %define         target          i386-mingw32
22 %define         arch            %{_prefix}/%{target}
23
24 %description
25 crossmingw32 is a complete cross-compiling development system for
26 building stand-alone Microsoft Windows applications under Linux using
27 the Mingw32 build libraries. This includes a binutils, gcc with g++
28 and objc, and libstdc++, all cross targeted to i386-mingw32, along
29 with supporting Win32 libraries in 'coff' format from free sources.
30
31 This package contains cross targeted binutils.
32
33 %description -l pl
34 crossmingw32 jest kompletnym systemem do kroskompilacji, pozwalaj±cym
35 budowaæ aplikacje MS Windows pod Linuksem u¿ywaj±c bibliotek mingw32.
36 System sk³ada siê z binutils, gcc z g++ i objc, libstdc++ - wszystkie
37 generuj±ce kod dla platformy i386-mingw32, oraz z bibliotek w formacie
38 COFF.
39
40 Ten pakiet zawiera binutils generuj±ce binaria Win32.
41
42 %prep
43 %setup -q -n binutils-%{version}
44 %patch -p1
45
46 %build
47 rm -rf $RPM_BUILD_ROOT
48
49 # Because of a bug in binutils-2.9.1, a cross libbfd.so* is not named
50 # lib<target>bfd.so*. To prevent confusion with native binutils, we
51 # forget about shared libraries right now, and do not install libbfd.a
52 # [the same applies to binutils 2.10.1.0.4]
53
54 # ldscripts won't be generated properly if SHELL is not bash...
55 CFLAGS="%{rpmcflags}" LDFLAGS="%{rpmldflags}" \
56 CONFIG_SHELL="/bin/bash" \
57 ./configure \
58         --prefix=%{_prefix} \
59         --libdir=%{_libdir} \
60         --mandir=%{_mandir} \
61         --infodir=%{_infodir} \
62         --target=%{target}
63
64 %{__make} tooldir=%{_prefix} EXEEXT="" all
65
66 %install
67 rm -rf $RPM_BUILD_ROOT
68
69 %{__make} install \
70         prefix=$RPM_BUILD_ROOT%{_prefix} \
71         mandir=$RPM_BUILD_ROOT%{_mandir} \
72         infodir=$RPM_BUILD_ROOT%{_infodir} \
73         libdir=$RPM_BUILD_ROOT%{_libdir}
74
75 # remove this man page unless we cross-build for netware platform.
76 # however, this should be done in Makefiles.
77 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/*nlmconv.1
78
79 %files
80 %defattr(644,root,root,755)
81 %attr(755,root,root) %{arch}/bin/*
82 %{arch}/lib/*
83 %attr(755,root,root) %{_bindir}/%{target}-*
84 %{_mandir}/man1/%{target}-*
85
86 %clean
87 rm -rf $RPM_BUILD_ROOT
This page took 0.038756 seconds and 3 git commands to generate.