# Conditional build:
%bcond_with allarchs # enable all targets
# define addtargets x,y,z # build with additional targets x,y,z (e.g. x86_64-linux)
+%bcond_without pax # without PaX flags (for upstream bugreports)
#
Summary: GNU Binary Utility Development Utilities
Summary(de.UTF-8): GNU Binary Utility Development Utilities
Summary(tr.UTF-8): GNU geliştirme araçları
Summary(uk.UTF-8): Набір інструментів GNU для побудови виконуваних програм
Name: binutils
-Version: 2.17.50.0.16
-Release: 2
+Version: 2.18.50.0.2
+Release: 1
Epoch: 3
-License: GPL
+License: GPL v3+
Group: Development/Tools
Source0: ftp://ftp.kernel.org/pub/linux/devel/binutils/%{name}-%{version}.tar.bz2
-# Source0-md5: 1404fe9bc6105dcc27c85787b3222885
+# Source0-md5: ba4647b164a4700ca62e6eeb76cae4fc
Source1: http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/%{name}-non-english-man-pages.tar.bz2
# Source1-md5: a717d9707ec77d82acb6ec9078c472d6
Patch0: %{name}-gasp.patch
Patch6: %{name}-discarded.patch
Patch7: %{name}-absolute-gnu_debuglink-path.patch
Patch8: %{name}-libtool-m.patch
-Patch9: %{name}-pr4497.patch
URL: http://sources.redhat.com/binutils/
BuildRequires: autoconf >= 2.59
BuildRequires: automake >= 1:1.8.2
%patch0 -p1
%patch1 -p1
%patch2 -p1
-%patch3 -p1
+%{?with_pax:%patch3 -p1}
%patch4 -p0
%patch5 -p1
%patch6 -p1
%patch7 -p1
%patch8 -p1
-%patch9 -p1
%build
# non-standard regeneration (needed because of gasp patch)
+# AM_BINUTILS_WARNINGS in bfd/warning.m4, ZW_GNU_GETTEXT_SISTER_DIR in config/gettext-sister.m4
cd gas
-aclocal
+aclocal -I ../bfd -I ../config -I ..
automake --cygnus Makefile
automake --cygnus doc/Makefile
autoconf