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
This commit is contained in:
Martin Pluskal 2017-06-29 07:19:46 +00:00 committed by Git OBS Bridge
parent 6cdeba424c
commit 9ecb7e45ea
2 changed files with 31 additions and 0 deletions

View File

@ -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

View File

@ -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