]> git.pld-linux.org Git - packages/crossmingw64-binutils.git/blame - crossmingw64-binutils.spec
- updated to 2.18.50.0.5.
[packages/crossmingw64-binutils.git] / crossmingw64-binutils.spec
CommitLineData
4be5a36a 1Summary: Cross Mingw64 GNU binary utility development utilities - binutils
fde3b73b
ER
2Summary(es.UTF-8): Utilitarios para desarrollo de binarios de la GNU - Mingw64 binutils
3Summary(fr.UTF-8): Utilitaires de développement binaire de GNU - Mingw64 binutils
4Summary(pl.UTF-8): Skrośne narzędzia programistyczne GNU dla Mingw64 - binutils
5Summary(pt_BR.UTF-8): Utilitários para desenvolvimento de binários da GNU - Mingw64 binutils
6Summary(tr.UTF-8): GNU geliştirme araçları - Mingw64 binutils
4be5a36a 7Name: crossmingw64-binutils
a2da2afb 8Version: 2.18.50.0.5
4be5a36a
PS
9Release: 1
10License: GPL
11Group: Development/Tools
12Source0: ftp://ftp.kernel.org/pub/linux/devel/binutils/binutils-%{version}.tar.bz2
a2da2afb 13# Source0-md5: daee18dbbf0a6ccfc186141bee18bf62
4be5a36a
PS
14URL: http://sources.redhat.com/binutils/
15BuildRequires: automake
16BuildRequires: bash
17BuildRequires: bison
18BuildRequires: flex
19BuildRequires: gettext-devel
20# not necessary unless we patch .texi docs; but they are not packaged here anyway
21#BuildRequires: texinfo >= 4.2
22BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23
18a86bd4 24%define target x86_64-mingw32
4be5a36a
PS
25%define arch %{_prefix}/%{target}
26
27%description
28crossmingw64 is a complete cross-compiling development system for
29building stand-alone Microsoft Windows applications under Linux using
30the Mingw64 build libraries. This includes a binutils, gcc with g++
31and objc, and libstdc++, all cross targeted to x86_64-mingw64, along
aa145bb6 32with supporting Win64 libraries in 'coff' format from free sources.
4be5a36a
PS
33
34This package contains cross targeted binutils.
35
199293ba
JR
36%description -l pl.UTF-8
37crossmingw64 jest kompletnym systemem do kroskompilacji, pozwalającym
38budować aplikacje MS Windows pod Linuksem używając bibliotek mingw64.
39System składa się z binutils, gcc z g++ i objc, libstdc++ - wszystkie
40generujące kod dla platformy x86_64-mingw64, oraz z bibliotek w formacie
4be5a36a
PS
41COFF.
42
199293ba 43Ten pakiet zawiera binutils generujące skrośnie binaria dla Win64.
4be5a36a
PS
44
45%prep
46%setup -q -n binutils-%{version}
4be5a36a
PS
47
48%build
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...
55CFLAGS="%{rpmcflags}" \
56LDFLAGS="%{rpmldflags}" \
57CONFIG_SHELL="/bin/bash" \
58./configure \
59 --disable-shared \
60 --disable-nls \
61 --prefix=%{_prefix} \
62 --libdir=%{_libdir} \
63 --mandir=%{_mandir} \
64 --infodir=%{_infodir} \
65 --host=%{_target_platform} \
66 --build=%{_target_platform} \
67 --target=%{target}
68
69%{__make} all \
70 tooldir=%{_prefix}
71
72%install
73rm -rf $RPM_BUILD_ROOT
74
75%{__make} install \
76 INSTALL='$$s/install-sh -c' \
77 prefix=$RPM_BUILD_ROOT%{_prefix} \
78 mandir=$RPM_BUILD_ROOT%{_mandir} \
79 infodir=$RPM_BUILD_ROOT%{_infodir} \
80 libdir=$RPM_BUILD_ROOT%{_libdir}
81
82# remove this man page unless we cross-build for netware platform.
83# however, this should be done in Makefiles.
84rm -f $RPM_BUILD_ROOT%{_mandir}/man1/*nlmconv.1
85
86# libiberty.a is ELF not PE
87rm -f $RPM_BUILD_ROOT%{arch}/lib/libiberty.a
88
89%clean
90rm -rf $RPM_BUILD_ROOT
91
92%files
93%defattr(644,root,root,755)
94%doc README
95%dir %{arch}
96%dir %{arch}/lib
97%dir %{arch}/bin
98%attr(755,root,root) %{arch}/bin/*
99%{arch}/lib/ldscripts
100%attr(755,root,root) %{_bindir}/%{target}-*
101%{_mandir}/man1/%{target}-*
This page took 0.115959 seconds and 4 git commands to generate.