Accepting request 567286 from home:michals

enable BE build

OBS-URL: https://build.opensuse.org/request/show/567286
OBS-URL: https://build.opensuse.org/package/show/security/ibmswtpm2?expand=0&rev=14
This commit is contained in:
Michal Suchanek 2018-01-18 09:07:45 +00:00 committed by Git OBS Bridge
parent a37c14d9da
commit 67a94faa0b
2 changed files with 11 additions and 3 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu Jan 18 08:31:26 UTC 2018 - msuchanek@suse.com
- Enable bigendian build
-------------------------------------------------------------------
Tue Jan 16 11:33:14 UTC 2018 - vcizek@suse.com

View File

@ -27,8 +27,11 @@ Group: Development/Tools/Other
Url: https://sourceforge.net/projects/ibmswtpm2
Source: https://sourceforge.net/projects/ibmswtpm2/files/ibmtpm%{version}.tar.gz
Patch1: makefile.patch
# FIXME this is broken on BE - upstream is waiting for current spec testing to finish before porting
ExcludeArch: ppc ppc64 s390 s390x
%ifarch ppc ppc64 s390 s390x
%define extra_ccflags -DBIG_ENDIAN_TPM=1
%else
%define extra_ccflags ""
%endif
BuildRequires: libopenssl-devel >= 1.0
BuildRoot: %{_tmppath}/%{name}-%{version}-build
@ -49,7 +52,7 @@ implementation because of this specific interface.
%build
cd src
CCFLAGS="%{optflags}" make %{?_smp_mflags}
CCFLAGS="%{optflags} "%{extra_ccflags} make %{?_smp_mflags}
%install
cd src