[Jpackage-commits] dist/javacc3/JPP-6 Makefile, NONE, 1.1 javacc, NONE, 1.1 javacc-3.2.pom, NONE, 1.1 javacc-component-info.xml, NONE, 1.1 javacc3-build.patch, NONE, 1.1 javacc3.spec, NONE, 1.1 jjdoc, NONE, 1.1 jjtree, NONE, 1.1 sources, NONE, 1.1

jpackage jpackage at ryu.zarb.org
Wed Dec 15 13:02:23 CET 2010


Update of /home/projects/jpackage/cvs/dist/javacc3/JPP-6
In directory ryu.zarb.org:/tmp/cvs-serv32091/JPP-6

Added Files:
	Makefile javacc javacc-3.2.pom javacc-component-info.xml 
	javacc3-build.patch javacc3.spec jjdoc jjtree sources 
Log Message:
Import javacc3 into JPP-6

--- NEW FILE: javacc-component-info.xml ---
<project name="sun-javacc-component-info">

   <component id="sun-javacc"
              version="@VERSION@"
              licenseType="bsd"
              projectHome="https://javacc.dev.java.net/"
              description="JavaCC is a parser/scanner generator for java"
              scm=":ext:cvs.devel.redhat.com:/cvs/dist/javacc3"
              tag="@TAG@">
      <artifact id="javacc.jar"/>
      <export>
         <include input="javacc.jar"/>
      </export>
   </component>

</project>

--- NEW FILE: javacc-3.2.pom ---
<project>
  <modelVersion>4.0.0</modelVersion>
  <groupId>javacc</groupId>
  <artifactId>javacc</artifactId>
  <version>3.2</version>

  <distributionManagement>
    <relocation>
      <groupId>net.java.dev.javacc</groupId>
    </relocation>
  </distributionManagement>

</project>
--- NEW FILE: javacc3-build.patch ---
--- build.xml.sav	2010-12-15 12:38:21.000000000 +0100
+++ build.xml	2010-12-15 12:45:59.000000000 +0100
@@ -149,4 +149,16 @@
   </exec>
   </target>
 
+  <target name="javadoc" depends="compile">
+    <javadoc sourcepath="src"
+             packagenames="org.javacc.parser.*,
+                           org.javacc.*,
+                           org.javacc.jjdoc.*,
+                           org.javacc.jjtree.*"
+             maxmemory="128m"
+             destdir="dist/javadoc"
+             windowtitle="JavaCC 3.2 API">
+    </javadoc>
+  </target>
+
 </project>

--- NEW FILE: Makefile ---
# Makefile for source rpm: javacc3
# $Id: Makefile,v 1.1 2010/12/15 12:02:21 jpackage Exp $
NAME := javacc3
SPECFILE = $(firstword $(wildcard *.spec))

define find-makefile-common
for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done
endef

MAKEFILE_COMMON := $(shell $(find-makefile-common))

ifeq ($(MAKEFILE_COMMON),)
# attept a checkout
define checkout-makefile-common
test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2
endef

MAKEFILE_COMMON := $(shell $(checkout-makefile-common))
endif

include $(MAKEFILE_COMMON)

--- NEW FILE: javacc ---
#!/bin/sh
# 
# JavaCC script
# JPackage Project <http://www.jpackage.org/>

# Source functions library
if [ -f /usr/share/java-utils/java-functions ] ; then 
  . /usr/share/java-utils/java-functions
else
  echo "Can't find function library, aborting"
  exit 1
fi

# Configuration
MAIN_CLASS=javacc
BASE_JARS="javacc.jar"

# Set parameters
set_jvm
set_classpath $BASE_JARS
set_flags $BASE_FLAGS
set_options $BASE_OPTIONS

# Let's start
run "$@"

--- NEW FILE: sources ---
72f227def9cf027cc238154f6ecf2873  javacc-3.2-src.tar.gz

--- NEW FILE: jjtree ---
#!/bin/sh
# 
# JJTree script
# JPackage Project <http://www.jpackage.org/>

# Source functions library
if [ -f /usr/share/java-utils/java-functions ] ; then 
  . /usr/share/java-utils/java-functions
else
  echo "Can't find function library, aborting"
  exit 1
fi

# Configuration
MAIN_CLASS=jjtree
BASE_JARS="javacc.jar"

# Set parameters
set_jvm
set_classpath $BASE_JARS
set_flags $BASE_FLAGS
set_options $BASE_OPTIONS

