From a3b806b253b27cf0e0ea938be40c65c25f55ca05 Mon Sep 17 00:00:00 2001 From: Jerry James Date: Tue, 19 Jul 2022 16:33:32 -0600 Subject: [PATCH 01/20] Remove i686 support. See https://fedoraproject.org/wiki/Changes/Drop_i686_JDKs. --- README.md | 6 ++++++ antlr3.spec | 10 ++++++++-- 2 files changed, 14 insertions(+), 2 deletions(-) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..d572416 --- /dev/null +++ b/README.md @@ -0,0 +1,6 @@ +# antlr3 + +[ANTLR version 3](https://www.antlr3.org/), ANother Tool for Language +Recognition, is a language tool that provides a framework for constructing +recognizers, interpreters, compilers, and translators from grammatical +descriptions containing actions in a variety of target languages. diff --git a/antlr3.spec b/antlr3.spec index 13e2787..273d647 100644 --- a/antlr3.spec +++ b/antlr3.spec @@ -1,7 +1,7 @@ %global antlr_version 3.5.3 %global c_runtime_version 3.4 %global javascript_runtime_version 3.1 -%global baserelease 1 +%global baserelease 2 # This package needs itself to build. Use this to bootstrap on a new system. %bcond_with bootstrap @@ -19,7 +19,7 @@ Epoch: 1 Version: %{antlr_version} Release: %{baserelease}%{?dist} License: BSD -URL: http://www.antlr3.org/ +URL: https://www.antlr3.org/ Source0: https://github.com/antlr/antlr3/archive/%{antlr_version}/%{name}-%{antlr_version}.tar.gz Source1: http://www.antlr3.org/download/antlr-javascript-runtime-%{javascript_runtime_version}.zip @@ -79,6 +79,9 @@ BuildRequires: autoconf BuildRequires: automake BuildRequires: libtool +# https://fedoraproject.org/wiki/Changes/Drop_i686_JDKs +ExclusiveArch: %{java_arches} + %description ANother Tool for Language Recognition, is a language tool that provides a framework for constructing recognizers, @@ -317,6 +320,9 @@ install -pm 644 runtime/Cpp/include/* $RPM_BUILD_ROOT/%{_includedir}/ %doc tool/LICENSE.txt %changelog +* Tue Jul 19 2022 Jerry James - 1:3.5.3-2 +- Remove i686 support (https://fedoraproject.org/wiki/Changes/Drop_i686_JDKs) + * Sun Apr 10 2022 Jerry James - 1:3.5.3-1 - Version 3.5.3 - Drop ancient obsoletes From 6f1af7c9c070a90dac3d9008d70542f24e533b0c Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Wed, 20 Jul 2022 20:55:54 +0000 Subject: [PATCH 02/20] Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- antlr3.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/antlr3.spec b/antlr3.spec index 273d647..a28172f 100644 --- a/antlr3.spec +++ b/antlr3.spec @@ -1,7 +1,7 @@ %global antlr_version 3.5.3 %global c_runtime_version 3.4 %global javascript_runtime_version 3.1 -%global baserelease 2 +%global baserelease 3 # This package needs itself to build. Use this to bootstrap on a new system. %bcond_with bootstrap @@ -320,6 +320,9 @@ install -pm 644 runtime/Cpp/include/* $RPM_BUILD_ROOT/%{_includedir}/ %doc tool/LICENSE.txt %changelog +* Wed Jul 20 2022 Fedora Release Engineering - 1:3.5.3-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + * Tue Jul 19 2022 Jerry James - 1:3.5.3-2 - Remove i686 support (https://fedoraproject.org/wiki/Changes/Drop_i686_JDKs) From 913904023080b63d8197f44a970377e48b949f2c Mon Sep 17 00:00:00 2001 From: Jerry James Date: Thu, 11 Aug 2022 09:33:33 -0600 Subject: [PATCH 03/20] Convert License tag to SPDX. --- antlr3.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/antlr3.spec b/antlr3.spec index a28172f..13e14db 100644 --- a/antlr3.spec +++ b/antlr3.spec @@ -18,7 +18,7 @@ Name: antlr3 Epoch: 1 Version: %{antlr_version} Release: %{baserelease}%{?dist} -License: BSD +License: BSD-3-Clause URL: https://www.antlr3.org/ Source0: https://github.com/antlr/antlr3/archive/%{antlr_version}/%{name}-%{antlr_version}.tar.gz @@ -320,6 +320,9 @@ install -pm 644 runtime/Cpp/include/* $RPM_BUILD_ROOT/%{_includedir}/ %doc tool/LICENSE.txt %changelog +* Thu Aug 11 2022 Jerry James - 1:3.5.3-3%{?dist} +- Convert License tag to SPDX + * Wed Jul 20 2022 Fedora Release Engineering - 1:3.5.3-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild From 3f42420866a56d10e9c0c0ee57b799831e07b74a Mon Sep 17 00:00:00 2001 From: Jerry James Date: Mon, 21 Nov 2022 15:47:11 -0700 Subject: [PATCH 04/20] Clarify license of the C-docs subpackage. --- antlr3.spec | 41 ++++++++++++++++++++++++++++++++++++----- 1 file changed, 36 insertions(+), 5 deletions(-) diff --git a/antlr3.spec b/antlr3.spec index 13e14db..a176e1f 100644 --- a/antlr3.spec +++ b/antlr3.spec @@ -146,6 +146,36 @@ Release: %{antlr_version}.%{baserelease}%{?dist} Header files for the C bindings for ANTLR-generated parsers %package C-docs +# The content is BSD-3-Clause. Other licenses are due to files installed by +# doxygen. +# api/bc_s.png: GPL-1.0-or-later +# api/bdwn.png: GPL-1.0-or-later +# api/closed.png: GPL-1.0-or-later +# api/doc.png: GPL-1.0-or-later +# api/doxygen.css: GPL-1.0-or-later +# api/doxygen.svg: GPL-1.0-or-later +# api/dynsections.js: MIT +# api/folderclosed.png: GPL-1.0-or-later +# api/folderopen.png: GPL-1.0-or-later +# api/jquery.js: MIT +# api/menu.js: MIT +# api/menudata.js: MIT +# api/nav_f.png: GPL-1.0-or-later +# api/nav_g.png: GPL-1.0-or-later +# api/nav_h.png: GPL-1.0-or-later +# api/navtree.css: GPL-1.0-or-later +# api/navtree.js: MIT +# api/open.png: GPL-1.0-or-later +# api/resize.js: MIT +# api/splitbar.png: GPL-1.0-or-later +# api/sync_off.png: GPL-1.0-or-later +# api/sync_on.png: GPL-1.0-or-later +# api/tab_a.png: GPL-1.0-or-later +# api/tab_b.png: GPL-1.0-or-later +# api/tab_h.png: GPL-1.0-or-later +# api/tab_s.png: GPL-1.0-or-later +# api/tabs.css: GPL-1.0-or-later +License: BSD-3-Clause AND GPL-1.0-or-later AND MIT Summary: API documentation for the C run-time support for ANTLR-generated parsers BuildArch: noarch BuildRequires: graphviz @@ -231,7 +261,7 @@ autoreconf -i %{nil} %endif -sed -i "s#CFLAGS = .*#CFLAGS = $RPM_OPT_FLAGS#" Makefile +sed -i 's#CFLAGS = .*#CFLAGS = %{build_cflags}#' Makefile %make_build doxygen -u # update doxygen configuration file doxygen # build doxygen documentation @@ -298,16 +328,17 @@ install -pm 644 runtime/Cpp/include/* $RPM_BUILD_ROOT/%{_includedir}/ %{_libdir}/libantlr3c.so %files C-devel -%{_mandir}/man3/* -%{_includedir}/*.h +%{_mandir}/man3/ANTLR3* +%{_mandir}/man3/antlr3* +%{_includedir}/antlr3*.h %files C-docs %doc runtime/C/api %files C++-devel %doc tool/LICENSE.txt -%{_includedir}/*.hpp -%{_includedir}/*.inl +%{_includedir}/antlr3*.hpp +%{_includedir}/antlr3*.inl %files java -f .mfiles-java %doc tool/LICENSE.txt From 19abc93d019b34af6110a8626691f9a8d6ef179f Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Wed, 18 Jan 2023 21:51:02 +0000 Subject: [PATCH 05/20] Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- antlr3.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/antlr3.spec b/antlr3.spec index a176e1f..8ecdf63 100644 --- a/antlr3.spec +++ b/antlr3.spec @@ -1,7 +1,7 @@ %global antlr_version 3.5.3 %global c_runtime_version 3.4 %global javascript_runtime_version 3.1 -%global baserelease 3 +%global baserelease 4 # This package needs itself to build. Use this to bootstrap on a new system. %bcond_with bootstrap @@ -351,6 +351,9 @@ install -pm 644 runtime/Cpp/include/* $RPM_BUILD_ROOT/%{_includedir}/ %doc tool/LICENSE.txt %changelog +* Wed Jan 18 2023 Fedora Release Engineering - 1:3.5.3-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + * Thu Aug 11 2022 Jerry James - 1:3.5.3-3%{?dist} - Convert License tag to SPDX From 59ed7edb766b6dc5f72623da3ee1eee364c610fe Mon Sep 17 00:00:00 2001 From: Jerry James Date: Sun, 11 Jun 2023 09:03:24 -0600 Subject: [PATCH 06/20] Remove unneeded maven 2 dependency --- antlr3.spec | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/antlr3.spec b/antlr3.spec index 8ecdf63..377dbcc 100644 --- a/antlr3.spec +++ b/antlr3.spec @@ -1,7 +1,7 @@ %global antlr_version 3.5.3 %global c_runtime_version 3.4 %global javascript_runtime_version 3.1 -%global baserelease 4 +%global baserelease 5 # This package needs itself to build. Use this to bootstrap on a new system. %bcond_with bootstrap @@ -72,7 +72,6 @@ BuildRequires: mvn(org.apache.felix:maven-bundle-plugin) BuildRequires: mvn(org.apache.maven.plugins:maven-enforcer-plugin) BuildRequires: mvn(org.apache.maven.plugins:maven-plugin-plugin) BuildRequires: mvn(org.apache.maven:maven-plugin-api) -BuildRequires: mvn(org.apache.maven:maven-project) BuildRequires: mvn(org.codehaus.plexus:plexus-compiler-api) BuildRequires: autoconf @@ -351,10 +350,13 @@ install -pm 644 runtime/Cpp/include/* $RPM_BUILD_ROOT/%{_includedir}/ %doc tool/LICENSE.txt %changelog +* Sun Jun 11 2023 Jerry James - 1:3.5.3-5 +- Remove unneeded maven 2 dependency + * Wed Jan 18 2023 Fedora Release Engineering - 1:3.5.3-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild -* Thu Aug 11 2022 Jerry James - 1:3.5.3-3%{?dist} +* Thu Aug 11 2022 Jerry James - 1:3.5.3-3 - Convert License tag to SPDX * Wed Jul 20 2022 Fedora Release Engineering - 1:3.5.3-3 From b066801d83f885422df929fd837fb89750ae9526 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Wed, 19 Jul 2023 13:24:56 +0000 Subject: [PATCH 07/20] Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- antlr3.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/antlr3.spec b/antlr3.spec index 377dbcc..71d37c2 100644 --- a/antlr3.spec +++ b/antlr3.spec @@ -1,7 +1,7 @@ %global antlr_version 3.5.3 %global c_runtime_version 3.4 %global javascript_runtime_version 3.1 -%global baserelease 5 +%global baserelease 6 # This package needs itself to build. Use this to bootstrap on a new system. %bcond_with bootstrap @@ -350,6 +350,9 @@ install -pm 644 runtime/Cpp/include/* $RPM_BUILD_ROOT/%{_includedir}/ %doc tool/LICENSE.txt %changelog +* Wed Jul 19 2023 Fedora Release Engineering - 1:3.5.3-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + * Sun Jun 11 2023 Jerry James - 1:3.5.3-5 - Remove unneeded maven 2 dependency From 12f2deefdc5692d48ba1e147c778266d76a4ffd6 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 19 Jan 2024 13:07:35 +0000 Subject: [PATCH 08/20] Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild --- antlr3.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/antlr3.spec b/antlr3.spec index 71d37c2..ff4f880 100644 --- a/antlr3.spec +++ b/antlr3.spec @@ -1,7 +1,7 @@ %global antlr_version 3.5.3 %global c_runtime_version 3.4 %global javascript_runtime_version 3.1 -%global baserelease 6 +%global baserelease 7 # This package needs itself to build. Use this to bootstrap on a new system. %bcond_with bootstrap @@ -350,6 +350,9 @@ install -pm 644 runtime/Cpp/include/* $RPM_BUILD_ROOT/%{_includedir}/ %doc tool/LICENSE.txt %changelog +* Fri Jan 19 2024 Fedora Release Engineering - 1:3.5.3-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + * Wed Jul 19 2023 Fedora Release Engineering - 1:3.5.3-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild From 00ce207df4d4677a627041eb0d2e5dcfd81c2de4 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Mon, 22 Jan 2024 23:10:29 +0000 Subject: [PATCH 09/20] Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild --- antlr3.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/antlr3.spec b/antlr3.spec index ff4f880..084bb08 100644 --- a/antlr3.spec +++ b/antlr3.spec @@ -1,7 +1,7 @@ %global antlr_version 3.5.3 %global c_runtime_version 3.4 %global javascript_runtime_version 3.1 -%global baserelease 7 +%global baserelease 8 # This package needs itself to build. Use this to bootstrap on a new system. %bcond_with bootstrap @@ -350,6 +350,9 @@ install -pm 644 runtime/Cpp/include/* $RPM_BUILD_ROOT/%{_includedir}/ %doc tool/LICENSE.txt %changelog +* Mon Jan 22 2024 Fedora Release Engineering - 1:3.5.3-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + * Fri Jan 19 2024 Fedora Release Engineering - 1:3.5.3-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild From e563d7d3f707d2653ee36a968b3e975a313f4aec Mon Sep 17 00:00:00 2001 From: Avi Kivity Date: Mon, 5 Feb 2024 18:06:10 +0200 Subject: [PATCH 10/20] Remove const specifiers from CyclicDFA members These const specifiers were ignored by older versions of gcc, likely because they are in template members that are not instantiated. gcc 14 refuses to compile the class. Fix by removing the const specifiers. This is safe since these members are private, so we aren't allowing external users permissions to modify them. --- 0008-unconst-cyclicdfa-gcc-14.patch | 29 +++++++++++++++++++++++++++++ antlr3.spec | 7 ++++++- 2 files changed, 35 insertions(+), 1 deletion(-) create mode 100644 0008-unconst-cyclicdfa-gcc-14.patch diff --git a/0008-unconst-cyclicdfa-gcc-14.patch b/0008-unconst-cyclicdfa-gcc-14.patch new file mode 100644 index 0000000..1a78820 --- /dev/null +++ b/0008-unconst-cyclicdfa-gcc-14.patch @@ -0,0 +1,29 @@ +--- a/runtime/Cpp/include/antlr3cyclicdfa.hpp.orig 2024-02-01 14:13:33.243312124 +0200 ++++ b/runtime/Cpp/include/antlr3cyclicdfa.hpp 2024-02-01 14:12:28.493542243 +0200 +@@ -61,18 +61,18 @@ + /// Decision number that a particular static structure + /// represents. + /// ++ ANTLR_INT32 m_decisionNumber; +- const ANTLR_INT32 m_decisionNumber; + + /// What this decision represents + /// + const ANTLR_UCHAR* m_description; ++ const ANTLR_INT32* m_eot; ++ const ANTLR_INT32* m_eof; ++ const ANTLR_INT32* m_min; ++ const ANTLR_INT32* m_max; ++ const ANTLR_INT32* m_accept; ++ const ANTLR_INT32* m_special; ++ const ANTLR_INT32* const * m_transition; +- const ANTLR_INT32* const m_eot; +- const ANTLR_INT32* const m_eof; +- const ANTLR_INT32* const m_min; +- const ANTLR_INT32* const m_max; +- const ANTLR_INT32* const m_accept; +- const ANTLR_INT32* const m_special; +- const ANTLR_INT32* const *const m_transition; + + public: + CyclicDFA( ANTLR_INT32 decisionNumber diff --git a/antlr3.spec b/antlr3.spec index 084bb08..b567cf8 100644 --- a/antlr3.spec +++ b/antlr3.spec @@ -1,7 +1,7 @@ %global antlr_version 3.5.3 %global c_runtime_version 3.4 %global javascript_runtime_version 3.1 -%global baserelease 8 +%global baserelease 9 # This package needs itself to build. Use this to bootstrap on a new system. %bcond_with bootstrap @@ -58,6 +58,8 @@ Patch5: 0005-reproducible-parsers.patch Patch6: 0006-antlr3memory.hpp-fix-for-C-20-mode.patch # Compile for target 1.8 to fix build with JDK 11 Patch7: 0007-update-java-target.patch +# Fix source for tighter gcc template checks +Patch8: 0008-unconst-cyclicdfa-gcc-14.patch BuildRequires: ant BuildRequires: make @@ -350,6 +352,9 @@ install -pm 644 runtime/Cpp/include/* $RPM_BUILD_ROOT/%{_includedir}/ %doc tool/LICENSE.txt %changelog +* Thu Feb 1 2024 Avi Kivity - 1:3.5.3-9 +- Remove const specifiers in templates that are now flagged by gcc 14. + * Mon Jan 22 2024 Fedora Release Engineering - 1:3.5.3-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild From 05c54cd13650c83e61a4c5b21874272943126f61 Mon Sep 17 00:00:00 2001 From: Jiri Vanek Date: Tue, 27 Feb 2024 14:36:36 +0100 Subject: [PATCH 11/20] Rebuilt for java-21-openjdk as system jdk https://fedoraproject.org/wiki/Changes/Java21 --- antlr3.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/antlr3.spec b/antlr3.spec index b567cf8..966dc7d 100644 --- a/antlr3.spec +++ b/antlr3.spec @@ -1,7 +1,7 @@ %global antlr_version 3.5.3 %global c_runtime_version 3.4 %global javascript_runtime_version 3.1 -%global baserelease 9 +%global baserelease 10 # This package needs itself to build. Use this to bootstrap on a new system. %bcond_with bootstrap @@ -352,6 +352,9 @@ install -pm 644 runtime/Cpp/include/* $RPM_BUILD_ROOT/%{_includedir}/ %doc tool/LICENSE.txt %changelog +* Tue Feb 27 2024 Jiri Vanek - 1:3.5.3-10 +- Rebuilt for java-21-openjdk as system jdk + * Thu Feb 1 2024 Avi Kivity - 1:3.5.3-9 - Remove const specifiers in templates that are now flagged by gcc 14. From 028c81fa2366973be35003d16a39c982b35cd2c9 Mon Sep 17 00:00:00 2001 From: Jerry James Date: Tue, 16 Jul 2024 11:06:41 -0600 Subject: [PATCH 12/20] Minor spec file simplifications --- antlr3.spec | 25 ++++++++++++++----------- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/antlr3.spec b/antlr3.spec index 966dc7d..b722eb6 100644 --- a/antlr3.spec +++ b/antlr3.spec @@ -4,7 +4,7 @@ %global baserelease 10 # This package needs itself to build. Use this to bootstrap on a new system. -%bcond_with bootstrap +%bcond bootstrap 0 # Component versions to use when bootstrapping %global antlr2_version 2.7.7 @@ -13,6 +13,8 @@ %global ST4ver2 4.0.8 %global stringtemplatever 3.2.1 +%global giturl https://github.com/antlr/antlr3 + Summary: ANother Tool for Language Recognition Name: antlr3 Epoch: 1 @@ -20,8 +22,9 @@ Version: %{antlr_version} Release: %{baserelease}%{?dist} License: BSD-3-Clause URL: https://www.antlr3.org/ +VCS: git:%{giturl}.git -Source0: https://github.com/antlr/antlr3/archive/%{antlr_version}/%{name}-%{antlr_version}.tar.gz +Source0: %{giturl}/archive/%{antlr_version}/%{name}-%{antlr_version}.tar.gz Source1: http://www.antlr3.org/download/antlr-javascript-runtime-%{javascript_runtime_version}.zip %if %{with bootstrap} # Get prebuilt versions to bootstrap @@ -42,24 +45,24 @@ Source15: https://repo1.maven.org/maven2/antlr/antlr/%{antlr2_version}/ant Source16: https://repo1.maven.org/maven2/antlr/antlr/%{antlr2_version}/antlr-%{antlr2_version}.pom %endif -Patch0: 0001-java8-fix.patch +Patch: 0001-java8-fix.patch # Generate OSGi metadata -Patch1: osgi-manifest.patch +Patch: osgi-manifest.patch # Increase the default conversion timeout to avoid build failures when complex # grammars are processed on slow architectures. Patch from Debian. -Patch2: 0002-conversion-timeout.patch +Patch: 0002-conversion-timeout.patch # Fix problems with the C template. Patch from Debian. -Patch3: 0003-fix-c-template.patch +Patch: 0003-fix-c-template.patch # Keep Token.EOF_TOKEN for backwards compatibility. Patch from Debian. -Patch4: 0004-eof-token.patch +Patch: 0004-eof-token.patch # Make parsers reproducible. Patch from Debian. -Patch5: 0005-reproducible-parsers.patch +Patch: 0005-reproducible-parsers.patch # Fix for C++20 -Patch6: 0006-antlr3memory.hpp-fix-for-C-20-mode.patch +Patch: 0006-antlr3memory.hpp-fix-for-C-20-mode.patch # Compile for target 1.8 to fix build with JDK 11 -Patch7: 0007-update-java-target.patch +Patch: 0007-update-java-target.patch # Fix source for tighter gcc template checks -Patch8: 0008-unconst-cyclicdfa-gcc-14.patch +Patch: 0008-unconst-cyclicdfa-gcc-14.patch BuildRequires: ant BuildRequires: make From a4338032af980da5d5aa3f934db8311af035e919 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Wed, 17 Jul 2024 17:07:36 +0000 Subject: [PATCH 13/20] Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild --- antlr3.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/antlr3.spec b/antlr3.spec index b722eb6..c6f755e 100644 --- a/antlr3.spec +++ b/antlr3.spec @@ -1,7 +1,7 @@ %global antlr_version 3.5.3 %global c_runtime_version 3.4 %global javascript_runtime_version 3.1 -%global baserelease 10 +%global baserelease 11 # This package needs itself to build. Use this to bootstrap on a new system. %bcond bootstrap 0 @@ -355,6 +355,9 @@ install -pm 644 runtime/Cpp/include/* $RPM_BUILD_ROOT/%{_includedir}/ %doc tool/LICENSE.txt %changelog +* Wed Jul 17 2024 Fedora Release Engineering - 1:3.5.3-11 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + * Tue Feb 27 2024 Jiri Vanek - 1:3.5.3-10 - Rebuilt for java-21-openjdk as system jdk From 48f3dbfe1b628c14a4869f18801f44318bb036ad Mon Sep 17 00:00:00 2001 From: Jerry James Date: Mon, 13 Jan 2025 08:42:39 -0700 Subject: [PATCH 14/20] Clarify license of the tool subpackage - Move configuration actions to %conf --- antlr3.spec | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/antlr3.spec b/antlr3.spec index c6f755e..9922060 100644 --- a/antlr3.spec +++ b/antlr3.spec @@ -94,6 +94,7 @@ descriptions containing actions in a variety of target languages. %package tool Summary: ANother Tool for Language Recognition +License: BSD-3-Clause AND Apache-2.0 BuildArch: noarch Provides: %{name} = %{epoch}:%{antlr_version}-%{release} Obsoletes: %{name} < %{epoch}:%{antlr_version}-%{release} @@ -201,6 +202,8 @@ C++ runtime support for ANTLR-generated parsers. %prep %autosetup -p1 -n antlr3-%{antlr_version} -a 1 + +%conf sed -i "s,\${buildNumber},`cat %{_sysconfdir}/fedora-release` `date`," tool/src/main/resources/org/antlr/antlr.properties # remove pre-built artifacts @@ -355,6 +358,10 @@ install -pm 644 runtime/Cpp/include/* $RPM_BUILD_ROOT/%{_includedir}/ %doc tool/LICENSE.txt %changelog +* Mon Jan 13 2025 Jerry James - 1:3.5.3-11 +- Clarify license of the tool subpackage +- Move configuration actions to %%conf + * Wed Jul 17 2024 Fedora Release Engineering - 1:3.5.3-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild From 79c9a1d53d718f7fa6bbaaa7a4989246f7432f2d Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 16 Jan 2025 11:11:51 +0000 Subject: [PATCH 15/20] Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild --- antlr3.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/antlr3.spec b/antlr3.spec index 9922060..0f811c7 100644 --- a/antlr3.spec +++ b/antlr3.spec @@ -1,7 +1,7 @@ %global antlr_version 3.5.3 %global c_runtime_version 3.4 %global javascript_runtime_version 3.1 -%global baserelease 11 +%global baserelease 12 # This package needs itself to build. Use this to bootstrap on a new system. %bcond bootstrap 0 @@ -358,6 +358,9 @@ install -pm 644 runtime/Cpp/include/* $RPM_BUILD_ROOT/%{_includedir}/ %doc tool/LICENSE.txt %changelog +* Thu Jan 16 2025 Fedora Release Engineering - 1:3.5.3-12 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild + * Mon Jan 13 2025 Jerry James - 1:3.5.3-11 - Clarify license of the tool subpackage - Move configuration actions to %%conf From 4c8f11a746d8beaa5dd991ea43f4624616c10842 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Wed, 23 Jul 2025 17:03:54 +0000 Subject: [PATCH 16/20] Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild --- antlr3.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/antlr3.spec b/antlr3.spec index 0f811c7..bcd79b1 100644 --- a/antlr3.spec +++ b/antlr3.spec @@ -1,7 +1,7 @@ %global antlr_version 3.5.3 %global c_runtime_version 3.4 %global javascript_runtime_version 3.1 -%global baserelease 12 +%global baserelease 13 # This package needs itself to build. Use this to bootstrap on a new system. %bcond bootstrap 0 @@ -358,6 +358,9 @@ install -pm 644 runtime/Cpp/include/* $RPM_BUILD_ROOT/%{_includedir}/ %doc tool/LICENSE.txt %changelog +* Wed Jul 23 2025 Fedora Release Engineering - 1:3.5.3-13 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild + * Thu Jan 16 2025 Fedora Release Engineering - 1:3.5.3-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild From 68f3f86693f431425e32331be9616100a5adb416 Mon Sep 17 00:00:00 2001 From: Jiri Vanek Date: Tue, 29 Jul 2025 18:58:34 +0200 Subject: [PATCH 17/20] Rebuilt for java-25-openjdk as preffered jdk https://fedoraproject.org/wiki/Changes/Java25AndNoMoreSystemJdk Note, that since f43, you should be always explicit on what jdk to use. This commit should do exactly that. --- antlr3.spec | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/antlr3.spec b/antlr3.spec index bcd79b1..4dba31d 100644 --- a/antlr3.spec +++ b/antlr3.spec @@ -1,7 +1,7 @@ %global antlr_version 3.5.3 %global c_runtime_version 3.4 %global javascript_runtime_version 3.1 -%global baserelease 13 +%global baserelease 14 # This package needs itself to build. Use this to bootstrap on a new system. %bcond bootstrap 0 @@ -64,9 +64,9 @@ Patch: 0007-update-java-target.patch # Fix source for tighter gcc template checks Patch: 0008-unconst-cyclicdfa-gcc-14.patch -BuildRequires: ant +BuildRequires: ant-openjdk25 BuildRequires: make -BuildRequires: maven-local +BuildRequires: maven-local-openjdk25 %if %{without bootstrap} BuildRequires: mvn(org.antlr:antlr) BuildRequires: mvn(org.antlr:antlr3-maven-plugin) @@ -358,6 +358,9 @@ install -pm 644 runtime/Cpp/include/* $RPM_BUILD_ROOT/%{_includedir}/ %doc tool/LICENSE.txt %changelog +* Tue Jul 29 2025 jiri vanek - 1:3.5.3-14 +- Rebuilt for java-25-openjdk as preffered jdk + * Wed Jul 23 2025 Fedora Release Engineering - 1:3.5.3-13 - Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild From aa8d9cbe55b8d06bead5c1ca0b863b399bd6d0db Mon Sep 17 00:00:00 2001 From: Jerry James Date: Tue, 23 Sep 2025 11:37:47 -0600 Subject: [PATCH 18/20] Remove build dependency on maven-enforcer-plugin --- antlr3.spec | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/antlr3.spec b/antlr3.spec index 4dba31d..a62a1df 100644 --- a/antlr3.spec +++ b/antlr3.spec @@ -1,7 +1,7 @@ %global antlr_version 3.5.3 %global c_runtime_version 3.4 %global javascript_runtime_version 3.1 -%global baserelease 14 +%global baserelease 15 # This package needs itself to build. Use this to bootstrap on a new system. %bcond bootstrap 0 @@ -74,7 +74,6 @@ BuildRequires: mvn(org.antlr:ST4) BuildRequires: mvn(org.antlr:stringtemplate) %endif BuildRequires: mvn(org.apache.felix:maven-bundle-plugin) -BuildRequires: mvn(org.apache.maven.plugins:maven-enforcer-plugin) BuildRequires: mvn(org.apache.maven.plugins:maven-plugin-plugin) BuildRequires: mvn(org.apache.maven:maven-plugin-api) BuildRequires: mvn(org.codehaus.plexus:plexus-compiler-api) @@ -218,6 +217,7 @@ find -type f -a -name *.class -delete %pom_disable_module antlr-complete %pom_remove_plugin :maven-source-plugin +%pom_remove_plugin :maven-enforcer-plugin %pom_remove_plugin -r :maven-javadoc-plugin # workarounds bug in filtering (Mark invalid) @@ -358,6 +358,9 @@ install -pm 644 runtime/Cpp/include/* $RPM_BUILD_ROOT/%{_includedir}/ %doc tool/LICENSE.txt %changelog +* Tue Sep 23 2025 Jerry James - 1:3.5.3-15 +- Remove build dependency on maven-enforcer-plugin + * Tue Jul 29 2025 jiri vanek - 1:3.5.3-14 - Rebuilt for java-25-openjdk as preffered jdk From d10dab4fe2bf064579fe93a773c7851b8f2b674e Mon Sep 17 00:00:00 2001 From: Jerry James Date: Fri, 9 Jan 2026 12:12:24 -0700 Subject: [PATCH 19/20] Reflow the description text --- antlr3.spec | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/antlr3.spec b/antlr3.spec index a62a1df..8ed0ec2 100644 --- a/antlr3.spec +++ b/antlr3.spec @@ -86,10 +86,10 @@ BuildRequires: libtool ExclusiveArch: %{java_arches} %description -ANother Tool for Language Recognition, is a language tool -that provides a framework for constructing recognizers, -interpreters, compilers, and translators from grammatical -descriptions containing actions in a variety of target languages. +ANother Tool for Language Recognition, is a language tool that provides a +framework for constructing recognizers, interpreters, compilers, and +translators from grammatical descriptions containing actions in a variety of +target languages. %package tool Summary: ANother Tool for Language Recognition @@ -103,10 +103,10 @@ Requires: %{name}-java = %{epoch}:%{antlr_version}-%{release} Requires: javapackages-tools %description tool -ANother Tool for Language Recognition, is a language tool -that provides a framework for constructing recognizers, -interpreters, compilers, and translators from grammatical -descriptions containing actions in a variety of target languages. +ANother Tool for Language Recognition, is a language tool that provides a +framework for constructing recognizers, interpreters, compilers, and +translators from grammatical descriptions containing actions in a variety of +target languages. %package java Summary: Java run-time support for ANTLR-generated parsers @@ -189,9 +189,9 @@ Version: %{c_runtime_version} Release: %{antlr_version}.%{baserelease}%{?dist} %description C-docs -This package contains doxygen documentation with instruction -on how to use the C target in ANTLR and complete API description of the -C run-time support for ANTLR-generated parsers. +This package contains doxygen documentation with instruction on how to use the +C target in ANTLR and complete API description of the C run-time support for +ANTLR-generated parsers. %package C++-devel Summary: C++ runtime support for ANTLR-generated parsers From db55f1e6d779f063581afc4e7ec7962edaafbd96 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 16 Jan 2026 03:45:07 +0000 Subject: [PATCH 20/20] Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild --- antlr3.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/antlr3.spec b/antlr3.spec index 8ed0ec2..6837262 100644 --- a/antlr3.spec +++ b/antlr3.spec @@ -1,7 +1,7 @@ %global antlr_version 3.5.3 %global c_runtime_version 3.4 %global javascript_runtime_version 3.1 -%global baserelease 15 +%global baserelease 16 # This package needs itself to build. Use this to bootstrap on a new system. %bcond bootstrap 0 @@ -358,6 +358,9 @@ install -pm 644 runtime/Cpp/include/* $RPM_BUILD_ROOT/%{_includedir}/ %doc tool/LICENSE.txt %changelog +* Fri Jan 16 2026 Fedora Release Engineering - 1:3.5.3-16 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild + * Tue Sep 23 2025 Jerry James - 1:3.5.3-15 - Remove build dependency on maven-enforcer-plugin