commit antlr4 for openSUSE:Factory

2020-04-04 Thread root
Hello community,

here is the log from the commit of package antlr4 for openSUSE:Factory checked 
in at 2020-04-04 12:24:29

Comparing /work/SRC/openSUSE:Factory/antlr4 (Old)
 and  /work/SRC/openSUSE:Factory/.antlr4.new.3248 (New)


Package is "antlr4"

Sat Apr  4 12:24:29 2020 rev:3 rq:791022 version:4.8

Changes:

--- /work/SRC/openSUSE:Factory/antlr4/antlr4.changes2019-11-07 
23:19:51.320750620 +0100
+++ /work/SRC/openSUSE:Factory/.antlr4.new.3248/antlr4.changes  2020-04-04 
12:25:26.551934454 +0200
@@ -1,0 +2,19 @@
+Thu Apr  2 21:41:40 UTC 2020 - Fridrich Strba 
+
+- Upgrade to version 4.8
+- Removed patch:
+  * antlr4-install-path.patch
++ replaced by antlr4-install-path.patch.in which allows us to
+  patch the right library version with a new release
+- Added patch:
+  * unicodedata.patch
++ The UnicodeData.java generated from unicodedata.st with newer
+  icu versions hits the limit of 64k for the size of a bytecode
+  function. It is due to increase in number of unicode codes.
+  This prevents upgrades of icu4j. So, we take the
+  UnicodeData.java generated using icu4j 63.1 and patch it into
+  the source tree instead of generating the file during the
+  build. This is a temporary solution before we find a proper
+  solution in the template itself.
+
+---

Old:

  antlr4-4.7.2.tar.gz
  antlr4-install-path.patch

New:

  antlr4-4.8.tar.gz
  antlr4-install-path.patch.in
  unicodedata.patch



Other differences:
--
++ antlr4.spec ++
--- /var/tmp/diff_new_pack.02T8rL/_old  2020-04-04 12:25:27.131934953 +0200
+++ /var/tmp/diff_new_pack.02T8rL/_new  2020-04-04 12:25:27.135934956 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package antlr4
 #
-# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2020 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -16,27 +16,26 @@
 #
 
 
-%define libver 4_7_2
+%define libver 4_8
 %define runtime_cpp_lib libantlr4-runtime
 %define runtime_cpp_libver %{runtime_cpp_lib}%{libver}
-
 Name:   antlr4
-Version:4.7.2
+Version:4.8
 Release:0
 Summary:Java parser generator
 # C# runtime is MIT-licensed, but currently it is not used in this package
 License:BSD-3-Clause
 URL:https://www.antlr.org/
 Source0:
https://github.com/antlr/antlr4/archive/%{version}.tar.gz#/antlr4-%{version}.tar.gz
-Patch0: antlr4-install-path.patch
+Source100:  antlr4-install-path.patch.in
+Patch0: unicodedata.patch
 BuildRequires:  cmake >= 3.3.0
 BuildRequires:  fdupes
 BuildRequires:  gcc-c++
 BuildRequires:  libstdc++-devel
 BuildRequires:  maven-local
-BuildRequires:  pkg-config
+BuildRequires:  pkgconfig
 BuildRequires:  mvn(com.ibm.icu:icu4j)
-BuildRequires:  mvn(com.webguys:string-template-maven-plugin)
 BuildRequires:  mvn(org.abego.treelayout:org.abego.treelayout.core)
 BuildRequires:  mvn(org.antlr:ST4)
 BuildRequires:  mvn(org.antlr:antlr-runtime)
@@ -53,7 +52,6 @@
 BuildRequires:  mvn(org.glassfish:javax.json)
 BuildRequires:  mvn(org.sonatype.oss:oss-parent:pom:)
 BuildRequires:  mvn(org.sonatype.plexus:plexus-build-api)
-BuildRequires:  mvn(org.twdata.maven:mojo-executor)
 BuildRequires:  pkgconfig(uuid)
 #!BuildRequires: stringtemplate4 antlr3-tool
 
@@ -128,11 +126,15 @@
 
 %prep
 %setup -q
-%patch0 -p1
+cat %{SOURCE100} | sed 's#@LIBVER@#%{libver}#g' | patch -p1 -u
 
 find -name \*.jar -delete
 perl -pi -e 's#\\>#>#g' 
tool/resources/org/antlr/v4/tool/templates/unicodedata.st
 
+# Temporary solution to a proble of code too big when generated with newer 
ICU4J versions
+%pom_remove_plugin :string-template-maven-plugin tool
+%patch0
+
 # Missing test deps: org.seleniumhq.selenium:selenium-java
 %pom_disable_module runtime-testsuite
 %pom_disable_module runtime-testsuite/annotations
@@ -153,7 +155,7 @@
 
 pushd runtime/Cpp
 %cmake -DWITH_DEMO=False
-make %{?_smp_mflags}
+%make_build
 popd
 
 %install
@@ -166,10 +168,9 @@
 %cmake_install
 popd
 # drop static library as unused
-rm %{buildroot}/%{_libdir}/lib%{name}-runtime.a
+rm -f %{buildroot}/%{_libdir}/lib%{name}-runtime.a
 
 %post -n %{runtime_cpp_libver} -p /sbin/ldconfig
-
 %postun -n %{runtime_cpp_libver} -p /sbin/ldconfig
 
 %files tool -f .mfiles-antlr4

++ antlr4-4.7.2.tar.gz -> antlr4-4.8.tar.gz ++
 11908 lines of diff (skipped)

