This commit is contained in:
parent
3456f5015b
commit
7902115b6b
42
CVE-2021-33813.patch
Normal file
42
CVE-2021-33813.patch
Normal file
@ -0,0 +1,42 @@
|
|||||||
|
--- libjdom1-java-1.1.3.orig/src/java/org/jdom/input/SAXBuilder.java
|
||||||
|
+++ libjdom1-java-1.1.3/src/java/org/jdom/input/SAXBuilder.java
|
||||||
|
@@ -442,6 +442,11 @@ public class SAXBuilder {
|
||||||
|
public void setFeature(String name, boolean value) {
|
||||||
|
// Save the specified feature for later.
|
||||||
|
features.put(name, value ? Boolean.TRUE : Boolean.FALSE);
|
||||||
|
+ if (name.equals("http://xml.org/sax/features/external-general-entities")) {
|
||||||
|
+ // See issue https://github.com/hunterhacker/jdom/issues/189
|
||||||
|
+ // And PR https://github.com/hunterhacker/jdom/pull/188
|
||||||
|
+ setExpandEntities(value);
|
||||||
|
+ }
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
@@ -766,13 +771,6 @@ public class SAXBuilder {
|
||||||
|
internalSetFeature(parser, name, value.booleanValue(), name);
|
||||||
|
}
|
||||||
|
|
||||||
|
- // Set any user-specified properties on the parser.
|
||||||
|
- iter = properties.keySet().iterator();
|
||||||
|
- while (iter.hasNext()) {
|
||||||
|
- String name = (String)iter.next();
|
||||||
|
- internalSetProperty(parser, name, properties.get(name), name);
|
||||||
|
- }
|
||||||
|
-
|
||||||
|
if (coreFeatures) {
|
||||||
|
// Set validation.
|
||||||
|
try {
|
||||||
|
@@ -810,6 +808,13 @@ public class SAXBuilder {
|
||||||
|
}
|
||||||
|
catch (SAXNotRecognizedException e) { /* Ignore... */ }
|
||||||
|
catch (SAXNotSupportedException e) { /* Ignore... */ }
|
||||||
|
+
|
||||||
|
+ // Set any user-specified properties on the parser.
|
||||||
|
+ iter = properties.keySet().iterator();
|
||||||
|
+ while (iter.hasNext()) {
|
||||||
|
+ String name = (String)iter.next();
|
||||||
|
+ internalSetProperty(parser, name, properties.get(name), name);
|
||||||
|
+ }
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
@ -1,6 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
if [ `ulimit -v` -le 2500000 ] ; then
|
|
||||||
echo "build does not work on `hostname`: not enough memory"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:d72427a11a23df97f8957331269df7fde4fcc982ac3b9d399a49e4df8598b94a
|
|
||||||
size 1962425
|
|
441
jaxen-1.1.6.pom
441
jaxen-1.1.6.pom
@ -1,441 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<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>
|
|
||||||
|
|
||||||
<parent>
|
|
||||||
<artifactId>oss-parent</artifactId>
|
|
||||||
<groupId>org.sonatype.oss</groupId>
|
|
||||||
<version>7</version>
|
|
||||||
</parent>
|
|
||||||
|
|
||||||
<groupId>jaxen</groupId>
|
|
||||||
<artifactId>jaxen</artifactId>
|
|
||||||
<packaging>bundle</packaging>
|
|
||||||
<name>jaxen</name>
|
|
||||||
<version>1.1.6</version>
|
|
||||||
<description>Jaxen is a universal Java XPath engine.</description>
|
|
||||||
<url>http://jaxen.codehaus.org/</url>
|
|
||||||
<licenses>
|
|
||||||
<license>
|
|
||||||
<url>http://jaxen.codehaus.org/license.html</url>
|
|
||||||
</license>
|
|
||||||
</licenses>
|
|
||||||
<issueManagement>
|
|
||||||
<system>JIRA</system>
|
|
||||||
<url>http://jira.codehaus.org/BrowseProject.jspa?id=10022</url>
|
|
||||||
</issueManagement>
|
|
||||||
<ciManagement>
|
|
||||||
<notifiers>
|
|
||||||
<notifier>
|
|
||||||
<configuration>
|
|
||||||
<address>dev@jaxen.codehaus.org</address>
|
|
||||||
</configuration>
|
|
||||||
</notifier>
|
|
||||||
</notifiers>
|
|
||||||
</ciManagement>
|
|
||||||
<inceptionYear>2001</inceptionYear>
|
|
||||||
|
|
||||||
<properties>
|
|
||||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
|
||||||
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
|
|
||||||
</properties>
|
|
||||||
|
|
||||||
<mailingLists>
|
|
||||||
<mailingList>
|
|
||||||
<name>Jaxen Users List</name>
|
|
||||||
<subscribe>user-subscribe@jaxen.codehaus.org</subscribe>
|
|
||||||
<unsubscribe>user-unsubscribe@jaxen.codehaus.org</unsubscribe>
|
|
||||||
<archive>http://archive.jaxen.codehaus.org/user/</archive>
|
|
||||||
</mailingList>
|
|
||||||
<mailingList>
|
|
||||||
<name>Jaxen Developers List</name>
|
|
||||||
<subscribe>dev-subscribe@jaxen.codehaus.org</subscribe>
|
|
||||||
<unsubscribe>dev-unsubscribe@jaxen.codehaus.org</unsubscribe>
|
|
||||||
<archive>http://archive.jaxen.codehaus.org/dev/</archive>
|
|
||||||
</mailingList>
|
|
||||||
<mailingList>
|
|
||||||
<name>Jaxen Commits List</name>
|
|
||||||
<subscribe>scm-subscribe@jaxen.codehaus.org</subscribe>
|
|
||||||
<unsubscribe>scm-unsubscribe@jaxen.codehaus.org</unsubscribe>
|
|
||||||
<archive>http://archive.jaxen.codehaus.org/scm/</archive>
|
|
||||||
</mailingList>
|
|
||||||
</mailingLists>
|
|
||||||
|
|
||||||
<developers>
|
|
||||||
<developer>
|
|
||||||
<id>bob</id>
|
|
||||||
<name>Bob McWhirter</name>
|
|
||||||
<email>bob@eng.werken.com</email>
|
|
||||||
<organization>The Werken Company</organization>
|
|
||||||
</developer>
|
|
||||||
<developer>
|
|
||||||
<id>jstrachan</id>
|
|
||||||
<name>James Strachan</name>
|
|
||||||
<email>james_strachan@yahoo.co.uk</email>
|
|
||||||
<organization>Spiritsoft</organization>
|
|
||||||
</developer>
|
|
||||||
<developer>
|
|
||||||
<id>dmegginson</id>
|
|
||||||
<name>David Megginson</name>
|
|
||||||
<email>contact@megginson.com</email>
|
|
||||||
<organization>Megginson Technologies</organization>
|
|
||||||
</developer>
|
|
||||||
<developer>
|
|
||||||
<id>eboldwidt</id>
|
|
||||||
<name>Erwin Bolwidt</name>
|
|
||||||
<email>erwin@klomp.org</email>
|
|
||||||
</developer>
|
|
||||||
<developer>
|
|
||||||
<id>mbelonga</id>
|
|
||||||
<name>Mark A. Belonga</name>
|
|
||||||
<email>mbelonga@users.sourceforge.net</email>
|
|
||||||
</developer>
|
|
||||||
<developer>
|
|
||||||
<id>cnentwich</id>
|
|
||||||
<name>Christian Nentwich</name>
|
|
||||||
<email>xcut@users.sourceforge.net</email>
|
|
||||||
</developer>
|
|
||||||
<developer>
|
|
||||||
<id>purpletech</id>
|
|
||||||
<name>Alexander Day Chaffee</name>
|
|
||||||
<email>purpletech@users.sourceforge.net</email>
|
|
||||||
<organization>Purple Technologies</organization>
|
|
||||||
</developer>
|
|
||||||
<developer>
|
|
||||||
<id>jdvorak</id>
|
|
||||||
<name>Jan Dvorak</name>
|
|
||||||
<email>jdvorak@users.sourceforge.net</email>
|
|
||||||
</developer>
|
|
||||||
<developer>
|
|
||||||
<id>szegedia</id>
|
|
||||||
<name>Attila Szegedi</name>
|
|
||||||
<email>szegedia@users.sourceforge.net</email>
|
|
||||||
</developer>
|
|
||||||
<developer>
|
|
||||||
<id>proyal</id>
|
|
||||||
<name>Peter Royal</name>
|
|
||||||
<email>peter.royal@pobox.com</email>
|
|
||||||
<url>http://fotap.org/~osi</url>
|
|
||||||
</developer>
|
|
||||||
<developer>
|
|
||||||
<id>ssanders</id>
|
|
||||||
<name>Scott Sanders</name>
|
|
||||||
<email>scott@dotnot.org</email>
|
|
||||||
<url>http://dotnot.org/blog</url>
|
|
||||||
<organization>dotnot</organization>
|
|
||||||
</developer>
|
|
||||||
<developer>
|
|
||||||
<id>bewins</id>
|
|
||||||
<name>Brian Ewins</name>
|
|
||||||
<email>brian.ewins@gmail.com</email>
|
|
||||||
</developer>
|
|
||||||
<developer>
|
|
||||||
<id>elharo</id>
|
|
||||||
<name>Elliotte Rusty Harold</name>
|
|
||||||
<email>elharo@ibiblio.org</email>
|
|
||||||
<url>http://www.elharo.com/</url>
|
|
||||||
<organization>Cafe au Lait</organization>
|
|
||||||
</developer>
|
|
||||||
</developers>
|
|
||||||
|
|
||||||
<contributors>
|
|
||||||
<contributor>
|
|
||||||
<name>Ryan Gustafson</name>
|
|
||||||
<email>rgustav@users.sourceforge.net</email>
|
|
||||||
</contributor>
|
|
||||||
<contributor>
|
|
||||||
<name>David Peterson</name>
|
|
||||||
<email>david@randombits.org</email>
|
|
||||||
</contributor>
|
|
||||||
<contributor>
|
|
||||||
<name>Mark Wilson</name>
|
|
||||||
<email>mark.wilson@wilsoncom.de</email>
|
|
||||||
</contributor>
|
|
||||||
<contributor>
|
|
||||||
<name>Jacob Kjome</name>
|
|
||||||
<email>hoju@visi.com</email>
|
|
||||||
</contributor>
|
|
||||||
<contributor>
|
|
||||||
<name>Michael Brennan</name>
|
|
||||||
<email>mpbrennan@earthlink.net</email>
|
|
||||||
</contributor>
|
|
||||||
<contributor>
|
|
||||||
<name>Jason Hunter</name>
|
|
||||||
<email>jhunter@xquery.com</email>
|
|
||||||
</contributor>
|
|
||||||
<contributor>
|
|
||||||
<name>Brett Mclaughlin</name>
|
|
||||||
<email>brett.mclaughlin@lutris.com</email>
|
|
||||||
</contributor>
|
|
||||||
<contributor>
|
|
||||||
<name>Bradley S. Huffman</name>
|
|
||||||
<email>hip@cs.okstate.edu</email>
|
|
||||||
</contributor>
|
|
||||||
<contributor>
|
|
||||||
<name>K. Ari Krupnikov</name>
|
|
||||||
<email>ari@lib.aero</email>
|
|
||||||
</contributor>
|
|
||||||
<contributor>
|
|
||||||
<name>Paul R. Brown</name>
|
|
||||||
<email>prb@fivesight.com</email>
|
|
||||||
</contributor>
|
|
||||||
<contributor>
|
|
||||||
<name>Guoliang Cao</name>
|
|
||||||
<email>cao@ispsoft.com</email>
|
|
||||||
</contributor>
|
|
||||||
<contributor>
|
|
||||||
<name>Jérôme Nègre</name>
|
|
||||||
<email>jerome.negre@e-xmlmedia.fr</email>
|
|
||||||
</contributor>
|
|
||||||
<contributor>
|
|
||||||
<name>Eddie McGreal</name>
|
|
||||||
<email>emcgreal@BlackPearl.com</email>
|
|
||||||
</contributor>
|
|
||||||
<contributor>
|
|
||||||
<name>Steen Lehmann</name>
|
|
||||||
<email>slehmann@users.sourceforge.net</email>
|
|
||||||
</contributor>
|
|
||||||
<contributor>
|
|
||||||
<name>Ben McCann</name>
|
|
||||||
<email>benjamin.j.mccann@gmail.com</email>
|
|
||||||
</contributor>
|
|
||||||
<contributor>
|
|
||||||
<name>Don Corley</name>
|
|
||||||
<email>don@donandann.com</email>
|
|
||||||
</contributor>
|
|
||||||
</contributors>
|
|
||||||
|
|
||||||
<scm>
|
|
||||||
<connection>scm:svn:https://svn.codehaus.org/jaxen/trunk/jaxen/</connection>
|
|
||||||
<url>http://fisheye.codehaus.org/browse/jaxen/</url>
|
|
||||||
</scm>
|
|
||||||
|
|
||||||
<organization>
|
|
||||||
<name>Codehaus</name>
|
|
||||||
<url>http://codehaus.org</url>
|
|
||||||
</organization>
|
|
||||||
|
|
||||||
<build>
|
|
||||||
<sourceDirectory>src/java/main</sourceDirectory>
|
|
||||||
<testSourceDirectory>src/java/test</testSourceDirectory>
|
|
||||||
<plugins>
|
|
||||||
<plugin>
|
|
||||||
<artifactId>maven-compiler-plugin</artifactId>
|
|
||||||
<version>2.5.1</version>
|
|
||||||
<configuration>
|
|
||||||
<debug>true</debug>
|
|
||||||
<optimize>true</optimize>
|
|
||||||
<showDeprecation>true</showDeprecation>
|
|
||||||
<source>1.3</source>
|
|
||||||
<target>1.2</target>
|
|
||||||
</configuration>
|
|
||||||
</plugin>
|
|
||||||
|
|
||||||
<plugin>
|
|
||||||
<groupId>org.apache.felix</groupId>
|
|
||||||
<artifactId>maven-bundle-plugin</artifactId>
|
|
||||||
<version>2.3.7</version>
|
|
||||||
<extensions>true</extensions>
|
|
||||||
<configuration>
|
|
||||||
<instructions>
|
|
||||||
<Bundle-ManifestVersion>2</Bundle-ManifestVersion>
|
|
||||||
<Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName>
|
|
||||||
<Bundle-Version>${project.version}</Bundle-Version>
|
|
||||||
<Export-Package>org.jaxen.*;version=${project.version}</Export-Package>
|
|
||||||
<Include-Resource>
|
|
||||||
org/w3c/dom/UserDataHandler.class=target/classes/org/w3c/dom/UserDataHandler.class,
|
|
||||||
META-INF/LICENSE.txt=LICENSE.txt
|
|
||||||
</Include-Resource>
|
|
||||||
<Import-Package>
|
|
||||||
org.w3c.dom;resolution:=optional,
|
|
||||||
*;resolution:=optional
|
|
||||||
</Import-Package>
|
|
||||||
<Private-Package>!org.w3c.dom</Private-Package>
|
|
||||||
</instructions>
|
|
||||||
</configuration>
|
|
||||||
</plugin>
|
|
||||||
<plugin>
|
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
|
||||||
<artifactId>maven-assembly-plugin</artifactId>
|
|
||||||
<version>2.4</version>
|
|
||||||
<executions>
|
|
||||||
<execution>
|
|
||||||
<phase>package</phase>
|
|
||||||
<goals>
|
|
||||||
<goal>single</goal>
|
|
||||||
</goals>
|
|
||||||
</execution>
|
|
||||||
</executions>
|
|
||||||
<configuration>
|
|
||||||
<descriptorRefs>
|
|
||||||
<descriptorRef>project</descriptorRef>
|
|
||||||
<descriptorRef>src</descriptorRef>
|
|
||||||
<descriptorRef>bin</descriptorRef>
|
|
||||||
</descriptorRefs>
|
|
||||||
</configuration>
|
|
||||||
</plugin>
|
|
||||||
<plugin>
|
|
||||||
<artifactId>maven-repository-plugin</artifactId>
|
|
||||||
<version>2.3.1</version>
|
|
||||||
</plugin>
|
|
||||||
<plugin>
|
|
||||||
<artifactId>maven-javadoc-plugin</artifactId>
|
|
||||||
<version>2.8.1</version>
|
|
||||||
<configuration>
|
|
||||||
<excludePackageNames>org.jaxen.saxpath.base,org.jaxen.saxpath.helpers</excludePackageNames>
|
|
||||||
<links>
|
|
||||||
<link>http://java.sun.com/j2se/1.4.2/docs/api/</link>
|
|
||||||
</links>
|
|
||||||
<stylesheetfile>${basedir}/src/site/resources/css/javadoc-style.css</stylesheetfile>
|
|
||||||
<docencoding>UTF-8</docencoding>
|
|
||||||
<stylesheetfile>./xdocs/stylesheets/javadoc-style.css</stylesheetfile>
|
|
||||||
<tags>
|
|
||||||
<tag>
|
|
||||||
<head>To Do:</head>
|
|
||||||
<name>todo</name>
|
|
||||||
<placement>Xa</placement>
|
|
||||||
</tag>
|
|
||||||
</tags>
|
|
||||||
<docencoding>UTF-8</docencoding>
|
|
||||||
</configuration>
|
|
||||||
</plugin>
|
|
||||||
<plugin>
|
|
||||||
<artifactId>maven-surefire-plugin</artifactId>
|
|
||||||
<version>2.12</version>
|
|
||||||
<configuration>
|
|
||||||
<includes>
|
|
||||||
<include>**/*Test.java</include>
|
|
||||||
</includes>
|
|
||||||
</configuration>
|
|
||||||
</plugin>
|
|
||||||
<plugin>
|
|
||||||
<groupId>org.codehaus.mojo</groupId>
|
|
||||||
<artifactId>cobertura-maven-plugin</artifactId>
|
|
||||||
<version>2.5.1</version>
|
|
||||||
</plugin>
|
|
||||||
<plugin>
|
|
||||||
<groupId>org.codehaus.mojo</groupId>
|
|
||||||
<artifactId>findbugs-maven-plugin</artifactId>
|
|
||||||
<version>2.4.0</version>
|
|
||||||
</plugin>
|
|
||||||
</plugins>
|
|
||||||
</build>
|
|
||||||
|
|
||||||
<dependencies>
|
|
||||||
<dependency>
|
|
||||||
<groupId>dom4j</groupId>
|
|
||||||
<artifactId>dom4j</artifactId>
|
|
||||||
<version>1.6.1</version>
|
|
||||||
<optional>true</optional>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
|
||||||
<groupId>jdom</groupId>
|
|
||||||
<artifactId>jdom</artifactId>
|
|
||||||
<version>1.0</version>
|
|
||||||
<optional>true</optional>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
|
||||||
<groupId>xml-apis</groupId>
|
|
||||||
<artifactId>xml-apis</artifactId>
|
|
||||||
<version>1.3.02</version>
|
|
||||||
<scope>provided</scope>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
|
||||||
<groupId>xerces</groupId>
|
|
||||||
<artifactId>xercesImpl</artifactId>
|
|
||||||
<version>2.6.2</version>
|
|
||||||
<scope>provided</scope>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
|
||||||
<groupId>xom</groupId>
|
|
||||||
<artifactId>xom</artifactId>
|
|
||||||
<version>1.0</version>
|
|
||||||
<optional>true</optional>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
|
||||||
<groupId>junit</groupId>
|
|
||||||
<artifactId>junit</artifactId>
|
|
||||||
<version>3.8.2</version>
|
|
||||||
<scope>test</scope>
|
|
||||||
</dependency>
|
|
||||||
</dependencies>
|
|
||||||
|
|
||||||
<reporting>
|
|
||||||
<plugins>
|
|
||||||
<plugin>
|
|
||||||
<artifactId>maven-changelog-plugin</artifactId>
|
|
||||||
<version>2.2</version>
|
|
||||||
<configuration>
|
|
||||||
<type>date</type>
|
|
||||||
<dates>
|
|
||||||
<date>2007-05-06</date>
|
|
||||||
</dates>
|
|
||||||
<outputEncoding>UTF-8</outputEncoding>
|
|
||||||
</configuration>
|
|
||||||
</plugin>
|
|
||||||
<plugin>
|
|
||||||
<artifactId>maven-checkstyle-plugin</artifactId>
|
|
||||||
<version>2.9.1</version>
|
|
||||||
</plugin>
|
|
||||||
<plugin>
|
|
||||||
<artifactId>maven-javadoc-plugin</artifactId>
|
|
||||||
<version>2.6.1</version>
|
|
||||||
</plugin>
|
|
||||||
<plugin>
|
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
|
||||||
<artifactId>maven-jxr-plugin</artifactId>
|
|
||||||
<version>2.1</version>
|
|
||||||
</plugin>
|
|
||||||
<plugin>
|
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
|
||||||
<artifactId>maven-pmd-plugin</artifactId>
|
|
||||||
<version>2.4</version>
|
|
||||||
</plugin>
|
|
||||||
<plugin>
|
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
|
||||||
<artifactId>maven-surefire-report-plugin</artifactId>
|
|
||||||
<version>2.4.3</version>
|
|
||||||
</plugin>
|
|
||||||
<plugin>
|
|
||||||
<groupId>org.codehaus.mojo</groupId>
|
|
||||||
<artifactId>cobertura-maven-plugin</artifactId>
|
|
||||||
<version>2.5.1</version>
|
|
||||||
</plugin>
|
|
||||||
<plugin>
|
|
||||||
<groupId>org.codehaus.mojo</groupId>
|
|
||||||
<artifactId>findbugs-maven-plugin</artifactId>
|
|
||||||
<version>2.4.0</version>
|
|
||||||
</plugin>
|
|
||||||
<plugin>
|
|
||||||
<groupId>org.codehaus.mojo</groupId>
|
|
||||||
<artifactId>jdepend-maven-plugin</artifactId>
|
|
||||||
<version>2.0-beta-2</version>
|
|
||||||
</plugin>
|
|
||||||
<plugin>
|
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
|
||||||
<artifactId>maven-project-info-reports-plugin</artifactId>
|
|
||||||
<version>2.4</version>
|
|
||||||
<configuration>
|
|
||||||
<dependencyDetailsEnabled>false</dependencyDetailsEnabled>
|
|
||||||
<dependencyLocationsEnabled>false</dependencyLocationsEnabled>
|
|
||||||
</configuration>
|
|
||||||
<reportSets>
|
|
||||||
<reportSet>
|
|
||||||
<reports>
|
|
||||||
<report>dependencies</report>
|
|
||||||
<report>scm</report>
|
|
||||||
</reports>
|
|
||||||
</reportSet>
|
|
||||||
</reportSets>
|
|
||||||
</plugin>
|
|
||||||
</plugins>
|
|
||||||
</reporting>
|
|
||||||
|
|
||||||
<distributionManagement>
|
|
||||||
<site>
|
|
||||||
<id>default</id>
|
|
||||||
<name>Default Site</name>
|
|
||||||
<url>scp://jaxen.codehaus.org/home/projects/jaxen/public_html</url>
|
|
||||||
</site>
|
|
||||||
</distributionManagement>
|
|
||||||
</project>
|
|
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:59b4667ddc5e02ec4b930007ba42a1356bbcb9b4c5bb67023cc1cc5f70fe0ca3
|
|
||||||
size 292815
|
|
@ -1,21 +1,19 @@
|
|||||||
--- jdom/package/META-INF/MANIFEST.MF.osgimanifest 2008-07-21 16:00:59.000000000 -0400
|
diff -up ./package/META-INF/MANIFEST.MF.osgimanifest ./package/META-INF/MANIFEST.MF
|
||||||
+++ jdom/package/META-INF/MANIFEST.MF 2008-07-21 16:02:20.000000000 -0400
|
--- ./package/META-INF/MANIFEST.MF.osgimanifest 2008-07-21 16:00:59.000000000 -0400
|
||||||
@@ -1,4 +1,19 @@
|
+++ ./package/META-INF/MANIFEST.MF 2008-07-21 16:02:20.000000000 -0400
|
||||||
|
@@ -1,4 +1,16 @@
|
||||||
Manifest-Version: 1.0
|
Manifest-Version: 1.0
|
||||||
+Bundle-RequiredExecutionEnvironment: J2SE-1.4
|
+Bundle-RequiredExecutionEnvironment: J2SE-1.4
|
||||||
+Bundle-SymbolicName: org.jdom
|
+Bundle-SymbolicName: org.jdom
|
||||||
+Bundle-ManifestVersion: 2
|
+Bundle-ManifestVersion: 2
|
||||||
+Bundle-Name: %Bundle-Name.0
|
+Bundle-Name: %Bundle-Name.0
|
||||||
+Bundle-Localization: plugin
|
+Bundle-Localization: plugin
|
||||||
+Bundle-Version: @version.impl@
|
+Bundle-Version: 1.1.2
|
||||||
+Bundle-Vendor: %Bundle-Vendor.0
|
+Bundle-Vendor: %Bundle-Vendor.0
|
||||||
+Export-Package: org.jdom;version="@version.impl@",
|
+Export-Package: org.jdom;version="1.1.2",org.jdom.adapters;version="1.
|
||||||
+ org.jdom.adapters;version="@version.impl@",
|
+ 1.2",org.jdom.filter;version="1.1.2",org.jdom.input;version="1.1.2",o
|
||||||
+ org.jdom.filter;version="@version.impl@",
|
+ rg.jdom.output;version="1.1.2",org.jdom.transform;version="1.1.2",org
|
||||||
+ org.jdom.input;version="@version.impl@",
|
+ .jdom.xpath;version="1.1.2"
|
||||||
+ org.jdom.output;version="@version.impl@",
|
|
||||||
+ org.jdom.transform;version="@version.impl@",
|
|
||||||
+ org .jdom.xpath;version="@version.impl@"
|
|
||||||
+Require-Bundle: org.apache.xerces;resolution:=optional
|
+Require-Bundle: org.apache.xerces;resolution:=optional
|
||||||
|
|
||||||
Name: org/jdom/
|
Name: org/jdom/
|
||||||
|
@ -1,57 +0,0 @@
|
|||||||
--- XOM/build.xml
|
|
||||||
+++ XOM/build.xml
|
|
||||||
@@ -201,8 +201,8 @@
|
|
||||||
debug="${debug}"
|
|
||||||
optimize="${optimize}"
|
|
||||||
deprecation="${deprecation}"
|
|
||||||
- target="1.2"
|
|
||||||
- source="1.3"
|
|
||||||
+ target="1.8"
|
|
||||||
+ source="1.8"
|
|
||||||
encoding="UTF-8"
|
|
||||||
excludes="nu/xom/pantry/* nu/xom/tools/* nu/xom/samples/*Servlet.java">
|
|
||||||
<classpath refid="compile.class.path"/>
|
|
||||||
@@ -228,8 +228,8 @@
|
|
||||||
debug="${debug}"
|
|
||||||
optimize="${optimize}"
|
|
||||||
deprecation="${deprecation}"
|
|
||||||
- target="1.2"
|
|
||||||
- source="1.3"
|
|
||||||
+ target="1.8"
|
|
||||||
+ source="1.8"
|
|
||||||
encoding="UTF-8">
|
|
||||||
<classpath refid="compile.class.path"/>
|
|
||||||
<include name="nu/xom/samples/*Servlet.java" />
|
|
||||||
@@ -244,8 +244,8 @@
|
|
||||||
debug="${debug}"
|
|
||||||
optimize="${optimize}"
|
|
||||||
deprecation="${deprecation}"
|
|
||||||
- target="1.2"
|
|
||||||
- source="1.3"
|
|
||||||
+ target="1.8"
|
|
||||||
+ source="1.8"
|
|
||||||
encoding="UTF-8"
|
|
||||||
failonerror="false">
|
|
||||||
<classpath refid="compile.class.path"/>
|
|
||||||
@@ -462,8 +462,8 @@
|
|
||||||
debug="${debug}"
|
|
||||||
optimize="${optimize}"
|
|
||||||
deprecation="${deprecation}"
|
|
||||||
- target="1.2"
|
|
||||||
- source="1.3"
|
|
||||||
+ target="1.8"
|
|
||||||
+ source="1.8"
|
|
||||||
encoding="UTF-8"
|
|
||||||
includes="nu/xom/tools/*">
|
|
||||||
<classpath>
|
|
||||||
@@ -705,8 +705,8 @@
|
|
||||||
debug="${debug}"
|
|
||||||
optimize="${optimize}"
|
|
||||||
deprecation="${deprecation}"
|
|
||||||
- target="1.2"
|
|
||||||
- source="1.3"
|
|
||||||
+ target="1.8"
|
|
||||||
+ source="1.8"
|
|
||||||
encoding="UTF-8"
|
|
||||||
includeAntRuntime="no"
|
|
||||||
excludes="org/jaxen/dom/**
|
|
@ -1,13 +0,0 @@
|
|||||||
--- XOM/build.xml
|
|
||||||
+++ XOM/build.xml
|
|
||||||
@@ -729,7 +729,9 @@
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<target name="get-jaxen" description="Download Jaxen source code" depends="prepare">
|
|
||||||
- <unzip src="jaxen-1.1-src.zip" dest="${build.dir}" />
|
|
||||||
+ <copy todir="${build.dir}/jaxen">
|
|
||||||
+ <fileset dir="../jaxen-1.1.6/" />
|
|
||||||
+ </copy>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<target name="debug" depends="init" description="Print various Ant properties">
|
|
11
jdom-crosslink.patch
Normal file
11
jdom-crosslink.patch
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
--- build.xml.orig 2010-02-05 12:37:26.594658382 +0000
|
||||||
|
+++ build.xml 2010-02-05 12:38:09.201658171 +0000
|
||||||
|
@@ -277,7 +277,7 @@
|
||||||
|
bottom="Copyright © ${year} Jason Hunter, Brett McLaughlin. All Rights Reserved.">
|
||||||
|
<classpath refid="run.class.path"/>
|
||||||
|
|
||||||
|
- <link href="http://java.sun.com/j2se/1.4/docs/api"/>
|
||||||
|
+ <link href="${j2se.apidoc}"/>
|
||||||
|
</javadoc>
|
||||||
|
</target>
|
||||||
|
|
282
jdom.spec
282
jdom.spec
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package jdom
|
# spec file for package jdom
|
||||||
#
|
#
|
||||||
# Copyright (c) 2022 SUSE LLC
|
# Copyright (c) 2023 SUSE LLC
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -16,257 +16,87 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
%define xom_version 1.2b1
|
|
||||||
%define xom_suffix %{nil}
|
|
||||||
%define xom_dir %{_builddir}/%{name}-%{jdom_version}/XOM
|
|
||||||
%define xom_included_jaxen_archive jaxen-1.1-src.zip
|
|
||||||
%define jdom_version 1.1.3
|
|
||||||
%define jdom_suffix %{nil}
|
|
||||||
%define dom4j_version 1.6.1
|
|
||||||
%define dom4j_suffix %{nil}
|
|
||||||
%define dom4j_dir %{_builddir}/%{name}-%{jdom_version}/dom4j
|
|
||||||
%define saxpath_version 1.0
|
|
||||||
%define saxpath_suffix -FCS
|
|
||||||
%define saxpath_dir %{_builddir}/%{name}-%{jdom_version}/saxpath-%{saxpath_version}%{saxpath_suffix}
|
|
||||||
%define jaxen_version 1.1.6
|
|
||||||
%define jaxen_suffix %{nil}
|
|
||||||
%define jaxen_dir %{_builddir}/%{name}-%{jdom_version}/jaxen-%{jaxen_version}
|
|
||||||
%define jdom_dir %{_builddir}/%{name}-%{jdom_version}/%{name}
|
|
||||||
%define stage1_build_dir %{_builddir}/build
|
|
||||||
Name: jdom
|
Name: jdom
|
||||||
Version: 1.1.3
|
Version: 1.1.3
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: JDOM is a Java Representation of an XML Document
|
Summary: Java alternative to DOM and SAX
|
||||||
License: Apache-2.0
|
License: Saxpath
|
||||||
Group: Development/Libraries/Java
|
URL: http://www.jdom.org/
|
||||||
URL: http://www.jdom.org
|
Source0: http://jdom.org/dist/binary/archive/jdom-%{version}.tar.gz
|
||||||
Source0: http://jdom.org/dist/binary/archive/%{name}-%{version}.tar.gz
|
Source1: https://repo1.maven.org/maven2/org/jdom/jdom/%{version}/jdom-%{version}.pom
|
||||||
Source1: saxpath-%{saxpath_version}.tar.bz2
|
Patch0: %{name}-crosslink.patch
|
||||||
Source2: xom-%{xom_version}-src.tar.bz2
|
Patch1: %{name}-1.1-OSGiManifest.patch
|
||||||
# svn co svn://svn.debian.org/svn/pkg-java/trunk/dom4j
|
Patch2: no-jaxen.patch
|
||||||
# rm dom4j/docs/xref/org/dom4j/tree/ConcurrentReaderHashMap.html
|
Patch10: CVE-2021-33813.patch
|
||||||
# rm dom4j/docs/clover/org/dom4j/tree/ConcurrentReaderHashMap.html
|
|
||||||
# #bnc501764
|
|
||||||
# rm dom4j/lib/tools/clover.license
|
|
||||||
# tar --exclude-vcs -cjf dom4j-1.6.1-debian.tar.bz2 dom4j/
|
|
||||||
Source3: dom4j-%{dom4j_version}-debian.tar.bz2
|
|
||||||
Source4: jaxen-%{jaxen_version}.tar.gz
|
|
||||||
Source10: https://repo1.maven.org/maven2/org/%{name}/%{name}/%{jdom_version}%{jdom_suffix}/%{name}-%{jdom_version}%{jdom_suffix}.pom
|
|
||||||
Source11: https://repo1.maven.org/maven2/saxpath/saxpath/%{saxpath_version}%{saxpath_suffix}/saxpath-%{saxpath_version}%{saxpath_suffix}.pom
|
|
||||||
Source12: https://repo1.maven.org/maven2/xom/xom/1.2.5/xom-1.2.5.pom
|
|
||||||
Source13: https://repo1.maven.org/maven2/jaxen/jaxen/%{jaxen_version}%{jaxen_suffix}/jaxen-%{jaxen_version}%{jaxen_suffix}.pom
|
|
||||||
Patch0: jdom-1.1-build.xml.patch
|
|
||||||
Patch1: jdom-1.1-OSGiManifest.patch
|
|
||||||
Patch2: jdom-1.1-xom-get-jaxen.patch
|
|
||||||
BuildRequires: ant
|
BuildRequires: ant
|
||||||
BuildRequires: ant-junit
|
BuildRequires: fdupes
|
||||||
BuildRequires: glassfish-jaxb-api
|
|
||||||
BuildRequires: java-devel >= 1.8
|
BuildRequires: java-devel >= 1.8
|
||||||
BuildRequires: javapackages-local
|
BuildRequires: javapackages-local >= 6
|
||||||
BuildRequires: junit
|
|
||||||
BuildRequires: relaxngDatatype
|
|
||||||
BuildRequires: servletapi5
|
|
||||||
BuildRequires: unzip
|
|
||||||
BuildRequires: xalan-j2
|
|
||||||
BuildRequires: xerces-j2
|
|
||||||
BuildRequires: xpp2
|
|
||||||
BuildRequires: xpp3
|
|
||||||
Requires: mvn(jaxen:jaxen)
|
|
||||||
Requires: mvn(xerces:xercesImpl)
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
%description
|
%description
|
||||||
JDOM is, quite simply, a Java representation of an XML document. JDOM
|
JDOM is, quite simply, a Java representation of an XML document. JDOM
|
||||||
provides a way to represent that document for easy and efficient
|
provides a way to represent that document for easy and efficient
|
||||||
reading, manipulation, and writing. It has a straightforward API, is
|
reading, manipulation, and writing. It has a straightforward API, is a
|
||||||
lightweight and fast, and is optimized for the Java programmer. It is
|
lightweight and fast, and is optimized for the Java programmer. It's an
|
||||||
an alternative to DOM and SAX, although it integrates well with both
|
alternative to DOM and SAX, although it integrates well with both DOM
|
||||||
DOM and SAX.
|
and SAX.
|
||||||
|
|
||||||
%package -n saxpath
|
%package javadoc
|
||||||
Version: 1.0_FCS
|
Summary: Javadoc for %{name}
|
||||||
Release: 0
|
|
||||||
Summary: SAXPath is an event-based API for XPath parsers
|
|
||||||
License: Apache-2.0
|
|
||||||
Group: Development/Libraries/Java
|
|
||||||
|
|
||||||
%description -n saxpath
|
%description javadoc
|
||||||
SAXPath is an event-based API for XPath parsers, that is, for parsers
|
Javadoc for %{name}.
|
||||||
which parse XPath expressions. SAXPath is intended to be for XPath
|
|
||||||
what SAX is for XML. Note that the SAXPath package only parses XPath
|
|
||||||
expressions; it does not evaluate them, or even provide an object
|
|
||||||
structure for representing them once they have been parsed.
|
|
||||||
|
|
||||||
%package -n xom
|
%package demo
|
||||||
Version: 1.2b1
|
Summary: Demos for %{name}
|
||||||
Release: 0
|
Requires: %{name} = %{version}-%{release}
|
||||||
Summary: XOM is a new XML object model
|
|
||||||
License: LGPL-2.1-or-later
|
|
||||||
Group: Development/Languages/Java
|
|
||||||
Requires: mvn(xalan:xalan)
|
|
||||||
Requires: mvn(xerces:xercesImpl)
|
|
||||||
Requires: mvn(xml-apis:xml-apis)
|
|
||||||
|
|
||||||
%description -n xom
|
%description demo
|
||||||
XOM is designed to be easy to learn and easy to use. It works very
|
Demonstrations and samples for %{name}.
|
||||||
straight-forwardly, and has a very shallow learning curve. Assuming
|
|
||||||
you're already familiar with XML, you should be able to get up and
|
|
||||||
running with XOM very quickly.
|
|
||||||
|
|
||||||
XOM is the only XML API that makes no compromises on correctness. XOM
|
|
||||||
only accepts namespace well-formed XML documents, and only allows you
|
|
||||||
to create namespace well-formed XML documents. (In fact, it's a little
|
|
||||||
stricter than that: it actually guarantees that all documents are
|
|
||||||
round-trippable and have well-defined XML infosets.) XOM manages your
|
|
||||||
XML so you don't have to. With XOM, you can focus on the unique value
|
|
||||||
of your application, and trust XOM to get the XML right.
|
|
||||||
|
|
||||||
XOM is fairly unique in that it is a dual streaming/tree-based API.
|
|
||||||
Individual nodes in the tree can be processed while the document is
|
|
||||||
still being built. The enables XOM programs to operate almost as fast
|
|
||||||
as the underlying parser can supply data. You don't need to wait for
|
|
||||||
the document to be completely parsed before you can start working with
|
|
||||||
it.
|
|
||||||
|
|
||||||
XOM is very memory efficient. If you read an entire document into
|
|
||||||
memory, XOM uses as little memory as possible. More importantly, XOM
|
|
||||||
allows you to filter documents as they're built so you don't have to
|
|
||||||
build the parts of the tree you aren't interested in. For instance, you
|
|
||||||
can skip building text nodes that only represent boundary white space,
|
|
||||||
if such white space is not significant in your application. You can
|
|
||||||
even process a document piece by piece and throw away each piece when
|
|
||||||
you're done with it. XOM has been used to process documents that are
|
|
||||||
gigabytes in size.
|
|
||||||
|
|
||||||
XOM includes built-in support for a number of XML technologies
|
|
||||||
including Namespaces in XML, XPath, XSLT, XInclude, xml:id, and
|
|
||||||
Canonical XML. XOM documents can be converted to and from SAX and DOM.
|
|
||||||
|
|
||||||
%package -n jaxen
|
|
||||||
Version: 1.1.6
|
|
||||||
Release: 0
|
|
||||||
Summary: The jaxen project is a Java XPath Engine
|
|
||||||
License: Apache-2.0
|
|
||||||
Group: Development/Libraries/Java
|
|
||||||
Requires: mvn(dom4j:dom4j)
|
|
||||||
Requires: mvn(jdom:jdom)
|
|
||||||
Requires: mvn(xerces:xercesImpl)
|
|
||||||
Requires: mvn(xml-apis:xml-apis)
|
|
||||||
Requires: mvn(xom:xom)
|
|
||||||
Provides: jaxen-bootstrap = %{version}
|
|
||||||
Obsoletes: jaxen-bootstrap < %{version}
|
|
||||||
|
|
||||||
%description -n jaxen
|
|
||||||
Jaxen is a universal object model walker, capable of evaluating XPath
|
|
||||||
expressions across multiple models. Currently supported are dom4j,
|
|
||||||
JDOM, and DOM.
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -c foo -a 1 -a 2 -a 3 -a 4
|
%setup -q -n %{name}
|
||||||
rm %{xom_dir}/%{xom_included_jaxen_archive}
|
|
||||||
mkdir %{stage1_build_dir}
|
|
||||||
# delete all inlcuded jar files:
|
|
||||||
find . -name "*.jar" -delete -name "*.class" -delete
|
|
||||||
%patch0
|
%patch0
|
||||||
%patch1
|
%patch1
|
||||||
%patch2
|
%patch2 -p1
|
||||||
cp %{SOURCE10} %{name}-%{jdom_version}.pom
|
%patch10 -p1
|
||||||
cp %{SOURCE11} saxpath-%{saxpath_version}.pom
|
# remove all binary libs
|
||||||
cp %{SOURCE12} xom-%{xom_version}.pom
|
find . -name "*.jar" -exec rm -f {} \;
|
||||||
cp %{SOURCE13} jaxen-%{jaxen_version}.pom
|
find . -name "*.class" -exec rm -f {} \;
|
||||||
|
|
||||||
%pom_xpath_set pom:project/pom:version "%{xom_version}%{xom_suffix}" xom-%{xom_version}.pom
|
|
||||||
%pom_remove_parent jaxen-%{jaxen_version}.pom
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
export JAVA_OPTS="-source 1.8 -target 1.8 -encoding UTF-8 -J-Xss6m"
|
%{ant} -Dcompile.source=1.8 -Dcompile.target=1.8 -Dj2se.apidoc=%{_javadocdir}/java package javadoc-link
|
||||||
export JAVAC="javac ${JAVA_OPTS} "
|
|
||||||
export ANT_OPTS="-Xss6m"
|
|
||||||
i=0
|
|
||||||
CLASSPATH="%{stage1_build_dir}:$(build-classpath \
|
|
||||||
glassfish-jaxb-api \
|
|
||||||
xerces-j2 xalan-j2 xalan-j2-serializer junit relaxngDatatype servletapi5 xpp2 xpp3)"
|
|
||||||
SOURCE_DIRS="%{jaxen_dir}/src/java/main/ %{jdom_dir}/src/java/ %{saxpath_dir}/src/java/main/ %{xom_dir}/src/ %{dom4j_dir}/src/java"
|
|
||||||
SOURCE_PATH=$(echo ${SOURCE_DIRS} | sed 's#\ #:#g')
|
|
||||||
# Failing files
|
|
||||||
rm -f \
|
|
||||||
XOM/src/nu/xom/tools/XHTMLJavaDoc.java \
|
|
||||||
dom4j/src/java/org/dom4j/datatype/SchemaParser.java \
|
|
||||||
dom4j/src/java/org/dom4j/datatype/DatatypeAttribute.java \
|
|
||||||
dom4j/src/java/org/dom4j/datatype/DatatypeElement.java \
|
|
||||||
dom4j/src/java/org/dom4j/datatype/NamedTypeResolver.java \
|
|
||||||
dom4j/src/java/org/dom4j/datatype/DatatypeDocumentFactory.java \
|
|
||||||
dom4j/src/java/org/dom4j/datatype/DatatypeElementFactory.java \
|
|
||||||
dom4j/src/java/org/jaxen/dom4j/DocumentNavigator.java \
|
|
||||||
dom4j/src/java/org/jaxen/dom4j/Dom4jXPath.java
|
|
||||||
${JAVAC} -classpath ${CLASSPATH} -sourcepath ${SOURCE_PATH} -d %{stage1_build_dir} $(find ${SOURCE_DIRS} -name "*.java" | xargs)
|
|
||||||
unset CLASSPATH SOURCE_DIRS SOURCE_PATH
|
|
||||||
jar cf %{jdom_dir}/jaxen.jar -C %{stage1_build_dir} .
|
|
||||||
|
|
||||||
pushd %{jdom_dir}
|
|
||||||
ant -Dparser.jar=$(build-classpath xerces-j2) \
|
|
||||||
-Dxml-apis.jar=$(build-classpath xml-commons-apis) \
|
|
||||||
-Djaxen.lib.dir=%{jdom_dir} \
|
|
||||||
-Dcompile.source=1.8 -Dcompile.target=1.8 \
|
|
||||||
-Dversion=%{jdom_version} \
|
|
||||||
package
|
|
||||||
mv build/jdom-%{jdom_version}.jar %{_builddir}/jdom-%{jdom_version}.jar
|
|
||||||
rm jaxen.jar
|
|
||||||
popd
|
|
||||||
pushd %{jaxen_dir}/src/java/main
|
|
||||||
mkdir build
|
|
||||||
#mkdir %{_builddir}/jaxen-excluded
|
|
||||||
#mv org/jaxen/dom4j %{_builddir}/jaxen-excluded
|
|
||||||
${JAVAC} -classpath %{_builddir}/jdom-%{jdom_version}.jar:%{stage1_build_dir} -d build/ $(find . -name "*.java" | xargs)
|
|
||||||
jar -cf %{_builddir}/jaxen-%{jaxen_version}.jar -C build .
|
|
||||||
popd
|
|
||||||
pushd %{saxpath_dir}
|
|
||||||
mkdir src/conf
|
|
||||||
touch src/conf/MANIFEST.MF
|
|
||||||
CLASSPATH=%{_builddir}/jaxen-%{jaxen_version}.jar:%{_builddir}/jdom-%{jdom_version}.jar:%{stage1_build_dir} ant package
|
|
||||||
mv build/saxpath.jar %{_builddir}/saxpath-%{saxpath_version}.jar
|
|
||||||
popd
|
|
||||||
pushd %{xom_dir}
|
|
||||||
%{ant} \
|
|
||||||
-Djaxen.dir=%{stage1_build_dir} \
|
|
||||||
-Dxml-apis.jar=$(build-classpath xml-commons-apis) \
|
|
||||||
-Dparser.jar=$(build-classpath xerces-j2) \
|
|
||||||
-Dxslt.jar=$(build-classpath xalan-j2) \
|
|
||||||
-Dserializer.jar=$(build-classpath xalan-j2-serializer) \
|
|
||||||
-Djunit.jar=$(build-classpath junit) \
|
|
||||||
-Dresolver.jar=$(build-classpath xml-commons-resolver) \
|
|
||||||
-Ddom4j.jar=%{stage1_build_dir} \
|
|
||||||
-Dant.build.javac.source=1.8 -Dant.build.javac.target=1.8 \
|
|
||||||
compile compile15 jar
|
|
||||||
mv build/xom-%{xom_version}.jar %{_builddir}
|
|
||||||
popd
|
|
||||||
#<<< build
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
mkdir -p %{buildroot}/%{_javadir}
|
# jar
|
||||||
mv %{_builddir}/*.jar %{buildroot}/%{_javadir}
|
install -dm 0755 %{buildroot}%{_javadir}
|
||||||
ln -sf %{_javadir}/jdom-%{jdom_version}.jar %{buildroot}/%{_javadir}/jdom.jar
|
install -pm 0644 build/%{name}-*-snap.jar %{buildroot}%{_javadir}/%{name}.jar
|
||||||
ln -sf %{_javadir}/jaxen-%{jaxen_version}.jar %{buildroot}/%{_javadir}/jaxen.jar
|
|
||||||
ln -sf %{_javadir}/saxpath-%{saxpath_version}.jar %{buildroot}/%{_javadir}/saxpath.jar
|
|
||||||
ln -sf %{_javadir}/xom-%{xom_version}.jar %{buildroot}/%{_javadir}/xom.jar
|
|
||||||
|
|
||||||
mkdir -p %{buildroot}/%{_mavenpomdir}
|
# pom
|
||||||
cp *.pom %{buildroot}/%{_mavenpomdir}/
|
install -dm 0755 %{buildroot}%{_mavenpomdir}
|
||||||
%add_maven_depmap jdom-%{jdom_version}.pom jdom-%{jdom_version}.jar -a jdom:jdom
|
%{mvn_install_pom} %{SOURCE1} %{buildroot}%{_mavenpomdir}/%{name}.pom
|
||||||
%add_maven_depmap xom-%{xom_version}.pom xom-%{xom_version}.jar -f xom -a com.io7m.xom:xom
|
%add_maven_depmap %{name}.pom %{name}.jar -a %{name}:%{name}
|
||||||
%add_maven_depmap saxpath-%{saxpath_version}.pom saxpath-%{saxpath_version}.jar -f saxpath
|
|
||||||
%add_maven_depmap jaxen-%{jaxen_version}.pom jaxen-%{jaxen_version}.jar -f jaxen
|
# javadoc
|
||||||
|
install -dm 0755 %{buildroot}%{_javadocdir}/%{name}
|
||||||
|
cp -r build/apidocs %{buildroot}%{_javadocdir}/%{name}
|
||||||
|
%fdupes -s %{buildroot}%{_javadocdir}
|
||||||
|
|
||||||
|
# demo
|
||||||
|
install -dm 0755 %{buildroot}%{_datadir}/%{name}
|
||||||
|
cp -pr samples %{buildroot}%{_datadir}/%{name}
|
||||||
|
%fdupes -s %{buildroot}%{_datadir}/%{name}
|
||||||
|
|
||||||
%files -f .mfiles
|
%files -f .mfiles
|
||||||
%{_javadir}/jdom.jar
|
%license LICENSE.txt
|
||||||
|
%doc CHANGES.txt COMMITTERS.txt README.txt TODO.txt
|
||||||
|
|
||||||
%files -n xom -f .mfiles-xom
|
%files javadoc
|
||||||
%{_javadir}/xom.jar
|
%license LICENSE.txt
|
||||||
|
|
||||||
%files -n saxpath -f .mfiles-saxpath
|
%files demo
|
||||||
%{_javadir}/saxpath.jar
|
%{_datadir}/%{name}
|
||||||
|
%license LICENSE.txt
|
||||||
%files -n jaxen -f .mfiles-jaxen
|
|
||||||
%{_javadir}/jaxen.jar
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
11
no-jaxen.patch
Normal file
11
no-jaxen.patch
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
diff -urEbwB jdom/build.xml jdom.new/build.xml
|
||||||
|
--- jdom/build.xml 2012-02-26 00:30:45.000000000 +0100
|
||||||
|
+++ jdom.new/build.xml 2023-08-23 19:35:51.544436993 +0200
|
||||||
|
@@ -254,6 +255,7 @@
|
||||||
|
use="true"
|
||||||
|
splitindex="true"
|
||||||
|
noindex="false"
|
||||||
|
+ failonerror="false"
|
||||||
|
windowtitle="${Name} v${version}"
|
||||||
|
doctitle="${Name} v${version}<br>API Specification"
|
||||||
|
header="<b>${Name}<br><font size='-1'>${version}</font></b>"
|
@ -1,6 +0,0 @@
|
|||||||
<project>
|
|
||||||
<modelVersion>4.0.0</modelVersion>
|
|
||||||
<groupId>saxpath</groupId>
|
|
||||||
<artifactId>saxpath</artifactId>
|
|
||||||
<version>1.0-FCS</version>
|
|
||||||
</project>
|
|
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:67863cb4111628f382b8f7cd7c628ff4750d23c1a6fce9cee48c091ac5a411c2
|
|
||||||
size 2125559
|
|
@ -1,70 +0,0 @@
|
|||||||
<?xml version="1.0"?>
|
|
||||||
<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/xsd/maven-4.0.0.xsd">
|
|
||||||
<modelVersion>4.0.0</modelVersion>
|
|
||||||
<packaging>jar</packaging>
|
|
||||||
<name>XOM</name>
|
|
||||||
<version>1.2.5</version>
|
|
||||||
<description>The XOM Dual Streaming/Tree API for Processing XML</description>
|
|
||||||
<url>http://xom.nu</url>
|
|
||||||
<licenses>
|
|
||||||
<license>
|
|
||||||
<name>The GNU Lesser General Public License, Version 2.1</name>
|
|
||||||
<url>http://www.gnu.org/licenses/lgpl-2.1.html</url>
|
|
||||||
<distribution>repo</distribution>
|
|
||||||
</license>
|
|
||||||
</licenses>
|
|
||||||
<scm>
|
|
||||||
<url>https://xom.dev.java.net/source/browse/xom/</url>
|
|
||||||
</scm>
|
|
||||||
|
|
||||||
<artifactId>xom</artifactId>
|
|
||||||
<!-- previously used group ID -->
|
|
||||||
<groupId>xom</groupId>
|
|
||||||
|
|
||||||
<inceptionYear>2002</inceptionYear>
|
|
||||||
|
|
||||||
<mailingLists>
|
|
||||||
<mailingList>
|
|
||||||
<name>XOM Interest Mailing List</name>
|
|
||||||
<archive>http://lists.ibiblio.org/pipermail/xom-interest/</archive>
|
|
||||||
</mailingList>
|
|
||||||
</mailingLists>
|
|
||||||
|
|
||||||
<developers>
|
|
||||||
<developer>
|
|
||||||
<name>Elliotte Rusty Harold</name>
|
|
||||||
<id>elharo</id>
|
|
||||||
<email>elharo@ibiblio.org</email>
|
|
||||||
<organization>Cafe au Lait</organization>
|
|
||||||
</developer>
|
|
||||||
</developers>
|
|
||||||
|
|
||||||
<dependencies>
|
|
||||||
<dependency>
|
|
||||||
<groupId>xml-apis</groupId>
|
|
||||||
<artifactId>xml-apis</artifactId>
|
|
||||||
<version>1.3.03</version>
|
|
||||||
<type>jar</type>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
|
||||||
<groupId>xerces</groupId>
|
|
||||||
<artifactId>xercesImpl</artifactId>
|
|
||||||
<version>2.8.0</version>
|
|
||||||
<type>jar</type>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
|
||||||
<groupId>xalan</groupId>
|
|
||||||
<artifactId>xalan</artifactId>
|
|
||||||
<version>2.7.0</version>
|
|
||||||
<type>jar</type>
|
|
||||||
</dependency>
|
|
||||||
</dependencies>
|
|
||||||
|
|
||||||
<build>
|
|
||||||
<sourceDirectory>src</sourceDirectory>
|
|
||||||
</build>
|
|
||||||
|
|
||||||
</project>
|
|
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:63e96ced3183a62a6aa5ef6c8bab0106d9931cafe0036905eab8a7904c12dda7
|
|
||||||
size 4904084
|
|
Loading…
x
Reference in New Issue
Block a user