From 0b2c0536e0de5ccee638b590f61175e899774dbc Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Jul 13 2017 11:22:04 +0000 Subject: fix build issue on ppc64/ppc64le --- diff --git a/cryptobone-1.1.1-powerpc.patch b/cryptobone-1.1.1-powerpc.patch new file mode 100644 index 0000000..29e2a84 --- /dev/null +++ b/cryptobone-1.1.1-powerpc.patch @@ -0,0 +1,13 @@ +diff -up cryptobone-1.1.1/src/renamesymbols.than cryptobone-1.1.1/src/renamesymbols +--- cryptobone-1.1.1/src/renamesymbols.than 2017-07-13 11:48:58.765722815 +0200 ++++ cryptobone-1.1.1/src/renamesymbols 2017-07-13 11:53:46.400922665 +0200 +@@ -8,6 +8,9 @@ + # this script must be run in the cryptlib directory before building the + # shared library + ++# rename to MASK2h to MASK2h, fixed build issue on powerpc ++sed -i 's/MASK2h1/MASK2h/g' bn/bn_lcl.h ++ + for F in $(find . -type f) + do + sed -i 's/BN_/cl_BN_/g' $F diff --git a/cryptobone.spec b/cryptobone.spec index 6146edb..a0ee875 100644 --- a/cryptobone.spec +++ b/cryptobone.spec @@ -1,20 +1,24 @@ %global cryptobonedir %{_prefix}/lib/%{name} %global _hardened_build 1 +%global upstream_ver 1.1.1-6.fc27 Name: cryptobone Version: 1.1.1 -Release: 6%{?dist} +Release: 7%{?dist} Summary: Secure Communication Under Your Control Group: Applications/Internet License: BSD and Sleepycat and OpenSSL URL: https://crypto-bone.com -Source0: https://crypto-bone.com/release/source/cryptobone-%{version}-%{release}.tar.gz -Source1: https://crypto-bone.com/release/source/cryptobone-%{version}-%{release}.tar.gz.asc +Source0: https://crypto-bone.com/release/source/cryptobone-%{upstream_ver}.tar.gz +Source1: https://crypto-bone.com/release/source/cryptobone-%{upstream_ver}.tar.gz.asc Source2: gpgkey-3274CB29956498038A9C874BFBF6E2C28E9C98DD.asc Source3: COPYING -ExclusiveArch: x86_64 %{ix86} +# fix build issue on ppc64/ppc64le +Patch0: cryptobone-1.1.1-powerpc.patch + +ExclusiveArch: x86_64 %{ix86} ppc64 ppc64le # no aarch64 yet, bignum code does not compile BuildRequires: libbsd-devel @@ -66,6 +70,7 @@ mkdir -p .gnupg gpg2 --homedir .gnupg --no-default-keyring --quiet --yes --output $KEYRING --dearmor %{SOURCE2} gpg2 --homedir .gnupg --no-default-keyring --keyring $KEYRING --verify %{SOURCE1} %{SOURCE0} %setup +%patch0 -p1 -b .ppc64 %build %configure @@ -183,6 +188,9 @@ fi %doc %{_docdir}/%{name}/README-cryptlib %changelog +* Thu Jul 13 2017 Than Ngo - 1.1.1-7 +- fix build issue on ppc64/ppc64le + * Wed Jul 05 2017 Senderek Web Security - 1.1.1-6 - exclude aarch64