# Let's start
run "$@"

--- NEW FILE: jjdoc ---
#!/bin/sh
# 
# JJDoc script
# JPackage Project <http://www.jpackage.org/>

# Source functions library
if [ -f /usr/share/java-utils/java-functions ] ; then 
  . /usr/share/java-utils/java-functions
else
  echo "Can't find function library, aborting"
  exit 1
fi

# Configuration
MAIN_CLASS=jjdoc
BASE_JARS="javacc.jar"

# Set parameters
set_jvm
set_classpath $BASE_JARS
set_flags $BASE_FLAGS
set_options $BASE_OPTIONS

# Let's start
run "$@"

--- NEW FILE: javacc3.spec ---
# Copyright (c) 2000-2010, JPackage Project
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# 1. Redistributions of source code must retain the above copyright
#    notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
#    notice, this list of conditions and the following disclaimer in the
#    documentation and/or other materials provided with the
#    distribution.
# 3. Neither the name of the JPackage Project nor the names of its
#    contributors may be used to endorse or promote products derived
#    from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#

%define _with_repolib 1

# If you want repolib package to be built,
# issue the following: 'rpmbuild --with repolib'
%define with_repolib %{?_with_repolib:1}%{!?_with_repolib:0}
%define without_repolib %{!?_with_repolib:1}%{?_with_repolib:0}

%define repodir %{_javadir}/repository.jboss.com/sun-javacc/%{version}-brew
%define repodirlib %{repodir}/lib
%define repodirsrc %{repodir}/src

%define section free
%define _basename javacc

Name:           javacc3
Version:        3.2
Release:        6%{?dist}
Epoch:          0
Summary:        A parser/scanner generator for java
License:        BSD
Source0:        javacc-3.2-src.tar.gz
Source1:        javacc
Source2:        jjdoc
Source3:        jjtree
Source4:        javacc-component-info.xml
Source5:        http://repo1.maven.org/maven2/javacc/javacc/3.2/javacc-3.2.pom
Patch0:         javacc3-build.patch
URL:            https://javacc.dev.java.net/
Group:          Development/Code Generators
BuildRoot:      %{_tmppath}/%{_basename}-%{version}-%{release}-buildroot
BuildArch:      noarch
Requires:       java >= 0:1.6.0
Requires:       jpackage-utils >= 0:1.7.5
BuildRequires:  jpackage-utils >= 0:1.7.5
BuildRequires:  java-devel >= 0:1.6.0
BuildRequires:  ant >= 0:1.7.1
Requires(post):    jpackage-utils >= 0:1.7.5
Requires(postun):  jpackage-utils >= 0:1.7.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.

%if %{with_repolib}
%package        repolib
Summary:        Artifacts to be uploaded to a repository library
Group:  Development/Libraries/Java

%description    repolib
Artifacts to be uploaded to a repository library.
This package is not meant to be installed but so its contents
can be extracted through rpm2cpio
%endif

%package manual
Summary:        Manual for %{_basename}
Group:          Development/Documentation

%description manual
%{summary}.

%package demo
Summary:        Examples for %{_basename}
Group:          Development/Documentation

%description demo
%{summary}.

%package javadoc
Summary:        Javadocs for %{_basename}
Group:          Development/Documentation

%description javadoc
%{summary}.

%prep
%setup -q -n %{_basename}-%{version}
%patch0 -b .sav0
cp -p %{SOURCE1} javacc3
cp -p %{SOURCE2} jjdoc3
cp -p %{SOURCE3} jjtree3
mv www/doc .

%build
export CLASSPATH=
export OPT_JAR_LIST=:
ant \
  -Dant.build.javac.source=1.4 \
  -Dversion=%{version} \
  jar javadoc

%install
rm -fr $RPM_BUILD_ROOT
install -d -m 755 $RPM_BUILD_ROOT%{_javadir}
install -m 644 bin/lib/%{_basename}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}-%{version}.jar
ln -s %{name}-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}.jar
%add_to_maven_depmap %{_basename} %{_basename} %{version} JPP %{name}
install -d -m 755 $RPM_BUILD_ROOT%{_datadir}/maven2/poms/
install -m 644 %{SOURCE5} $RPM_BUILD_ROOT%{_datadir}/maven2/poms/JPP-javacc3.pom

