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