diff --git a/antlr-bootstrap.spec b/antlr-bootstrap.spec index a5f407e..c3913ea 100644 --- a/antlr-bootstrap.spec +++ b/antlr-bootstrap.spec @@ -1,7 +1,7 @@ # # spec file for package antlr-bootstrap # -# Copyright (c) 2023 SUSE LLC +# Copyright (c) 2024 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed diff --git a/antlr.changes b/antlr.changes index 3b4a2ac..d4ea0a4 100644 --- a/antlr.changes +++ b/antlr.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Feb 20 13:27:59 UTC 2024 - Fridrich Strba + +- Use %patch -P N instead of deprecated %patchN. + ------------------------------------------------------------------- Tue Oct 17 11:07:22 UTC 2023 - Fridrich Strba diff --git a/antlr.spec b/antlr.spec index bbaf572..7f1c884 100644 --- a/antlr.spec +++ b/antlr.spec @@ -1,7 +1,7 @@ # # spec file for package antlr # -# Copyright (c) 2023 SUSE LLC +# Copyright (c) 2024 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -115,12 +115,12 @@ find . -name "*.jar" -exec rm -f {} \; find . -name "*.exe" -exec rm -f {} \; find . -name "*.dll" -exec rm -f {} \; find . -name Makefile.in | xargs chmod 0644 -%patch0 +%patch -P 0 cp -p %{SOURCE1} build.xml #Fix the source so that it compiles with GCC 4.5 -%patch1 -p1 +%patch -P 1 -p1 #Ensure that the manuals are installed in the correct openSUSE docpath -%patch2 +%patch -P 2 # check for license problematic files: find | grep "\(ShowString.java$\|StreamConverter.java$\)" && exit 42 || :