!1 Package init

Merge pull request !1 from lkx690/master
This commit is contained in:
openeuler-ci-bot 2020-02-25 14:49:13 +08:00 committed by Gitee
commit 8a2867dab2
3 changed files with 84 additions and 0 deletions

BIN
qdox-2.0-M9.tar.gz Normal file

Binary file not shown.

19
qdox-MANIFEST.MF Normal file
View File

@ -0,0 +1,19 @@
Manifest-Version: 1.0
Bundle-Vendor: %providerName
Bundle-Localization: plugin
Bundle-RequiredExecutionEnvironment: J2SE-1.4
Bundle-Name: %pluginName
Bundle-SymbolicName: com.thoughtworks.qdox
Bundle-Version: 1.6.3.v20081201-1400
Export-Package: com.thoughtworks.qdox;version="1.6.3",com.thoughtworks
.qdox.ant;version="1.6.3",com.thoughtworks.qdox.directorywalker;versi
on="1.6.3",com.thoughtworks.qdox.junit;version="1.6.3",com.thoughtwor
ks.qdox.model;version="1.6.3",com.thoughtworks.qdox.model.util;versio
n="1.6.3",com.thoughtworks.qdox.parser;version="1.6.3",com.thoughtwor
ks.qdox.parser.impl;version="1.6.3",com.thoughtworks.qdox.parser.stru
cts;version="1.6.3",com.thoughtworks.qdox.tools;version="1.6.3"
Bundle-ManifestVersion: 2
Import-Package: junit.framework;version="[3.8.2,4.0.0)";resolution:=op
tional,org.apache.tools.ant;version="[1.7.0,2.0.0)";resolution:=optio
nal,org.apache.tools.ant.types;version="[1.7.0,2.0.0)";resolution:=op
tional

65
qdox.spec Normal file
View File

@ -0,0 +1,65 @@
%global impl src/main/java/com/thoughtworks/qdox/parser/impl
%global grammar src/grammar
Name: qdox
Version: 2.0
Release: 5.M9
Summary: High speed and small footprint parser
Epoch: 0
License: ASL 2.0
URL: https://github.com/paul-hammant/qdox
BuildArch: noarch
Source0: qdox-%{version}-M9.tar.gz
Source1: qdox-MANIFEST.MF
BuildRequires: maven-local byaccj jflex
BuildRequires: mvn(org.apache.maven.plugins:maven-assembly-plugin)
BuildRequires: mvn(org.apache.maven.plugins:maven-invoker-plugin)
BuildRequires: mvn(org.codehaus.mojo:exec-maven-plugin) mvn(org.sonatype.oss:oss-parent:pom:)
%description
QDox is used by documentation tools and active code generators.It provides parser for
fully extracting class/interface/method definitions.It is a high speed, small footprint parser.
%package help
Summary: API docs for qdox
Provides: qdox-javadoc = %{version}-%{release}
Obsoletes: qdox-javadoc < %{version}-%{release}
%description help
Javadocs for qdox.
%prep
%autosetup -n qdox-%{version}-M9
find -name *.jar -delete
rm -rf bootstrap
%pom_remove_plugin :animal-sniffer-maven-plugin
%pom_remove_plugin :maven-failsafe-plugin
%pom_remove_plugin :maven-jflex-plugin
%pom_remove_plugin :maven-enforcer-plugin
%mvn_file : qdox
%mvn_alias : qdox:qdox
%pom_xpath_set pom:workingDirectory '${basedir}/%{impl}'
%build
for i in lexer commentlexer; do
jflex --inputstreamctor -d %{impl} %{grammar}/$i.flex
done
%mvn_build -f -- -Dqdox.byaccj.executable=byaccj
jar ufm target/qdox-%{version}*.jar %{SOURCE1}
%install
%mvn_install
%files -f .mfiles
%doc LICENSE.txt
%files help -f .mfiles-javadoc
%doc README.md
%changelog
* Mon Dec 9 2019 zhujunhao <zhujunhao5@huawei.com> 2.0-5.M9
- Package init