# TODO: Move antlr-java to separate package ? Summary: ANother Tool for Language Recognition Summary(pl): Jeszcze jedno narzędzie do rozpoznawania języka Name: antlr Version: 2.7.4 Release: 1 License: Public Domain Group: Development/Tools Source0: http://www.antlr.org/download/%{name}-%{version}.tar.gz # Source0-md5: 33df7cdc8e80447cdd78607c76f02bac URL: http://www.antlr.org/ BuildRequires: gcc-java BuildRequires: gcc-java-tools # BuildRequires: jar # BuildRequires: jdk # Requires: jre Conflicts: pccts < 1.33MR33-6 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description ANTLR, ANother Tool for Language Recognition, (formerly PCCTS) is a language tool that provides a framework for constructing recognizers, compilers, and translators from grammatical descriptions containing Java, C#, or C++ actions. ANTLR is popular because it is easy to understand, powerful, flexible, generates human-readable output, and comes with complete source. ANTLR provides excellent support for tree construction, tree walking, and translation. %description -l pl ANTLR (ANother Tool for Language Recognition; poprzednio znane jako PCCTS) to narzędzie językowe dostarczające szkielet do tworzenia programów rozpoznających języki, kompilatorów, translatorów z opisów gramatycznych obejmujących Javę, C# lub C++. ANTLR jest popularne ponieważ jest łatwe do zrozumienia, potężne, elastyczne, generuje wyjście czytelne dla człowieka i jest dostępne z pełnymi źródłami. ANTLR ma świetne wsparcie dla tworzenia drzew, przechodzenia po drzewach oraz translacji. %prep %setup -q %build cp /usr/share/automake/config.sub scripts %configure \ --enable-gcj %{__make} %install rm -rf $RPM_BUILD_ROOT %{__make} install \ DESTDIR=$RPM_BUILD_ROOT %clean rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) %doc doc/* %attr(755,root,root) %{_bindir}/antlr %attr(755,root,root) %{_bindir}/antlr-config %attr(755,root,root) %{_bindir}/antlr-java %{_includedir}/%{name} %{_libdir}/libantlr.a %{_datadir}/%{name}-2.7.3