install -d -m 755 $RPM_BUILD_ROOT/usr/bin
install -m 755 javacc3 jjdoc3 jjtree3 $RPM_BUILD_ROOT/usr/bin
install -d -m 755 $RPM_BUILD_ROOT%{_datadir}/%{name}
cp -pr examples $RPM_BUILD_ROOT%{_datadir}/%{name}
install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
cp -pr dist/javadoc/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
ln -s %{name}-%{version} $RPM_BUILD_ROOT%{_javadocdir}/%{name}

%if %{with_repolib}
install -d -m 755 $RPM_BUILD_ROOT%{repodir}
install -d -m 755 $RPM_BUILD_ROOT%{repodirlib}
install -p -m 644 %{SOURCE4} $RPM_BUILD_ROOT%{repodir}/component-info.xml
tag=`echo %{name}-%{version}-%{release} | sed 's|\.|_|g'`
sed -i "s/@TAG@/$tag/g" $RPM_BUILD_ROOT%{repodir}/component-info.xml
sed -i "s/@VERSION@/%{version}-brew/g" $RPM_BUILD_ROOT%{repodir}/component-info.xml
install -d -m 755 $RPM_BUILD_ROOT%{repodirsrc}
install -p -m 644 %{SOURCE0} $RPM_BUILD_ROOT%{repodirsrc}
cp -p $RPM_BUILD_ROOT%{_javadir}/%{name}-%{version}.jar $RPM_BUILD_ROOT%{repodirlib}/javacc.jar
%endif

%clean
rm -rf $RPM_BUILD_ROOT

%post
%update_maven_depmap

%postun
%update_maven_depmap

%files
%defattr(0644,root,root,0755)
%{_javadir}/*.jar
%{_datadir}/maven2/poms/*
%{_mavendepmapfragdir}/*
%doc LICENSE README
%defattr(0755,root,root,0755)
%{_bindir}/*

%files manual
%defattr(0644,root,root,0755)
%doc doc/*

%files javadoc
%defattr(0644,root,root,0755)
%{_javadocdir}/%{name}*

%files demo
%defattr(0644,root,root,0755)
%{_datadir}/%{name}

%if %{with_repolib}
%files repolib
%defattr(0644,root,root,0755)
%{_javadir}/repository.jboss.com
%endif

%changelog
* Wed Dec 15 2010 Ralph Apel <r.apel at r-apel.de> 0:3.2-6
- Release for JPP-6
- Add pom and depmap frag
- Add javadocs

* Mon Jan 12 2009 David Walluck <dwalluck at redhat.com> 0:3.2-5
- bump release
- fix repolib

* Fri May 30 2008 Permaine Cheung <pcheung at redhat.com> 0:3.2-2
- First JPP 5 build

* Thu May 01 2008 David Walluck <dwalluck at redhat.com> 0:3.2-2jpp.ep1.5
- build with -Dant.build.javac.source=1.4 to allow enum keyword
- fix missing macros
- fix missing dir ownership
- XXX: where are the javadocs?
- FIXME: need to fix bootstrap (cannot include binary jar)

* Wed Aug 29 2007 Fernando Nasser <fnasser at redhat.com> 0:3.2-2jpp.ep1.4
- Build with repolib subpackage

* Wed Aug 29 2007 Fernando Nasser <fnasser at redhat.com> 0:3.2-2jpp.ep1.2
- Add repolib subpackage
- Add '3' suffix to commands in /usr/bin to avoid conflicts with javacc

* Wed Aug 29 2007 Fernando Nasser <fnasser at redhat.com> 0:3.2-2jpp.ep1.1
- Rebuild

* Mon Apr 24 2006 Fernando Nasser <fnasser at redhat.com> 0:3.2-2jpp_1rh
- First Red Hat build

* Mon Apr 24 2006 Fernando Nasser <fnasser at redhat.com> 0:3.2-2jpp
- Rename to javacc3 as compatibility package
- First JPP 1.7 build

* Mon Nov 22 2004 Fernando Nasser <fnasser at redhat.com> 0:3.2-1jpp_2rh
- Rebuild

* Thu Mar  4 2004 Frank Ch. Eigler <fche at redhat.com> 0:3.2-1jpp_1rh
- RH vacuuming

* Fri Jan 30 2004 Sebastiano Vigna <vigna at acm.org> 0:3.2-1jpp
- First JPackage version




More information about the JPackage-commits mailing list