public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Colin Walters <walters@fedoraproject.org>
To: git-commits@fedoraproject.org
Subject: [rpms/antlr3] epel10: Initial import
Date: Wed, 22 Jul 2026 19:36:57 GMT [thread overview]
Message-ID: <178474901776.1.7532888334094023339.rpms-antlr3-01ce193e05da@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/antlr3
Branch : epel10
Commit : 01ce193e05da3697bb9c76e4ea1afe88b4222d90
Author : Colin Walters <walters@fedoraproject.org>
Date : 2008-07-01T17:42:02+00:00
Stats : +80/-0 in 5 file(s)
URL : https://src.fedoraproject.org/rpms/antlr3/c/01ce193e05da3697bb9c76e4ea1afe88b4222d90?branch=epel10
Log:
Initial import
---
diff --git a/.cvsignore b/.cvsignore
index e69de29..9094dc5 100644
--- a/.cvsignore
+++ b/.cvsignore
@@ -0,0 +1 @@
+antlr-3.0.1.tar.gz
diff --git a/antlr-clean-generated b/antlr-clean-generated
new file mode 100644
index 0000000..e8fbcca
--- /dev/null
+++ b/antlr-clean-generated
@@ -0,0 +1,23 @@
+#!/usr/bin/python
+# Clean out files which look to have been generated by antlr
+# Author: Colin Walters <walters@verbum.org>
+# This file is hereby placed into the public domain.
+
+import os,sys,re
+
+_antlr_compiled_re = re.compile(r'// \$ANTLR.*:.*->.*\$$')
+
+def clean_antlr_generated(basedir):
+ for (dpath,subdirs,fnames) in os.walk(basedir):
+ for fname in fnames:
+ fpath = os.path.join(dpath, fname)
+ f = open(fpath)
+ first = f.readline()
+ f.close()
+ if _antlr_compiled_re.match(first):
+ print "Deleting antlr-compiled %s" % (fpath,)
+ os.unlink(fpath)
+
+if __name__ == '__main__':
+ basedir = sys.argv[1]
+ clean_antlr_generated(basedir)
diff --git a/antlr3.spec b/antlr3.spec
new file mode 100644
index 0000000..65e92b8
--- /dev/null
+++ b/antlr3.spec
@@ -0,0 +1,54 @@
+Summary: ANother Tool for Language Recognition
+Name: antlr3
+Version: 3.0.1
+Release: 2%{?dist}
+URL: http://www.antlr.org/
+Source0: http://www.antlr.org/download/antlr-3.0.1.tar.gz
+# Utility file, in conversation with upstream about this
+Source1: antlr-clean-generated
+License: BSD
+Group: Development/Libraries
+BuildArch: noarch
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+BuildRequires: java-devel >= 1:1.6.0
+# For cleaner script
+BuildRequires: python
+BuildRequires: ant, stringtemplate, ant-antlr, ant-junit
+BuildRequires: jpackage-utils
+Requires: jpackage-utils
+
+%description
+ANother Tool for Language Recognition, is a language tool
+that provides a framework for constructing recognizers,
+interpreters, compilers, and translators from grammatical
+descriptions containing actions in a variety of target languages.
+
+%prep
+%setup -q -n antlr-%{version}
+
+%build
+rm -f lib/*.jar
+build-jar-repository -s -p lib stringtemplate
+# Clean out generated files upstream includes
+python %{SOURCE1} .
+# Build
+ant
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -D build/antlr.jar $RPM_BUILD_ROOT%{_datadir}/java/antlr3.jar
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(-,root,root)
+%doc README.txt LICENSE.txt
+%{_datadir}/java/*.jar
+
+%changelog
+* Fri Jun 27 2008 Colin Walters <walters@redhat.com> - 3.0.1-2
+- Fix some BRs
+
+* Sun Apr 06 2008 Colin Walters <walters@redhat.com> - 3.0.1-1
+- First version
diff --git a/import.log b/import.log
new file mode 100644
index 0000000..cd1d6d5
--- /dev/null
+++ b/import.log
@@ -0,0 +1 @@
+antlr3-3_0_1-2_fc9:HEAD:antlr3-3.0.1-2.fc9.src.rpm:1214934104
diff --git a/sources b/sources
index e69de29..0a0d063 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+3368332e3ecec632db667cb5cdfdbf6f antlr-3.0.1.tar.gz
reply other threads:[~2026-07-22 19:36 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=178474901776.1.7532888334094023339.rpms-antlr3-01ce193e05da@fedoraproject.org \
--to=walters@fedoraproject.org \
--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