From 9ecb7e45eafce414d8f4e00416afd733cc6a3804af888118b19532e4320bd0ed Mon Sep 17 00:00:00 2001 From: Martin Pluskal Date: Thu, 29 Jun 2017 07:19:46 +0000 Subject: [PATCH] Accepting request 506932 from home:bmwiedemann:branches:editors Extend nedit-5.6_builddate_fix.patch to fix dates in nedit.doc OBS-URL: https://build.opensuse.org/request/show/506932 OBS-URL: https://build.opensuse.org/package/show/editors/nedit?expand=0&rev=21 --- nedit-5.6_builddate_fix.patch | 26 ++++++++++++++++++++++++++ nedit.changes | 5 +++++ 2 files changed, 31 insertions(+) diff --git a/nedit-5.6_builddate_fix.patch b/nedit-5.6_builddate_fix.patch index 1a437b5..32f5429 100644 --- a/nedit-5.6_builddate_fix.patch +++ b/nedit-5.6_builddate_fix.patch @@ -49,3 +49,29 @@ Index: nedit-5.7/source/nc.c + Built on: openSUSE BuildService\n"; + fprintf(stdout, ncHelpText); } +Index: nedit-5.7/doc/setext +=================================================================== +--- nedit-5.7.orig/doc/setext ++++ nedit-5.7/doc/setext +@@ -711,7 +711,7 @@ sub date + { + $format = $_[0]; + +- ( $sec,$min,$hour,$mday,$mon,$year,@ignore ) = localtime( time ); ++ ( $sec,$min,$hour,$mday,$mon,$year,@ignore ) = localtime( $ENV{SOURCE_DATE_EPOCH} || time ); + $month = (January,February,March,April,May,June,July, + August,September,October,November,December)[$mon]; + $year = $year + 1900; +Index: nedit-5.7/doc/Makefile +=================================================================== +--- nedit-5.7.orig/doc/Makefile ++++ nedit-5.7/doc/Makefile +@@ -39,7 +39,7 @@ instructions: + + .version: + @ if [ "$(VERSION)" = "" ]; then \ +- echo "NEdit release of `date +'%b %e, %Y'`" > .version; \ ++ echo "NEdit release of `date --date="@$${SOURCE_DATE_EPOCH:-$$(date +%s)}" +'%b %e, %Y'`" > .version; \ + else \ + echo "$(VERSION)" > .version; \ + fi diff --git a/nedit.changes b/nedit.changes index a36982a..7d57702 100644 --- a/nedit.changes +++ b/nedit.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Jun 29 05:31:30 UTC 2017 - bwiedemann@suse.com + +- Extend nedit-5.6_builddate_fix.patch to fix dates in nedit.doc + ------------------------------------------------------------------- Thu May 11 12:44:50 UTC 2017 - mpluskal@suse.com