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