]> git.pld-linux.org Git - packages/crossmingw64-binutils.git/blame - crossmingw64-binutils.spec
- updated to 2.27
[packages/crossmingw64-binutils.git] / crossmingw64-binutils.spec
CommitLineData
a5f47242
JB
1Summary: Cross MinGW64 GNU binary utility development utilities - binutils
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
fde3b73b 6Summary(tr.UTF-8): GNU geliştirme araçları - Mingw64 binutils
4be5a36a 7Name: crossmingw64-binutils
f8e0e531 8Version: 2.27
d4012efb 9Release: 1
acdaca36 10License: GPL v3+
4be5a36a 11Group: Development/Tools
a5f47242 12Source0: http://ftp.gnu.org/gnu/binutils/binutils-%{version}.tar.bz2
f8e0e531 13# Source0-md5: 2869c9bf3e60ee97c74ac2a6bf4e9d68
a5f47242
JB
14Patch0: binutils-libdir.patch
15Patch1: binutils-am.patch
4be5a36a 16URL: http://sources.redhat.com/binutils/
a5f47242
JB
17BuildRequires: autoconf >= 2.64
18BuildRequires: automake >= 1:1.11
4be5a36a
PS
19BuildRequires: bash
20BuildRequires: bison
21BuildRequires: flex
1208bb3c 22BuildRequires: gettext-tools
a5f47242 23BuildRequires: perl-tools-pod
4be5a36a
PS
24# not necessary unless we patch .texi docs; but they are not packaged here anyway
25#BuildRequires: texinfo >= 4.2
26BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27
a5f47242 28%define target x86_64-w64-mingw64
4be5a36a
PS
29%define arch %{_prefix}/%{target}
30
31%description
32crossmingw64 is a complete cross-compiling development system for
33building stand-alone Microsoft Windows applications under Linux using
a5f47242
JB
34the MinGW64 build libraries. This includes a binutils, gcc with g++
35and objc, and libstdc++, all cross targeted to x86_64-w64-mingw32,
36along with supporting Win64 libraries in 'coff' format from free
37sources.
4be5a36a
PS
38
39This package contains cross targeted binutils.
40
199293ba
JR
41%description -l pl.UTF-8
42crossmingw64 jest kompletnym systemem do kroskompilacji, pozwalającym
43budować aplikacje MS Windows pod Linuksem używając bibliotek mingw64.
44System składa się z binutils, gcc z g++ i objc, libstdc++ - wszystkie
a5f47242
JB
45generujące kod dla platformy x86_64-w64-mingw32, oraz z bibliotek w
46formacie COFF.
4be5a36a 47
199293ba 48Ten pakiet zawiera binutils generujące skrośnie binaria dla Win64.
4be5a36a
PS
49
50%prep
51%setup -q -n binutils-%{version}
a5f47242
JB
52%patch0 -p1
53%patch1 -p1
54
55# file contains hacks for ac 2.64 only
56%{__rm} config/override.m4
57%{__sed} -i '/^m4_include(config\/override\.m4/d' configure.ac
4be5a36a
PS
58
59%build
a5f47242
JB
60cp -f /usr/share/automake/config.* .
61%{__aclocal}
62%{__autoconf}
63
64# non-standard regeneration (needed because of libdir patch)
65# AM_BINUTILS_WARNINGS in bfd/warning.m4, ZW_GNU_GETTEXT_SISTER_DIR in config/gettext-sister.m4
66for dir in gas bfd; do
67 cd $dir || exit 1
68 %{__aclocal} -I .. -I ../config -I ../bfd
69 %{__automake} Makefile
70 %{__automake} doc/Makefile
71 %{__autoconf}
72 cd ..
73done
74
75# We don't install libbfd (nor use shared binutils libraries) to avoid
76# conflict with native binutils.
77
4be5a36a
PS
78# ldscripts won't be generated properly if SHELL is not bash...
79CFLAGS="%{rpmcflags}" \
80LDFLAGS="%{rpmldflags}" \
81CONFIG_SHELL="/bin/bash" \
82./configure \
4be5a36a 83 --disable-nls \
a5f47242 84 --disable-shared \
4be5a36a
PS
85 --prefix=%{_prefix} \
86 --libdir=%{_libdir} \
87 --mandir=%{_mandir} \
88 --infodir=%{_infodir} \
89 --host=%{_target_platform} \
90 --build=%{_target_platform} \
91 --target=%{target}
92
a5f47242
JB
93%{__make} all \
94 tooldir=%{_prefix}
4be5a36a
PS
95
96%install
97rm -rf $RPM_BUILD_ROOT
98
99%{__make} install \
a5f47242
JB
100 INSTALL='$$s/install-sh -c' \
101 prefix=$RPM_BUILD_ROOT%{_prefix} \
102 mandir=$RPM_BUILD_ROOT%{_mandir} \
103 infodir=$RPM_BUILD_ROOT%{_infodir} \
104 libdir=$RPM_BUILD_ROOT%{_libdir}
4be5a36a
PS
105
106# remove this man page unless we cross-build for netware platform.
107# however, this should be done in Makefiles.
a5f47242
JB
108%{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/*nlmconv.1
109
110# not prefixed, keep infos only from native packages
111%{__rm} -r $RPM_BUILD_ROOT%{_infodir}
4be5a36a 112
a5f47242
JB
113# "filesystem" for crossmingw32-* packages (move to crossmingw32-dirs?)
114install -d $RPM_BUILD_ROOT%{arch}/lib/pkgconfig
4be5a36a
PS
115
116%clean
117rm -rf $RPM_BUILD_ROOT
118
119%files
120%defattr(644,root,root,755)
121%doc README
a5f47242 122# mingw64 directory tree
4be5a36a
PS
123%dir %{arch}
124%dir %{arch}/lib
a5f47242 125%dir %{arch}/lib/pkgconfig
4be5a36a 126%dir %{arch}/bin
a5f47242
JB
127# binutils files
128%attr(755,root,root) %{arch}/bin/ar
129%attr(755,root,root) %{arch}/bin/as
130%attr(755,root,root) %{arch}/bin/dlltool
131%attr(755,root,root) %{arch}/bin/ld
132%attr(755,root,root) %{arch}/bin/ld.bfd
133%attr(755,root,root) %{arch}/bin/nm
134%attr(755,root,root) %{arch}/bin/objcopy
135%attr(755,root,root) %{arch}/bin/objdump
136%attr(755,root,root) %{arch}/bin/ranlib
137%attr(755,root,root) %{arch}/bin/readelf
138%attr(755,root,root) %{arch}/bin/strip
4be5a36a 139%{arch}/lib/ldscripts
a5f47242
JB
140%attr(755,root,root) %{_bindir}/%{target}-addr2line
141%attr(755,root,root) %{_bindir}/%{target}-ar
142%attr(755,root,root) %{_bindir}/%{target}-as
143%attr(755,root,root) %{_bindir}/%{target}-c++filt
144%attr(755,root,root) %{_bindir}/%{target}-dlltool
145%attr(755,root,root) %{_bindir}/%{target}-dllwrap
146%attr(755,root,root) %{_bindir}/%{target}-elfedit
147%attr(755,root,root) %{_bindir}/%{target}-gprof
148%attr(755,root,root) %{_bindir}/%{target}-ld
149%attr(755,root,root) %{_bindir}/%{target}-ld.bfd
150%attr(755,root,root) %{_bindir}/%{target}-nm
151%attr(755,root,root) %{_bindir}/%{target}-objcopy
152%attr(755,root,root) %{_bindir}/%{target}-objdump
153%attr(755,root,root) %{_bindir}/%{target}-ranlib
154%attr(755,root,root) %{_bindir}/%{target}-readelf
155%attr(755,root,root) %{_bindir}/%{target}-size
156%attr(755,root,root) %{_bindir}/%{target}-strings
157%attr(755,root,root) %{_bindir}/%{target}-strip
158%attr(755,root,root) %{_bindir}/%{target}-windmc
159%attr(755,root,root) %{_bindir}/%{target}-windres
160%{_mandir}/man1/%{target}-addr2line.1*
161%{_mandir}/man1/%{target}-ar.1*
162%{_mandir}/man1/%{target}-as.1*
163%{_mandir}/man1/%{target}-c++filt.1*
164%{_mandir}/man1/%{target}-dlltool.1*
165%{_mandir}/man1/%{target}-elfedit.1*
166%{_mandir}/man1/%{target}-gprof.1*
167%{_mandir}/man1/%{target}-ld.1*
168%{_mandir}/man1/%{target}-nm.1*
169%{_mandir}/man1/%{target}-objcopy.1*
170%{_mandir}/man1/%{target}-objdump.1*
171%{_mandir}/man1/%{target}-ranlib.1*
172%{_mandir}/man1/%{target}-readelf.1*
173%{_mandir}/man1/%{target}-size.1*
174%{_mandir}/man1/%{target}-strings.1*
175%{_mandir}/man1/%{target}-strip.1*
176%{_mandir}/man1/%{target}-windmc.1*
177%{_mandir}/man1/%{target}-windres.1*
This page took 0.054385 seconds and 4 git commands to generate.