contrib/rpm: fix release version in rpm change log

Signed-off-by: Thomas Haller <thaller@redhat.com>
This commit is contained in:
Thomas Haller 2014-03-02 18:44:16 +01:00
parent 6db1d68e3f
commit a9ed313956
2 changed files with 3 additions and 2 deletions

View file

@ -15,6 +15,7 @@
%define snapshot %{nil}
%define git_sha __COMMIT__
%define realversion __VERSION__
%define release_version __RELEASE_VERSION__
%global with_nmtui 1
@ -46,7 +47,7 @@ Name: NetworkManager
Summary: Network connection manager and user applications
Epoch: 1
Version: %{realversion}
Release: __RELEASE_VERSION__%{snapshot}.%{git_sha}%{?dist}
Release: %{release_version}%{snapshot}.%{git_sha}%{?dist}
Group: System Environment/Base
License: GPLv2+
URL: http://www.gnome.org/projects/NetworkManager/

View file

@ -110,7 +110,7 @@ fi
if [[ "x$CHANGELOG" == x ]]; then
cat <<EOF > "$TEMP/SOURCES/CHANGELOG"
* $(LOCALE= date '+%a %b %d %Y') $USERNAME - %{release}
* $(LOCALE= date '+%a %b %d %Y') $USERNAME - %{version}-%{release_version}%{snapshot}.%{git_sha}
- Test build of NetworkManager ($DATE, $UUID)
$(git log -n20 --date=local --format='- %h %s [%an] (%ci)')
- ...