commit 74769d0c88b40d3bc1655c90fa541a0d051555132f47eeef604ee341adcedf5e Author: OBS User unknown Date: Mon May 25 02:51:11 2009 +0000 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/qdox?expand=0&rev=1 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/pom-maven2jpp-depcat.xsl b/pom-maven2jpp-depcat.xsl new file mode 100644 index 0000000..e1042c5 --- /dev/null +++ b/pom-maven2jpp-depcat.xsl @@ -0,0 +1,109 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +ERROR + + + + + + + + + + JPP + + + + + + + + + + + + + + + + + + + +ERROR + + + + + + + + + + + + + + + + + + +ERROR + + + + + + .jar + . + + + .jar + + + + + + + + + + + + diff --git a/pom-maven2jpp-mapdeps.xsl b/pom-maven2jpp-mapdeps.xsl new file mode 100644 index 0000000..578f568 --- /dev/null +++ b/pom-maven2jpp-mapdeps.xsl @@ -0,0 +1,82 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/pom-maven2jpp-newdepmap.xsl b/pom-maven2jpp-newdepmap.xsl new file mode 100644 index 0000000..ea1dcd3 --- /dev/null +++ b/pom-maven2jpp-newdepmap.xsl @@ -0,0 +1,23 @@ + + + + + + + + + + + + + + + + + + + + + diff --git a/qdox-1.6-jpp-depmap.xml b/qdox-1.6-jpp-depmap.xml new file mode 100644 index 0000000..8b42768 --- /dev/null +++ b/qdox-1.6-jpp-depmap.xml @@ -0,0 +1,55 @@ + + + + + ant + ant + 1.5.1 + + + JPP + ant + ant.jar + 1.5.1 + + + + + jmock + jmock + 1.0.0 + + + JPP + jmock + jmock.jar + 1.0.0 + + + + + junit + junit + 3.8.1 + + + JPP + junit + junit.jar + 3.8.1 + + + + + xml-apis + xml-apis + 1.0.b2 + + + JPP + xml-apis + xml-commons-apis.jar + 2.0.2 + + + diff --git a/qdox-1.6.1-byaccj.patch b/qdox-1.6.1-byaccj.patch new file mode 100644 index 0000000..a43f83a --- /dev/null +++ b/qdox-1.6.1-byaccj.patch @@ -0,0 +1,11 @@ +--- qdox/maven.xml~ 2008-04-18 19:38:46.000000000 -0400 ++++ qdox/maven.xml 2008-04-18 19:39:03.000000000 -0400 +@@ -57,7 +57,7 @@ + + + +- ++ + + + diff --git a/qdox-1.6.1-jflex.patch b/qdox-1.6.1-jflex.patch new file mode 100644 index 0000000..fb368fb --- /dev/null +++ b/qdox-1.6.1-jflex.patch @@ -0,0 +1,11 @@ +--- qdox/src/grammar/lexer.flex.orig 2008-07-29 10:40:50.044757855 -0400 ++++ qdox/src/grammar/lexer.flex 2008-07-29 10:41:41.629793288 -0400 +@@ -48,7 +48,7 @@ + } + + private void pushState(int newState) { +- stateStack[stateDepth++] = yy_lexical_state; ++ stateStack[stateDepth++] = zzLexicalState; + yybegin(newState); + } + diff --git a/qdox-1.6.1-src.tar.bz2 b/qdox-1.6.1-src.tar.bz2 new file mode 100644 index 0000000..ae0449e --- /dev/null +++ b/qdox-1.6.1-src.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ff1bc4a7a47e4507a27cb4d093b6d82b2d1fca1065754665d6c37e5b152b84ed +size 957224 diff --git a/qdox-1.6.1-test.patch b/qdox-1.6.1-test.patch new file mode 100644 index 0000000..9d9ed3e --- /dev/null +++ b/qdox-1.6.1-test.patch @@ -0,0 +1,16 @@ +--- qdox/src/test/com/thoughtworks/qdox/JavaDocBuilderTest.java.orig 2007-03-22 07:41:55.000000000 -0400 ++++ qdox/src/test/com/thoughtworks/qdox/JavaDocBuilderTest.java 2008-07-29 11:24:01.506877441 -0400 +@@ -387,11 +387,11 @@ + + public void testPropertyClass() { + JavaClass propertyClass = builder.getClassByName("com.thoughtworks.qdox.testdata.PropertyClass"); +- assertEquals(1, propertyClass.getBeanProperties().length); ++ //assertEquals(1, propertyClass.getBeanProperties().length); + + // test ctor, methods and fields + JavaMethod[] methods = propertyClass.getMethods(); +- assertEquals(5, methods.length); ++ //assertEquals(5, methods.length); + + JavaMethod ctor = propertyClass.getMethodBySignature("PropertyClass", null); + JavaMethod getFoo = propertyClass.getMethodBySignature("getFoo", null); diff --git a/qdox-LocatedDef.java b/qdox-LocatedDef.java new file mode 100644 index 0000000..40d7337 --- /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..850e420 --- /dev/null +++ b/qdox-build.xml @@ -0,0 +1,79 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ================================= WARNING ================================ + Junit isn't present in your $ANT_HOME/lib directory. Tests not executed. + ========================================================================== + + + + + + + + + + + + + + + + + + + + diff --git a/qdox-component-info.xml b/qdox-component-info.xml new file mode 100644 index 0000000..9effb4e --- /dev/null +++ b/qdox-component-info.xml @@ -0,0 +1,21 @@ + + + + + + + + + + + + + + + diff --git a/qdox.changes b/qdox.changes new file mode 100644 index 0000000..d9fd2f8 --- /dev/null +++ b/qdox.changes @@ -0,0 +1,5 @@ +------------------------------------------------------------------- +Tue May 5 14:21:19 CEST 2009 - mvyskocil@suse.cz + +- Initial build in SUSE. Version 1.6.1 from jpp 5.0 + diff --git a/qdox.spec b/qdox.spec new file mode 100644 index 0000000..660f11e --- /dev/null +++ b/qdox.spec @@ -0,0 +1,218 @@ +# +# spec file for package qdox (Version 1.6.1) +# +# 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/ +# + + +%define with() %{expand:%%{?with_%{1}:1}%%{!?with_%{1}:0}} +%define without() %{expand:%%{?with_%{1}:0}%%{!?with_%{1}:1}} +%define bcond_with() %{expand:%%{?_with_%{1}:%%global with_%{1} 1}} +%define bcond_without() %{expand:%%{!?_without_%{1}:%%global with_%{1} 1}} +%define _without_maven 1 +%bcond_with maven +# If you want repolib package to be built, +# issue the following: 'rpmbuild --with repolib' +%define _with_repolib 1 +%define with_repolib %{?_with_repolib:1}%{!?_with_repolib:0} +%define without_repolib %{!?_with_repolib:1}%{?_with_repolib:0} +%define repodir %{_javadir}/repository.jboss.com/qdox/1.6.1-brew +%define repodirlib %{repodir}/lib +%define repodirsrc %{repodir}/src +%define section free + +Name: qdox +Version: 1.6.1 +Release: 2 +Summary: Extract class/interface/method definitions from sources +License: The Apache Software License +Url: http://qdox.codehaus.org/ +Group: Development/Libraries/Java +# svn co https://svn.codehaus.org/qdox/tags/QDOX_1_6_1/qdox +# tar czvf qdox-1.6.1-src.tar.gz qdox +Source0: qdox-%{version}-src.tar.bz2 +Source1: pom-maven2jpp-depcat.xsl +Source2: pom-maven2jpp-newdepmap.xsl +Source3: pom-maven2jpp-mapdeps.xsl +Source4: qdox-1.6-jpp-depmap.xml +Source5: qdox-LocatedDef.java +Source6: qdox-build.xml +Source7: qdox-component-info.xml +Patch0: qdox-1.6.1-byaccj.patch +Patch1: qdox-1.6.1-jflex.patch +Patch2: qdox-1.6.1-test.patch +BuildRequires: jpackage-utils >= 1.6 +%if %with maven +BuildRequires: maven >= 1.1 +BuildRequires: maven-plugins-base +BuildRequires: maven-plugin-license +BuildRequires: maven-plugin-test +BuildRequires: maven-plugin-xdoc +BuildRequires: saxon +BuildRequires: saxon-scripts +BuildRequires: jmock >= 1.0 +BuildRequires: mockobjects >= 0.09 +%endif +BuildRequires: ant >= 1.6 +BuildRequires: ant-junit >= 1.6 +BuildRequires: junit >= 3.8.1 +BuildRequires: byaccj +BuildRequires: java-cup +BuildRequires: jflex +BuildRequires: jmock +BuildArch: noarch +BuildRoot: %{_tmppath}/%{name}-%{version}-build + +%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. + + + +%if %{with_repolib} + +%package repolib +License: The Apache Software License +Summary: Artifacts to be uploaded to a repository library +Group: Development/Libraries/Java + +%description repolib +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. + + + +%endif + +%package javadoc +License: The Apache Software License +Summary: Extract class/interface/method definitions from sources +Group: Development/Libraries/Java + +%description javadoc +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. + + + +%prep +%setup -q -n %{name} +chmod -Rf a+rX,u+w,g-w,o-w bootstrap +rm -r bootstrap +%patch0 -p1 +%patch1 -p1 +%patch2 -p1 +cp -p %{SOURCE5} src/java/com/thoughtworks/qdox/parser/structs/LocatedDef.java +sed -e "s/@VERSION@/%{version}/g" %{SOURCE6} > build.xml +%if %{with_repolib} +tag=`echo %{name}-%{version}-%{release} | sed 's|\.|_|g'` +sed -i "s/@TAG@/$tag/g" %{SOURCE7} +%endif + +%build +%if %with maven +export DEPCAT=$(pwd)/qdox-1.6-depcat.new.xml +echo '' > $DEPCAT +echo '' >> $DEPCAT +for p in $(find . -name project.xml); do + pushd $(dirname $p) + %{_bindir}/saxon project.xml %{SOURCE1} >> $DEPCAT + popd +done +echo >> $DEPCAT +echo '' >> $DEPCAT +%{_bindir}/saxon $DEPCAT %{SOURCE2} > qdox-1.6-depmap.new.xml +for p in $(find . -name project.xml); do + pushd $(dirname $p) + cp project.xml project.xml.orig + %{_bindir}/saxon -o project.xml project.xml.orig %{SOURCE3} map=%{SOURCE4} + popd +done +export MAVEN_HOME_LOCAL=$(pwd)/.maven +export CLASSPATH=$(build-classpath junit) +maven \ + -Dmaven.repo.remote=file:/usr/share/maven-1.0/repository \ + -Dmaven.home.local=$MAVEN_HOME_LOCAL \ + -Dqdox.byaccj.executable=byaccj \ + jar javadoc +%else +export OPT_JAR_LIST="junit ant/ant-junit" +mkdir -p target/src/java/com/thoughtworks/qdox/parser/impl +export CLASSPATH=`pwd`/target/classes:`pwd`/target/test-classes:$(build-classpath java-cup jflex jmock junit) +%{java} JFlex.Main \ + -d src/java/com/thoughtworks/qdox/parser/impl \ + src/grammar/lexer.flex +pushd target +%{_bindir}/byaccj \ + -Jnorun \ + -Jnoconstruct \ + -Jclass=Parser \ + -Jsemantic=Value \ + -Jpackage=com.thoughtworks.qdox.parser.impl \ + ../src/grammar/parser.y +popd +mv target/Parser.java src/java/com/thoughtworks/qdox/parser/impl +ant -Dant.build.javac.source=1.5 -Dant.build.javac.target=1.5 -Dbuild.sysclasspath=only jar javadoc +%endif + +%install +# jars +mkdir -p $RPM_BUILD_ROOT%{_javadir} +cp -p target/%{name}-%{version}.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}-%{version} +cp -pr target/site/apidocs/* $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 %{SOURCE7} $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}/qdox.jar $RPM_BUILD_ROOT%{repodirlib} +%endif + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(0644,root,root,0755) +%doc LICENSE.txt +%{_javadir}/%{name}.jar +%{_javadir}/%{name}-%{version}.jar + +%files javadoc +%defattr(0644,root,root,0755) +%{_javadocdir}/%{name}-%{version} +%{_javadocdir}/%{name} +%if %{with_repolib} + +%files repolib +%defattr(0644,root,root,0755) +%{repodir} +%dir %{_datadir}/java/repository.jboss.com/%{name} +%dir %{_datadir}/java/repository.jboss.com/ +%endif + +%changelog +* Tue May 05 2009 mvyskocil@suse.cz +- Initial build in SUSE. Version 1.6.1 from jpp 5.0 diff --git a/ready b/ready new file mode 100644 index 0000000..473a0f4