1 Summary: ANother Tool for Language Recognition
7 Group: Development/Tools
8 Source0: http://www.antlr.org/download/%{name}-%{version}.tar.gz
9 # Source0-md5: d67ffcaba6b2cedd99601b9052f63957
10 Patch0: %{name}-classpath.patch
11 URL: http://www.antlr.org/
14 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17 ANTLR, ANother Tool for Language Recognition, (formerly PCCTS) is a language
18 tool that provides a framework for constructing recognizers, compilers, and
19 translators from grammatical descriptions containing Java, C#, or C++ actions.
20 ANTLR is popular because it is easy to understand, powerful, flexible,
21 generates human-readable output, and comes with complete source. ANTLR provides
22 excellent support for tree construction, tree walking, and translation.
33 export CLASSPATH=$RPM_BUILD_DIR/%{name}-%{version}/antlr.jar
40 rm -rf $RPM_BUILD_ROOT
43 DESTDIR=$RPM_BUILD_ROOT
46 rm -rf $RPM_BUILD_ROOT
49 %defattr(644,root,root,755)
51 %attr(755,root,root) %{_bindir}/antlr
52 %attr(755,root,root) %{_bindir}/antlr-config
53 %{_includedir}/%{name}
55 %{_datadir}/%{name}-%{version}