[Jpackage-commits] dist/javacc3/devel .cvsignore, 1.1, 1.2 javacc, NONE, 1.1 javacc-component-info.xml, NONE, 1.1 javacc3.spec, NONE, 1.1 jjdoc, NONE, 1.1 jjtree, NONE, 1.1 sources, 1.1, 1.2

jpackage jpackage at ryu.zarb.org
Fri May 30 22:42:46 CEST 2008


Update of /home/projects/jpackage/cvs/dist/javacc3/devel
In directory ryu.zarb.org:/tmp/cvs-serv13903/devel

Modified Files:
	.cvsignore sources 
Added Files:
	javacc javacc-component-info.xml javacc3.spec jjdoc jjtree 
Log Message:
Import merged version from Permaine

Index: .cvsignore
===================================================================
RCS file: /home/projects/jpackage/cvs/dist/javacc3/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -C 2 -d -r1.1 -r1.2
*** .cvsignore	30 May 2008 20:41:44 -0000	1.1
--- .cvsignore	30 May 2008 20:42:44 -0000	1.2
***************
*** 0 ****
--- 1 ----
+ javacc-3.2-src.tar.gz

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

   <component id="sun-javacc"
              version="3.2-brew"
              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="javacc3-3_2-2jpp_ep1_4_el4">
      <!-- Built using JDK 1.4 --> 
      <artifact id="javacc.jar"/>
      <export>
         <include input="javacc.jar"/>
      </export>
   </component>

</project>

--- 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 "$@"

Index: sources
===================================================================
RCS file: /home/projects/jpackage/cvs/dist/javacc3/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -C 2 -d -r1.1 -r1.2
*** sources	30 May 2008 20:41:44 -0000	1.1
--- sources	30 May 2008 20:42:44 -0000	1.2
***************
*** 0 ****
--- 1 ----
+ 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-2008, 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/3.2-brew
%define repodirlib %{repodir}/lib
%define repodirsrc %{repodir}/src

%define section free
%define _basename javacc

Name:           javacc3
Version:        3.2
Release:        3%{?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
URL:            https://javacc.dev.java.net/
Group:          Development/Code Generators
BuildRoot:      %{_tmppath}/%{_basename}-%{version}-%{release}-buildroot
BuildArch:      noarch
Requires:	jpackage-utils >= 0:1.5
BuildRequires:	ant

%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
Manual for %{_basename}.

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

%description demo
Examples for %{_basename}.

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

tag=`echo %{name}-%{version}-%{release} | sed 's|\.|_|g'`
sed -i "s/@TAG@/$tag/g" %{SOURCE4}

%build
ant \
  -Dant.build.javac.source=1.4 \
  -Dversion=%{version} \
  jar

%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
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/usr/share/%{name}
cp -pr examples $RPM_BUILD_ROOT/usr/share/%{name}


%if %{with_repolib}
	install -d -m 755 $RPM_BUILD_ROOT%{repodir}
	install -d -m 755 $RPM_BUILD_ROOT%{repodirlib}
	install -m 755 %{SOURCE4} $RPM_BUILD_ROOT%{repodir}/component-info.xml
	install -d -m 755 $RPM_BUILD_ROOT%{repodirsrc}
	install -m 755 %{SOURCE0} $RPM_BUILD_ROOT%{repodirsrc}
	cp $RPM_BUILD_ROOT%{_javadir}/javacc3.jar $RPM_BUILD_ROOT%{repodirlib}/javacc.jar
%endif

%clean
rm -rf $RPM_BUILD_ROOT

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

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

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

%if %{with_repolib}
%files repolib
%defattr(0644,root,root,0755)
%{repodir}
%endif

%changelog
* 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