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: %{name}-%{_snap}.tar.gz
14 # Source0-md5: de00ded0f1922587bb24628152fc3f62
15 Patch0: %{name}-Makefile.patch
16 Patch1: %{name}-runscript.patch
17 URL: http://www.antlr.org/
22 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25 ANTLR, ANother Tool for Language Recognition, (formerly PCCTS) is a language
26 tool that provides a framework for constructing recognizers, compilers, and
27 translators from grammatical descriptions containing Java, C#, or C++ actions.
28 ANTLR is popular because it is easy to understand, powerful, flexible,
29 generates human-readable output, and comes with complete source. ANTLR provides
30 excellent support for tree construction, tree walking, and translation.
36 %setup -q -n %{name}-%{_snap}
42 export CLASSPATH=$RPM_BUILD_DIR/%{name}-%{_snap}
49 rm -rf $RPM_BUILD_ROOT
52 DESTDIR=$RPM_BUILD_ROOT
55 rm -rf $RPM_BUILD_ROOT
58 %defattr(644,root,root,755)
60 %attr(755,root,root) %{_bindir}/antlr
61 %attr(755,root,root) %{_bindir}/antlr-config
62 %{_includedir}/%{name}
64 %{_datadir}/%{name}-%{version}