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