]> git.pld-linux.org Git - packages/crossmingw32-binutils.git/blob - crossmingw32-binutils.spec
4d9611b865988d198c09b6df290f7551a97aa3d3
[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.6
9 Release:        1
10 License:        GPL
11 Group:          Development/Tools
12 Source0:        ftp://ftp.kernel.org/pub/linux/devel/binutils/binutils-%{version}.tar.bz2
13 # Source0-md5:  71b99dba3045a359dc314dbebedcf502
14 BuildRequires:  bash
15 BuildRequires:  bison
16 BuildRequires:  flex
17 BuildRequires:  perl-devel
18 BuildRequires:  texinfo >= 4.2
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 skro¶nie binaria dla Win32.
41
42 %prep
43 %setup -q -n binutils-%{version}
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         --host=%{_target_platform} \
62         --build=%{_target_platform} \
63         --target=%{target}
64
65 %{__make} tooldir=%{_prefix} all
66
67 %install
68 rm -rf $RPM_BUILD_ROOT
69
70 %{__make} install \
71         INSTALL='$$s/install-sh -c' \
72         prefix=$RPM_BUILD_ROOT%{_prefix} \
73         mandir=$RPM_BUILD_ROOT%{_mandir} \
74         infodir=$RPM_BUILD_ROOT%{_infodir} \
75         libdir=$RPM_BUILD_ROOT%{_libdir}
76
77 # remove this man page unless we cross-build for netware platform.
78 # however, this should be done in Makefiles.
79 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/*nlmconv.1
80
81 # libiberty.a is ELF not PE
82 rm -f $RPM_BUILD_ROOT%{arch}/lib/libiberty.a
83
84 %files
85 %defattr(644,root,root,755)
86 %dir %{arch}
87 %dir %{arch}/lib
88 %dir %{arch}/bin
89 %attr(755,root,root) %{arch}/bin/*
90 %{arch}/lib/ldscripts
91 %attr(755,root,root) %{_bindir}/%{target}-*
92 %{_mandir}/man1/%{target}-*
93
94 %clean
95 rm -rf $RPM_BUILD_ROOT
This page took 0.04001 seconds and 3 git commands to generate.