public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Mat Booth <mat.booth@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/antlr3] epel10: Build and ship the antlr3 ant task
Date: Wed, 22 Jul 2026 19:37:31 GMT	[thread overview]
Message-ID: <178474905106.1.9557377995304388164.rpms-antlr3-96173dd32e84@fedoraproject.org> (raw)

            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
 

                 reply	other threads:[~2026-07-22 19:37 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=178474905106.1.9557377995304388164.rpms-antlr3-96173dd32e84@fedoraproject.org \
    --to=mat.booth@redhat.com \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox