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