Merge pull request !1 from compile_success/master
This commit is contained in:
openeuler-ci-bot 2020-02-24 11:15:26 +08:00 committed by Gitee
commit 410eee3ff0
6 changed files with 178 additions and 0 deletions

View File

@ -0,0 +1,19 @@
Bundle-ManifestVersion: 2
Bundle-SymbolicName: org.xmlpull
Bundle-Version: 1.1.4
Export-Package: org.xmlpull.mxp1,
org.xmlpull.mxp1_serializer,
org.xmlpull.v1,
org.xmlpull.v1.builder,
org.xmlpull.v1.builder.adapter,
org.xmlpull.v1.builder.impl,
org.xmlpull.v1.dom2_builder,
org.xmlpull.v1.parser_pool,
org.xmlpull.v1.sax2,
org.xmlpull.v1.util,
org.xmlpull.v1.wrapper,
org.xmlpull.v1.wrapper.classic
Import-Package: javax.xml.parsers;resolution:=optional,
org.w3c.dom;resolution:=optional,
org.xml.sax;resolution:=optional,
org.xml.sax.helpers;resolution:=optional

40
xpp3-1.1.4c.pom Normal file
View File

@ -0,0 +1,40 @@
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>xpp3</groupId>
<artifactId>xpp3</artifactId>
<version>1.1.4c</version>
<packaging>jar</packaging>
<name>MXP1: Xml Pull Parser 3rd Edition (XPP3)</name>
<url>http://www.extreme.indiana.edu/xgws/xsoap/xpp/mxp1/</url>
<description>MXP1 is a stable XmlPull parsing engine that is based on ideas from XPP and in particular XPP2 but completely revised and rewritten to take the best advantage of latest JIT JVMs such as Hotspot in JDK 1.4+.</description>
<licenses>
<license>
<name>Indiana University Extreme! Lab Software License, vesion 1.1.1</name>
<url>http://www.extreme.indiana.edu/viewcvs/~checkout~/XPP3/java/LICENSE.txt</url>
<distribution>repo</distribution>
<comments>The license applies to the Xpp3 classes (all classes below the org.xmlpull package with exception of classes directly in package org.xmlpull.v1 )</comments>
</license>
<license>
<name>Public Domain</name>
<url>http://creativecommons.org/licenses/publicdomain</url>
<distribution>repo</distribution>
<comments>The license applies to the XmlPull API (all classes directly in the org.xmlpull.v1 package)</comments>
</license>
<license>
<name>Apache Software License, version 1.1</name>
<url>http://www.apache.org/licenses/LICENSE-1.1</url>
<distribution>repo</distribution>
<comments>The license applies to the class javax.xml.namespace.QName</comments>
</license>
</licenses>
<scm>
<url>http://www.extreme.indiana.edu/viewcvs/~checkout~/XPP3/java/</url>
</scm>
<organization>
<name>Extreme! Lab, Indiana University</name>
<url>http://www.extreme.indiana.edu/</url>
</organization>
<dependencies/>
</project>

BIN
xpp3-1.1.4c_src.tgz Normal file

Binary file not shown.

62
xpp3.spec Normal file
View File

