From f85954b304ef8b7358b67e2242a64dcf358d1fb9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniele=20Vigan=C3=B2?= Date: Sun, 7 Apr 2019 17:08:39 +0200 Subject: [PATCH] [RPM] put the SHA commit in the about dialog for unstable builds --- rpm/qgis.spec.template | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rpm/qgis.spec.template b/rpm/qgis.spec.template index bcf9041af51..2dbe2b1bf87 100644 --- a/rpm/qgis.spec.template +++ b/rpm/qgis.spec.template @@ -21,6 +21,7 @@ %if %{_timestamp} > 0 # Epoch is set only when building packages from master Epoch: %{_timestamp} +%define configure_with_sha -D SHA=%(sha=%{_relver}; echo ${sha##git}) %define combinedversion %{epoch}:%{version} %define builddate %(date -d @%{_timestamp} '+%a %b %d %Y') %else @@ -230,6 +231,7 @@ gzip ChangeLog -D WITH_SERVER:BOOL=TRUE \ -D WITH_3D:BOOL=TRUE \ -D USE_OPENCL:BOOL=TRUE \ + %{configure_with_sha} \ . make %{?_smp_mflags}