rpms/pdftk/F-10 pdftk-1.41-stdin.patch, NONE, 1.1 pdftk.spec, 1.14, 1.15
Jochen Schmitt
s4504kr at fedoraproject.org
Tue Mar 31 15:45:07 UTC 2009
Author: s4504kr
Update of /cvs/extras/rpms/pdftk/F-10
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv29334
Modified Files:
pdftk.spec
Added Files:
pdftk-1.41-stdin.patch
Log Message:
Fix stdin issue (#492968)
pdftk-1.41-stdin.patch:
--- NEW FILE pdftk-1.41-stdin.patch ---
diff -up pdftk-1.41/pdftk/pdftk.cc.org pdftk-1.41/pdftk/pdftk.cc
--- pdftk-1.41/pdftk/pdftk.cc.org 2009-03-31 17:22:27.000000000 +0200
+++ pdftk-1.41/pdftk/pdftk.cc 2009-03-31 17:27:21.000000000 +0200
@@ -586,7 +586,10 @@ TK_Session::dump_session_data() const
for( vector< InputPdf >::const_iterator it= m_input_pdf.begin();
it!= m_input_pdf.end(); ++it )
{
- cout << " " << it->m_filename;
+ if(it->m_filename == "/dev/stdin")
+ cout << " <standard input>";
+ else
+ cout << " " << it->m_filename;
if( !it->m_password.empty() ) {
cout << ", " << it->m_password;
}
@@ -976,6 +979,8 @@ TK_Session::TK_Session( int argc,
InputPdf input_pdf;
input_pdf.m_filename= argv[ii];
+ if(input_pdf.m_filename == "-")
+ input_pdf.m_filename = "/dev/stdin";
m_input_pdf.push_back( input_pdf );
}
else { // use given handle for filename; test, first
Index: pdftk.spec
===================================================================
RCS file: /cvs/extras/rpms/pdftk/F-10/pdftk.spec,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -r1.14 -r1.15
--- pdftk.spec 10 Mar 2009 21:15:47 -0000 1.14
+++ pdftk.spec 31 Mar 2009 15:44:37 -0000 1.15
@@ -3,7 +3,7 @@
Summary: The PDF Tool Kit
Name: pdftk
Version: 1.41
-Release: 13%{?dist}
+Release: 14%{?dist}
License: GPLv2+
URL: http://www.pdfhacks.com/pdftk/
# Remove java-lib/com because it's contains licensing issue
@@ -11,6 +11,7 @@
Patch0: pdftk-use-internal-itext.patch
Patch1: pdftk-1.41-make.patch
Patch2: pdftk-1.41-gcc44.patch
+Patch3: pdftk-1.41-stdin.patch
Group: Applications/Publishing
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: gcc-java
@@ -44,6 +45,7 @@
%patch0 -p1
%patch1 -p1
%patch2 -p1
+%patch3 -p1 -b .org
rm -rf java_libs
@@ -85,6 +87,9 @@
%{_mandir}/man1/*
%changelog
+* Tue Mar 31 2009 Jochen Schmitt <Jochen herr-schmitt de> 1.41-14
+- Patch stdin issue (#492968)
+
* Tue Mar 10 2009 Jochen Schmitt <Jochen herr-schmitt de> 1.41-13
- Move to iText-2.1.5
More information about the fedora-extras-commits
mailing list