public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/antlr3] epel10: Build and ship the antlr3 ant task
@ 2026-07-22 19:37 Mat Booth
0 siblings, 0 replies; only message in thread
From: Mat Booth @ 2026-07-22 19:37 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/antlr3
Branch : epel10
Commit : 96173dd32e84fc95e12e0eb99cd7d5e7c8c2fb3d
Author : Mat Booth <mat.booth@redhat.com>
Date : 2015-06-17T13:56:10+01:00
Stats : +29/-2 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/antlr3/c/96173dd32e84fc95e12e0eb99cd7d5e7c8c2fb3d?branch=epel10
Log:
Build and ship the antlr3 ant task
- Add provides/obsoletes for separate ant-antlr3 package
---
diff --git a/antlr3.spec b/antlr3.spec
index 9693ff4..6e6fc65 100644
--- a/antlr3.spec
+++ b/antlr3.spec
@@ -4,7 +4,7 @@
%global c_runtime_version 3.4
#%global python_runtime_version 3.1.3
%global javascript_runtime_version 3.1
-%global baserelease 8
+%global baserelease 9
Summary: ANother Tool for Language Recognition
Name: antlr3
@@ -48,6 +48,9 @@ Provides: %{name} = %{epoch}:%{antlr_version}-%{release}
Obsoletes: %{name} < %{epoch}:%{antlr_version}-%{release}
Requires: %{name}-java = %{epoch}:%{antlr_version}-%{release}
+Provides: ant-antlr3 = %{epoch}:%{antlr_version}-%{release}
+Obsoletes: ant-antlr3 < %{epoch}:%{antlr_version}-%{release}
+
%description tool
ANother Tool for Language Recognition, is a language tool
that provides a framework for constructing recognizers,
@@ -132,6 +135,10 @@ C++ runtime support for ANTLR-generated parsers.
sed -i "s,\${buildNumber},`cat %{_sysconfdir}/fedora-release` `date`," tool/src/main/resources/org/antlr/antlr.properties
%patch1 -p1
+# remove pre-built artifacts
+find -type f -a -name *.jar -delete
+find -type f -a -name *.class -delete
+
%pom_disable_module antlr3-maven-archetype
%pom_disable_module gunit
%pom_disable_module gunit-maven-plugin
@@ -183,7 +190,14 @@ doxygen -u # update doxygen configuration file
doxygen # build doxygen documentation
popd
-
+# build ant task
+pushd antlr-ant/main/antlr3-task/
+export CLASSPATH=$(build-classpath ant)
+javac -encoding ISO-8859-1 antlr3-src/org/apache/tools/ant/antlr/ANTLR3.java
+jar cvf ant-antlr3.jar \
+ -C antlr3-src org/apache/tools/ant/antlr/antlib.xml \
+ -C antlr3-src org/apache/tools/ant/antlr/ANTLR3.class
+popd
# inject OSGi manifests
mkdir -p META-INF
@@ -197,6 +211,13 @@ mkdir -p $RPM_BUILD_ROOT/%{_datadir}/antlr
%mvn_install
+# install ant task
+install -m 644 antlr-ant/main/antlr3-task/ant-antlr3.jar -D $RPM_BUILD_ROOT%{_javadir}/ant/ant-antlr3.jar
+mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/ant.d
+cat > $RPM_BUILD_ROOT%{_sysconfdir}/ant.d/ant-antlr3 << EOF
+ant/ant-antlr3 antlr3
+EOF
+
# install wrapper script
%jpackage_script org.antlr.Tool '' '' 'stringtemplate4.jar:antlr3.jar:antlr3-runtime.jar' antlr3 true
@@ -237,6 +258,8 @@ install -pm 644 runtime/Cpp/include/* $RPM_BUILD_ROOT/%{_includedir}/
%files tool -f .mfiles-tool
%doc README.txt tool/{LICENSE.txt,CHANGES.txt}
%{_bindir}/antlr3
+%{_javadir}/ant/ant-antlr3.jar
+%config(noreplace) %{_sysconfdir}/ant.d/ant-antlr3
#%files python
#%doc tool/LICENSE.txt
@@ -270,6 +293,10 @@ install -pm 644 runtime/Cpp/include/* $RPM_BUILD_ROOT/%{_includedir}/
%doc tool/LICENSE.txt
%changelog
+* Wed Jun 17 2015 Mat Booth <mat.booth@redhat.com> - 1:3.5.2-9
+- Build and ship the antlr3 ant task
+- Add provides/obsoletes for separate ant-antlr3 package
+
* Tue Jun 16 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:3.5.2-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-07-22 19:37 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-07-22 19:37 [rpms/antlr3] epel10: Build and ship the antlr3 ant task Mat Booth
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox