Fridrich Strba 2020-06-03 15:44:10 +00:00 committed by Git OBS Bridge
parent 74552ea2c9
commit f35fee5346
12 changed files with 156 additions and 307 deletions

View File

@ -1,11 +1,9 @@
Index: fop-2.1/build.xml
===================================================================
--- fop-2.1.orig/build.xml
+++ fop-2.1/build.xml
@@ -963,6 +963,7 @@ NOTE:
--- fop-2.5/fop/build.xml
+++ fop-2.5/fop/build.xml
@@ -904,6 +904,7 @@ NOTE:
doctitle="Apache Formatting Objects Processor (FOP)"
bottom="Copyright ${year} The Apache Software Foundation. All Rights Reserved."
overview="${src.dir}/java/org/apache/fop/overview.html"
overview="${src.java.dir}/org/apache/fop/overview.html"
+ additionalparam="--allow-script-in-comments"
maxmemory="256M">
<header><![CDATA[${name} ${version}]]></header>

View File

@ -1,11 +0,0 @@
--- fop-2.1/src/java/org/apache/fop/svg/SVGUtilities.java 2016-01-07 15:13:29.000000000 +0100
+++ fop-2.1/src/java/org/apache/fop/svg/SVGUtilities.java 2020-04-03 12:41:31.331947147 +0200
@@ -29,7 +29,7 @@
import org.w3c.dom.Element;
import org.apache.batik.anim.dom.SVGDOMImplementation;
-import org.apache.batik.util.XMLConstants;
+import org.apache.batik.constants.XMLConstants;
/**
* Some utilities for creating svg DOM documents and elements.

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:e5af1d81df8f9fab8aa473e6a1c1407c1bf1c3d327df9b04c3861e8247e8b998
size 23308630

View File

@ -1,155 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<!-- $Id$ -->
<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>
<groupId>org.apache.xmlgraphics</groupId>
<artifactId>fop</artifactId>
<packaging>jar</packaging>
<name>Apache FOP</name>
<version>2.1</version>
<url>http://xmlgraphics.apache.org/fop/</url>
<description>Apache FOP (Formatting Objects Processor) is the world's first print formatter driven by XSL formatting objects (XSL-FO) and the world's first output independent formatter. It is a Java application that reads a formatting object (FO) tree and renders the resulting pages to a specified output. Output formats currently supported include PDF, PCL, PS, AFP, TIFF, PNG, SVG, XML (area tree representation), Print, AWT and TXT. The primary output target is PDF.</description>
<inceptionYear>1999</inceptionYear>
<mailingLists>
<mailingList>
<name>FOP Users List</name>
<subscribe>fop-users-subscribe@xmlgraphics.apache.org</subscribe>
<unsubscribe>fop-users-unsubscribe@xmlgraphics.apache.org</unsubscribe>
<archive>http://mail-archives.apache.org/mod_mbox/xmlgraphics-fop-users/</archive>
</mailingList>
<mailingList>
<name>FOP Developer List</name>
<subscribe>fop-dev-subscribe@xmlgraphics.apache.org</subscribe>
<unsubscribe>fop-dev-unsubscribe@xmlgraphics.apache.org</unsubscribe>
<archive>http://mail-archives.apache.org/mod_mbox/xmlgraphics-fop-dev/</archive>
</mailingList>
<mailingList>
<name>FOP Commit List</name>
<subscribe>fop-commits-subscribe@xmlgraphics.apache.org</subscribe>
<unsubscribe>fop-commits-unsubscribe@xmlgraphics.apache.org</unsubscribe>
<archive>http://mail-archives.apache.org/mod_mbox/xmlgraphics-fop-commits/</archive>
</mailingList>
</mailingLists>
<licenses>
<license>
<name>The Apache Software License, Version 2.0</name>
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
<distribution>repo</distribution>
</license>
</licenses>
<scm>
<connection>scm:svn:http://svn.apache.org/repos/asf/xmlgraphics/fop/trunk</connection>
<developerConnection>scm:svn:https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk</developerConnection>
<url>http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/?root=Apache-SVN</url>
</scm>
<organization>
<name>Apache Software Foundation</name>
<url>http://www.apache.org/</url>
</organization>
<parent>
<groupId>org.apache</groupId>
<artifactId>apache</artifactId>
<version>7</version>
</parent>
<dependencies>
<!-- XML Graphics -->
<dependency>
<groupId>org.apache.xmlgraphics</groupId>
<artifactId>xmlgraphics-commons</artifactId>
<version>2.1</version>
</dependency>
<dependency>
<groupId>org.apache.xmlgraphics</groupId>
<artifactId>batik-svg-dom</artifactId>
<version>1.8</version>
</dependency>
<dependency>
<groupId>org.apache.xmlgraphics</groupId>
<artifactId>batik-bridge</artifactId>
<version>1.8</version>
</dependency>
<dependency>
<groupId>org.apache.xmlgraphics</groupId>
<artifactId>batik-awt-util</artifactId>
<version>1.8</version>
</dependency>
<dependency>
<groupId>org.apache.xmlgraphics</groupId>
<artifactId>batik-gvt</artifactId>
<version>1.8</version>
</dependency>
<dependency>
<groupId>org.apache.xmlgraphics</groupId>
<artifactId>batik-transcoder</artifactId>
<version>1.8</version>
<exclusions>
<exclusion>
<groupId>org.apache.xmlgraphics</groupId>
<artifactId>fop</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.apache.xmlgraphics</groupId>
<artifactId>batik-extension</artifactId>
<version>1.8</version>
</dependency>
<dependency>
<groupId>org.apache.xmlgraphics</groupId>
<artifactId>batik-ext</artifactId>
<version>1.8</version>
</dependency>
<!-- other dependencies -->
<dependency>
<groupId>commons-logging</groupId>
<artifactId>commons-logging</artifactId>
<version>1.0.4</version>
</dependency>
<dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
<version>1.3.1</version>
</dependency>
<dependency>
<groupId>org.apache.avalon.framework</groupId>
<artifactId>avalon-framework-api</artifactId>
<version>4.3.1</version>
</dependency>
<dependency>
<groupId>org.apache.avalon.framework</groupId>
<artifactId>avalon-framework-impl</artifactId>
<version>4.3.1</version>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>servlet-api</artifactId>
<version>2.2</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>xalan</groupId>
<artifactId>xalan</artifactId>
<version>2.7.2</version>
<scope>provided</scope>
</dependency>
</dependencies>
</project>

View File

@ -1,6 +1,5 @@
diff -urEbwB fop-2.1/src/codegen/java/org/apache/fop/tools/EventProducerCollector.java fop-2.1.new/src/codegen/java/org/apache/fop/tools/EventProducerCollector.java
--- fop-2.1/src/codegen/java/org/apache/fop/tools/EventProducerCollector.java 2016-01-07 15:13:29.000000000 +0100
+++ fop-2.1.new/src/codegen/java/org/apache/fop/tools/EventProducerCollector.java 2019-01-01 19:11:50.659094055 +0100
--- fop-2.5/fop-events/src/main/java/org/apache/fop/tools/EventProducerCollector.java 2020-05-05 11:42:05.000000000 +0200
+++ fop-2.5/fop-events/src/main/java/org/apache/fop/tools/EventProducerCollector.java 2020-06-03 10:49:58.195555295 +0200
@@ -21,6 +21,7 @@
import java.io.File;
@ -48,7 +47,7 @@ diff -urEbwB fop-2.1/src/codegen/java/org/apache/fop/tools/EventProducerCollecto
}
/**
@@ -89,12 +77,11 @@
@@ -89,9 +77,9 @@
*/
public boolean scanFile(File src)
throws IOException, EventConventionException, ClassNotFoundException {
@ -58,39 +57,27 @@ diff -urEbwB fop-2.1/src/codegen/java/org/apache/fop/tools/EventProducerCollecto
- JavaClass[] classes = builder.getClasses();
+ Collection<JavaClass> classes = builder.getClasses();
boolean eventProducerFound = false;
- for (int i = 0, c = classes.length; i < c; i++) {
- JavaClass clazz = classes[i];
+ for (JavaClass clazz : classes) {
for (JavaClass clazz : classes) {
if (clazz.isInterface() && implementsInterface(clazz, CLASSNAME_EVENT_PRODUCER)) {
processEventProducerInterface(clazz);
eventProducerFound = true;
@@ -104,9 +91,9 @@
@@ -103,7 +91,7 @@
}
private boolean implementsInterface(JavaClass clazz, String intf) {
- JavaClass[] classes = clazz.getImplementedInterfaces();
- for (int i = 0, c = classes.length; i < c; i++) {
- JavaClass cl = classes[i];
+ List<JavaClass> classes = clazz.getInterfaces();
+ for (int i = 0, c = classes.size(); i < c; i++) {
+ JavaClass cl = classes.get(i);
for (JavaClass cl : classes) {
if (cl.getFullyQualifiedName().equals(intf)) {
return true;
}
@@ -123,9 +110,9 @@
@@ -121,7 +109,7 @@
protected void processEventProducerInterface(JavaClass clazz)
throws EventConventionException, ClassNotFoundException {
EventProducerModel prodMeta = new EventProducerModel(clazz.getFullyQualifiedName());
- JavaMethod[] methods = clazz.getMethods(true);
- for (int i = 0, c = methods.length; i < c; i++) {
- JavaMethod method = methods[i];
+ List<JavaMethod> methods = clazz.getMethods(true);
+ for (int i = 0, c = methods.size(); i < c; i++) {
+ JavaMethod method = methods.get(i);
for (JavaMethod method : methods) {
EventMethodModel methodMeta = createMethodModel(method);
prodMeta.addMethod(methodMeta);
}
@@ -136,20 +123,20 @@
@@ -133,20 +121,20 @@
private EventMethodModel createMethodModel(JavaMethod method)
throws EventConventionException, ClassNotFoundException {
@ -117,7 +104,7 @@ diff -urEbwB fop-2.1/src/codegen/java/org/apache/fop/tools/EventProducerCollecto
throw new EventConventionException("The first parameter of the method " + methodSig
+ " must be: 'Object source'!");
}
@@ -164,12 +151,12 @@
@@ -161,12 +149,12 @@
}
EventMethodModel methodMeta = new EventMethodModel(
method.getName(), severity);
@ -135,7 +122,7 @@ diff -urEbwB fop-2.1/src/codegen/java/org/apache/fop/tools/EventProducerCollecto
type = PRIMITIVE_MAP.get(pClass.getName());
if (type == null) {
throw new UnsupportedOperationException(
@@ -182,10 +169,10 @@
@@ -179,10 +167,10 @@
methodMeta.addParameter(type, p.getName());
}
}

3
fop-2.5-src.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:783077318139d581d5f485566d1b08bfc576003c53cfbf5beaeba503a24b4005
size 27447223

79
fop-2.5.pom Normal file
View File

@ -0,0 +1,79 @@
<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>org.apache.xmlgraphics</groupId>
<artifactId>fop</artifactId>
<name>Apache FOP All-In-One</name>
<description>XML Graphics Format Object Processor All-In-One</description>
<parent>
<groupId>org.apache.xmlgraphics</groupId>
<artifactId>fop-parent</artifactId>
<version>2.5</version>
</parent>
<dependencies>
<!-- fop deps -->
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>fop-util</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>fop-events</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>fop-core</artifactId>
<version>${project.version}</version>
</dependency>
<!-- test deps -->
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>${junit.version}</version>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<executions>
<execution>
<id>package-all</id>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
<configuration>
<addMavenDescriptor>false</addMavenDescriptor>
<appendAssemblyId>false</appendAssemblyId>
<archive>
<manifest>
<addDefaultImplementationEntries>true</addDefaultImplementationEntries>
<mainClass>org.apache.fop.cli.Main</mainClass>
</manifest>
<manifestEntries>
<SpecificationTitle>XSL-FO - Extensible Stylesheet Language</SpecificationTitle>
<SpecificationVersion>1.1</SpecificationVersion>
<SpecificationVendor>World Wide Web Consortium</SpecificationVendor>
<SpecificationURL>http://www.w3.org/TR/xsl</SpecificationURL>
</manifestEntries>
</archive>
<descriptors>
<descriptor>src/tools/resources/assembly/assembly.xml</descriptor>
</descriptors>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>

View File

@ -1,17 +1,12 @@
---
build.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Index: fop-2.1/build.xml
===================================================================
--- fop-2.1.orig/build.xml
+++ fop-2.1/build.xml
@@ -181,7 +181,7 @@ list of possible build targets.
diff -urEbwB fop-2.5/fop/build.xml fop-2.5/fop/build.xml
--- fop-2.5/fop/build.xml 2020-05-05 11:42:05.000000000 +0200
+++ fop-2.5/fop/build.xml 2020-06-03 11:09:17.026418161 +0200
@@ -207,7 +207,7 @@
<property name="lib.dir" value="${basedir}/lib"/>
<property name="user.hyph.dir" value="${basedir}/hyph"/>
<property name="unidata.dir" value="${basedir}/UNIDATA"/>
- <property name="hyph.stacksize" value="512k"/>
+ <property name="hyph.stacksize" value="1M"/>
<property name="test.dir" value="${basedir}/test"/>
<property name="build.dir" value="${basedir}/build"/>
<property name="build.gensrc.dir" value="${build.dir}/gensrc"/>
<property name="test.java.dir" value="${src.dir}/test/java"/>
<property name="test.resources.dir" value="${src.dir}/test/resources"/>

View File

@ -1,5 +1,5 @@
--- fop-2.1/src/java/org/apache/fop/afp/fonts/CharactersetEncoder.java 2016-01-07 15:13:29.000000000 +0100
+++ fop-2.1/src/java/org/apache/fop/afp/fonts/CharactersetEncoder.java 2018-12-06 23:18:14.815791853 +0100
--- fop-2.5/fop-core/src/main/java/org/apache/fop/afp/fonts/CharactersetEncoder.java 2020-05-05 11:42:04.000000000 +0200
+++ fop-2.5/fop-core/src/main/java/org/apache/fop/afp/fonts/CharactersetEncoder.java 2020-06-03 11:18:04.577537190 +0200
@@ -21,6 +21,7 @@
import java.io.IOException;
@ -17,8 +17,8 @@
byte[] bytes = new byte[bb.remaining()];
bb.get(bytes);
return getEncodedChars(bytes, bytes.length);
--- fop-2.1/src/java/org/apache/fop/area/AreaTreeParser.java 2016-01-07 15:13:29.000000000 +0100
+++ fop-2.1/src/java/org/apache/fop/area/AreaTreeParser.java 2018-12-06 23:18:14.815791853 +0100
--- fop-2.5/fop-core/src/main/java/org/apache/fop/area/AreaTreeParser.java 2020-05-05 11:42:04.000000000 +0200
+++ fop-2.5/fop-core/src/main/java/org/apache/fop/area/AreaTreeParser.java 2020-06-03 11:18:04.581537214 +0200
@@ -24,6 +24,7 @@
import java.awt.geom.Rectangle2D;
import java.io.FileNotFoundException;
@ -27,7 +27,7 @@
import java.nio.CharBuffer;
import java.util.List;
import java.util.Map;
@@ -322,7 +323,7 @@
@@ -326,7 +327,7 @@
throws SAXException {
lastAttributes = new AttributesImpl(attributes);
Maker maker = makers.get(localName);
@ -36,7 +36,7 @@
ignoreCharacters = true;
if (maker != null) {
ignoreCharacters = maker.ignoreCharacters();
@@ -353,7 +354,7 @@
@@ -357,7 +358,7 @@
Maker maker = makers.get(localName);
if (maker != null) {
maker.endElement();
@ -45,7 +45,7 @@
}
ignoreCharacters = true;
} else {
@@ -798,7 +799,7 @@
@@ -845,7 +846,7 @@
boolean reversed = XMLUtil.getAttributeAsBoolean(lastAttributes, "reversed", false);
int[][] gposAdjustments
= XMLUtil.getAttributeAsPositionAdjustments(lastAttributes, "position-adjust");
@ -54,7 +54,7 @@
WordArea word = new WordArea(
offset, level, content.toString().trim(), letterAdjust,
null, gposAdjustments, reversed);
@@ -818,7 +819,7 @@
@@ -865,7 +866,7 @@
int offset = XMLUtil.getAttributeAsInt(lastAttributes, "offset", 0);
//TODO the isAdjustable parameter is currently not used/implemented
if (content.position() > 0) {
@ -63,7 +63,7 @@
boolean adjustable = XMLUtil.getAttributeAsBoolean(lastAttributes, "adj", true);
int level = XMLUtil.getAttributeAsInt(lastAttributes, "level", -1);
SpaceArea space = new SpaceArea(offset, level, content.charAt(0), adjustable);
@@ -1207,17 +1208,17 @@
@@ -1254,17 +1255,17 @@
// allocate a larger buffer and transfer content
CharBuffer newContent
= CharBuffer.allocate(this.content.position() + length);
@ -84,8 +84,8 @@
}
}
}
--- fop-2.1/src/java/org/apache/fop/fo/FOText.java 2016-01-07 15:13:29.000000000 +0100
+++ fop-2.1/src/java/org/apache/fop/fo/FOText.java 2018-12-06 23:21:33.412845154 +0100
--- fop-2.5/fop-core/src/main/java/org/apache/fop/fo/FOText.java 2020-05-05 11:42:04.000000000 +0200
+++ fop-2.5/fop-core/src/main/java/org/apache/fop/fo/FOText.java 2020-06-03 11:18:04.581537214 +0200
@@ -20,6 +20,7 @@
package org.apache.fop.fo;
@ -94,7 +94,7 @@
import java.nio.CharBuffer;
import java.text.CharacterIterator;
import java.text.StringCharacterIterator;
@@ -128,17 +129,17 @@
@@ -134,17 +135,17 @@
newCapacity = requires;
}
CharBuffer newBuffer = CharBuffer.allocate(newCapacity);
@ -115,7 +115,7 @@
}
/**
@@ -150,7 +151,7 @@
@@ -156,7 +157,7 @@
if (this.charBuffer == null) {
return null;
}
@ -124,7 +124,7 @@
return this.charBuffer.asReadOnlyBuffer().subSequence(0, this.charBuffer.limit());
}
@@ -163,9 +164,9 @@
@@ -169,9 +170,9 @@
// pointed to is really a different one
if (charBuffer != null) {
ft.charBuffer = CharBuffer.allocate(charBuffer.limit());
@ -136,7 +136,7 @@
}
}
ft.prevFOTextThisBlock = null;
@@ -197,7 +198,7 @@
@@ -203,7 +204,7 @@
/** {@inheritDoc} */
public void endOfNode() throws FOPException {
if (charBuffer != null) {
@ -145,7 +145,7 @@
}
super.endOfNode();
getFOEventHandler().characters(this);
@@ -224,7 +225,7 @@
@@ -230,7 +231,7 @@
}
char ch;
@ -154,7 +154,7 @@
while (charBuffer.hasRemaining()) {
ch = charBuffer.get();
if (!((ch == CharUtilities.SPACE)
@@ -232,7 +233,7 @@
@@ -238,7 +239,7 @@
|| (ch == CharUtilities.CARRIAGE_RETURN)
|| (ch == CharUtilities.TAB))) {
// not whitespace
@ -163,7 +163,7 @@
return true;
}
}
@@ -275,7 +276,7 @@
@@ -281,7 +282,7 @@
return;
}
@ -172,7 +172,7 @@
CharBuffer tmp = charBuffer.slice();
char c;
int lim = charBuffer.limit();
@@ -542,19 +543,19 @@
@@ -548,19 +549,19 @@
public void remove() {
if (this.canRemove) {
@ -197,7 +197,7 @@
// Make sure following calls fail, unless nextChar() was called
this.canRemove = false;
} else {
@@ -737,7 +738,7 @@
@@ -743,7 +744,7 @@
*/
public void resetBuffer() {
if (charBuffer != null) {
@ -206,8 +206,8 @@
}
}
--- fop-2.1/src/java/org/apache/fop/fonts/MultiByteFont.java 2016-01-07 15:13:29.000000000 +0100
+++ fop-2.1/src/java/org/apache/fop/fonts/MultiByteFont.java 2018-12-06 23:18:14.815791853 +0100
--- fop-2.5/fop-core/src/main/java/org/apache/fop/fonts/MultiByteFont.java 2020-05-05 11:42:05.000000000 +0200
+++ fop-2.5/fop-core/src/main/java/org/apache/fop/fonts/MultiByteFont.java 2020-06-03 11:19:29.182037444 +0200
@@ -21,6 +21,7 @@
import java.awt.Rectangle;
@ -215,11 +215,11 @@
+import java.nio.Buffer;
import java.nio.CharBuffer;
import java.nio.IntBuffer;
import java.util.BitSet;
@@ -686,7 +687,7 @@
cb.put((char) cc);
}
import java.util.ArrayList;
@@ -731,7 +732,7 @@
cb.put(c);
}
- cb.flip();
+ ((Buffer)cb).flip();
return cb;

View File

@ -1,15 +1,6 @@
Remove custom "Build-Id" field from manifest. It contains:
* Timestamp: Makes the build unreproducible.
* Architecture: Makes the build arch-dependent whereas we want it as
noarch.:
* OS and Java version: Too detailed information, triggers too many
publication for no real advantage.
--
diff -up fop-2.1/build.xml.orig fop-2.1/build.xml
--- fop-2.1/build.xml.orig 2018-10-29 07:26:58.205413821 +0100
+++ fop-2.1/build.xml 2018-10-29 07:55:33.117484917 +0100
@@ -460,7 +460,6 @@ list of possible build targets.
--- fop-2.5/fop/build.xml 2020-05-05 11:42:05.000000000 +0200
+++ fop-2.5/fop/build.xml 2020-06-03 11:24:41.859886083 +0200
@@ -500,7 +500,6 @@
<attribute name="Implementation-Title" value="${Name}"/>
<attribute name="Implementation-Version" value="${version}"/>
<attribute name="Implementation-Vendor" value="The Apache Software Foundation (http://xmlgraphics.apache.org/fop/)"/>
@ -17,15 +8,15 @@ diff -up fop-2.1/build.xml.orig fop-2.1/build.xml
</manifest>
</jar>
</target>
@@ -482,7 +481,6 @@ list of possible build targets.
<jar jarfile="${build.dir}/fop.jar" basedir="${build.classes.dir}">
@@ -522,7 +521,6 @@
<jar jarfile="${build.dir}/fop.jar">
<manifest>
<attribute name="Main-Class" value="org.apache.fop.cli.Main"/>
- <attribute name="Build-Id" value="${ts} (${user.name} [${os.name} ${os.version} ${os.arch}, Java ${java.runtime.version}, Target Java ${javac.target}])"/>
<section name="org/apache/fop/">
<attribute name="Specification-Title" value="XSL-FO - Extensible Stylesheet Language"/>
<attribute name="Specification-Version" value="1.1"/>
@@ -506,9 +504,7 @@ list of possible build targets.
@@ -550,9 +548,7 @@
<format property="ts" pattern="yyyyMMdd-HHmmss-z"/>
</tstamp>
<jar jarfile="${build.dir}/fop-sandbox.jar" basedir="${build.sandbox-classes.dir}">
@ -33,26 +24,10 @@ diff -up fop-2.1/build.xml.orig fop-2.1/build.xml
- <attribute name="Build-Id" value="${ts} (${user.name} [${os.name} ${os.version} ${os.arch}, Java ${java.runtime.version}, Target Java ${javac.target}])"/>
- </manifest>
+ <manifest/>
<metainf dir="${basedir}" includes="LICENSE,NOTICE"/>
<metainf dir="${basedir}/.." includes="LICENSE,NOTICE"/>
</jar>
</target>
@@ -637,7 +633,6 @@ list of possible build targets.
<attribute name="Implementation-Title" value="${fop-transcoder.name}"/>
<attribute name="Implementation-Version" value="${fop-transcoder.version}"/>
<attribute name="Implementation-Vendor" value="The Apache Software Foundation (http://xmlgraphics.apache.org/fop/)"/>
- <attribute name="Build-Id" value="${ts} (${user.name} [${os.name} ${os.version} ${os.arch}, Java ${java.runtime.version}, Target Java ${javac.target}])"/>
</manifest>
<metainf dir="${basedir}" includes="LICENSE,NOTICE"/>
</jar>
@@ -672,7 +667,6 @@ list of possible build targets.
<attribute name="Implementation-Title" value="${fop-transcoder.name}"/>
<attribute name="Implementation-Version" value="${fop-transcoder.version}"/>
<attribute name="Implementation-Vendor" value="The Apache Software Foundation (http://xmlgraphics.apache.org/fop/)"/>
- <attribute name="Build-Id" value="${ts} (${user.name} [${os.name} ${os.version} ${os.arch}, Java ${java.runtime.version}, Target Java ${javac.target}])"/>
</manifest>
<metainf dir="${basedir}" includes="LICENSE,NOTICE"/>
</jar>
@@ -1042,9 +1036,7 @@ NOTE:
@@ -983,9 +979,7 @@
</target>
<target name="jar-javadocs" depends="javadocs" description="Generates a jar file containing the Javadocs">
<jar jarfile="${build.dir}/${name}-${version}-javadoc.jar">
@ -61,22 +36,10 @@ diff -up fop-2.1/build.xml.orig fop-2.1/build.xml
- </manifest>
+ <manifest/>
<fileset dir="${build.javadocs.dir}"/>
<metainf dir="${basedir}" includes="LICENSE,NOTICE"/>
<metainf dir="${basedir}/.." includes="LICENSE,NOTICE"/>
</jar>
@@ -1346,9 +1338,7 @@ NOTE:
<param name="pwd" value="${pwd}"/>
</antcall>
<jar jarfile="${build.dir}/${name}-${version}-bundle.jar">
- <manifest>
- <attribute name="Build-Id" value="${ts} (${user.name} [${os.name} ${os.version} ${os.arch}, Java ${java.runtime.version}])"/>
- </manifest>
+ <manifest/>
<fileset dir="${build.dir}">
<patternset>
<include name="${name}-${version}.jar*"/>
diff -up fop-2.1/examples/plan/build.xml.orig fop-2.1/examples/plan/build.xml
--- fop-2.1/examples/plan/build.xml.orig 2018-10-29 07:48:15.749466784 +0100
+++ fop-2.1/examples/plan/build.xml 2018-10-29 07:48:22.709467073 +0100
--- fop-2.5/fop/examples/plan/build.xml 2020-05-05 11:42:05.000000000 +0200
+++ fop-2.5/fop/examples/plan/build.xml 2020-06-03 11:50:35.613163539 +0200
@@ -133,7 +133,6 @@
<attribute name="Implementation-Title" value="${Name}"/>
<attribute name="Implementation-Version" value="${version}"/>

View File

@ -1,8 +1,6 @@
Index: fop-1.0/src/java/org/apache/fop/cli/Main.java
===================================================================
--- fop-1.0.orig/src/java/org/apache/fop/cli/Main.java 2010-07-12 21:34:44.000000000 +0200
+++ fop-1.0/src/java/org/apache/fop/cli/Main.java 2010-11-03 15:33:27.174637237 +0100
@@ -201,11 +201,7 @@
--- fop-2.5/fop-core/src/main/java/org/apache/fop/cli/Main.java
+++ fop-2.5/fop-core/src/main/java/org/apache/fop/cli/Main.java
@@ -210,11 +210,7 @@
* @param args the command line parameters
*/
public static void main(String[] args) {

View File

@ -19,7 +19,7 @@
%define bname fop
Name: xmlgraphics-fop
Version: 2.1
Version: 2.5
Release: 0
Summary: Formatter for Printing XSLT Processed XML Files
License: Apache-2.0
@ -42,8 +42,7 @@ Patch3: fix-javadoc-java8.patch
Patch4: java8-compatibility.patch
# PATCH-FEATURE-OPENSUSE reproducible-build-manifest.patch -- boo#1110024
Patch5: reproducible-build-manifest.patch
Patch6: fop-2.1-QDox-2.0.patch
Patch7: fop-2.1-batik-xmlconstants.patch
Patch6: fop-2.5-QDox-2.0.patch
BuildRequires: ant >= 1.6.5
BuildRequires: apache-pdfbox
BuildRequires: avalon-framework >= 4.3
@ -58,7 +57,7 @@ BuildRequires: libxslt
BuildRequires: qdox >= 2.0
BuildRequires: unzip
BuildRequires: xml-commons-apis >= 1.3
BuildRequires: xmlgraphics-batik >= 1.8
BuildRequires: xmlgraphics-batik >= 1.11
BuildRequires: xmlgraphics-commons >= 2.1
#!BuildIgnore: saxon
Requires: apache-pdfbox
@ -83,21 +82,17 @@ representation), Print, AWT, MIF, and TXT.
%prep
%setup -q -n %{bname}-%{version} -a5
ln -thyph offo-hyphenation/hyph/*.xml
ln -tfop/hyph offo-hyphenation/hyph/*.xml
find -name "*.jar" | xargs -t rm
# Remove this file. It needs jai and we don't compile it.
# Just javadoc chokes on it.
rm src/java/org/apache/fop/util/bitmap/JAIMonochromeBitmapConverter.java
# rm src/java/org/apache/fop/util/bitmap/JAIMonochromeBitmapConverter.java
%patch1 -p1 -b .cli
%patch2 -p1
%patch3 -p1
%patch4 -p1
%patch5 -p1
# Batik 1.11 moved XMLConstants from org.apache.batik.util to org.apache.batik.constants
%patch6 -p1
%if %{?pkg_vcmp:%pkg_vcmp xmlgraphics-batik >= 1.11}%{!?pkg_vcmp:0}
%patch7 -p1
%endif
# Replace keyword "VERSION" in XML files with the real one:
for x in %{SOURCE10} %{SOURCE11} %{SOURCE12}; do
@ -105,7 +100,7 @@ for x in %{SOURCE10} %{SOURCE11} %{SOURCE12}; do
done
%build
build-jar-repository -s lib \
build-jar-repository -s fop/lib \
avalon-framework-api \
avalon-framework-impl \
commons-io \
@ -119,7 +114,7 @@ build-jar-repository -s lib \
qdox
export CLASSPATH= LANG=en_US.UTF-8
%{ant} \
%{ant} -f fop/build.xml \
-Djavac.source=1.8 -Djavac.target=1.8 \
package
@ -135,13 +130,13 @@ done
%install
# jars
mkdir -p %{buildroot}%{_javadir}
install -m 644 build/%{bname}.jar %{buildroot}%{_javadir}/%{name}.jar
install -m 644 build/%{bname}-hyph.jar %{buildroot}%{_javadir}/%{name}-hyph.jar
install -m 644 build/%{bname}-sandbox.jar %{buildroot}%{_javadir}/%{name}-sandbox.jar
install -m 644 fop/build/%{bname}.jar %{buildroot}%{_javadir}/%{name}.jar
install -m 644 fop/build/%{bname}-hyph.jar %{buildroot}%{_javadir}/%{name}-hyph.jar
install -m 644 fop/build/%{bname}-sandbox.jar %{buildroot}%{_javadir}/%{name}-sandbox.jar
# pom
install -d -m 755 %{buildroot}%{_mavenpomdir}
install -pm 644 %{SOURCE1} %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom
install -pm 644 fop/pom.xml %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom
%add_maven_depmap
# script
@ -155,7 +150,7 @@ ln -s %{name}-fontmetrics %{buildroot}%{_bindir}/%{bname}-fontmetrics
ln -s %{name}-fontlist %{buildroot}%{_bindir}/%{bname}-fontlist
# data
install -D -m 644 conf/fop.xconf %{buildroot}%{_sysconfdir}/fop.xconf
install -D -m 644 fop/conf/fop.xconf %{buildroot}%{_sysconfdir}/fop.xconf
# Manpages
mkdir -p %{buildroot}%{_mandir}/man1
@ -175,7 +170,7 @@ popd
%{_javadir}/%{name}-hyph.jar
%{_javadir}/%{name}-sandbox.jar
%license LICENSE
%doc NOTICE README known-issues.xml
%doc NOTICE README fop/known-issues.xml
%doc *.html
%attr(0755,root,root) %{_bindir}/%{name}
%{_bindir}/%{bname}