1 Summary: A parser/scanner generator for java
6 Source0: https://javacc.dev.java.net/files/documents/17/26783/%{name}-%{version}src.tar.gz
7 # Source0-md5: bf91835dc1bb4821f4b26fd552b43c8d
11 Group: Development/Languages/Java
12 URL: https://javacc.dev.java.net/
13 BuildRequires: /bin/bash
15 BuildRequires: jpackage-utils
16 BuildRequires: junit >= 3.8.1
17 BuildRequires: rpmbuild(macros) >= 1.300
18 Requires: jpackage-utils >= 0:1.5
20 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23 Java Compiler Compiler (JavaCC) is the most popular parser generator
24 for use with Java applications. A parser generator is a tool that
25 reads a grammar specification and converts it to a Java program that
26 can recognize matches to the grammar. In addition to the parser
27 generator itself, JavaCC provides other standard capabilities related
28 to parser generation such as tree building (via a tool called JJTree
29 included with JavaCC), actions, debugging, etc.
32 Summary: Manual for %{name}
39 Summary: Examples for %{name}
54 export CLASSPATH=$(/usr/bin/build-classpath $required_jars)
57 -Dversion=%{version} \
61 rm -rf $RPM_BUILD_ROOT
62 install -d $RPM_BUILD_ROOT%{_javadir}
63 install bin/lib/%{name}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}-%{version}.jar
64 ln -s %{name}-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}.jar
65 install -d $RPM_BUILD_ROOT%{_bindir}
66 install javacc jjdoc jjtree $RPM_BUILD_ROOT%{_bindir}
67 install -d $RPM_BUILD_ROOT%{_datadir}/%{name}
68 cp -pr examples $RPM_BUILD_ROOT%{_datadir}/%{name}
71 rm -rf $RPM_BUILD_ROOT
74 %defattr(644,root,root,755)
77 %defattr(0755,root,root,0755)
78 %attr(755,root,root) %{_bindir}/*
81 %defattr(644,root,root,755)
85 %defattr(644,root,root,755)