++ antlr4-install-path.patch.in ++
diff -uNr antlr4-4.7.2.org/runtime/Cpp/CMakeLists.txt 
antlr4-4.7.2/runtime/Cpp/CMakeLists.txt
--- antlr4-4.7.2.org/runtime/Cpp/CMakeLists.txt 2018-12-18 20:35:24.0 

commit antlr4 for openSUSE:Factory

2019-11-07 Thread root
Hello community,

here is the log from the commit of package antlr4 for openSUSE:Factory checked 
in at 2019-11-07 23:19:42

Comparing /work/SRC/openSUSE:Factory/antlr4 (Old)
 and  /work/SRC/openSUSE:Factory/.antlr4.new.2990 (New)


Package is "antlr4"

Thu Nov  7 23:19:42 2019 rev:2 rq:746117 version:4.7.2

Changes:

--- /work/SRC/openSUSE:Factory/antlr4/antlr4.changes2019-06-12 
13:12:40.480918886 +0200
+++ /work/SRC/openSUSE:Factory/.antlr4.new.2990/antlr4.changes  2019-11-07 
23:19:51.320750620 +0100
@@ -1,0 +2,15 @@
+Sat Nov  2 21:55:47 UTC 2019 - Fridrich Strba 
+
+- Added Java build
+  * antlr4-java -> Java runtime package
+  * antlr4-tool -> antlr4 grammar compiler
+  * antlr4-maven-plugin -> plugin to generate antlr4 parsers in
+maven build
+  * antlr4-javadoc -> documentation
+
+---
+Thu Oct 17 13:11:57 UTC 2019 - Richard Brown 
+
+- Remove obsolete Groups tag (fate#326485)
+
+---



Other differences:
--
++ antlr4.spec ++
--- /var/tmp/diff_new_pack.oxGFlP/_old  2019-11-07 23:19:53.044752469 +0100
+++ /var/tmp/diff_new_pack.oxGFlP/_new  2019-11-07 23:19:53.056752482 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package antlr4
 #
-# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -12,19 +12,9 @@
 # license that conforms to the Open Source Definition (Version 1.9)
 # published by the Open Source Initiative.
 
-# Please submit bugfixes or comments via http://bugs.opensuse.org/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
 #
 
-%bcond_with complete
-%bcond_without runtime_cpp
-# TODO: using of conditions
-%bcond_with runtime_cs
-%bcond_with runtime_go
-%bcond_with runtime_java
-%bcond_with runtime_js
-%bcond_with runtime_python2
-%bcond_with runtime_python3
-%bcond_with runtime_swift
 
 %define libver 4_7_2
 %define runtime_cpp_lib libantlr4-runtime
@@ -33,36 +23,92 @@
 Name:   antlr4
 Version:4.7.2
 Release:0
-Summary:A parser generator
+Summary:Java parser generator
+# C# runtime is MIT-licensed, but currently it is not used in this package
 License:BSD-3-Clause
-Group:  Development/Tools/Other
-Url:http://www.antlr.org/
-Source: %{name}-%{version}.tar.gz
-# PATCH-FIX-OPENSUSE Change installation paths for docs to openSUSE 
default
+URL:https://www.antlr.org/
+Source0:
https://github.com/antlr/antlr4/archive/%{version}.tar.gz#/antlr4-%{version}.tar.gz
 Patch0: antlr4-install-path.patch
-%if %{with complete}
-BuildRequires:  java-devel >= 1.7
-BuildRequires:  maven
-%endif
-#BuildArch:  noarch
+BuildRequires:  cmake >= 3.3.0
+BuildRequires:  fdupes
+BuildRequires:  gcc-c++
+BuildRequires:  libstdc++-devel
+BuildRequires:  maven-local
+BuildRequires:  pkg-config
+BuildRequires:  mvn(com.ibm.icu:icu4j)
+BuildRequires:  mvn(com.webguys:string-template-maven-plugin)
+BuildRequires:  mvn(org.abego.treelayout:org.abego.treelayout.core)
+BuildRequires:  mvn(org.antlr:ST4)
+BuildRequires:  mvn(org.antlr:antlr-runtime)
+BuildRequires:  mvn(org.antlr:antlr3-maven-plugin)
+BuildRequires:  mvn(org.apache.felix:maven-bundle-plugin)
+BuildRequires:  mvn(org.apache.maven.plugin-tools:maven-plugin-annotations)
+BuildRequires:  mvn(org.apache.maven.plugins:maven-plugin-plugin)
+BuildRequires:  mvn(org.apache.maven.plugins:maven-source-plugin)
+BuildRequires:  mvn(org.apache.maven:maven-plugin-api)
+BuildRequires:  mvn(org.apache.maven:maven-project)
+BuildRequires:  mvn(org.codehaus.mojo:build-helper-maven-plugin)
+BuildRequires:  mvn(org.codehaus.plexus:plexus-compiler-api)
+BuildRequires:  mvn(org.codehaus.plexus:plexus-utils)
+BuildRequires:  mvn(org.glassfish:javax.json)
+BuildRequires:  mvn(org.sonatype.oss:oss-parent:pom:)
+BuildRequires:  mvn(org.sonatype.plexus:plexus-build-api)
+BuildRequires:  mvn(org.twdata.maven:mojo-executor)
+BuildRequires:  pkgconfig(uuid)
+#!BuildRequires: stringtemplate4 antlr3-tool
 
 %description
-ANTLR (ANother Tool for Language Recognition) is a parser generator
-for reading, processing, executing, or translating structured text or
-binary files. It can be used to build languages, tools, and
-frameworks. From a grammar, ANTLR generates a parser that can build
-and walk parse trees.
+ANTLR (ANother Tool for Language Recognition) is a parser
+generator for reading, processing, executing, or translating
+structured text or binary files.  It can be used to