Patch0: %{name}-ppc.patch
Patch1: %{name}-opt.patch
Patch2: %{name}-athlon.patch
+Patch3: %{name}-amd64.patch
URL: http://www.fefe.de/dietlibc/
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%define dietprefix %{_prefix}/%{_target_cpu}-linux-dietlibc
# for some reason known only to rpm there must be "\\|" not "\|" here
-%define libarch %(echo %{_target_cpu} | sed -e 's/i.86\\|athlon/i386/')
+%define libarch %(echo %{_target_cpu} | sed -e 's/i.86\\|athlon/i386/;s/amd64/x86_64/')
%description
Small libc for building embedded applications.
%patch0 -p1
%patch1 -p1
%patch2 -p1
+%patch3 -p1
%build
OPTFLAGS="%{rpmcflags}"; export OPTFLAGS