diff --git a/nedit-5.6_builddate_fix.patch b/nedit-5.6_builddate_fix.patch index 32f5429..1a437b5 100644 --- a/nedit-5.6_builddate_fix.patch +++ b/nedit-5.6_builddate_fix.patch @@ -49,29 +49,3 @@ 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 7d57702..500e4b4 100644 --- a/nedit.changes +++ b/nedit.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Feb 22 13:58:04 UTC 2024 - Dominique Leuenberger + +- Use %patch -P N instead of deprecated %patchN. + ------------------------------------------------------------------- Thu Jun 29 05:31:30 UTC 2017 - bwiedemann@suse.com diff --git a/nedit.spec b/nedit.spec index eb4b6c8..0c516b1 100644 --- a/nedit.spec +++ b/nedit.spec @@ -52,12 +52,12 @@ and a lot other nice features (and extensions for programmers). %prep %setup -q -%patch1 -p1 -%patch2 -p1 -%patch3 -p1 -%patch4 -p1 -%patch5 -%patch6 -p1 +%patch -P 1 -p1 +%patch -P 2 -p1 +%patch -P 3 -p1 +%patch -P 4 -p1 +%patch -P 5 +%patch -P 6 -p1 %build make -j1 RPM_OPT_FLAGS="%{optflags}" linux