Initial import (#1007486).
parent
0795fd3870
commit
45c2054c33
@ -0,0 +1 @@
|
|||||||
|
/JDOM-2.0.5.tar.gz
|
@ -0,0 +1,114 @@
|
|||||||
|
--- build.xml 2013-04-17 00:00:39.000000000 +0200
|
||||||
|
+++ build.xml-gil 2013-09-12 16:13:30.119000138 +0200
|
||||||
|
@@ -102,13 +102,13 @@
|
||||||
|
<filter token="jdk" value="${compile.target}" />
|
||||||
|
|
||||||
|
<!-- Default JAR libraries -->
|
||||||
|
- <property name="parser.jar" value="${lib.dir}/xercesImpl.jar" />
|
||||||
|
- <property name="xmlapi.jar" value="${lib.dir}/xml-apis.jar" />
|
||||||
|
- <property name="jaxen.jar" value="${lib.dir}/jaxen-1.1.6.jar" />
|
||||||
|
- <property name="junit.jar" value="${lib.dir}/junit-4.8.2.jar" />
|
||||||
|
- <property name="isorelax.jar" value="${contrib}/lib/isorelax.jar" />
|
||||||
|
- <property name="xalan.jar" value="${lib.dir}/xalan/xalan-2.7.1.jar" />
|
||||||
|
- <property name="xalanser.jar" value="${lib.dir}/xalan/serializer-2.7.1.jar" />
|
||||||
|
+ <property name="parser.jar" value="/usr/share/java/xerces-j2.jar" />
|
||||||
|
+ <property name="xmlapi.jar" value="/usr/share/java/xml-commons-apis.jar" />
|
||||||
|
+ <property name="jaxen.jar" value="/usr/share/java/jaxen.jar" />
|
||||||
|
+ <property name="junit.jar" value="/usr/share/java/junit.jar" />
|
||||||
|
+ <property name="isorelax.jar" value="/usr/share/java/isorelax.jar" />
|
||||||
|
+ <property name="xalan.jar" value="/usr/share/java/xalan-j2.jar" />
|
||||||
|
+ <property name="xalanser.jar" value="/usr/share/java/xalan-j2-serializer.jar" />
|
||||||
|
|
||||||
|
<!-- Compilation class path -->
|
||||||
|
<path id="base.class.path">
|
||||||
|
@@ -121,8 +121,8 @@
|
||||||
|
<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" />
|
||||||
|
+ <pathelement location="/usr/share/java/bea-stax-api.jar" />
|
||||||
|
+ <!--pathelement location="${stax.dir}/sjsxp.jar" /-->
|
||||||
|
</path>
|
||||||
|
|
||||||
|
<path id="core.class.path">
|
||||||
|
@@ -139,7 +139,12 @@
|
||||||
|
<pathelement location="${junit.instrumented}" />
|
||||||
|
<pathelement location="${junit.build}"/>
|
||||||
|
<path refid="contrib.class.path"/>
|
||||||
|
- <fileset dir="${lib.dir}/cobertura" includes="*.jar" />
|
||||||
|
+ <fileset dir="/usr/share/java/objectweb-asm" includes="asm.jar" />
|
||||||
|
+ <fileset dir="/usr/share/java/objectweb-asm" includes="asm-tree.jar" />
|
||||||
|
+ <fileset dir="/usr/share/java" includes="log4j.jar" />
|
||||||
|
+ <fileset dir="/usr/share/java" includes="cobertura.jar" />
|
||||||
|
+ <fileset dir="/usr/share/java" includes="cobertura-runtime.jar" />
|
||||||
|
+ <fileset dir="/usr/share/java" includes="jakarta-oro.jar" />
|
||||||
|
</path>
|
||||||
|
|
||||||
|
|
||||||
|
@@ -289,6 +294,7 @@
|
||||||
|
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 +379,11 @@
|
||||||
|
<!-- =================================================================== -->
|
||||||
|
<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*" />
|
||||||
|
<fileset dir="${basedir}" includes="LICENSE.txt README.txt" />
|
||||||
|
- </zip>
|
||||||
|
+ </zip-->
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<!-- =================================================================== -->
|
||||||
|
@@ -401,6 +407,7 @@
|
||||||
|
<include name="**/*.class"/>
|
||||||
|
<!-- exclude name="**/**/jaxen/**/*.class"/ -->
|
||||||
|
</fileset>
|
||||||
|
+ <classpath refid="junit.class.path" />
|
||||||
|
</cobertura-instrument>
|
||||||
|
|
||||||
|
<property name="forkjunit" value="true" />
|
||||||
|
@@ -528,7 +535,25 @@
|
||||||
|
</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 +568,7 @@
|
||||||
|
<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"
|
@ -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>
|
@ -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>
|
@ -0,0 +1,106 @@
|
|||||||
|
Name: jdom2
|
||||||
|
Version: 2.0.5
|
||||||
|
Release: 1%{?dist}
|
||||||
|
Summary: Java manipulation of XML made easy
|
||||||
|
License: ASL 1.1 or BSD
|
||||||
|
URL: http://www.jdom.org/
|
||||||
|
Source0: https://github.com/hunterhacker/jdom/archive/JDOM-%{version}.tar.gz
|
||||||
|
# originally taken from http://repo1.maven.org/maven2/org/jdom/jdom-contrib/1.1.3/jdom-contrib-1.1.3.pom
|
||||||
|
Source1: jdom-contrib-template.pom
|
||||||
|
Source2: jdom-junit-template.pom
|
||||||
|
# Use system libraries
|
||||||
|
# Disable gpg signatures
|
||||||
|
# Process contrib and junit pom files
|
||||||
|
Patch0: jdom-2.0.5-build.patch
|
||||||
|
|
||||||
|
BuildRequires: java-devel
|
||||||
|
BuildRequires: java-javadoc
|
||||||
|
BuildRequires: jpackage-utils
|
||||||
|
|
||||||
|
BuildRequires: ant
|
||||||
|
BuildRequires: ant-junit
|
||||||
|
BuildRequires: bea-stax-api
|
||||||
|
BuildRequires: cobertura
|
||||||
|
BuildRequires: isorelax
|
||||||
|
BuildRequires: jakarta-oro
|
||||||
|
BuildRequires: jaxen
|
||||||
|
BuildRequires: log4j
|
||||||
|
BuildRequires: objectweb-asm
|
||||||
|
BuildRequires: xalan-j2
|
||||||
|
BuildRequires: xerces-j2
|
||||||
|
BuildRequires: xml-commons-apis
|
||||||
|
|
||||||
|
Requires: java
|
||||||
|
Requires: jpackage-utils
|
||||||
|
|
||||||
|
Requires: jaxen
|
||||||
|
Requires: xalan-j2
|
||||||
|
Requires: xerces-j2
|
||||||
|
|
||||||
|
BuildArch: noarch
|
||||||
|
|
||||||
|
%description
|
||||||
|
JDOM is a Java-oriented object model which models XML documents.
|
||||||
|
It provides a Java-centric means of generating and manipulating
|
||||||
|
XML documents. While JDOM inter-operates well with existing
|
||||||
|
standards such as the Simple API for XML (SAX) and the Document
|
||||||
|
Object Model (DOM), it is not an abstraction layer or
|
||||||
|
enhancement to those APIs. Rather, it seeks to provide a robust,
|
||||||
|
light-weight means of reading and writing XML data without the
|
||||||
|
complex and memory-consumptive options that current API
|
||||||
|
offerings provide.
|
||||||
|
|
||||||
|
%package javadoc
|
||||||
|
Summary: Javadoc for %{name}
|
||||||
|
|
||||||
|
%description javadoc
|
||||||
|
This package contains javadoc for %{name}.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q -n jdom-JDOM-%{version}
|
||||||
|
find . -name "*.class" -print -delete
|
||||||
|
find . -name "*.jar" -print -delete
|
||||||
|
|
||||||
|
%patch0 -p0
|
||||||
|
|
||||||
|
cp -p %{SOURCE1} maven/contrib.pom
|
||||||
|
cp -p %{SOURCE2} maven/junit.pom
|
||||||
|
|
||||||
|
sed -i 's/\r//' LICENSE.txt README.txt
|
||||||
|
|
||||||
|
%build
|
||||||
|
|
||||||
|
ant -Dversion=%{version} -Dj2se.apidoc=%{_javadocdir}/java maven
|
||||||
|
|
||||||
|
%install
|
||||||
|
|
||||||
|
mkdir -p %{buildroot}%{_javadir}/%{name}
|
||||||
|
install -m 644 build/package/jdom-%{version}.jar %{buildroot}%{_javadir}/%{name}/%{name}.jar
|
||||||
|
install -m 644 build/package/jdom-%{version}-contrib.jar %{buildroot}%{_javadir}/%{name}/%{name}-contrib.jar
|
||||||
|
install -m 644 build/package/jdom-%{version}-junit.jar %{buildroot}%{_javadir}/%{name}/%{name}-junit.jar
|
||||||
|
|
||||||
|
# Not required process as compat package: aId is jdom2 by default
|
||||||
|
mkdir -p %{buildroot}%{_mavenpomdir}
|
||||||
|
install -pm 644 build/maven/core/%{name}-%{version}.pom %{buildroot}%{_mavenpomdir}/JPP.%{name}-%{name}.pom
|
||||||
|
%add_maven_depmap JPP.%{name}-%{name}.pom %{name}/%{name}.jar
|
||||||
|
install -pm 644 build/maven/core/%{name}-%{version}-contrib.pom %{buildroot}%{_mavenpomdir}/JPP.%{name}-%{name}-contrib.pom
|
||||||
|
%add_maven_depmap JPP.%{name}-%{name}-contrib.pom %{name}/%{name}-contrib.jar
|
||||||
|
install -pm 644 build/maven/core/%{name}-%{version}-junit.pom %{buildroot}%{_mavenpomdir}/JPP.%{name}-%{name}-junit.pom
|
||||||
|
%add_maven_depmap JPP.%{name}-%{name}-junit.pom %{name}/%{name}-junit.jar
|
||||||
|
|
||||||
|
mkdir -p %{buildroot}%{_javadocdir}
|
||||||
|
cp -rp build/apidocs %{buildroot}%{_javadocdir}/%{name}
|
||||||
|
|
||||||
|
%files
|
||||||
|
%{_javadir}/%{name}
|
||||||
|
%{_mavenpomdir}/JPP.%{name}-*.pom
|
||||||
|
%{_mavendepmapfragdir}/%{name}
|
||||||
|
%doc CHANGES.txt COMMITTERS.txt LICENSE.txt README.txt TODO.txt
|
||||||
|
|
||||||
|
%files javadoc
|
||||||
|
%{_javadocdir}/%{name}
|
||||||
|
%doc LICENSE.txt
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Thu Sep 12 2013 gil cattaneo <puntogil@libero.it> 2.0.5-1
|
||||||
|
- initial rpm
|
Loading…
Reference in new issue