4 Summary: ANother Tool for Language Recognition
10 Group: Development/Tools
11 #Source0: http://www.antlr.org/download/%{name}-%{version}.tar.gz
12 Source0: http://wwwhome.cs.utwente.nl/~klaren/antlr/%{name}-%{_snap}.tar.gz
13 # Source0-md5: de00ded0f1922587bb24628152fc3f62
14 Patch0: %{name}-Makefile.patch
15 Patch1: %{name}-runscript.patch
16 URL: http://www.antlr.org/
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 ANTLR, ANother Tool for Language Recognition, (formerly PCCTS) is a language
25 tool that provides a framework for constructing recognizers, compilers, and
26 translators from grammatical descriptions containing Java, C#, or C++ actions.
27 ANTLR is popular because it is easy to understand, powerful, flexible,
28 generates human-readable output, and comes with complete source. ANTLR provides
29 excellent support for tree construction, tree walking, and translation.
35 %setup -q -n %{name}-%{_snap}
41 export CLASSPATH=$RPM_BUILD_DIR/%{name}-%{_snap}
48 rm -rf $RPM_BUILD_ROOT
51 DESTDIR=$RPM_BUILD_ROOT
54 rm -rf $RPM_BUILD_ROOT
57 %defattr(644,root,root,755)
59 %attr(755,root,root) %{_bindir}/antlr
60 %attr(755,root,root) %{_bindir}/antlr-config
61 %{_includedir}/%{name}
63 %{_datadir}/%{name}-%{version}