diff --git a/pyOpenSSL-nopdfout.patch b/pyOpenSSL-nopdfout.patch new file mode 100644 index 0000000..300ee20 --- /dev/null +++ b/pyOpenSSL-nopdfout.patch @@ -0,0 +1,23 @@ +--- pyOpenSSL-0.6/doc/tools/texinputs/howto.cls.nopdfout 2001-07-16 07:53:03.000000000 -0400 ++++ pyOpenSSL-0.6/doc/tools/texinputs/howto.cls 2005-03-14 20:22:34.745230000 -0500 +@@ -54,10 +54,16 @@ + % changes \\ to ', ' (comma-space), making it pass muster for + % generating document info in the PDF file. + \def\\{, } +- \pdfinfo{ +- /Author (\@author) +- /Title (\@title) +- } ++ \ifx\pdfoutput\relax ++ \else ++ \ifcase\pdfoutput ++ \else ++ \pdfinfo{ ++ /Author (\@author) ++ /Title (\@title) ++ } ++ \fi ++ \fi + }} + \begin{flushright} + {\rm\Huge\py@HeaderFamily \@title} \par diff --git a/pyOpenSSL.spec b/pyOpenSSL.spec index 88bf9cc..a7fa82e 100644 --- a/pyOpenSSL.spec +++ b/pyOpenSSL.spec @@ -6,6 +6,7 @@ Release: 1.p24.3 Source0: http://pyopenssl.sf.net/%{name}-%{version}.tar.gz Patch0: pyOpenSSL-0.5.1-openssl097.patch Patch2: pyOpenSSL-elinks.patch +Patch3: pyOpenSSL-nopdfout.patch License: LGPL Group: Development/Libraries BuildRoot: %{_tmppath}/%{name}-buildroot @@ -26,6 +27,7 @@ High-level wrapper around a subset of the OpenSSL library, includes %setup -q %patch0 -p1 -b .openssl097 %patch2 -p1 -b .elinks +%patch3 -p1 -b .nopdfout %build %{__python} setup.py build