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