[packages/sbsigntool] x86_64 build fixes

jajcus jajcus at pld-linux.org
Fri Nov 1 14:50:53 CET 2013


commit 569a9074b5cfd4a979e3bbff3ff37bf5cabdfc14
Author: Jacek Konieczny <jajcus at jajcus.net>
Date:   Fri Nov 1 14:50:01 2013 +0100

    x86_64 build fixes
    
    Release: 1

 sbsigntool.spec | 16 ++++++++++++----
 1 file changed, 12 insertions(+), 4 deletions(-)
---
diff --git a/sbsigntool.spec b/sbsigntool.spec
index 857bc0c..8ae86aa 100644
--- a/sbsigntool.spec
+++ b/sbsigntool.spec
@@ -5,7 +5,7 @@
 Summary:	Signing utility for UEFI secure boot
 Name:		sbsigntool
 Version:	0.6
-Release:	0.1
+Release:	1
 License:	GPL v3
 Group:		Applications
 # git://kernel.ubuntu.com/jk/sbsigntool a7577f56b3c3c6e314576809cc9ce1bde94ae727
@@ -25,6 +25,16 @@ BuildRequires:	libuuid-devel
 BuildRequires:	openssl-devel
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
+%ifarch %{ix86}
+%define		efi_arch ia32
+%else
+%ifarch %{x8664}
+%define		efi_arch x86_64
+%else
+%define		efi_arch %{_arch}
+%endif
+%endif
+
 %description
 Utilites for signing and verifying files for UEFI Secure Boot.
 
@@ -44,9 +54,7 @@ lib/ccan.git/tools/create-ccan-tree \
 %{__automake}
 
 %configure \
-%ifarch %{ix86}
-	CPPFLAGS="%{rpmcppflags} -I/usr/include/efi/ia32"
-%endif
+	CPPFLAGS="%{rpmcppflags} -I/usr/include/efi/%{efi_arch}"
 %{__make}
 
 %{?with_tests:%{__make} -C tests test}
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/sbsigntool.git/commitdiff/569a9074b5cfd4a979e3bbff3ff37bf5cabdfc14



More information about the pld-cvs-commit mailing list