|
|
2f3030c |
# NOTE: A PHP runtime is available as a separate project:
|
|
|
2f3030c |
# https://github.com/antlr/antlr-php-runtime/
|
|
|
ef8cbeb |
#
|
|
|
ef8cbeb |
# NOTE: A dart target is available, should dart ever be added to Fedora.
|
|
|
ff823e2 |
#
|
|
|
ff823e2 |
# NOTE: A C# target is available. It can be built into a DLL successfully with
|
|
|
ff823e2 |
# the dotnet package, but we don't seem to be able to create a nupkg with the
|
|
|
ff823e2 |
# current tooling, nor is there a well-defined place where a nupkg should be
|
|
|
ff823e2 |
# installed.
|
|
|
2f3030c |
|
|
|
2f3030c |
%global swiftarches x86_64 aarch64
|
|
|
2f3030c |
%global swiftdir %{_prefix}/lib/swift/linux
|
|
|
2f3030c |
|
|
|
ab4b8c6 |
# Use when a previous version has broken deps
|
|
|
ab4b8c6 |
%bcond_with bootstrap
|
|
|
ab4b8c6 |
|
|
|
2f3030c |
Name: antlr4-project
|
|
|
ab4b8c6 |
Version: 4.9.3
|
|
|
ab4b8c6 |
Release: 6%{?dist}
|
|
|
2f3030c |
Summary: Parser generator (ANother Tool for Language Recognition)
|
|
|
2f3030c |
|
|
|
2f3030c |
License: BSD
|
|
|
6a3e65b |
URL: https://www.antlr.org/
|
|
|
2f3030c |
Source0: https://github.com/antlr/antlr4/archive/%{version}/antlr4-%{version}.tar.gz
|
|
|
899526a |
# Fix some javadoc problems
|
|
|
ef8cbeb |
# https://github.com/antlr/antlr4/pull/2960
|
|
|
f05ce6b |
Patch0: antlr4-javadoc.patch
|
|
|
2f3030c |
|
|
|
2af68a8 |
BuildRequires: chrpath
|
|
|
2f3030c |
BuildRequires: cmake
|
|
|
2f3030c |
BuildRequires: gcc-c++
|
|
|
2f3030c |
BuildRequires: help2man
|
|
|
60bae7c |
BuildRequires: make
|
|
|
2f3030c |
BuildRequires: maven-local
|
|
|
2f3030c |
BuildRequires: mvn(com.ibm.icu:icu4j)
|
|
|
2f3030c |
BuildRequires: mvn(com.webguys:string-template-maven-plugin)
|
|
|
2f3030c |
BuildRequires: mvn(org.abego.treelayout:org.abego.treelayout.core)
|
|
|
40e296d |
BuildRequires: mvn(org.antlr:antlr3-maven-plugin)
|
|
|
ab4b8c6 |
%if %{without bootstrap}
|
|
|
ab4b8c6 |
BuildRequires: mvn(org.antlr:antlr4-maven-plugin)
|
|
|
ab4b8c6 |
%endif
|
|
|
ab4b8c6 |
BuildRequires: mvn(org.antlr:antlr-runtime)
|
|
|
ab4b8c6 |
BuildRequires: mvn(org.antlr:ST4)
|
|
|
2f3030c |
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
|
|
|
40e296d |
BuildRequires: mvn(org.apache.maven:maven-core)
|
|
|
40e296d |
BuildRequires: mvn(org.apache.maven:maven-plugin-api)
|
|
|
ab4b8c6 |
BuildRequires: mvn(org.apache.maven.plugins:maven-plugin-plugin)
|
|
|
ab4b8c6 |
BuildRequires: mvn(org.apache.maven.plugins:maven-source-plugin)
|
|
|
ab4b8c6 |
BuildRequires: mvn(org.apache.maven.plugin-tools:maven-plugin-annotations)
|
|
|
2f3030c |
BuildRequires: mvn(org.codehaus.mojo:build-helper-maven-plugin)
|
|
|
2f3030c |
BuildRequires: mvn(org.codehaus.plexus:plexus-compiler-api)
|
|
|
2f3030c |
BuildRequires: mvn(org.glassfish:javax.json)
|
|
|
2f3030c |
BuildRequires: mvn(org.sonatype.plexus:plexus-build-api)
|
|
|
2f3030c |
BuildRequires: pkgconfig(uuid)
|
|
|
2f3030c |
BuildRequires: python3-devel
|
|
|
45ee573 |
BuildRequires: %{py3_dist pip}
|
|
|
60bae7c |
BuildRequires: %{py3_dist setuptools}
|
|
|
45ee573 |
BuildRequires: %{py3_dist wheel}
|
|
|
ef8cbeb |
BuildRequires: utf8cpp-devel
|
|
|
2f3030c |
|
|
|
ff823e2 |
# We can no longer successfully build or install the mono runtime. See comment
|
|
|
ff823e2 |
# at the top of this spec file.
|
|
|
ff823e2 |
# This can be removed when Fedora 37 reaches EOL.
|
|
|
ff823e2 |
Obsoletes: mono-antlr4-runtime < 4.9.1
|
|
|
ff823e2 |
|
|
|
2af68a8 |
# We can no longer successfully build javadoc documentation.
|
|
|
2af68a8 |
# See https://github.com/fedora-java/xmvn/issues/58
|
|
|
2af68a8 |
Obsoletes: antlr4-javadoc < 4.9.2-2
|
|
|
2af68a8 |
|
|
|
2f3030c |
%global _desc %{expand:
|
|
|
2f3030c |
ANTLR (ANother Tool for Language Recognition) is a powerful parser
|
|
|
2f3030c |
generator for reading, processing, executing, or translating structured
|
|
|
2f3030c |
text or binary files. It is widely used to build languages, tools, and
|
|
|
2f3030c |
frameworks. From a grammar, ANTLR generates a parser that can build
|
|
|
2f3030c |
and walk parse trees.}
|
|
|
2f3030c |
|
|
|
2f3030c |
%description %_desc
|
|
|
2f3030c |
|
|
|
ab4b8c6 |
%package -n antlr4-runtime-test-annotations
|
|
|
ab4b8c6 |
Summary: ANTLR runtime test annotations
|
|
|
ab4b8c6 |
BuildArch: noarch
|
|
|
ab4b8c6 |
|
|
|
ab4b8c6 |
%description -n antlr4-runtime-test-annotations %_desc
|
|
|
ab4b8c6 |
|
|
|
ab4b8c6 |
This package provides runtime library test annotations used by Java
|
|
|
ab4b8c6 |
ANTLR parsers.
|
|
|
ab4b8c6 |
|
|
|
ab4b8c6 |
%package -n antlr4-runtime-test-annotation-processors
|
|
|
ab4b8c6 |
Summary: ANTLR runtime test annotation processors
|
|
|
ab4b8c6 |
BuildArch: noarch
|
|
|
ab4b8c6 |
Requires: antlr4-runtime-test-annotations = %{version}-%{release}
|
|
|
ab4b8c6 |
|
|
|
ab4b8c6 |
%description -n antlr4-runtime-test-annotation-processors %_desc
|
|
|
ab4b8c6 |
|
|
|
ab4b8c6 |
This package provides runtime library test annotation processors used by
|
|
|
ab4b8c6 |
Java ANTLR parsers.
|
|
|
ab4b8c6 |
|
|
|
2f3030c |
%package -n antlr4-runtime
|
|
|
2f3030c |
Summary: ANTLR runtime
|
|
|
2f3030c |
BuildArch: noarch
|
|
|
2f3030c |
|
|
|
2f3030c |
%description -n antlr4-runtime %_desc
|
|
|
2f3030c |
|
|
|
2f3030c |
This package provides the runtime library used by Java ANTLR parsers.
|
|
|
2f3030c |
|
|
|
2f3030c |
%package -n antlr4
|
|
|
2f3030c |
Summary: Parser generator (ANother Tool for Language Recognition)
|
|
|
2f3030c |
BuildArch: noarch
|
|
|
2f3030c |
Requires: antlr4-runtime = %{version}-%{release}
|
|
|
9d26334 |
Requires: javapackages-tools
|
|
|
2f3030c |
|
|
|
2f3030c |
%description -n antlr4 %_desc
|
|
|
2f3030c |
|
|
|
2f3030c |
This package provides the ANTLR parser generator.
|
|
|
2f3030c |
|
|
|
2f3030c |
%package -n antlr4-maven-plugin
|
|
|
2f3030c |
Summary: ANTLR plugin for Apache Maven
|
|
|
2f3030c |
BuildArch: noarch
|
|
|
2f3030c |
Requires: antlr4 = %{version}-%{release}
|
|
|
2f3030c |
|
|
|
2f3030c |
%description -n antlr4-maven-plugin %_desc
|
|
|
2f3030c |
|
|
|
2f3030c |
This package provides a plugin for Apache Maven which can be used to
|
|
|
2f3030c |
generate ANTLR parsers during project build.
|
|
|
2f3030c |
|
|
|
2f3030c |
%package -n antlr4-doc
|
|
|
2f3030c |
Summary: ANTLR4 documentation
|
|
|
2f3030c |
BuildArch: noarch
|
|
|
2f3030c |
|
|
|
2f3030c |
%description -n antlr4-doc %_desc
|
|
|
2f3030c |
|
|
|
2f3030c |
This package contains ANTLR4 documentation.
|
|
|
2f3030c |
|
|
|
2f3030c |
%package -n antlr4-cpp-runtime
|
|
|
2f3030c |
Summary: ANTLR runtime for C++
|
|
|
2f3030c |
|
|
|
2f3030c |
%description -n antlr4-cpp-runtime %_desc
|
|
|
2f3030c |
|
|
|
2f3030c |
This package provides the runtime library used by C++ ANTLR parsers.
|
|
|
2f3030c |
|
|
|
2f3030c |
%package -n antlr4-cpp-runtime-devel
|
|
|
2f3030c |
Summary: Header files for programs that use C++ ANTLR parsers
|
|
|
2f3030c |
Requires: antlr4-cpp-runtime%{?_isa} = %{version}-%{release}
|
|
|
2f3030c |
|
|
|
2f3030c |
%description -n antlr4-cpp-runtime-devel %_desc
|
|
|
2f3030c |
|
|
|
2f3030c |
This package provides header files for programs that use C++ ANTLR
|
|
|
2f3030c |
parsers.
|
|
|
2f3030c |
|
|
|
2f3030c |
%ifarch %go_arches
|
|
|
2f3030c |
%global goipath github.com/antlr/antlr4/runtime/Go/antlr
|
|
|
2f3030c |
|
|
|
2f3030c |
%package -n golang-antlr4-runtime-devel
|
|
|
2f3030c |
Summary: ANTLR runtime for Go
|
|
|
2f3030c |
BuildArch: noarch
|
|
|
2f3030c |
BuildRequires: go-rpm-macros
|
|
|
2f3030c |
|
|
|
2f3030c |
%description -n golang-antlr4-runtime-devel %_desc
|
|
|
2f3030c |
|
|
|
2f3030c |
This package provides the runtime library used by Go ANTLR parsers.
|
|
|
2f3030c |
%endif
|
|
|
2f3030c |
|
|
|
ef8cbeb |
%ifarch %nodejs_arches
|
|
|
ef8cbeb |
%package -n nodejs-antlr4
|
|
|
ef8cbeb |
Summary: ANTLR runtime for JavaScript
|
|
|
ef8cbeb |
BuildArch: noarch
|
|
|
ef8cbeb |
BuildRequires: nodejs
|
|
|
ef8cbeb |
|
|
|
ef8cbeb |
%description -n nodejs-antlr4 %_desc
|
|
|
ef8cbeb |
|
|
|
ef8cbeb |
This package provides the runtime library used by JavaScript ANTLR
|
|
|
ef8cbeb |
parsers.
|
|
|
ef8cbeb |
%endif
|
|
|
ef8cbeb |
|
|
|
2f3030c |
%package -n python3-antlr4-runtime
|
|
|
2f3030c |
Summary: ANTLR runtime for Python 3
|
|
|
2f3030c |
BuildArch: noarch
|
|
|
2f3030c |
|
|
|
2f3030c |
%description -n python3-antlr4-runtime %_desc
|
|
|
2f3030c |
|
|
|
2f3030c |
This package provides the runtime library used by Python 3 ANTLR parsers.
|
|
|
2f3030c |
|
|
|
2f3030c |
%ifarch %swiftarches
|
|
|
2f3030c |
%package -n swift-antlr4-runtime
|
|
|
2f3030c |
Summary: ANTLR runtime for swift
|
|
|
2f3030c |
BuildRequires: swift-lang
|
|
|
2f3030c |
|
|
|
2f3030c |
%description -n swift-antlr4-runtime %_desc
|
|
|
2f3030c |
|
|
|
2f3030c |
This package provides the runtime library used by swift ANTLR parsers.
|
|
|
2f3030c |
%endif
|
|
|
2f3030c |
|
|
|
2f3030c |
%prep
|
|
|
2f3030c |
%autosetup -n antlr4-%{version} -p1
|
|
|
2f3030c |
find -name \*.jar -delete
|
|
|
2f3030c |
|
|
|
2f3030c |
# Update for recent stringtemplate versions
|
|
|
2f3030c |
sed -i 's,\\>,>,g' tool/resources/org/antlr/v4/tool/templates/unicodedata.st
|
|
|
2f3030c |
|
|
|
2f3030c |
# sonatype-oss-parent is deprecated in Fedora
|
|
|
2f3030c |
%pom_remove_parent
|
|
|
2f3030c |
|
|
|
ab53834 |
# Xmvn javadoc mojo is in use
|
|
|
ab53834 |
%pom_remove_plugin -r :maven-javadoc-plugin
|
|
|
ab53834 |
|
|
|
2f3030c |
# Missing test deps: org.seleniumhq.selenium:selenium-java
|
|
|
2f3030c |
%pom_disable_module runtime-testsuite
|
|
|
2f3030c |
%pom_disable_module tool-testsuite
|
|
|
2f3030c |
|
|
|
2f3030c |
# Missing test dep:
|
|
|
2f3030c |
# io.takari.maven.plugins:takari-plugin-testing
|
|
|
2f3030c |
%pom_remove_dep -r :takari-plugin-testing
|
|
|
2f3030c |
|
|
|
ab4b8c6 |
# Missing plugin
|
|
|
2f3030c |
# io.takari.maven.plugins:takari-lifecycle-plugin
|
|
|
2f3030c |
%pom_remove_plugin -r :takari-lifecycle-plugin
|
|
|
2f3030c |
|
|
|
2f3030c |
# Don't bundle dependencies
|
|
|
2f3030c |
%pom_remove_plugin :maven-shade-plugin tool
|
|
|
2f3030c |
|
|
|
ab4b8c6 |
# Need some javax.json classes
|
|
|
ab4b8c6 |
%pom_add_dep javax.json:javax.json-api tool
|
|
|
ab4b8c6 |
|
|
|
ab4b8c6 |
# Replace dep on deprecated maven-project with maven-core
|
|
|
ab4b8c6 |
%pom_change_dep org.apache.maven:maven-project:2.2.1 org.apache.maven:maven-core:3.6.1 antlr4-maven-plugin
|
|
|
ab4b8c6 |
|
|
|
ab4b8c6 |
# Replace dep on maven-jdk-tools-wrapper with dep on tools.jar
|
|
|
ab4b8c6 |
%pom_change_dep :maven-jdk-tools-wrapper com.sun:tools runtime-testsuite/processors
|
|
|
ab4b8c6 |
|
|
|
2f3030c |
%mvn_package :antlr4-master antlr4-runtime
|
|
|
2f3030c |
|
|
|
ab4b8c6 |
%if %{with bootstrap}
|
|
|
ab4b8c6 |
# Avoid the need to build with an older version of antlr4
|
|
|
ab4b8c6 |
%pom_remove_plugin org.antlr:antlr4-maven-plugin runtime/Java
|
|
|
ab4b8c6 |
cp -p runtime/Cpp/runtime/src/tree/xpath/XPathLexer.tokens runtime/Java/src
|
|
|
ab4b8c6 |
%endif
|
|
|
ab4b8c6 |
|
|
|
ab4b8c6 |
# Build for JDK 1.8
|
|
|
ab4b8c6 |
sed -i 's/1\.7/1.8/g' pom.xml
|
|
|
ab4b8c6 |
|
|
|
ef8cbeb |
# Use utf8cpp instead of the deprecated wstring_convert
|
|
|
ef8cbeb |
sed -i 's/# \(.*DUSE_UTF8_INSTEAD_OF_CODECVT.*\)/\1/' runtime/Cpp/CMakeLists.txt
|
|
|
ef8cbeb |
|
|
|
ab4b8c6 |
# Change library install directory on 64-bit platforms
|
|
|
ab4b8c6 |
if [ "%{_lib}" != "lib" ]; then
|
|
|
ab4b8c6 |
sed -i 's/DESTINATION lib/&64/' runtime/Cpp/runtime/CMakeLists.txt
|
|
|
ab4b8c6 |
fi
|
|
|
ab4b8c6 |
|
|
|
2f3030c |
%build
|
|
|
2f3030c |
export JAVA_HOME=%{_jvmdir}/java
|
|
|
2f3030c |
|
|
|
2f3030c |
# Build for Java
|
|
|
2f3030c |
# Due to the missing takari packages, we cannot run the tests
|
|
|
2af68a8 |
%mvn_build -s -f -j -- -Dsource=1.8
|
|
|
2f3030c |
|
|
|
2f3030c |
# Build the C++ runtime
|
|
|
2f3030c |
cd runtime/Cpp
|
|
|
ab4b8c6 |
%cmake -DANTLR4_INSTALL=ON -DCMAKE_BUILD_TYPE=RelWithDebInfo
|
|
|
899526a |
%cmake_build
|
|
|
2f3030c |
cd -
|
|
|
2f3030c |
|
|
|
2f3030c |
# Build the Python 3 runtime
|
|
|
2f3030c |
cd runtime/Python3
|
|
|
45ee573 |
%pyproject_wheel
|
|
|
2f3030c |
cd -
|
|
|
2f3030c |
|
|
|
2f3030c |
%ifarch %swiftarches
|
|
|
2f3030c |
# Build the Swift runtime
|
|
|
2f3030c |
cd runtime/Swift
|
|
|
2f3030c |
# Swift insists on a space between -j and the number, so cannot use _smp_mflags
|
|
|
523ff68 |
swift build -c release %{?_smp_build_ncpus:-j %_smp_build_ncpus} \
|
|
|
523ff68 |
-Xlinker --build-id -Xlinker --as-needed -Xlinker -z -Xlinker relro \
|
|
|
523ff68 |
-Xlinker -z -Xlinker now
|
|
|
2f3030c |
cd -
|
|
|
2f3030c |
%endif
|
|
|
2f3030c |
|
|
|
2f3030c |
%install
|
|
|
2f3030c |
# Install for Java; cannot use %%mvn_install as it passes %%name to -n
|
|
|
2f3030c |
xmvn-install -R .xmvn-reactor -n antlr4 -d %{buildroot}
|
|
|
2f3030c |
jdir=target/site/apidocs
|
|
|
2f3030c |
[ -d .xmvn/apidocs ] && jdir=.xmvn/apidocs
|
|
|
2f3030c |
mkdir -p %{buildroot}%{_licensedir}
|
|
|
2f3030c |
if [ -d "${jdir}" ]; then
|
|
|
2f3030c |
install -dm755 %{buildroot}%{_javadocdir}/antlr4
|
|
|
2f3030c |
cp -pr "${jdir}"/* %{buildroot}%{_javadocdir}/antlr4
|
|
|
2f3030c |
echo '%{_javadocdir}/antlr4' >>.mfiles-javadoc
|
|
|
2f3030c |
fi
|
|
|
2f3030c |
|
|
|
2f3030c |
%jpackage_script org.antlr.v4.Tool "" "" antlr4/antlr4:antlr3-runtime:antlr4/antlr4-runtime:stringtemplate4:treelayout antlr4 true
|
|
|
2f3030c |
|
|
|
2f3030c |
# Install the C++ runtime
|
|
|
899526a |
cd runtime/Cpp
|
|
|
899526a |
%cmake_install
|
|
|
2f3030c |
rm -f %{buildroot}%{_libdir}/libantlr4-runtime.a
|
|
|
899526a |
cd -
|
|
|
2f3030c |
|
|
|
2f3030c |
# Install the Go runtime
|
|
|
2f3030c |
%ifarch %go_arches
|
|
|
2f3030c |
mkdir -p %{buildroot}%{gopath}/src/%{goipath}
|
|
|
2f3030c |
cp -p runtime/Go/antlr/* %{buildroot}%{gopath}/src/%{goipath}
|
|
|
2f3030c |
cat > %{buildroot}%{gopath}/src/%{goipath}/.goipath << EOF
|
|
|
2f3030c |
version:%{version}-%{release}
|
|
|
2f3030c |
excluderegex:.*example.*
|
|
|
2f3030c |
EOF
|
|
|
2f3030c |
%endif
|
|
|
2f3030c |
|
|
|
ef8cbeb |
# Install the JavaScript runtime
|
|
|
ef8cbeb |
%ifarch %nodejs_arches
|
|
|
ef8cbeb |
mkdir -p %{buildroot}%{nodejs_sitelib}
|
|
|
ef8cbeb |
cp -a runtime/JavaScript/src/antlr4 %{buildroot}%{nodejs_sitelib}
|
|
|
ef8cbeb |
%endif
|
|
|
ef8cbeb |
|
|
|
2f3030c |
# Install the Python 3 runtime
|
|
|
2f3030c |
cd runtime/Python3
|
|
|
45ee573 |
%pyproject_install
|
|
|
06c679a |
%pyproject_save_files antlr4
|
|
|
2f3030c |
cd -
|
|
|
2f3030c |
|
|
|
2f3030c |
%ifarch %swiftarches
|
|
|
2f3030c |
# Install the Swift runtime
|
|
|
ab4b8c6 |
cd runtime/Swift
|
|
|
2f3030c |
mkdir -p %{buildroot}%{swiftdir}/%{_arch}
|
|
|
2f3030c |
cp -p .build/release/libAntlr4.so %{buildroot}%{swiftdir}
|
|
|
2f3030c |
cp -p .build/release/Antlr4.swift{doc,module} %{buildroot}%{swiftdir}/%{_arch}
|
|
|
ab4b8c6 |
cd -
|
|
|
2af68a8 |
|
|
|
2af68a8 |
# Fix the rpath to have $ORIGIN first
|
|
|
2af68a8 |
chrpath -r '$ORIGIN:%{_libexecdir}/swift/lib/swift/linux' \
|
|
|
2af68a8 |
%{buildroot}%{swiftdir}/libAntlr4.so
|
|
|
2f3030c |
%endif
|
|
|
2f3030c |
|
|
|
2f3030c |
# Create man pages
|
|
|
2f3030c |
export PYTHONPATH=%{buildroot}%{python3_sitelib}
|
|
|
2f3030c |
mkdir -p %{buildroot}%{_mandir}/man1
|
|
|
ab4b8c6 |
%if %{with bootstrap}
|
|
|
ef8cbeb |
cat > antlr4 << EOF
|
|
|
ef8cbeb |
java -cp %{buildroot}%{_javadir}/antlr4/antlr4.jar:%{buildroot}%{_javadir}/antlr4/antlr4-runtime.jar:$(build-classpath antlr3-runtime stringtemplate4 treelayout) org.antlr.v4.Tool
|
|
|
ef8cbeb |
EOF
|
|
|
ef8cbeb |
chmod a+x antlr4
|
|
|
6a3e65b |
help2man -N --version-string=%{version} -h '' ./antlr4 > \
|
|
|
ef8cbeb |
%{buildroot}%{_mandir}/man1/antlr4.1
|
|
|
ef8cbeb |
cd %{buildroot}%{_bindir}
|
|
|
ab4b8c6 |
%else
|
|
|
ab4b8c6 |
cd %{buildroot}%{_bindir}
|
|
|
ab4b8c6 |
help2man -N --version-string=%{version} -h '' ./antlr4 > \
|
|
|
ab4b8c6 |
%{buildroot}%{_mandir}/man1/antlr4.1
|
|
|
ab4b8c6 |
%endif
|
|
|
6a3e65b |
help2man -N --version-string=%{version} ./pygrun > \
|
|
|
2f3030c |
%{buildroot}%{_mandir}/man1/pygrun.1
|
|
|
2f3030c |
cd -
|
|
|
2f3030c |
|
|
|
2f3030c |
# Clean up bits we do not want
|
|
|
2f3030c |
rm -fr %{buildroot}%{_docdir}/libantlr4
|
|
|
2f3030c |
|
|
|
ab4b8c6 |
%files -n antlr4-runtime-test-annotations -f .mfiles-antlr4-runtime-test-annotations
|
|
|
ab4b8c6 |
%license LICENSE.txt
|
|
|
ab4b8c6 |
|
|
|
ab4b8c6 |
%files -n antlr4-runtime-test-annotation-processors -f .mfiles-antlr4-runtime-test-annotation-processors
|
|
|
ab4b8c6 |
|
|
|
2f3030c |
%files -n antlr4-runtime -f .mfiles-antlr4-runtime
|
|
|
2f3030c |
%doc README.md
|
|
|
2f3030c |
%license LICENSE.txt
|
|
|
2f3030c |
|
|
|
2f3030c |
%files -n antlr4 -f .mfiles-antlr4
|
|
|
ab4b8c6 |
%doc CHANGES.txt contributors.txt
|
|
|
2f3030c |
%{_bindir}/antlr4
|
|
|
2f3030c |
%{_mandir}/man1/antlr4.1*
|
|
|
2f3030c |
|
|
|
2f3030c |
%files -n antlr4-maven-plugin -f .mfiles-antlr4-maven-plugin
|
|
|
2f3030c |
|
|
|
2f3030c |
%files -n antlr4-doc
|
|
|
2f3030c |
%doc doc
|
|
|
2f3030c |
%license LICENSE.txt
|
|
|
2f3030c |
|
|
|
2f3030c |
%files -n antlr4-cpp-runtime
|
|
|
2f3030c |
%doc runtime/Cpp/README.md
|
|
|
2f3030c |
%license LICENSE.txt
|
|
|
2f3030c |
%{_libdir}/libantlr4-runtime.so.%{version}
|
|
|
2f3030c |
|
|
|
2f3030c |
%files -n antlr4-cpp-runtime-devel
|
|
|
2f3030c |
%doc runtime/Cpp/cmake/Antlr4Package.md runtime/Cpp/cmake/README.md
|
|
|
2f3030c |
%{_includedir}/antlr4-runtime/
|
|
|
2f3030c |
%{_libdir}/libantlr4-runtime.so
|
|
|
9d26334 |
%{_libdir}/cmake/antlr4-generator/
|
|
|
9d26334 |
%{_libdir}/cmake/antlr4-runtime/
|
|
|
2f3030c |
|
|
|
2f3030c |
%ifarch %go_arches
|
|
|
2f3030c |
%files -n golang-antlr4-runtime-devel
|
|
|
2f3030c |
%license LICENSE.txt
|
|
|
2f3030c |
%{gopath}/src/github.com/
|
|
|
2f3030c |
%endif
|
|
|
2f3030c |
|
|
|
ef8cbeb |
%ifarch %nodejs_arches
|
|
|
ef8cbeb |
%files -n nodejs-antlr4
|
|
|
ef8cbeb |
%doc runtime/JavaScript/README.md
|
|
|
ef8cbeb |
%license LICENSE.txt
|
|
|
ef8cbeb |
%{nodejs_sitelib}/antlr4/
|
|
|
ef8cbeb |
%endif
|
|
|
ef8cbeb |
|
|
|
06c679a |
%files -n python3-antlr4-runtime -f %{pyproject_files}
|
|
|
2f3030c |
%doc runtime/Python3/README.txt
|
|
|
2f3030c |
%license LICENSE.txt
|
|
|
2f3030c |
%{_bindir}/pygrun
|
|
|
2f3030c |
%{_mandir}/man1/pygrun.1*
|
|
|
2f3030c |
|
|
|
2f3030c |
%ifarch %swiftarches
|
|
|
2f3030c |
%files -n swift-antlr4-runtime
|
|
|
2f3030c |
%license LICENSE.txt
|
|
|
2f3030c |
%{swiftdir}/libAntlr4.so
|
|
|
2f3030c |
%{swiftdir}/%{_arch}/Antlr4.swiftdoc
|
|
|
2f3030c |
%{swiftdir}/%{_arch}/Antlr4.swiftmodule
|
|
|
2f3030c |
%endif
|
|
|
2f3030c |
|
|
|
2f3030c |
%changelog
|
|
|
8052a7c |
* Tue Jul 19 2022 Maxwell G <gotmax@e.email> - 4.9.3-6
|
|
|
8052a7c |
- Rebuild for CVE-2022-{1705,32148,30631,30633,28131,30635,30632,30630,1962} in
|
|
|
8052a7c |
golang
|
|
|
8052a7c |
|
|
|
ab4b8c6 |
* Tue Jun 21 2022 Jerry James <loganjerry@gmail.com> - 4.9.3-5
|
|
|
ab4b8c6 |
- Add generated cmake files to antlr4-cpp-runtime-devel (rhbz#2098357)
|
|
|
9d26334 |
|
|
|
06c679a |
* Wed Apr 27 2022 Jerry James <loganjerry@gmail.com> - 4.9.3-4
|
|
|
06c679a |
- Remove . from %%cmake to fix FTBFS (rhbz#2070433)
|
|
|
06c679a |
|
|
|
8643904 |
* Sat Feb 05 2022 Jiri Vanek <jvanek@redhat.com> - 4.9.3-3
|
|
|
8643904 |
- Rebuilt for java-17-openjdk as system jdk
|
|
|
8643904 |
|
|
|
0670bb6 |
* Wed Jan 19 2022 Fedora Release Engineering <releng@fedoraproject.org> - 4.9.3-2
|
|
|
0670bb6 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
0670bb6 |
|
|
|
f05ce6b |
* Sun Nov 7 2021 Jerry James <loganjerry@gmail.com> - 4.9.3-1
|
|
|
f05ce6b |
- Version 4.9.3
|
|
|
f05ce6b |
- Drop upstreamed -unicode-properties and -utf8cpp patches
|
|
|
f05ce6b |
|
|
|
4ecfd03 |
* Wed Jul 21 2021 Fedora Release Engineering <releng@fedoraproject.org> - 4.9.2-3
|
|
|
4ecfd03 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
4ecfd03 |
|
|
|
2af68a8 |
* Thu Jun 10 2021 Jerry James <loganjerry@gmail.com> - 4.9.2-2
|
|
|
2af68a8 |
- Drop the javadoc subpackage due to xmvn errors
|
|
|
2af68a8 |
- Fix an invalid RPATH in the swift runtime library
|
|
|
2af68a8 |
|
|
|
f643199 |
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 4.9.2-2
|
|
|
f643199 |
- Rebuilt for Python 3.10
|
|
|
f643199 |
|
|
|
6a3e65b |
* Fri Mar 12 2021 Jerry James <loganjerry@gmail.com> - 4.9.2-1
|
|
|
6a3e65b |
- Version 4.9.2
|
|
|
6a3e65b |
|
|
|
e82d04e |
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 4.9.1-2
|
|
|
e82d04e |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
e82d04e |
|
|
|
ff823e2 |
* Thu Jan 7 2021 Jerry James <loganjerry@gmail.com> - 4.9.1-1
|
|
|
ff823e2 |
- Version 4.9.1
|
|
|
ff823e2 |
- Remove the mono runtime, which no longer builds on Fedora
|
|
|
ff823e2 |
|
|
|
ef8cbeb |
* Mon Nov 30 2020 Jerry James <loganjerry@gmail.com> - 4.9-1
|
|
|
ef8cbeb |
- Version 4.9
|
|
|
ef8cbeb |
- Add the JavaScript runtime
|
|
|
ef8cbeb |
- Add -utf8cpp patch
|
|
|
ef8cbeb |
|
|
|
e9b94a4 |
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 4.8-5
|
|
|
e9b94a4 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
e9b94a4 |
|
|
|
899526a |
* Thu Jul 23 2020 Jerry James <loganjerry@gmail.com> - 4.8-4
|
|
|
899526a |
- Fix cmake and javadoc issues
|
|
|
899526a |
|
|
|
ab53834 |
* Tue Jul 21 2020 Mat Booth <mat.booth@redhat.com> - 4.8-3
|
|
|
ab53834 |
- Allow building against JDK 11
|
|
|
ab53834 |
|
|
|
cd31f4e |
* Tue May 26 2020 Miro HronĨok <mhroncok@redhat.com> - 4.8-2
|
|
|
cd31f4e |
- Rebuilt for Python 3.9
|
|
|
cd31f4e |
|
|
|
2f3030c |
* Tue Jan 21 2020 Jerry James <loganjerry@gmail.com> - 4.8-1
|
|
|
2f3030c |
- Initial RPM, based on old antlr4.spec
|