@ -0,0 +1,62 @@
Name: xpp3
Version: 1.1.4
Release: 21
License: ASL 1.1
Summary: Xml Pull Parser 3rd Edition
URL: http://www.extreme.indiana.edu/xgws/xsoap/xpp/mxp1/index.html
Source0: http://www.extreme.indiana.edu/dist/java-repository/xpp3/distributions/xpp3-1.1.4c_src.tgz
Source1: https://repo1.maven.org/maven2/xpp3/xpp3/1.1.4c/xpp3-1.1.4c.pom
Source2: https://repo1.maven.org/maven2/xpp3/xpp3_xpath/1.1.4c/xpp3_xpath-1.1.4c.pom
Source3: https://repo1.maven.org/maven2/xpp3/xpp3_min/1.1.4c/xpp3_min-1.1.4c.pom
Source4: xpp3-1.1.4c-OSGI-MANIFEST.MF
Provides: xpp3-minimal = %{version}-%{release}
Obsoletes: xpp3-minimal < %{version}-%{release}
BuildRequires: javapackages-local java-javadoc ant junit
BuildArch: noarch
%description
MXP1 is a stable XmlPull parsing engine that is based on ideas from XPP and in particular XPP2
but completely revised and rewritten to take the best advantage of latest JIT JVMs such as Hotspot
in JDK 1.4+.
%package help
Summary: Documentation for xpp3
Requires: java-javadoc
Provides: xpp3-javadoc = %{version}-%{release}
Obsoletes: xpp3-javadoc < %{version}-%{release}
%description help
Documentation for xpp3.
%prep
%autosetup -n xpp3-1.1.4c
rm -rf *.jar src/java/builder/javax
sed -i 's|depends="junit_main,junit_addons"|depends="junit_main"|' build.xml
sed -i '/<javadoc/aadditionalparam="-Xdoclint:none"' build.xml
%build
export CLASSPATH=$(build-classpath junit)
ant xpp3 junit apidoc
jar ufm build/xpp3-1.1.4c.jar %{SOURCE4}
%install
ret=0
for line in `grep -n uuid $(find %{_buildrootdir} -name xpp3.xml) | cut -d \: -f 1`
do
sed -i "${line}s/[0-9a-f]\{8\}-[0-9a-f]\{4\}-[0-9a-f]\{4\}-[0-9a-f]\{4\}-[0-9a-f]\{12\}/f2f42549-cfab-4d71-be48-5e9f9a41e5f${ret}/g" $(find %{_buildrootdir} -name xpp3.xml)
ret=`expr $ret + 1`
done
%mvn_file ':{*}' @1
%mvn_package :xpp3_min minimal
%mvn_artifact %{SOURCE1} build/xpp3-1.1.4c.jar
%mvn_artifact %{SOURCE2} build/xpp3_xpath-1.1.4c.jar
%mvn_artifact %{SOURCE3} build/xpp3_min-1.1.4c.jar
%mvn_install -J doc/api
%files -f .mfiles
%files -f .mfiles-minimal
%doc README.html doc/*.txt doc/*.html LICENSE.txt
%files help -f .mfiles-javadoc
%changelog
* Tue Dec 3 2019 Ling Yang <lingyang2@huawei.com> - 1.1.4-20
- Package init

32
xpp3_min-1.1.4c.pom Normal file
View File

@ -0,0 +1,32 @@
<project>
<modelVersion>4.0.0</modelVersion>
<groupId>xpp3</groupId>
<artifactId>xpp3_min</artifactId>
<version>1.1.4c</version>
<packaging>jar</packaging>
<name>MXP1: Xml Pull Parser 3rd Edition (XPP3)</name>
<url>http://www.extreme.indiana.edu/xgws/xsoap/xpp/mxp1/</url>
<description>MXP1 is a stable XmlPull parsing engine that is based on ideas from XPP and in particular XPP2 but completely revised and rewritten to take the best advantage of latest JIT JVMs such as Hotspot in JDK 1.4+.</description>
<licenses>
<license>
<name>Indiana University Extreme! Lab Software License, vesion 1.1.1</name>
<url>http://www.extreme.indiana.edu/viewcvs/~checkout~/XPP3/java/LICENSE.txt</url>
<distribution>repo</distribution>
<comments>The license applies to the Xpp3 classes (all classes below the org.xmlpull package with exception of classes directly in package org.xmlpull.v1 )</comments>
</license>
<license>
<name>Public Domain</name>
<url>http://creativecommons.org/licenses/publicdomain</url>
<distribution>repo</distribution>
<comments>The license applies to the XmlPull API (all classes directly in the org.xmlpull.v1 package)</comments>
</license>
</licenses>
<scm>
<url>http://www.extreme.indiana.edu/viewcvs/~checkout~/XPP3/java/</url>
</scm>
<organization>
<name>Extreme! Lab, Indiana University</name>
<url>http://www.extreme.indiana.edu/</url>
</organization>
<dependencies/>
</project>

25
xpp3_xpath-1.1.4c.pom Normal file
View File

@ -0,0 +1,25 @@
<project>
<modelVersion>4.0.0</modelVersion>
<groupId>xpp3</groupId>
<artifactId>xpp3_xpath</artifactId>
<version>1.1.4c</version>
<packaging>jar</packaging>
<name>MXP1: Xml Pull Parser 3rd Edition (XPP3)</name>
<url>http://www.extreme.indiana.edu/xgws/xsoap/xpp/mxp1/</url>
<description>MXP1 is a stable XmlPull parsing engine that is based on ideas from XPP and in particular XPP2 but completely revised and rewritten to take the best advantage of latest JIT JVMs such as Hotspot in JDK 1.4+.</description>
<licenses>
<license>
<name>Indiana University Extreme! Lab Software License, vesion 1.1.1</name>
<url>http://www.extreme.indiana.edu/viewcvs/~checkout~/XPP3/java/LICENSE.txt</url>
<distribution>repo</distribution>
</license>
</licenses>
<scm>
<url>http://www.extreme.indiana.edu/viewcvs/~checkout~/XPP3/java/</url>
</scm>
<organization>
<name>Extreme! Lab, Indiana University</name>
<url>http://www.extreme.indiana.edu/</url>
</organization>
<dependencies/>
</project>