01ce193
Summary: ANother Tool for Language Recognition
01ce193
Name: antlr3
01ce193
Version: 3.0.1
01ce193
Release: 2%{?dist}
01ce193
URL: http://www.antlr.org/
01ce193
Source0: http://www.antlr.org/download/antlr-3.0.1.tar.gz
01ce193
# Utility file, in conversation with upstream about this
01ce193
Source1: antlr-clean-generated
01ce193
License: BSD
01ce193
Group: Development/Libraries
01ce193
BuildArch: noarch
01ce193
BuildRoot:  %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
01ce193
BuildRequires: java-devel >= 1:1.6.0
01ce193
# For cleaner script
01ce193
BuildRequires: python
01ce193
BuildRequires: ant, stringtemplate, ant-antlr, ant-junit
01ce193
BuildRequires: jpackage-utils
01ce193
Requires: jpackage-utils
01ce193
01ce193
%description
01ce193
ANother Tool for Language Recognition, is a language tool
01ce193
that provides a framework for constructing recognizers,
01ce193
interpreters, compilers, and translators from grammatical 
01ce193
descriptions containing actions in a variety of target languages.
01ce193
01ce193
%prep
01ce193
%setup -q -n antlr-%{version}
01ce193
01ce193
%build
01ce193
rm -f lib/*.jar
01ce193
build-jar-repository -s -p lib stringtemplate
01ce193
# Clean out generated files upstream includes
01ce193
python %{SOURCE1} .
01ce193
# Build
01ce193
ant
01ce193
01ce193
%install
01ce193
rm -rf $RPM_BUILD_ROOT
01ce193
install -D build/antlr.jar $RPM_BUILD_ROOT%{_datadir}/java/antlr3.jar
01ce193
01ce193
%clean
01ce193
rm -rf $RPM_BUILD_ROOT
01ce193
01ce193
%files
01ce193
%defattr(-,root,root)
01ce193
%doc README.txt LICENSE.txt
01ce193
%{_datadir}/java/*.jar
01ce193
01ce193
%changelog
01ce193
* Fri Jun 27 2008 Colin Walters <walters@redhat.com> - 3.0.1-2
01ce193
- Fix some BRs
01ce193
01ce193
* Sun Apr 06 2008 Colin Walters <walters@redhat.com> - 3.0.1-1
01ce193
- First version