From dbd586398f4fd2f486a9f7b7a85d217429526850aad934a12790c22265dbc49f Mon Sep 17 00:00:00 2001
From: Johannes Engel <jcnengel@gmail.com>
Date: Sat, 8 Jul 2017 13:21:59 +0000
Subject: [PATCH] Accepting request 507569 from
 home:bmwiedemann:branches:Office

override build date to make build reproducible and fix build-compare

OBS-URL: https://build.opensuse.org/request/show/507569
OBS-URL: https://build.opensuse.org/package/show/Office/aqbanking?expand=0&rev=3
---
 aqbanking.changes | 5 +++++
 aqbanking.spec    | 3 ++-
 2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/aqbanking.changes b/aqbanking.changes
index e0bd128..9df2543 100644
--- a/aqbanking.changes
+++ b/aqbanking.changes
@@ -1,3 +1,8 @@
+-------------------------------------------------------------------
+Sun Jul  2 07:55:25 UTC 2017 - bwiedemann@suse.com
+
+- override build date to make build reproducible and fix build-compare
+
 -------------------------------------------------------------------
 Tue May 30 21:39:09 UTC 2017 - nico.kruber@gmail.com
 
diff --git a/aqbanking.spec b/aqbanking.spec
index a5fc303..7e9e706 100644
--- a/aqbanking.spec
+++ b/aqbanking.spec
@@ -169,8 +169,9 @@ BACKEND_LIST="$BACKEND_LIST aqebics"
 # quick fix for $CPP being unset and configure failing to handle include dirs properly
 CPP=`which cpp`
 export CPP
+[ -n "$SOURCE_DATE_EPOCH" ] && builddate=--with-build-datetime=@$SOURCE_DATE_EPOCH
 %configure\
-	--enable-release \
+	--enable-release $builddate \
 	--with-backends="$BACKEND_LIST"  \
 	--enable-full-doc \
 	--with-qt4-libs=%{_libdir} \