4 Commits

2 changed files with 16 additions and 2 deletions

View File

@@ -1,3 +1,14 @@
-------------------------------------------------------------------
Tue Apr 29 08:39:49 UTC 2025 - Mykola Krachkovsky <w01dnick@gmail.com>
- Add new shell script antlr4-test-rig to run with main class
org.antlr.v4.gui.TestRig for testing/debugging grammars (boo#1241063)
-------------------------------------------------------------------
Mon Dec 2 15:58:42 UTC 2024 - Christian Goll <cgoll@suse.com>
- add cmake configuration files
-------------------------------------------------------------------
Tue Feb 20 10:53:36 UTC 2024 - Dominique Leuenberger <dimstar@opensuse.org>

View File

@@ -1,7 +1,7 @@
#
# spec file for package antlr4
#
# Copyright (c) 2023 SUSE LLC
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -174,7 +174,7 @@ export CXX=g++-7
export CFLAGS="$RPM_OPT_FLAGS"
export CXXFLAGS="$RPM_OPT_FLAGS"
%endif
%cmake -DWITH_DEMO=OFF -DANTLR_BUILD_CPP_TESTS=OFF -DANTLR_BUILD_SHARED=ON -DANTLR_BUILD_STATIC=OFF
%cmake -DWITH_DEMO=OFF -DANTLR_BUILD_CPP_TESTS=OFF -DANTLR_BUILD_SHARED=ON -DANTLR_BUILD_STATIC=OFF -DANTLR4_INSTALL=ON
%make_build
popd
@@ -183,6 +183,7 @@ popd
%fdupes -s %{buildroot}%{_javadocdir}
%jpackage_script org.antlr.v4.Tool "" "" antlr4/antlr4:antlr3-runtime:antlr4/antlr4-runtime:stringtemplate4:treelayout %{name} true
%jpackage_script org.antlr.v4.gui.TestRig "" "" antlr4/antlr4:antlr3-runtime:antlr4/antlr4-runtime:stringtemplate4:treelayout %{name}-test-rig true
pushd runtime/Cpp
%cmake_install
@@ -193,6 +194,7 @@ popd
%files tool -f .mfiles-antlr4
%{_bindir}/%{name}
%{_bindir}/%{name}-test-rig
%files java -f .mfiles-antlr4-runtime
%doc CHANGES.txt README.md
@@ -210,6 +212,7 @@ popd
%files -n %{runtime_cpp_lib}-devel
%{_libdir}/lib%{name}-runtime.so
%{_libdir}/cmake/antlr4*
%{_includedir}/%{name}-runtime/
%changelog