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