]>
Commit | Line | Data |
---|---|---|
cbedff71 | 1 | Summary: ANother Tool for Language Recognition |
2 | Summary(pl): TODO | |
3 | Name: antlr | |
4 | Version: 2.7.2 | |
5 | Release: 1 | |
6 | License: Public Domain | |
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/ | |
12 | BuildRequires: jar | |
13 | Conflicts: pccts | |
14 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
15 | ||
16 | %description | |
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. | |
23 | ||
24 | %description -l pl | |
25 | TODO. | |
26 | ||
27 | %prep | |
28 | %setup -q | |
29 | %patch0 -p1 | |
30 | ||
31 | %build | |
32 | ||
33 | export CLASSPATH=$RPM_BUILD_DIR/%{name}-%{version}/antlr.jar | |
34 | ||
35 | %configure | |
36 | ||
37 | %{__make} | |
38 | ||
39 | %install | |
40 | rm -rf $RPM_BUILD_ROOT | |
41 | ||
42 | %{__make} install \ | |
43 | DESTDIR=$RPM_BUILD_ROOT | |
44 | ||
45 | %clean | |
46 | rm -rf $RPM_BUILD_ROOT | |
47 | ||
48 | %files | |
49 | %defattr(644,root,root,755) | |
50 | %doc RIGHTS | |
51 | %attr(755,root,root) %{_bindir}/antlr | |
52 | %attr(755,root,root) %{_bindir}/antlr-config | |
53 | %{_includedir}/%{name} | |
54 | %{_libdir}/libantlr.a | |
55 | %{_datadir}/%{name}-%{version} |