diff --git a/botan-1.10-add-ppc64le.patch b/botan-1.10-add-ppc64le.patch new file mode 100644 index 0000000..05794cd --- /dev/null +++ b/botan-1.10-add-ppc64le.patch @@ -0,0 +1,50 @@ +diff -Naur Botan-1.10.8.orig/src/build-data/arch/ppc64le.txt Botan-1.10.8/src/build-data/arch/ppc64le.txt +--- Botan-1.10.8.orig/src/build-data/arch/ppc64le.txt 1969-12-31 18:00:00.000000000 -0600 ++++ Botan-1.10.8/src/build-data/arch/ppc64le.txt 2014-05-25 12:59:22.030001491 -0500 +@@ -0,0 +1,16 @@ ++ ++endian little ++family ppc64le ++ ++ ++ppc64el # For Debian ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ +diff -Naur Botan-1.10.8.orig/src/build-data/cc/gcc.txt Botan-1.10.8/src/build-data/cc/gcc.txt +--- Botan-1.10.8.orig/src/build-data/cc/gcc.txt 2014-05-25 12:44:19.580001491 -0500 ++++ Botan-1.10.8/src/build-data/cc/gcc.txt 2014-05-25 12:55:57.750001491 -0500 +@@ -83,6 +83,7 @@ + mips64 -> "-mips3 -mcpu=SUBMODEL" mips64- + ppc32 -> "-mcpu=SUBMODEL" ppc + ppc64 -> "-mcpu=SUBMODEL" ppc ++ppc64le -> "-mcpu=SUBMODEL" + sparc32 -> "-mcpu=SUBMODEL -Wa,-xarch=v8plus" sparc32- + sparc64 -> "-mcpu=v9 -mtune=SUBMODEL" + x86_32 -> "-march=SUBMODEL -momit-leaf-frame-pointer" +@@ -98,6 +99,7 @@ + sparc32 -> "-m32 -mno-app-regs" + sparc64 -> "-m64 -mno-app-regs" + ppc64 -> "-m64" ++ppc64le -> "-m64" + + # This should probably be used on most/all targets, but the docs are unclear + openbsd -> "-pthread" +diff -Naur Botan-1.10.8.orig/src/math/mp/mp_asm64/info.txt Botan-1.10.8/src/math/mp/mp_asm64/info.txt +--- Botan-1.10.8.orig/src/math/mp/mp_asm64/info.txt 2014-05-25 12:44:19.620001491 -0500 ++++ Botan-1.10.8/src/math/mp/mp_asm64/info.txt 2014-05-25 12:45:01.580001491 -0500 +@@ -13,6 +13,7 @@ + mips64 + ppc64 + sparc64 ++ppc64le + + + # The inline asm only works with gcc, but it looks like (at least on diff --git a/botan.spec b/botan.spec index f5797aa..7750c3c 100644 --- a/botan.spec +++ b/botan.spec @@ -2,7 +2,7 @@ Name: botan Version: %{major_version}.8 -Release: 3%{?dist} +Release: 4%{?dist} Summary: Crypto library written in C++ Group: System Environment/Libraries @@ -13,6 +13,7 @@ URL: http://botan.randombit.net/ Source0: Botan-%{version}.stripped.tbz Source1: README.fedora Patch0: botan-aarch64.patch +Patch1: botan-1.10-add-ppc64le.patch BuildRequires: gcc-c++ BuildRequires: python @@ -79,6 +80,7 @@ interfaces may change in the future. %prep %setup -q -n Botan-%{version} %patch0 -p1 +%patch1 -p1 cp -av %{SOURCE1} . @@ -167,6 +169,9 @@ LD_LIBRARY_PATH=%{buildroot}%{_libdir} ./check --validate %changelog +* Sun May 25 2014 Brent Baude - 1.10.8-4 +- Added ppc64le arch support + * Fri May 23 2014 David Tardon - 1.10.8-3 - rebuild for boost 1.55.0