diff --git a/.gitignore b/.gitignore index 6128dda..cfcb5f2 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,10 @@ -/LICENSE-1.1.txt +fop-0.95-src.tar.gz +fop-1.0-src.tar.gz /event-model.tgz -/fop-[0-9]*.[0-9]*-src.tar.gz -/fop-[0-9]*.[0-9]*-src.tar.gz.asc -/fop-[0-9]*.[0-9]*.pom +/fop-1.1-src.tar.gz +/fop-1.1-clean.tar.gz +/LICENSE-1.1.txt +/fop-2.0-clean.tar.gz +/fop-2.0.pom +/fop-2.2.pom +/fop-2.2-src.tar.gz diff --git a/0001-Main.patch b/0001-Main.patch index 5daaa4d..9ff5d31 100644 --- a/0001-Main.patch +++ b/0001-Main.patch @@ -4,10 +4,10 @@ Subject: [PATCH] Main diff --git a/fop-core/src/main/java/org/apache/fop/cli/Main.java b/fop-core/src/main/java/org/apache/fop/cli/Main.java -index a14d20c78..ef11c0839 100644 +index e082265f1..143a57cb6 100644 --- a/fop-core/src/main/java/org/apache/fop/cli/Main.java +++ b/fop-core/src/main/java/org/apache/fop/cli/Main.java -@@ -215,11 +215,7 @@ public final class Main { +@@ -213,11 +213,7 @@ public final class Main { * @param args the command line parameters */ public static void main(String[] args) { @@ -19,4 +19,4 @@ index a14d20c78..ef11c0839 100644 + startFOP(args); } - /** + } diff --git a/0003-Disable-javadoc-doclint.patch b/0003-Disable-javadoc-doclint.patch new file mode 100644 index 0000000..f61daa7 --- /dev/null +++ b/0003-Disable-javadoc-doclint.patch @@ -0,0 +1,17 @@ +From: Mikolaj Izdebski +Date: Thu, 14 May 2015 06:26:09 +0200 +Subject: [PATCH] Disable javadoc doclint + + +diff --git a/fop/build.xml b/fop/build.xml +index 3110bf00d..a4a921e1c 100644 +--- a/fop/build.xml ++++ b/fop/build.xml +@@ -1008,6 +1008,7 @@ NOTE: + bottom="Copyright ${year} The Apache Software Foundation. All Rights Reserved." + overview="${src.java.dir}/org/apache/fop/overview.html" + maxmemory="256M"> ++ +
+
+ diff --git a/0003-Port-to-QDox-2.0.patch b/0004-Port-to-QDox-2.0.patch similarity index 94% rename from 0003-Port-to-QDox-2.0.patch rename to 0004-Port-to-QDox-2.0.patch index 1269980..c395e39 100644 --- a/0003-Port-to-QDox-2.0.patch +++ b/0004-Port-to-QDox-2.0.patch @@ -3,10 +3,10 @@ Date: Tue, 17 Mar 2015 10:59:41 +0100 Subject: [PATCH] Port to QDox 2.0 -diff --git a/fop-events/src/main/java/org/apache/fop/eventtools/EventProducerCollector.java b/fop-events/src/main/java/org/apache/fop/eventtools/EventProducerCollector.java +diff --git a/fop-events/src/main/java/org/apache/fop/tools/EventProducerCollector.java b/fop-events/src/main/java/org/apache/fop/tools/EventProducerCollector.java index 2351fc870..64cd7edf0 100644 ---- a/fop-events/src/main/java/org/apache/fop/eventtools/EventProducerCollector.java -+++ b/fop-events/src/main/java/org/apache/fop/eventtools/EventProducerCollector.java +--- a/fop-events/src/main/java/org/apache/fop/tools/EventProducerCollector.java ++++ b/fop-events/src/main/java/org/apache/fop/tools/EventProducerCollector.java @@ -21,6 +21,7 @@ package org.apache.fop.tools; import java.io.File; diff --git a/0004-jdk25.patch b/0004-jdk25.patch deleted file mode 100644 index ab57880..0000000 --- a/0004-jdk25.patch +++ /dev/null @@ -1,23 +0,0 @@ ---- a/fop-core/src/main/java/org/apache/fop/pdf/PDFOutputIntent.java -+++ b/fop-core/src/main/java/org/apache/fop/pdf/PDFOutputIntent.java -@@ -165,7 +165,7 @@ - } - - bout.write(encode(">>")); -- } catch (IOException ioe) { -+ } catch (Exception ioe) { - log.error("Ignored I/O exception", ioe); - } - byte[] bytes = bout.toByteArray(); ---- a/fop-core/src/main/java/org/apache/fop/render/pdf/AbstractImageAdapter.java -+++ b/fop-core/src/main/java/org/apache/fop/render/pdf/AbstractImageAdapter.java -@@ -263,7 +263,7 @@ - indexed.add(new PDFName("DeviceGray")); - try { - baout.write(blues); -- } catch (IOException e) { -+ } catch (Exception e) { - e.printStackTrace(); - } - } else { - diff --git a/0005-Allow-javascript-in-javadoc.patch b/0005-Allow-javascript-in-javadoc.patch new file mode 100644 index 0000000..f9e3260 --- /dev/null +++ b/0005-Allow-javascript-in-javadoc.patch @@ -0,0 +1,17 @@ +From: Michael Simacek +Date: Wed, 1 Feb 2017 13:10:03 +0100 +Subject: [PATCH] Allow javascript in javadoc + + +diff --git a/fop/build.xml b/fop/build.xml +index a4a921e1c..a30d95130 100644 +--- a/fop/build.xml ++++ b/fop/build.xml +@@ -1009,6 +1009,7 @@ NOTE: + overview="${src.java.dir}/org/apache/fop/overview.html" + maxmemory="256M"> + ++ +
+
+ diff --git a/0006-Non-free-colour-profile-was-removed.patch b/0006-Non-free-colour-profile-was-removed.patch new file mode 100644 index 0000000..48a8abb --- /dev/null +++ b/0006-Non-free-colour-profile-was-removed.patch @@ -0,0 +1,22 @@ +From: Peter Lemenkov +Date: Thu, 17 May 2018 16:26:24 +0300 +Subject: [PATCH] Non-free colour profile was removed + +See commit e0d614e3ab7019a7ac97471ebcc7d5b173abff99 for further details. + +Signed-off-by: Peter Lemenkov + +diff --git a/README b/README +index cc83c7216..f9231ba92 100644 +--- a/README ++++ b/README +@@ -42,9 +42,6 @@ Legal information on libraries used by Apache FOP can be found in the + + Here is a list of files included in Apache FOP but not published under Apache + License version 2.0: +-- sRGB IEC61966-2.1 color profile +- File: src/java/org/apache/fop/pdf/sRGB Color Space Profile.icm +- Info: src/java/org/apache/fop/pdf/sRGB Color Space Profile.icm.LICENSE.txt + - K3 3 of 9 barcode font (TrueType) + File: examples/fo/advanced/K3.TTF + Info: examples/fo/advanced/K3.README diff --git a/5C9A30FF22B2C02F30261C305B93F1DF7CDB6DEA.gpg b/5C9A30FF22B2C02F30261C305B93F1DF7CDB6DEA.gpg deleted file mode 100644 index 7b805fc..0000000 Binary files a/5C9A30FF22B2C02F30261C305B93F1DF7CDB6DEA.gpg and /dev/null differ diff --git a/changelog b/changelog deleted file mode 100644 index c405ce0..0000000 --- a/changelog +++ /dev/null @@ -1,329 +0,0 @@ -* Wed Jul 19 2023 Fedora Release Engineering - 2.8-5 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild - -* Mon Feb 27 2023 Tim Orling - 2.8-4 -- migrated to SPDX license - -* Thu Jan 19 2023 Fedora Release Engineering - 2.8-3 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild - -* Wed Nov 16 2022 Peter Lemenkov - 2.8-2 -- Build from cleaned up tarball - -* Wed Nov 16 2022 Peter Lemenkov - 2.8-1 -- Update to 2.8 - -* Thu Jul 21 2022 Fedora Release Engineering - 2.7-4 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild - -* Fri Jul 08 2022 Jiri Vanek - 2.7-3 -- Rebuilt for Drop i686 JDKs - -* Sat Feb 05 2022 Jiri Vanek - 2.7-2 -- Rebuilt for java-17-openjdk as system jdk - -* Thu Jan 27 2022 Peter Lemenkov - 2.7-1 -- Update to 2.7 - -* Thu Jan 20 2022 Fedora Release Engineering - 2.6-4 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild - -* Mon Dec 06 2021 Mat Booth - 2.6-3 -- Remove unnecessary BR on servlet - -* Thu Aug 26 2021 Peter Lemenkov - 2.6-2 -- Restore two patches - -* Wed Aug 25 2021 Orion Poplawski - 2.6-1 -- Update to 2.6, build with maven - -* Wed Jul 21 2021 Fedora Release Engineering - 2.5-3 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild - -* Tue Jan 26 2021 Fedora Release Engineering - 2.5-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild - -* Mon Nov 23 2020 Peter Lemenkov - 2.5-1 -- Ver. 2.5 - -* Sat Aug 01 2020 Fedora Release Engineering - 2.4-4 -- Second attempt - Rebuilt for - https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild - -* Mon Jul 27 2020 Fedora Release Engineering - 2.4-3 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild - -* Fri Jul 10 2020 Jiri Vanek - 2.4-2 -- Rebuilt for JDK-11, see https://fedoraproject.org/wiki/Changes/Java11 - -* Fri Feb 21 2020 Peter Lemenkov - 2.4-1 -- Ver. 2.4 -- No nonger requires avalon framework - -* Tue Jan 28 2020 Fedora Release Engineering - 2.2-6 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild - -* Thu Jul 25 2019 Fedora Release Engineering - 2.2-5 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild - -* Thu Jan 31 2019 Fedora Release Engineering - 2.2-4 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild - -* Fri Aug 31 2018 Severin Gehwolf - 2.2-3 -- Add explicit javapackages-tools requirement since fop script - uses java-functions. See RHBZ#1600426. - -* Fri Jul 13 2018 Fedora Release Engineering - 2.2-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild - -* Thu May 17 2018 Peter Lemenkov - 2.2-1 -- Ver. 2.2 - -* Wed Feb 07 2018 Fedora Release Engineering - 2.0-9 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild - -* Mon Sep 25 2017 Mikolaj Izdebski - 2.0-8 -- Elimitate race condition when injecting JAR manifest -- Resolves: rhbz#1495235 - -* Tue Sep 12 2017 Mikolaj Izdebski - 2.0-7 -- Add fontbox to classpath -- Resolves: rhbz#1413340 - -* Wed Jul 26 2017 Fedora Release Engineering - 2.0-6 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild - -* Fri Feb 10 2017 Fedora Release Engineering - 2.0-5 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild - -* Wed Feb 01 2017 Michael Simacek - 2.0-4 -- Fix FTBFS - -* Wed Feb 03 2016 Fedora Release Engineering - 2.0-3 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild - -* Fri Aug 07 2015 Michael Simacek - 2.0-2 -- Add fix for FOP-2461 (rhbz#1251173) - -* Tue Jul 14 2015 Michael Simacek - 2.0-1 -- Update to upstream version 2.0 - -* Wed Jun 17 2015 Fedora Release Engineering - 1.1-11 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild - -* Thu May 14 2015 Mikolaj Izdebski - 1.1-10 -- Disable javadoc doclint - -* Tue Mar 17 2015 Michael Simacek - 1.1-9 -- Port to current QDox and xmlgraphics-commons - -* Mon Jun 16 2014 Michal Srb - 1.1-8 -- Fix FTBFS - -* Sat Jun 07 2014 Fedora Release Engineering - 1.1-7 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild - -* Thu Jan 2 2014 Richard Hughes 1.1-6 -- Drop the icc-profiles-openicc requirement and switch to using the colord sRGB - profile filename. -- Resolves: #1042655 - -* Thu Nov 7 2013 Krzysztof Daniel 1.1-5 -- Fix the OSGi manifest. - -* Wed Sep 18 2013 Michal Srb - 1.1-4 -- Fix license tag (Resolves: rhbz#979394) -- Add ASL 1.1 license text - -* Sat Aug 03 2013 Fedora Release Engineering - 1.1-3 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild - -* Fri Jun 21 2013 Michal Srb - 1.1-2 -- Build from clean tarball -- Spec file clean up - -* Fri Apr 12 2013 Michal Srb - 1.1-1 -- Update to upstream version 1.1 -- Replace proprietary color profile with free CP from icc-profiles-openicc package -- Resolves: rhbz#848659 - -* Wed Feb 13 2013 Fedora Release Engineering - 1.0-21 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild - -* Sun Nov 18 2012 Mikolaj Izdebski - 1.0-20 -- Add xml-commons-apis-ext to classpath - -* Thu Jul 19 2012 Fedora Release Engineering - 1.0-19 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild - -* Fri Jan 13 2012 Fedora Release Engineering - 1.0-18 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild - -* Tue Jun 21 2011 Rüdiger Landmann 1.0-16 -- Supply missing event-model.xml files - -* Fri Jun 3 2011 Rüdiger Landmann 1.0-15 -- Split avalon-framework into avalon-framework-api and avalon-framework-impl in classpath - -* Thu Mar 10 2011 Alexander Kurtakov 1.0-14 -- Reapply Fedora guidelines. -- Re-add pom.xml to unbreak Maven stack. -- Re-add OSGi manifest to unbreak Eclipse stack. -- Remove all bundled jars and classes and fix the build to work with our libs. - -* Thu Mar 10 2011 Rüdiger Landmann 1.0-13 -- reinstate updated manifest patch -- change define to global - -* Thu Mar 10 2011 Rüdiger Landmann 1.0-12 -- buildarch: noarch - -* Thu Mar 10 2011 Rüdiger Landmann 1.0-11 -- drop obsolete manifest patch - -* Thu Mar 10 2011 Rüdiger Landmann 1.0-10 -- import 1.0 into Fedora, based on Mandriva package - -* Tue Feb 08 2011 Fedora Release Engineering - 1.0-9 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild - -* Tue Jan 4 2011 Rüdiger Landmann - 1.0-8 -- BR qdox - -* Tue Jan 4 2011 Rüdiger Landmann - 1.0-7 -- set BR on xmlgraphics-commons >= 1.4 -- Add qdox classpath - -* Thu Dec 09 2010 Paulo Ricardo Zanoni 1.0-0.0.3mdv2011.0 -- Revision: 617684 -- Resubmit after moving - -* Fri Dec 3 2010 Stanislav Ochotnicky - 1.0-6 -- Add LICENSE to javadoc sub-package -- Few other tweaks according to new guidelines -- Make jars and javadoc versionless -- Add pom file (Resolves rhbz#655804) - -* Fri Oct 1 2010 Alexander Kurtakov 1.0-5 -- We need servlet not jsp. - -* Fri Oct 1 2010 Alexander Kurtakov 1.0-4 -- BR jsp. - -* Fri Oct 1 2010 Alexander Kurtakov 1.0-3 -- Add more BRs. - -* Fri Oct 1 2010 Alexander Kurtakov 1.0-2 -- BR ant-nodeps. - -* Fri Oct 1 2010 Alexander Kurtakov 1.0-1 -- Update to 1.0. -- BR/R java 1.6.0 not openjdk (rhbz#620330). -- Remove jars in prep. - -* Sat Sep 04 2010 Tomasz Pawel Gajc 1.0-0.0.2mdv2011.0 -- Revision: 576002 -- rebuild for new xmlgraphics-commons - -* Sun Aug 29 2010 Tomasz Pawel Gajc 1.0-0.0.1mdv2011.0 -- Revision: 574030 -- update to new version 1.0 -- disable patch 1 -- disable gcj support - -* Thu Apr 29 2010 Tomasz Pawel Gajc 0.95-0.0.3mdv2010.1 -- Revision: 540954 -- rebuild - -* Fri Sep 11 2009 Thierry Vignaud 0.95-0.0.2mdv2010.0 -- Revision: 437573 -- rebuild - -* Wed Dec 17 2008 Tomasz Pawel Gajc 0.95-0.0.1mdv2009.1 -- Revision: 315376 -- update to new version 0.95 -- drop patch0, not needed anymore -- spec file clean -- drop useles buildrequires -- use %%java_home - -* Sat Dec 29 2007 David Walluck 0.94-0.2.1mdv2008.1 -- Revision: 139372 -- spec cleanup -- import fop - - -* Fri Dec 7 2007 Lillian Angel - 0.94-2 -- Updated Release. - -* Thu Dec 6 2007 Lillian Angel - 0.94-1 -- Removed ppc/64 conditions since IcedTea is now available for ppc/64. - -* Tue Nov 27 2007 Lillian Angel - 0.94-1 -- Fixed to build with gcj on ppc/64. - -* Fri Nov 23 2007 Lillian Angel - 0.94-1 -- Fixed rpmlint errors. - -* Tue Sep 18 2007 Joshua Sumali - 0:0.94-1 -- Update to fop 0.94 - -* Thu Mar 30 2006 Ralph Apel - 0:0.20.5-9jpp -- First build for JPP-1.7 -- Replace avalon-framework, avalon-logkit with their new excalibur-* - counterparts -- Drop non-free jimi and jai BRs - -* Tue Oct 11 2005 Ralph Apel - 0:0.20.5-8jpp -- Patch to Batik >= 1.5.1 - -* Fri Oct 07 2005 Ralph Apel - 0:0.20.5-7jpp -- Omit ant -d flag - -* Mon Aug 23 2004 Ralph Apel - 0:0.20.5-6jpp -- Build with ant-1.6.2 - -* Fri Aug 06 2004 Ralph Apel - 0:0.20.5-5jpp -- Void change - -* Tue Jun 01 2004 Randy Watler - 0:0.20.5-4jpp -- Upgrade to Ant 1.6.X - -* Thu Jan 8 2004 Ville Skyttä - 0:0.20.5-3jpp -- BuildRequires ant-optional. -- Crosslink with full J2SE javadocs instead of just JAXP/XML-commons. -- Add Main-Class back to manifest. - -* Tue Sep 23 2003 Paul Nasrat - 0:0.20.5-2jpp -- Fix script and requires -- Remove class path in manifest -- New javadoc style - -* Sat Jul 19 2003 Ville Skyttä - 0:0.20.5-1jpp -- Update to 0.20.5. -- Crosslink with xml-commons-apis and batik javadocs. -- BuildRequires jai, jce and jimi. - -* Sat Jun 7 2003 Ville Skyttä - 0:0.20.5-0.rc3a.1jpp -- Update to 0.20.5rc3a. -- Include fop script. -- Non-versioned javadoc symlinks. - -* Thu Apr 17 2003 Ville Skyttä - 0:0.20.5-0.rc2.1jpp -- Update to 0.20.5rc2 and JPackage 1.5. - -* Sun Mar 10 2002 Guillaume Rousse 0.20.3-1jpp -- 0.20.3 final -- fixed missing symlink - -* Mon Jan 21 2002 Guillaume Rousse 0.20.3-0.rc.1jpp -- 0.20.3rc -- first unified release -- javadoc into javadoc package -- no dependencies for manual package -- s/jPackage/JPackage -- adaptation to new xalan-j2 package -- requires and buildrequires avalon-logkit - -* Thu Aug 30 2001 Guillaume Rousse 0.20.1-1mdk -- first release diff --git a/clean-tarball.sh b/clean-tarball.sh index 12fae99..0360298 100755 --- a/clean-tarball.sh +++ b/clean-tarball.sh @@ -13,6 +13,8 @@ tar xvf ${NAME}-${VERSION}-src.tar.gz ( cd ${NAME}-${VERSION} + # non-free color profile + find src/java/org/apache/fop/pdf/ -name "*.icm*" -delete find ./ -name "*.jar" -delete find ./ -name "*.pdf" -delete # serialized objects diff --git a/fop-1.1.pom b/fop-1.1.pom new file mode 100644 index 0000000..bbad61a --- /dev/null +++ b/fop-1.1.pom @@ -0,0 +1,155 @@ + + + + + 4.0.0 + org.apache.xmlgraphics + fop + jar + Apache FOP + 1.1 + http://xmlgraphics.apache.org/fop/ + 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. + 1999 + + + FOP Users List + fop-users-subscribe@xmlgraphics.apache.org + fop-users-unsubscribe@xmlgraphics.apache.org + http://mail-archives.apache.org/mod_mbox/xmlgraphics-fop-users/ + + + FOP Developer List + fop-dev-subscribe@xmlgraphics.apache.org + fop-dev-unsubscribe@xmlgraphics.apache.org + http://mail-archives.apache.org/mod_mbox/xmlgraphics-fop-dev/ + + + FOP Commit List + fop-commits-subscribe@xmlgraphics.apache.org + fop-commits-unsubscribe@xmlgraphics.apache.org + http://mail-archives.apache.org/mod_mbox/xmlgraphics-fop-commits/ + + + + + The Apache Software License, Version 2.0 + http://www.apache.org/licenses/LICENSE-2.0.txt + repo + + + + scm:svn:http://svn.apache.org/repos/asf/xmlgraphics/fop/trunk + scm:svn:https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk + http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/?root=Apache-SVN + + + Apache Software Foundation + http://www.apache.org/ + + + org.apache + apache + 7 + + + + + org.apache.xmlgraphics + xmlgraphics-commons + 1.5 + + + org.apache.xmlgraphics + batik-svg-dom + 1.7 + + + org.apache.xmlgraphics + batik-bridge + 1.7 + + + org.apache.xmlgraphics + batik-awt-util + 1.7 + + + org.apache.xmlgraphics + batik-gvt + 1.7 + + + org.apache.xmlgraphics + batik-transcoder + 1.7 + + + org.apache.xmlgraphics + fop + + + + + org.apache.xmlgraphics + batik-extension + 1.7 + + + org.apache.xmlgraphics + batik-ext + 1.7 + + + + commons-logging + commons-logging + 1.0.4 + + + commons-io + commons-io + 1.3.1 + + + org.apache.avalon.framework + avalon-framework-api + 4.2.0 + + + org.apache.avalon.framework + avalon-framework-impl + 4.2.0 + + + javax.servlet + servlet-api + 2.2 + provided + + + xalan + xalan + 2.7.0 + provided + + + diff --git a/fop.script b/fop.script index 902d643..64e2bf7 100644 --- a/fop.script +++ b/fop.script @@ -25,8 +25,8 @@ fi MAIN_CLASS=org.apache.fop.cli.Main # Set parameters set_jvm -set_classpath commons-io batik-all \ - xmlgraphics-commons xml-commons-apis-ext \ +set_classpath commons-io batik-all avalon-framework-api \ + avalon-framework-impl xmlgraphics-commons xml-commons-apis-ext \ commons-logging fontbox fop set_flags $BASE_FLAGS set_options $BASE_OPTIONS diff --git a/fop.spec b/fop.spec index e28f696..ae19f5e 100644 --- a/fop.spec +++ b/fop.spec @@ -1,63 +1,49 @@ Name: fop Summary: XSL-driven print formatter -Version: 2.11 -Release: %autorelease +Version: 2.2 +Release: 1%{?dist} # ASL 1.1: # several files in fop-core/src/main/resources/org/apache/fop/render/awt/viewer/resources -# * Viewer_cs.properties -# * Viewer_fi.properties -# * Viewer_ja.properties -# * Viewer_pl.properties -# * Viewer_ru.properties -# * Viewer_tr.properties # rest is ASL 2.0 -License: Apache-2.0 AND Apache-1.1 +License: ASL 2.0 and ASL 1.1 URL: https://xmlgraphics.apache.org/fop Source0: https://www.apache.org/dist/xmlgraphics/%{name}/source/%{name}-%{version}-src.tar.gz -Source1: https://www.apache.org/dist/xmlgraphics/%{name}/source/%{name}-%{version}-src.tar.gz.asc -Source2: %{name}.script -Source3: batik-pdf-MANIFEST.MF +Source1: %{name}.script +Source2: batik-pdf-MANIFEST.MF +Source3: https://maven.ibiblio.org/maven2/org/apache/xmlgraphics/%{name}/%{version}/%{name}-%{version}.pom Source4: https://www.apache.org/licenses/LICENSE-1.1.txt -Source5: 5C9A30FF22B2C02F30261C305B93F1DF7CDB6DEA.gpg Patch1: 0001-Main.patch Patch2: 0002-Use-sRGB.icc-color-profile-from-colord-package.patch -Patch3: 0003-Port-to-QDox-2.0.patch -Patch4: 0004-jdk25.patch +Patch3: 0003-Disable-javadoc-doclint.patch +Patch4: 0004-Port-to-QDox-2.0.patch +Patch5: 0005-Allow-javascript-in-javadoc.patch +Patch6: 0006-Non-free-colour-profile-was-removed.patch BuildArch: noarch -ExclusiveArch: %{java_arches} noarch -Requires: java-25 +Requires: apache-commons-io >= 1.2 +Requires: apache-commons-logging >= 1.0.4 +Requires: avalon-framework >= 4.1.4 +Requires: batik >= 1.7 +Requires: fontbox +Requires: jakarta-commons-httpclient +Requires: java Requires: xalan-j2 >= 2.7.0 Requires: xml-commons-apis >= 1.3.04 -BuildRequires: bouncycastle-pkix -# Explicit requires for javapackages-tools since fop script -# uses /usr/share/java-utils/java-functions -Requires: javapackages-tools +Requires: xmlgraphics-commons >= 1.5 +BuildRequires: ant BuildRequires: apache-commons-io BuildRequires: apache-commons-logging +BuildRequires: avalon-framework BuildRequires: batik BuildRequires: fontbox -BuildRequires: gnupg2 -BuildRequires: javapackages-local-openjdk25 +BuildRequires: javapackages-local BuildRequires: junit -BuildRequires: maven-antrun-plugin -BuildRequires: maven-assembly-plugin -BuildRequires: maven-clean-plugin -BuildRequires: maven-local-openjdk25 -BuildRequires: build-helper-maven-plugin -BuildRequires: mvn(javax.servlet:servlet-api) -BuildRequires: bouncycastle-pkix -# For servlet, not packaged -#BuildRequires: maven-war-plugin -BuildRequires: pdfbox BuildRequires: qdox -BuildRequires: xml-maven-plugin -BuildRequires: xmlgraphics-commons >= 2.8 +BuildRequires: servlet +BuildRequires: xmlgraphics-commons >= 1.5 BuildRequires: xmlunit -BuildRequires: xmlunit-assertj -BuildRequires: xmlunit-core %description FOP is the world's first print formatter driven by XSL formatting @@ -74,44 +60,37 @@ Summary: Javadoc for %{name} Javadoc for %{name}. %prep -%{gpgverify} --keyring='%{SOURCE5}' --signature='%{SOURCE1}' --data='%{SOURCE0}' %autosetup -p1 cp %{SOURCE4} LICENSE-1.1 rm -f fop/lib/*.jar fop/lib/build/*.jar -# Not packaged -%pom_remove_plugin org.apache.maven.plugins:maven-javadoc-plugin -%pom_change_dep org.bouncycastle:bcpkix-jdk15to18:1.78.1 org.bouncycastle:bcpkix-jdk18on:1.83 fop-core -%pom_change_dep org.bouncycastle:bcprov-jdk15to18:1.78.1 org.bouncycastle:bcprov-jdk18on:1.83 fop-core -%pom_remove_dep javax.media:jai-core fop-core -%pom_remove_dep com.sun.media:jai-codec fop-core -%pom_remove_dep net.sf.offo:fop-hyph fop-core -%pom_remove_dep net.sf.saxon:saxon fop-core -# Update to current xmlunit -%pom_change_dep xmlunit:xmlunit org.xmlunit:xmlunit-core fop-core -%pom_add_dep org.xmlunit:xmlunit-assertj3 fop-core -# Requires maven-war-plugin -%pom_disable_module fop-servlet -# Requires JAI, not packaged -rm fop-core/src/main/java/org/apache/fop/util/bitmap/JAIMonochromeBitmapConverter.java - +#upstream workaround -- many thanks to spepping@apache.org -- see https://issues.apache.org/bugzilla/show_bug.cgi?id=50575 +ln -s %{_javadir}/qdox.jar fop/lib/build/qdox.jar %build -# Skip tests for now, make dirs needed by build but created by tests -mkdir -p fop-events/target/test-classes -%mvn_build -f - +#qdox intentionally left off classpath -- see https://issues.apache.org/bugzilla/show_bug.cgi?id=50575 +export CLASSPATH=$(build-classpath apache-commons-logging apache-commons-io \ + fontbox xmlgraphics-commons batik-all avalon-framework-api \ + avalon-framework-impl servlet batik/batik-svg-dom xml-commons-apis \ + xml-commons-apis-ext objectweb-asm/asm-all xmlunit) +export JAVA_TOOL_OPTIONS=-Dfile.encoding=UTF8 +ant -f fop/build.xml jar-main transcoder-pkg javadocs %install -%mvn_install # inject OSGi manifest -jar ufm %{buildroot}%{_javadir}/%{name}/%{name}.jar %{SOURCE3} +jar ufm fop/build/%{name}.jar %{SOURCE2} + + +# jars +install -d -m 755 %{buildroot}%{_javadir} +install -p -m 644 fop/build/%{name}.jar %{buildroot}%{_javadir}/%{name}.jar +install -p -m 644 fop/build/%{name}-transcoder.jar %{buildroot}%{_javadir}/pdf-transcoder.jar # script install -d -m 755 %{buildroot}%{_bindir} -install -p -m 755 %{SOURCE2} %{buildroot}%{_bindir}/fop +install -p -m 755 %{SOURCE1} %{buildroot}%{_bindir}/fop # data install -d -m 755 %{buildroot}%{_datadir}/%{name}/conf @@ -119,19 +98,273 @@ cp -rp fop/conf/* %{buildroot}%{_datadir}/%{name}/conf # javadoc install -d -m 755 %{buildroot}%{_javadocdir}/%{name} -cp -rp target/xmvn-apidocs/* %{buildroot}%{_javadocdir}/%{name} +cp -rp fop/build/javadocs/* %{buildroot}%{_javadocdir}/%{name} + +install -d -m 755 %{buildroot}%{_mavenpomdir} +install -p -m 644 %{SOURCE3} %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom +%add_maven_depmap JPP-%{name}.pom %{name}.jar %files -f .mfiles -%doc README NOTICE -%license LICENSE LICENSE-1.1 +%doc LICENSE LICENSE-1.1 README NOTICE %{_datadir}/%{name} +%{_javadir}/pdf-transcoder.jar %{_bindir}/fop %files javadoc %doc %{_javadocdir}/%{name} -%license LICENSE LICENSE-1.1 +%doc LICENSE LICENSE-1.1 %changelog -%autochangelog +* Thu May 17 2018 Peter Lemenkov - 2.2-1 +- Ver. 2.2 + +* Wed Feb 07 2018 Fedora Release Engineering - 2.0-9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Mon Sep 25 2017 Mikolaj Izdebski - 2.0-8 +- Elimitate race condition when injecting JAR manifest +- Resolves: rhbz#1495235 + +* Tue Sep 12 2017 Mikolaj Izdebski - 2.0-7 +- Add fontbox to classpath +- Resolves: rhbz#1413340 + +* Wed Jul 26 2017 Fedora Release Engineering - 2.0-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Fri Feb 10 2017 Fedora Release Engineering - 2.0-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Wed Feb 01 2017 Michael Simacek - 2.0-4 +- Fix FTBFS + +* Wed Feb 03 2016 Fedora Release Engineering - 2.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Fri Aug 07 2015 Michael Simacek - 2.0-2 +- Add fix for FOP-2461 (rhbz#1251173) + +* Tue Jul 14 2015 Michael Simacek - 2.0-1 +- Update to upstream version 2.0 + +* Wed Jun 17 2015 Fedora Release Engineering - 1.1-11 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + +* Thu May 14 2015 Mikolaj Izdebski - 1.1-10 +- Disable javadoc doclint + +* Tue Mar 17 2015 Michael Simacek - 1.1-9 +- Port to current QDox and xmlgraphics-commons + +* Mon Jun 16 2014 Michal Srb - 1.1-8 +- Fix FTBFS + +* Sat Jun 07 2014 Fedora Release Engineering - 1.1-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + +* Thu Jan 2 2014 Richard Hughes 1.1-6 +- Drop the icc-profiles-openicc requirement and switch to using the colord sRGB + profile filename. +- Resolves: #1042655 + +* Thu Nov 7 2013 Krzysztof Daniel 1.1-5 +- Fix the OSGi manifest. + +* Wed Sep 18 2013 Michal Srb - 1.1-4 +- Fix license tag (Resolves: rhbz#979394) +- Add ASL 1.1 license text + +* Sat Aug 03 2013 Fedora Release Engineering - 1.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild + +* Fri Jun 21 2013 Michal Srb - 1.1-2 +- Build from clean tarball +- Spec file clean up + +* Fri Apr 12 2013 Michal Srb - 1.1-1 +- Update to upstream version 1.1 +- Replace proprietary color profile with free CP from icc-profiles-openicc package +- Resolves: rhbz#848659 + +* Wed Feb 13 2013 Fedora Release Engineering - 1.0-21 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + +* Sun Nov 18 2012 Mikolaj Izdebski - 1.0-20 +- Add xml-commons-apis-ext to classpath + +* Thu Jul 19 2012 Fedora Release Engineering - 1.0-19 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Fri Jan 13 2012 Fedora Release Engineering - 1.0-18 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Tue Jun 21 2011 Rüdiger Landmann 1.0-16 +- Supply missing event-model.xml files + +* Fri Jun 3 2011 Rüdiger Landmann 1.0-15 +- Split avalon-framework into avalon-framework-api and avalon-framework-impl in classpath + +* Thu Mar 10 2011 Alexander Kurtakov 1.0-14 +- Reapply Fedora guidelines. +- Re-add pom.xml to unbreak Maven stack. +- Re-add OSGi manifest to unbreak Eclipse stack. +- Remove all bundled jars and classes and fix the build to work with our libs. + +* Thu Mar 10 2011 Rüdiger Landmann 1.0-13 +- reinstate updated manifest patch +- change define to global + +* Thu Mar 10 2011 Rüdiger Landmann 1.0-12 +- buildarch: noarch + +* Thu Mar 10 2011 Rüdiger Landmann 1.0-11 +- drop obsolete manifest patch + +* Thu Mar 10 2011 Rüdiger Landmann 1.0-10 +- import 1.0 into Fedora, based on Mandriva package + +* Tue Feb 08 2011 Fedora Release Engineering - 1.0-9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Tue Jan 4 2011 Rüdiger Landmann - 1.0-8 +- BR qdox + +* Tue Jan 4 2011 Rüdiger Landmann - 1.0-7 +- set BR on xmlgraphics-commons >= 1.4 +- Add qdox classpath + +* Thu Dec 09 2010 Paulo Ricardo Zanoni 1.0-0.0.3mdv2011.0 +- Revision: 617684 +- Resubmit after moving + +* Fri Dec 3 2010 Stanislav Ochotnicky - 1.0-6 +- Add LICENSE to javadoc sub-package +- Few other tweaks according to new guidelines +- Make jars and javadoc versionless +- Add pom file (Resolves rhbz#655804) + +* Fri Oct 1 2010 Alexander Kurtakov 1.0-5 +- We need servlet not jsp. + +* Fri Oct 1 2010 Alexander Kurtakov 1.0-4 +- BR jsp. + +* Fri Oct 1 2010 Alexander Kurtakov 1.0-3 +- Add more BRs. + +* Fri Oct 1 2010 Alexander Kurtakov 1.0-2 +- BR ant-nodeps. + +* Fri Oct 1 2010 Alexander Kurtakov 1.0-1 +- Update to 1.0. +- BR/R java 1.6.0 not openjdk (rhbz#620330). +- Remove jars in prep. + +* Sat Sep 04 2010 Tomasz Pawel Gajc 1.0-0.0.2mdv2011.0 +- Revision: 576002 +- rebuild for new xmlgraphics-commons + +* Sun Aug 29 2010 Tomasz Pawel Gajc 1.0-0.0.1mdv2011.0 +- Revision: 574030 +- update to new version 1.0 +- disable patch 1 +- disable gcj support + +* Thu Apr 29 2010 Tomasz Pawel Gajc 0.95-0.0.3mdv2010.1 +- Revision: 540954 +- rebuild + +* Fri Sep 11 2009 Thierry Vignaud 0.95-0.0.2mdv2010.0 +- Revision: 437573 +- rebuild + +* Wed Dec 17 2008 Tomasz Pawel Gajc 0.95-0.0.1mdv2009.1 +- Revision: 315376 +- update to new version 0.95 +- drop patch0, not needed anymore +- spec file clean +- drop useles buildrequires +- use %%java_home + +* Sat Dec 29 2007 David Walluck 0.94-0.2.1mdv2008.1 +- Revision: 139372 +- spec cleanup +- import fop + + +* Fri Dec 7 2007 Lillian Angel - 0.94-2 +- Updated Release. + +* Thu Dec 6 2007 Lillian Angel - 0.94-1 +- Removed ppc/64 conditions since IcedTea is now available for ppc/64. + +* Tue Nov 27 2007 Lillian Angel - 0.94-1 +- Fixed to build with gcj on ppc/64. + +* Fri Nov 23 2007 Lillian Angel - 0.94-1 +- Fixed rpmlint errors. + +* Tue Sep 18 2007 Joshua Sumali - 0:0.94-1 +- Update to fop 0.94 + +* Thu Mar 30 2006 Ralph Apel - 0:0.20.5-9jpp +- First build for JPP-1.7 +- Replace avalon-framework, avalon-logkit with their new excalibur-* + counterparts +- Drop non-free jimi and jai BRs + +* Tue Oct 11 2005 Ralph Apel - 0:0.20.5-8jpp +- Patch to Batik >= 1.5.1 + +* Fri Oct 07 2005 Ralph Apel - 0:0.20.5-7jpp +- Omit ant -d flag + +* Mon Aug 23 2004 Ralph Apel - 0:0.20.5-6jpp +- Build with ant-1.6.2 + +* Fri Aug 06 2004 Ralph Apel - 0:0.20.5-5jpp +- Void change + +* Tue Jun 01 2004 Randy Watler - 0:0.20.5-4jpp +- Upgrade to Ant 1.6.X + +* Thu Jan 8 2004 Ville Skyttä - 0:0.20.5-3jpp +- BuildRequires ant-optional. +- Crosslink with full J2SE javadocs instead of just JAXP/XML-commons. +- Add Main-Class back to manifest. + +* Tue Sep 23 2003 Paul Nasrat - 0:0.20.5-2jpp +- Fix script and requires +- Remove class path in manifest +- New javadoc style + +* Sat Jul 19 2003 Ville Skyttä - 0:0.20.5-1jpp +- Update to 0.20.5. +- Crosslink with xml-commons-apis and batik javadocs. +- BuildRequires jai, jce and jimi. + +* Sat Jun 7 2003 Ville Skyttä - 0:0.20.5-0.rc3a.1jpp +- Update to 0.20.5rc3a. +- Include fop script. +- Non-versioned javadoc symlinks. + +* Thu Apr 17 2003 Ville Skyttä - 0:0.20.5-0.rc2.1jpp +- Update to 0.20.5rc2 and JPackage 1.5. + +* Sun Mar 10 2002 Guillaume Rousse 0.20.3-1jpp +- 0.20.3 final +- fixed missing symlink + +* Mon Jan 21 2002 Guillaume Rousse 0.20.3-0.rc.1jpp +- 0.20.3rc +- first unified release +- javadoc into javadoc package +- no dependencies for manual package +- s/jPackage/JPackage +- adaptation to new xalan-j2 package +- requires and buildrequires avalon-logkit + +* Thu Aug 30 2001 Guillaume Rousse 0.20.1-1mdk +- first release diff --git a/sources b/sources index 3fb9efc..5ea63f3 100644 --- a/sources +++ b/sources @@ -1,3 +1,3 @@ +SHA512 (fop-2.2.pom) = 2b61917075233d1decadb35c9bd3a3b7333dedf14e274345d9e836acd5a83f04a0e07ad505ac50ea34e81a7ea2d79298c26f1e7ce64fc0924def265d6724eff1 +SHA512 (fop-2.2-src.tar.gz) = 9b44bb41368763d639927e5ed46b056fc932fc04514db9325721c3c5aa1d7dc34607ae69251b9d67d5bc7a56f01eb0f9e298a7b52e8d6c3a64a0304764478d7c SHA512 (LICENSE-1.1.txt) = 15369f9a39937f9973218840c178a39566e902d8b4bff1deb8956891095529f884068d4873532ce7417c937826dd952bac59b8dc84732412eb243516074b8121 -SHA512 (fop-2.11-src.tar.gz) = 9eacdee6d81ecf5af02c6266d20f55642febfa10bc9f3754cfb4d1532743899759d6bc7d362e80f3a1d8d370c54485e455d0ca3eac8b6604a05d3326ffefa00c -SHA512 (fop-2.11-src.tar.gz.asc) = b6ec1565abc6386a08e77016b63ec3931f0c67ecb6f7135984c946a20e8bb4030f358270f21fce84614729ec40b48825f478e4cbc2b10972446bee36f5f8474f