From 47d00ef67fda105a8d2dbac562b611b36a89e876 Mon Sep 17 00:00:00 2001 From: gil Date: Sat, 6 Jan 2024 00:09:57 +0100 Subject: [PATCH] update to 1.11 [release 1.11-1mamba;Wed May 05 2010] --- README.md | 6 ++ java-qdox-LocatedDef.java | 7 ++ java-qdox-build.xml | 107 ++++++++++++++++++++++++ java-qdox.spec | 170 ++++++++++++++++++++++++++++++++++++++ 4 files changed, 290 insertions(+) create mode 100644 java-qdox-LocatedDef.java create mode 100644 java-qdox-build.xml create mode 100644 java-qdox.spec diff --git a/README.md b/README.md index e7a31ed..a23939c 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,8 @@ # java-qdox +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. + diff --git a/java-qdox-LocatedDef.java b/java-qdox-LocatedDef.java new file mode 100644 index 0000000..d1ffd15 --- /dev/null +++ b/java-qdox-LocatedDef.java @@ -0,0 +1,7 @@ +package com.thoughtworks.qdox.parser.structs; + +public class LocatedDef { + + public int lineNumber; + +} diff --git a/java-qdox-build.xml b/java-qdox-build.xml new file mode 100644 index 0000000..c475bd6 --- /dev/null +++ b/java-qdox-build.xml @@ -0,0 +1,107 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ================================= WARNING ================================ + Junit isn't present in your $ANT_HOME/lib directory. Tests not executed. + ========================================================================== + + + + + + + + + + + + + + + + + + + + diff --git a/java-qdox.spec b/java-qdox.spec new file mode 100644 index 0000000..b428aa3 --- /dev/null +++ b/java-qdox.spec @@ -0,0 +1,170 @@ +%define maven 0 +Name: java-qdox +Version: 1.11 +Release: 1mamba +Summary: Quick JavaDoc Scanner +Group: Development/Libraries/Java +Vendor: openmamba +Distribution: openmamba +Packager: gil +URL: http://qdox.codehaus.org/ +# jsvn co https://svn.codehaus.org/qdox/tags/qdox-1.11 +# tar czvf qdox-1.10.1-src-svn.tar.gz qdox-1.11 +Source0: qdox-1.11-src-svn.tar.gz +Source1: java-qdox-LocatedDef.java +Source2: java-qdox-build.xml +License: Apache Software License Version 2.0 +BuildRequires: apache-ant +BuildRequires: apache-ant-junit +%if %maven +#BuildRequires: apache-maven +#BuildRequires: apache-maven-plugin-ant +#BuildRequires: apache-maven-plugin-antrun +#BuildRequires: apache-maven-plugin-changes +#BuildRequires: apache-maven-plugin-compiler +#BuildRequires: apache-maven-plugin-dependency +#BuildRequires: apache-maven-plugin-deploy +#BuildRequires: apache-maven-plugin-install +#BuildRequires: apache-maven-plugin-jar +#BuildRequires: apache-maven-plugin-javadoc +#BuildRequires: apache-maven-plugin-resources +#BuildRequires: apache-maven-plugin-site +#BuildRequires: cobertura-maven-plugin +#BuildRequires: jflex-maven-plugin +#BuildRequires: maven-project-info-reports-plugin +#BuildRequires: maven-release-plugin +#BuildRequires: maven-surefire-plugin +#BuildRequires: maven-wagon-webdav +##BuildRequires: xsite-maven-plugin 1.0 todo +%endif +BuildRequires: byaccj +BuildRequires: java_cup +BuildRequires: java-jflex143 +BuildRequires: java-junit3 +BuildRequires: jpackage-utils +BuildRequires: java-jmock1 +Requires: jpackage-utils +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%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 +Group: Documentation +Summary: Javadoc for %{name} + +%description javadoc +QDox - Quick JavaDoc Scanner. + +This package contains documentation for %{name}. + +%prep + +%setup -q -n qdox-%{version} +chmod -Rf a+rX,u+w,g-w,o-w bootstrap + +for j in $(find . -name "*.jar"); do + mv $j $j.no +done + +rm -r bootstrap/*.exe +rm -r bootstrap/yacc.* + +ln -s /usr/bin/byaccj bootstrap/yacc.linux +ln -s $(build-classpath jflex/jflex) bootstrap + +#cp -p %{S:1} src/java/com/thoughtworks/qdox/parser/structs/LocatedDef.java + +sed -e "s/@VERSION@/%{version}/g" %{S:2} > build.xml + +rm src/test/com/thoughtworks/qdox/JavaDocBuilderTest.java + +%build + +mkdir -p target/src/java/com/thoughtworks/qdox/parser/impl + +export CLASSPATH="" +CLASSPATH=$CLASSPATH:$(build-classpath java_cup jflex/jflex jmock1) +CLASSPATH=$CLASSPATH:$(build-classpath junit-3.8.2 ant/ant-junit):target/classes:target/test-classes + +pushd src + pushd grammar + %{_bindir}/jflex143 \ + -d ../java/com/thoughtworks/qdox/parser/impl \ + lexer.flex \ + --skel skeleton.inner + popd + %{_bindir}/byaccj \ + -v \ + -Jnorun \ + -Jnoconstruct \ + -Jclass=Parser \ + -Jsemantic=Value \ + -Jpackage=com.thoughtworks.qdox.parser.impl \ + ../src/grammar/parser.y + mv Parser.java java/com/thoughtworks/qdox/parser/impl +popd + +ant -Dbuild.sysclasspath=only jar javadoc + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +mkdir -p %{buildroot}%{_javadir} +mkdir -p %{buildroot}%{_datadir}/maven2/poms + +install -m 644 target/qdox-%{version}.jar \ + %{buildroot}%{_javadir}/qdox-%{version}.jar + +install -pm 644 pom.xml %{buildroot}%{_datadir}/maven2/poms/JPP-qdox.pom +%add_to_maven_depmap com.thoughtworks.qdox qdox %{version} JPP qdox + +( + cd %{buildroot}%{_javadir} + for jar in *-%{version}.jar; do + ln -sf ${jar} `echo $jar| sed "s|-%{version}||g"` + done +) + +mkdir -p %{buildroot}%{_javadocdir}/qdox-%{version} +cp -pr target/site/apidocs/* %{buildroot}%{_javadocdir}/qdox-%{version} +ln -s qdox-%{version} %{buildroot}%{_javadocdir}/qdox + +#%{_bindir}/aot-compile-rpm + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%files +%defattr(-,root,root) +%{_javadir}/qdox-%{version}.jar +%{_javadir}/qdox.jar +%{_datadir}/maven2/poms +%{_mavendepmapfragdir} +%doc LICENSE.txt README.txt + +%files javadoc +%defattr(-,root,root) +%{_javadocdir}/qdox-%{version} +%{_javadocdir}/qdox + +%changelog +* Wed May 05 2010 gil 1.11-1mamba +- update to 1.11 + +* Tue Feb 16 2010 gil 1.10.1-1mamba +- update to 1.10.1 +- edit spec file + +* Mon Sep 28 2009 gil 1.10-1mamba +- update to 1.10 + +* Fri Jun 05 2009 gil 1.9.1-1mamba +- update to 1.9.1 + +* Mon Mar 02 2009 gil 1.6.1-1mamba +- package created by autospec