contrib/rpm: force POSIX changelog date locale

Ensure the date in the generated changelog entry is in the POSIX locale
format. Otherwise rpmbuild might fail with "bad date in %changelog" due
to it not liking localised date formats.

https://mail.gnome.org/archives/networkmanager-list/2014-May/msg00034.html

Signed-off-by: Thomas Haller <thaller@redhat.com>
This commit is contained in:
Tore Anderson 2014-05-15 22:45:43 +02:00 committed by Thomas Haller
parent 950d9fff26
commit c2e99b181f

View file

@ -110,7 +110,7 @@ fi
if [[ "x$CHANGELOG" == x ]]; then
cat <<EOF > "$TEMP/SOURCES/CHANGELOG"
* $(LOCALE= date '+%a %b %d %Y') $USERNAME - %{version}-%{release_version}%{snapshot}.%{git_sha}
* $(LC_TIME=C 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)')
- ...