[PATCH] contrib/rpm: force POSIX changelog date locale
- From: "Tore Anderson" <tore fud no>
- To: networkmanager-list gnome org
- Cc: Tore Anderson <tore fud no>
- Subject: [PATCH] contrib/rpm: force POSIX changelog date locale
- Date: Thu, 15 May 2014 22:45:43 +0200
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.
---
contrib/fedora/rpm/build.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/contrib/fedora/rpm/build.sh b/contrib/fedora/rpm/build.sh
index 048ffac..a087078 100755
--- a/contrib/fedora/rpm/build.sh
+++ b/contrib/fedora/rpm/build.sh
@@ -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)')
- ...
--
1.9.0
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]