Skip to content

Commit f85954b

Browse files
committed
[RPM] put the SHA commit in the about dialog for unstable builds
1 parent f1dbcc3 commit f85954b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

rpm/qgis.spec.template

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
%if %{_timestamp} > 0
2222
# Epoch is set only when building packages from master
2323
Epoch: %{_timestamp}
24+
%define configure_with_sha -D SHA=%(sha=%{_relver}; echo ${sha##git})
2425
%define combinedversion %{epoch}:%{version}
2526
%define builddate %(date -d @%{_timestamp} '+%a %b %d %Y')
2627
%else
@@ -230,6 +231,7 @@ gzip ChangeLog
230231
-D WITH_SERVER:BOOL=TRUE \
231232
-D WITH_3D:BOOL=TRUE \
232233
-D USE_OPENCL:BOOL=TRUE \
234+
%{configure_with_sha} \
233235
.
234236

235237
make %{?_smp_mflags}

0 commit comments

Comments
 (0)