From cbedff7109366af34a43091dc2bcc8d7d4cbaf95 Mon Sep 17 00:00:00 2001 From: adgor Date: Thu, 9 Oct 2003 12:49:02 +0000 Subject: [PATCH] - Initial Changed files: antlr.spec -> 1.1 --- antlr.spec | 55 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 antlr.spec diff --git a/antlr.spec b/antlr.spec new file mode 100644 index 0000000..c5a6a46 --- /dev/null +++ b/antlr.spec @@ -0,0 +1,55 @@ +Summary: ANother Tool for Language Recognition +Summary(pl): TODO +Name: antlr +Version: 2.7.2 +Release: 1 +License: Public Domain +Group: Development/Tools +Source0: http://www.antlr.org/download/%{name}-%{version}.tar.gz +# Source0-md5: d67ffcaba6b2cedd99601b9052f63957 +Patch0: %{name}-classpath.patch +URL: http://www.antlr.org/ +BuildRequires: jar +Conflicts: pccts +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 +TODO. + +%prep +%setup -q +%patch0 -p1 + +%build + +export CLASSPATH=$RPM_BUILD_DIR/%{name}-%{version}/antlr.jar + +%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} -- 2.44.0