%define _snap 20030911 Summary: ANother Tool for Language Recognition Summary(pl): Jeszcze jedno narzędzie do rozpoznawania języka Name: antlr Version: 2.7.3 Release: 0.%{_snap}.2 License: Public Domain Group: Development/Tools #Source0: http://www.antlr.org/download/%{name}-%{version}.tar.gz #Source0: http://wwwhome.cs.utwente.nl/~klaren/antlr/%{name}-%{_snap}.tar.gz Source0: %{name}-%{_snap}.tar.gz # Source0-md5: de00ded0f1922587bb24628152fc3f62 Patch0: %{name}-Makefile.patch Patch1: %{name}-runscript.patch URL: http://www.antlr.org/ BuildRequires: jar BuildRequires: jdk Requires: jre Conflicts: pccts < 1.33MR33-6 Obsoletes: pccts-antlr 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 jset dostępne z pełnymi źródłami. ANTLR ma świetne wsparcie dla tworzenia drzew, przechodzenia po drzewach oraz translacji. %prep %setup -q -n %{name}-%{_snap} %patch0 -p1 %patch1 -p1 %build export CLASSPATH=$RPM_BUILD_DIR/%{name}-%{_snap} %configure %{__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 RIGHTS %attr(755,root,root) %{_bindir}/antlr %attr(755,root,root) %{_bindir}/antlr-config %{_includedir}/%{name} %{_libdir}/libantlr.a %{_datadir}/%{name}-%{version}