Skip to content

Commit

Permalink
Fix changelog date in rpm speci when build is 'stable'
Browse files Browse the repository at this point in the history
  • Loading branch information
daniviga committed Oct 25, 2017
1 parent fac6543 commit 0677748
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion rpm/qgis.spec.template
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@
# - _relver
# - _timestamp (optional)

%if %{_timestamp} > 0
%define builddate %(date -d @%{_timestamp} '+%a %b %d %Y')
%else
%define builddate %(date '+%a %b %d %Y')
%endif

Name: qgis
Version: %{_version}
Release: %{_relver}%{?dist}
Expand Down Expand Up @@ -366,5 +372,5 @@ update-mime-database %{?fedora:-n} %{_datadir}/mime &> /dev/null || :


%changelog
* %(date -d @%{_timestamp} '+%a %b %d %Y') Daniele Viganò <daniele@vigano.me> %{_version}-%{_relver}
* %{builddate} Daniele Viganò <daniele@vigano.me> %{_version}-%{_relver}
- Automatic build

0 comments on commit 0677748

Please sign in to comment.