# # spec file for package javacc (Version 4.0) # # Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # # norootforbuild Name: javacc BuildRequires: ant java2-devel-packages xml-commons-apis %define section free Version: 4.0 Release: 108 Summary: A Parser and Scanner Generator for Java License: BSD 3-Clause Source0: %{name}-%{version}src.tar.gz Source1: javacc Source2: jjdoc Source3: jjtree Patch: javacc.patch Url: https://javacc.dev.java.net/ Group: Development/Libraries/Java BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildArch: noarch Requires: jpackage-utils >= 1.5 %description Java Compiler Compiler (JavaCC) is the most popular parser generator for use with Java applications. A parser generator is a tool that reads a grammar specification and converts it to a Java program that can recognize matches to the grammar. In addition to the parser generator itself, JavaCC provides other standard capabilities related to parser generation such as tree building (via a tool called JJTree included with JavaCC), actions, debugging, etc. %package manual License: BSD 3-Clause Summary: A Parser and Scanner Generator for Java Group: Development/Libraries/Java %description manual Java Compiler Compiler (JavaCC) is the most popular parser generator for use with Java applications. A parser generator is a tool that reads a grammar specification and converts it to a Java program that can recognize matches to the grammar. In addition to the parser generator itself, JavaCC provides other standard capabilities related to parser generation such as tree building (via a tool called JJTree included with JavaCC), actions, debugging, etc. %package demo License: BSD 3-Clause Summary: A Parser and Scanner Generator for Java Group: Development/Libraries/Java %description demo Java Compiler Compiler (JavaCC) is the most popular parser generator for use with Java applications. A parser generator is a tool that reads a grammar specification and converts it to a Java program that can recognize matches to the grammar. In addition to the parser generator itself, JavaCC provides other standard capabilities related to parser generation such as tree building (via a tool called JJTree included with JavaCC), actions, debugging, etc. %prep %setup -n javacc %patch -p1 cp %{SOURCE1} javacc cp %{SOURCE2} jjdoc cp %{SOURCE3} jjtree mv www/doc . %build for file in `find -name build.xml` ; do if ! grep -q "javac.*source=" $file ; then perl -p -i -e 's|.image Convenient constructors for passing encoding directly to the grammar Tabsetting is now customizable. SimpleNode can now extend a class using the NODE_EXTENDS option. JAVACODE and BNF productions take optional access modifiers. * Wed Sep 20 2006 ro@suse.de - set source=1.4 for java * Wed Jan 25 2006 mls@suse.de - converted neededforbuild to BuildRequires * Tue Oct 18 2005 jsmeix@suse.de - Current version 3.2 from JPackage.org * Wed Sep 28 2005 dmueller@suse.de - add norootforbuild * Fri Feb 18 2005 skh@suse.de - initial package