From e227c9df55db0139a0eb5fc656e98d5d3c820a04 Mon Sep 17 00:00:00 2001 From: Matt Wringe Date: Mon, 12 Mar 2007 15:15:35 +0000 Subject: [PATCH] auto-import qdox-1.5-2jpp.1 on branch devel from qdox-1.5-2jpp.1.src.rpm --- .cvsignore | 1 + qdox-1.5-parser_y.patch | 15 +++++ qdox-LocatedDef.java | 7 ++ qdox-build.xml | 135 ++++++++++++++++++++++++++++++++++++++ qdox.spec | 141 ++++++++++++++++++++++++++++++++++++++++ sources | 1 + 6 files changed, 300 insertions(+) create mode 100644 qdox-1.5-parser_y.patch create mode 100644 qdox-LocatedDef.java create mode 100644 qdox-build.xml create mode 100644 qdox.spec diff --git a/.cvsignore b/.cvsignore index e69de29..467ed67 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +qdox-1.5-src.tar.gz diff --git a/qdox-1.5-parser_y.patch b/qdox-1.5-parser_y.patch new file mode 100644 index 0000000..a46124f --- /dev/null +++ b/qdox-1.5-parser_y.patch @@ -0,0 +1,15 @@ +--- src/grammar/parser.y.sav 2004-06-20 02:12:18.000000000 +0200 ++++ src/grammar/parser.y 2005-11-16 08:54:40.000000000 +0100 +@@ -118,10 +118,9 @@ + }; + + classdefinition: +- { line = lexer.getLine(); } modifiers classorinterface IDENTIFIER typeparams extends implements { +- cls.lineNumber = line; ++ modifiers classorinterface IDENTIFIER typeparams extends implements { + cls.modifiers.addAll(modifiers); modifiers.clear(); +- cls.name = $4; ++ cls.name = $3; + builder.beginClass(cls); + cls = new ClassDef(); + }; diff --git a/qdox-LocatedDef.java b/qdox-LocatedDef.java new file mode 100644 index 0000000..d1ffd15 --- /dev/null +++ b/qdox-LocatedDef.java @@ -0,0 +1,7 @@ +package com.thoughtworks.qdox.parser.structs; + +public class LocatedDef { + + public int lineNumber; + +} diff --git a/qdox-build.xml b/qdox-build.xml new file mode 100644 index 0000000..22adcf5 --- /dev/null +++ b/qdox-build.xml @@ -0,0 +1,135 @@ + + + + + + + + + + + + + + + + + + + + **** Generating Lexer **** + + + + + + + + + + + **** Generating Parser **** + + + + + + + + + + + + + **** Generating Mock Objects **** + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Generated build/${name}.jar + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/qdox.spec b/qdox.spec new file mode 100644 index 0000000..52a9e84 --- /dev/null +++ b/qdox.spec @@ -0,0 +1,141 @@ +# Copyright (c) 2000-2005, 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. +# + +Summary: Extract class/interface/method definitions from sources +Name: qdox +Version: 1.5 +Release: 2jpp.1%{?dist} +Epoch: 0 +License: Apache Software License style +URL: http://qdox.codehaus.org/ +Group: Development/Libraries/Java +Source0: qdox-1.5-src.tar.gz +#svn export http://svn.codehaus.org/qdox/tags/QDOX_1_5/qdox/ +#tar czvf qdox-1.5-src.tar.gz qdox +Source1: qdox-build.xml +Source2: qdox-LocatedDef.java +Patch0: qdox-1.5-parser_y.patch +BuildRequires: jpackage-utils >= 0:1.6 +BuildRequires: ant >= 0:1.6 +BuildRequires: ant-junit >= 0:1.6 +BuildRequires: ant-nodeps >= 0:1.6 +BuildRequires: junit >= 0:3.8.1 +BuildRequires: jflex +BuildRequires: byaccj +Requires: jpackage-utils +Requires: java +BuildArch: noarch +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +%description +QDox is a high speed, small footprint parser +for extracting class/interface/method definitions +from source files complete with JavaDoc @tags. +It is designed to be used by active code +generators or documentation tools. + +%package javadoc +Summary: Javadoc for %{name} +Group: Development/Documentation + +%description javadoc +%{summary}. + +%prep +%setup -q -n %{name} +cp %{SOURCE2} src/java/com/thoughtworks/qdox/parser/structs/LocatedDef.java +cp %{SOURCE1} build.xml + +%patch0 -b .sav +#Remove files which needed jmock +rm src/test/com/thoughtworks/qdox/parser/MockBuilder.java +rm src/test/com/thoughtworks/qdox/parser/MockLexer.java +rm src/test/com/thoughtworks/qdox/parser/ParserTest.java +rm src/test/com/thoughtworks/qdox/directorywalker/DirectoryScannerTest.java + +%build +export CLASSPATH=$(build-classpath \ +ant \ +ant-launcher \ +junit) +CLASSPATH=target/classes:target/test-classes:$CLASSPATH +ant jar javadoc + +%install +rm -rf $RPM_BUILD_ROOT + +# jars +mkdir -p $RPM_BUILD_ROOT%{_javadir} +cp -p build/%{name}.jar \ + $RPM_BUILD_ROOT%{_javadir}/%{name}-%{version}.jar +(cd $RPM_BUILD_ROOT%{_javadir} && for jar in *-%{version}.jar; \ +do ln -sf ${jar} `echo $jar| sed "s|-%{version}||g"`; done) + +# javadoc +mkdir -p $RPM_BUILD_ROOT%{_javadocdir}/%{name} +cp -pr build/javadocdir/* $RPM_BUILD_ROOT%{_javadocdir}/%{name} + + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(0644,root,root,0755) +%doc LICENSE.txt README.txt +%{_javadir}/%{name}.jar +%{_javadir}/%{name}-%{version}.jar + +%files javadoc +%defattr(0644,root,root,0755) +%doc %{_javadocdir}/* + +%changelog +* Thu Feb 15 2007 Permaine Cheung - 0:1.5-2jpp.1 +- Use ant for building, and fixes as per fedora guidelines. + +* Mon Feb 20 2006 Ralph Apel - 0:1.5-2jpp +- Rebuild for JPP-1.7, adapting to maven-1.1 + +* Wed Nov 16 2005 Ralph Apel - 0:1.5-1jpp +- Upgrade to 1.5 +- Build is now done with maven and requires jflex and byaccj + +* Wed Aug 25 2004 Fernando Nasser - 0:1.4-3jpp +- Rebuild with Ant 1.6.2 + +* Fri Aug 06 2004 Ralph Apel - 0:1.4-2jpp +- Upgrade to ant-1.6.X + +* Mon Jun 07 2004 Ralph Apel - 0:1.4-1jpp +- Upgrade to 1.4 +- Drop Requires: mockobjects (Build/Test only) + +* Tue Feb 24 2004 Ralph Apel - 0:1.3-1jpp +- First JPackage release diff --git a/sources b/sources index e69de29..c674786 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +29daf31c5067ed16201c89bd3d3a5444 qdox-1.5-src.tar.gz