package init
This commit is contained in:
parent
fa8788cc2b
commit
298e6017c7
101
0001-Adapt-build.patch
Normal file
101
0001-Adapt-build.patch
Normal file
@ -0,0 +1,101 @@
|
|||||||
|
From 05a8a2fa49e92ad36a86d5d73588a2e46bf9ff95 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Michael Simacek <msimacek@redhat.com>
|
||||||
|
Date: Mon, 23 Jul 2018 14:30:14 +0200
|
||||||
|
Subject: [PATCH] Adapt build
|
||||||
|
|
||||||
|
---
|
||||||
|
build.xml | 40 +++++++++++++++++++++++++---------------
|
||||||
|
1 file changed, 25 insertions(+), 15 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/build.xml b/build.xml
|
||||||
|
index cd7c2ed..10d8df6 100644
|
||||||
|
--- a/build.xml
|
||||||
|
+++ b/build.xml
|
||||||
|
@@ -112,17 +112,7 @@ For instructions on how to build JDOM, please view the README.txt file.
|
||||||
|
|
||||||
|
<!-- Compilation class path -->
|
||||||
|
<path id="base.class.path">
|
||||||
|
- <pathelement location="${jaxen.jar}" />
|
||||||
|
- <pathelement location="${parser.jar}" />
|
||||||
|
- <pathelement location="${xmlapi.jar}" />
|
||||||
|
- <pathelement location="${junit.jar}" />
|
||||||
|
- <pathelement location="${isorelax.jar}" />
|
||||||
|
- <pathelement location="${xalan.jar}" />
|
||||||
|
- <pathelement location="${xalanser.jar}" />
|
||||||
|
- <!-- normally these stax jars will not be found -->
|
||||||
|
- <!-- this is used for testing Java5 (the test sets stax.dir) -->
|
||||||
|
- <pathelement location="${stax.dir}/jsr173_1.0_api.jar" />
|
||||||
|
- <pathelement location="${stax.dir}/sjsxp.jar" />
|
||||||
|
+ <fileset dir="${lib.dir}" includes="*.jar" />
|
||||||
|
</path>
|
||||||
|
|
||||||
|
<path id="core.class.path">
|
||||||
|
@@ -289,6 +279,7 @@ For instructions on how to build JDOM, please view the README.txt file.
|
||||||
|
header="<b>${Name}<br><font size='-1'>${version}</font></b>"
|
||||||
|
bottom="Copyright © ${year} Jason Hunter, Brett McLaughlin. All Rights Reserved.">
|
||||||
|
<classpath refid="base.class.path"/>
|
||||||
|
+ <link href="${j2se.apidoc}"/>
|
||||||
|
</javadoc>
|
||||||
|
</target>
|
||||||
|
|
||||||
|
@@ -373,11 +364,11 @@ For instructions on how to build JDOM, please view the README.txt file.
|
||||||
|
<!-- =================================================================== -->
|
||||||
|
<target name="package" depends="coverage, jars"
|
||||||
|
description="Creates the class package">
|
||||||
|
- <zip destfile="${package}/${jarbase}.zip">
|
||||||
|
+ <!--<zip destfile="${package}/${jarbase}.zip">
|
||||||
|
<fileset dir="${package}" includes="${jarbase}*.jar" />
|
||||||
|
<fileset dir="${basedir}" includes="lib/xerces* lib/jaxen* lib/xml* lib/xalan/**" />
|
||||||
|
<fileset dir="${basedir}" includes="LICENSE.txt README.txt" />
|
||||||
|
- </zip>
|
||||||
|
+ </zip>-->
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<!-- =================================================================== -->
|
||||||
|
@@ -401,6 +392,7 @@ For instructions on how to build JDOM, please view the README.txt file.
|
||||||
|
<include name="**/*.class"/>
|
||||||
|
<!-- exclude name="**/**/jaxen/**/*.class"/ -->
|
||||||
|
</fileset>
|
||||||
|
+ <classpath refid="junit.class.path" />
|
||||||
|
</cobertura-instrument>
|
||||||
|
|
||||||
|
<property name="forkjunit" value="true" />
|
||||||
|
@@ -528,7 +520,25 @@ For instructions on how to build JDOM, please view the README.txt file.
|
||||||
|
</filterset>
|
||||||
|
</copy>
|
||||||
|
|
||||||
|
- <exec dir="${mavendir}/core" executable="${gpg}">
|
||||||
|
+ <copy filtering="true" file="maven/contrib.pom" tofile="${mavendir}/core/${mavenbase}-contrib.pom">
|
||||||
|
+ <filterset>
|
||||||
|
+ <filter token="artifactID" value="${mavenartifact}"/>
|
||||||
|
+ <filter token="version" value="${version}" />
|
||||||
|
+ <filter token="jdk" value="${compile.target}" />
|
||||||
|
+ <filter token="license" value="${license}" />
|
||||||
|
+ </filterset>
|
||||||
|
+ </copy>
|
||||||
|
+
|
||||||
|
+ <copy filtering="true" file="maven/junit.pom" tofile="${mavendir}/core/${mavenbase}-junit.pom">
|
||||||
|
+ <filterset>
|
||||||
|
+ <filter token="artifactID" value="${mavenartifact}"/>
|
||||||
|
+ <filter token="version" value="${version}" />
|
||||||
|
+ <filter token="jdk" value="${compile.target}" />
|
||||||
|
+ <filter token="license" value="${license}" />
|
||||||
|
+ </filterset>
|
||||||
|
+ </copy>
|
||||||
|
+
|
||||||
|
+ <!--exec dir="${mavendir}/core" executable="${gpg}">
|
||||||
|
<arg value="-abv"/>
|
||||||
|
<arg value="${mavenbase}.pom"/>
|
||||||
|
</exec>
|
||||||
|
@@ -543,7 +553,7 @@ For instructions on how to build JDOM, please view the README.txt file.
|
||||||
|
<exec dir="${mavendir}/core" executable="${gpg}">
|
||||||
|
<arg value="-abv"/>
|
||||||
|
<arg value="${mavenbase}-javadoc.jar"/>
|
||||||
|
- </exec>
|
||||||
|
+ </exec-->
|
||||||
|
|
||||||
|
<jar destfile="${mavendir}/${mavenbase}-maven-bundle.jar"
|
||||||
|
basedir="${mavendir}/core"
|
||||||
|
--
|
||||||
|
2.17.1
|
||||||
|
|
||||||
BIN
JDOM-2.0.6.tar.gz
Normal file
BIN
JDOM-2.0.6.tar.gz
Normal file
Binary file not shown.
4
bnd.properties
Normal file
4
bnd.properties
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
Bundle-Name=JDOM 2
|
||||||
|
Bundle-SymbolicName=org.jdom2
|
||||||
|
Export-Package=*
|
||||||
|
Import-Package=org.jaxen.*;resolution:=optional,*
|
||||||
96
jdom-contrib-template.pom
Normal file
96
jdom-contrib-template.pom
Normal file
@ -0,0 +1,96 @@
|
|||||||
|
<project>
|
||||||
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
<groupId>org.jdom</groupId>
|
||||||
|
<artifactId>@artifactID@-contrib</artifactId>
|
||||||
|
<packaging>jar</packaging>
|
||||||
|
|
||||||
|
<name>JDOM Contrib</name>
|
||||||
|
<version>@version@</version>
|
||||||
|
|
||||||
|
<description>
|
||||||
|
A complete, Java-based solution for accessing, manipulating,
|
||||||
|
and outputting XML data
|
||||||
|
</description>
|
||||||
|
<url>http://www.jdom.org</url>
|
||||||
|
|
||||||
|
<organization>
|
||||||
|
<name>JDOM</name>
|
||||||
|
<url>http://www.jdom.org</url>
|
||||||
|
</organization>
|
||||||
|
|
||||||
|
<mailingLists>
|
||||||
|
<mailingList>
|
||||||
|
<name>JDOM-interest Mailing List</name>
|
||||||
|
<post>jdom-interest@jdom.org</post>
|
||||||
|
<archive>http://jdom.markmail.org/</archive>
|
||||||
|
</mailingList>
|
||||||
|
</mailingLists>
|
||||||
|
|
||||||
|
<licenses>
|
||||||
|
<license>
|
||||||
|
<name>Similar to Apache License but with the acknowledgment clause removed</name>
|
||||||
|
<url>https://raw.github.com/hunterhacker/jdom/master/LICENSE.txt</url>
|
||||||
|
<distribution>repo</distribution>
|
||||||
|
<comments xml:space="preserve"><![CDATA[
|
||||||
|
|
||||||
|
@license@
|
||||||
|
|
||||||
|
]]></comments>
|
||||||
|
</license>
|
||||||
|
</licenses>
|
||||||
|
|
||||||
|
<scm>
|
||||||
|
<url>git@github.com:/hunterhacker/jdom</url>
|
||||||
|
<connection>scm:git:git@github.com:hunterhacker/jdom</connection>
|
||||||
|
<developerConnection>scm:git:git@github.com:hunterhacker/jdom</developerConnection>
|
||||||
|
</scm>
|
||||||
|
|
||||||
|
<developers>
|
||||||
|
<developer>
|
||||||
|
<id>hunterhacker</id>
|
||||||
|
<name>Jason Hunter</name>
|
||||||
|
<email>jhunter@servlets.com</email>
|
||||||
|
</developer>
|
||||||
|
<developer>
|
||||||
|
<id>rolfl</id>
|
||||||
|
<name>Rolf Lear</name>
|
||||||
|
<email>jdom@tuis.net</email>
|
||||||
|
</developer>
|
||||||
|
</developers>
|
||||||
|
|
||||||
|
<dependencies>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.jdom</groupId>
|
||||||
|
<artifactId>@artifactID@</artifactId>
|
||||||
|
<version>@version@</version>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>jaxen</groupId>
|
||||||
|
<artifactId>jaxen</artifactId>
|
||||||
|
<version>1.1.4</version>
|
||||||
|
<optional>true</optional>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>xerces</groupId>
|
||||||
|
<artifactId>xercesImpl</artifactId>
|
||||||
|
<version>2.10.0</version>
|
||||||
|
<optional>true</optional>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>isorelax</groupId>
|
||||||
|
<artifactId>isorelax</artifactId>
|
||||||
|
<version>20030108</version>
|
||||||
|
<optional>true</optional>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>stax</groupId>
|
||||||
|
<artifactId>stax-api</artifactId>
|
||||||
|
<version>1.0.1</version>
|
||||||
|
<optional>true</optional>
|
||||||
|
</dependency>
|
||||||
|
</dependencies>
|
||||||
|
|
||||||
|
<properties>
|
||||||
|
<jdk.version>@jdk@</jdk.version>
|
||||||
|
</properties>
|
||||||
|
</project>
|
||||||
120
jdom-junit-template.pom
Normal file
120
jdom-junit-template.pom
Normal file
@ -0,0 +1,120 @@
|
|||||||
|
<project>
|
||||||
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
<groupId>org.jdom</groupId>
|
||||||
|
<artifactId>@artifactID@-junit</artifactId>
|
||||||
|
<packaging>jar</packaging>
|
||||||
|
|
||||||
|
<name>JDOM Junit</name>
|
||||||
|
<version>@version@</version>
|
||||||
|
|
||||||
|
<description>
|
||||||
|
A complete, Java-based solution for accessing, manipulating,
|
||||||
|
and outputting XML data
|
||||||
|
</description>
|
||||||
|
<url>http://www.jdom.org</url>
|
||||||
|
|
||||||
|
<organization>
|
||||||
|
<name>JDOM</name>
|
||||||
|
<url>http://www.jdom.org</url>
|
||||||
|
</organization>
|
||||||
|
|
||||||
|
<mailingLists>
|
||||||
|
<mailingList>
|
||||||
|
<name>JDOM-interest Mailing List</name>
|
||||||
|
<post>jdom-interest@jdom.org</post>
|
||||||
|
<archive>http://jdom.markmail.org/</archive>
|
||||||
|
</mailingList>
|
||||||
|
</mailingLists>
|
||||||
|
|
||||||
|
<licenses>
|
||||||
|
<license>
|
||||||
|
<name>Similar to Apache License but with the acknowledgment clause removed</name>
|
||||||
|
<url>https://raw.github.com/hunterhacker/jdom/master/LICENSE.txt</url>
|
||||||
|
<distribution>repo</distribution>
|
||||||
|
<comments xml:space="preserve"><![CDATA[
|
||||||
|
|
||||||
|
@license@
|
||||||
|
|
||||||
|
]]></comments>
|
||||||
|
</license>
|
||||||
|
</licenses>
|
||||||
|
|
||||||
|
<scm>
|
||||||
|
<url>git@github.com:/hunterhacker/jdom</url>
|
||||||
|
<connection>scm:git:git@github.com:hunterhacker/jdom</connection>
|
||||||
|
<developerConnection>scm:git:git@github.com:hunterhacker/jdom</developerConnection>
|
||||||
|
</scm>
|
||||||
|
|
||||||
|
<developers>
|
||||||
|
<developer>
|
||||||
|
<id>hunterhacker</id>
|
||||||
|
<name>Jason Hunter</name>
|
||||||
|
<email>jhunter@servlets.com</email>
|
||||||
|
</developer>
|
||||||
|
<developer>
|
||||||
|
<id>rolfl</id>
|
||||||
|
<name>Rolf Lear</name>
|
||||||
|
<email>jdom@tuis.net</email>
|
||||||
|
</developer>
|
||||||
|
</developers>
|
||||||
|
|
||||||
|
<dependencies>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.jdom</groupId>
|
||||||
|
<artifactId>@artifactID@</artifactId>
|
||||||
|
<version>@version@</version>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>jaxen</groupId>
|
||||||
|
<artifactId>jaxen</artifactId>
|
||||||
|
<version>1.1.4</version>
|
||||||
|
<optional>true</optional>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>xerces</groupId>
|
||||||
|
<artifactId>xercesImpl</artifactId>
|
||||||
|
<version>2.10.0</version>
|
||||||
|
<optional>true</optional>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>junit</groupId>
|
||||||
|
<artifactId>junit</artifactId>
|
||||||
|
<version>4.11</version>
|
||||||
|
<optional>true</optional>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>asm</groupId>
|
||||||
|
<artifactId>asm</artifactId>
|
||||||
|
<version>3.3.1</version>
|
||||||
|
<optional>true</optional>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>asm</groupId>
|
||||||
|
<artifactId>asm-tree</artifactId>
|
||||||
|
<version>3.3.1</version>
|
||||||
|
<optional>true</optional>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>log4j</groupId>
|
||||||
|
<artifactId>log4j</artifactId>
|
||||||
|
<version>1.2.17</version>
|
||||||
|
<optional>true</optional>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>net.sourceforge.cobertura</groupId>
|
||||||
|
<artifactId>cobertura</artifactId>
|
||||||
|
<version>1.9.4.1</version>
|
||||||
|
<optional>true</optional>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>net.sourceforge.cobertura</groupId>
|
||||||
|
<artifactId>cobertura-runtime</artifactId>
|
||||||
|
<version>1.9.4.1</version>
|
||||||
|
<optional>true</optional>
|
||||||
|
</dependency>
|
||||||
|
</dependencies>
|
||||||
|
|
||||||
|
<properties>
|
||||||
|
<jdk.version>@jdk@</jdk.version>
|
||||||
|
</properties>
|
||||||
|
</project>
|
||||||
61
jdom2.spec
Normal file
61
jdom2.spec
Normal file
@ -0,0 +1,61 @@
|
|||||||
|
Name: jdom2
|
||||||
|
Version: 2.0.6
|
||||||
|
Release: 13
|
||||||
|
Summary: Classes representing the components of an XML document
|
||||||
|
License: Saxpath
|
||||||
|
URL: http://www.jdom.org/
|
||||||
|
BuildArch: noarch
|
||||||
|
Source0: https://github.com/hunterhacker/jdom/archive/JDOM-2.0.6.tar.gz
|
||||||
|
Source1: jdom-contrib-template.pom
|
||||||
|
Source2: jdom-junit-template.pom
|
||||||
|
Source3: bnd.properties
|
||||||
|
Patch0001: 0001-Adapt-build.patch
|
||||||
|
BuildRequires: javapackages-local ant ant-junit isorelax jaxen xalan-j2 xerces-j2 xml-commons-apis log4j12 aqute-bnd
|
||||||
|
|
||||||
|
%description
|
||||||
|
JDOM is an in-memory representation of an XML document. XML consists of
|
||||||
|
elements (which have attributes), text data, 'entity' references, processing
|
||||||
|
instructions, and comments. XML documents can also have a DocType declaration,
|
||||||
|
Comments, and Processing Instructions before the root element.
|
||||||
|
|
||||||
|
%package help
|
||||||
|
Summary: This package contains help documents
|
||||||
|
Requires: %{name} = %{version}-%{release}
|
||||||
|
Provides: jdom2-javadoc = %{version}-%{release}
|
||||||
|
Obsoletes: jdom2-javadoc < %{version}-%{release}
|
||||||
|
|
||||||
|
%description help
|
||||||
|
Files for help with jdom2.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%autosetup -n jdom-JDOM-%{version} -p1
|
||||||
|
#find -name 'lib' -exec rm -rf {} \;
|
||||||
|
rm -rf ./contrib/lib ./lib
|
||||||
|
find -name '*.jar' -delete
|
||||||
|
find -name '*.class' -delete
|
||||||
|
install -D %{SOURCE1} maven/contrib.pom
|
||||||
|
install -D %{SOURCE2} maven/junit.pom
|
||||||
|
sed -i.coverage "s|coverage, jars|jars|" build.xml
|
||||||
|
install -d lib
|
||||||
|
build-jar-repository lib xerces-j2 xml-commons-apis jaxen junit isorelax xalan-j2 xalan-j2-serializer
|
||||||
|
|
||||||
|
%build
|
||||||
|
ant -Dversion=%{version} -Dj2se.apidoc=%{_javadocdir}/java maven
|
||||||
|
bnd wrap --output build/package/jdom-%{version}.bar --properties %{SOURCE3} --version %{version} build/package/jdom-%{version}.jar
|
||||||
|
mv build/package/jdom-%{version}.bar build/package/jdom-%{version}.jar
|
||||||
|
|
||||||
|
%install
|
||||||
|
%mvn_artifact build/maven/core/%{name}-%{version}.pom build/package/jdom-%{version}.jar
|
||||||
|
%mvn_artifact build/maven/core/%{name}-%{version}-contrib.pom build/package/jdom-%{version}-contrib.jar
|
||||||
|
%mvn_artifact build/maven/core/%{name}-%{version}-junit.pom build/package/jdom-%{version}-junit.jar
|
||||||
|
%mvn_install -J build/apidocs
|
||||||
|
|
||||||
|
%files -f .mfiles
|
||||||
|
%doc LICENSE.txt
|
||||||
|
|
||||||
|
%files help -f .mfiles-javadoc
|
||||||
|
%doc CHANGES.txt COMMITTERS.txt README.txt TODO.txt
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Thu Dec 12 2019 gulining<gulining1@huawei.com> - 2.0.6-13
|
||||||
|
- Pakcage init
|
||||||
Loading…
x
Reference in New Issue
Block a user