Skip to content

Commit ea4ea1f

Browse files
authoredApr 7, 2019
Merge pull request #9740 from daniviga/rpm-sha
[RPM] put the SHA commit in the about dialog for unstable builds
2 parents 9464105 + f85954b commit ea4ea1f

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)
Please sign in to comment.