rpms/itext/F-10 itext-2.1.5-pdftk.patch, NONE, 1.1 itext.spec, 1.13, 1.14

Jochen Schmitt s4504kr at fedoraproject.org
Wed Apr 22 20:54:54 UTC 2009


Author: s4504kr

Update of /cvs/extras/rpms/itext/F-10
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv20513

Modified Files:
	itext.spec 
Added Files:
	itext-2.1.5-pdftk.patch 
Log Message:
Patch to allow readin of pdf files from stdin for pdftk

itext-2.1.5-pdftk.patch:

--- NEW FILE itext-2.1.5-pdftk.patch ---
diff -up itext-2.1.5/src/core/com/lowagie/text/pdf/RandomAccessFileOrArray.java.pdftk itext-2.1.5/src/core/com/lowagie/text/pdf/RandomAccessFileOrArray.java
--- itext-2.1.5/src/core/com/lowagie/text/pdf/RandomAccessFileOrArray.java.pdftk	2009-04-21 18:12:02.000000000 +0200
+++ itext-2.1.5/src/core/com/lowagie/text/pdf/RandomAccessFileOrArray.java	2009-04-21 18:17:08.000000000 +0200
@@ -99,7 +99,11 @@ public class RandomAccessFileOrArray imp
                 }
             }
             else {
-                InputStream is = BaseFont.getResourceStream(filename);
+		InputStream is;
+		if( filename.equals("-"))
+		    is = System.in;
+		else
+		    is = BaseFont.getResourceStream(filename);
                 if (is == null)
                     throw new IOException(filename + " not found as file or resource.");
                 try {


Index: itext.spec
===================================================================
RCS file: /cvs/extras/rpms/itext/F-10/itext.spec,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -r1.13 -r1.14
--- itext.spec	11 Mar 2009 03:27:46 -0000	1.13
+++ itext.spec	22 Apr 2009 20:54:52 -0000	1.14
@@ -4,11 +4,12 @@
 Summary:        A Free Java-PDF library
 Name:           itext
 Version:        2.1.5
-Release:        1%{?dist}
+Release:        2%{?dist}
 License:        (LGPLv2+ or MPLv1.1) and ASL 2.0 and BSD and MIT and LGPLv2+ and CC-BY
 URL:            http://www.lowagie.com/iText/
 Group:          Development/Libraries
 Source0:        http://downloads.sourceforge.net/itext/iText-src-%{version}.tar.gz
+Patch1:		itext-2.1.5-pdftk.patch
 BuildRequires:  ant
 BuildRequires:  bouncycastle-mail
 BuildRequires:  dom4j
@@ -53,6 +54,7 @@
 
 %prep
 %setup -q -c -T -a 0
+%patch1 -p1 -b .pdftk
 
 # Remove preshipped binaries
 find . -name "*.jar" -exec rm {} \;
@@ -141,8 +143,22 @@
 # -----------------------------------------------------------------------------
 
 %changelog
-* Tue Mar 10 2009 Orcan Ogetbil <oget[DOT]fedora[AT]gmail[DOT]com> 2.1.5-1
+* Tue Apr 21 2009 Jochen Schmitt <Jochen herr-schmitt de> 2.1.5-2
+- Patch to allow reading of pdf files from stdin for pdftk (BZ #495574)
+
+* Tue Mar 10 2009 Jochen Schmitt <Jochen herr-schmitt de> 2.1.5-1
 - New upstream release
+
+* Tue Mar 03 2009 Orcan Ogetbil <oget[DOT]fedora[AT]gmail[DOT]com> 2.1.4-5
+- Remove the odd Provides introduced in the 2.1.4-3 build.
+
+* Wed Feb 25 2009 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 2.1.4-4
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
+
+* Thu Feb 19 2009 Orcan Ogetbil <oget[DOT]fedora[AT]gmail[DOT]com> 2.1.4-3
+- Add extra Provides for a nice interaction with pdftk.
+
+* Thu Feb 12 2009 Orcan Ogetbil <oget[DOT]fedora[AT]gmail[DOT]com> 2.1.4-2
 - Pass the additional flag "-fno-indirect-classes" to aot-compile-rpm
 
 * Sun Nov 30 2008 Orcan Ogetbil <oget[DOT]fedora[AT]gmail[DOT]com> 2.1.4-1




More information about the fedora-extras-commits mailing list