From e93c4046d965d89e5cd24e7df2e07568c100ace5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dan=20Hor=C3=A1k?= Date: Tue, 8 Jun 2010 10:07:54 +0000 Subject: [PATCH] - fix building tests --- podofo-0.8.1-casts.patch | 29 +++++++++++++++++++++++++++++ podofo.spec | 7 ++++++- 2 files changed, 35 insertions(+), 1 deletion(-) create mode 100644 podofo-0.8.1-casts.patch diff --git a/podofo-0.8.1-casts.patch b/podofo-0.8.1-casts.patch new file mode 100644 index 0000000..bdb093c --- /dev/null +++ b/podofo-0.8.1-casts.patch @@ -0,0 +1,29 @@ +From 713ce16bc78e7d744c0a490eb10148ea7c6939a1 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Dan=20Hor=C3=A1k?= +Date: Tue, 8 Jun 2010 11:57:15 +0200 +Subject: [PATCH] add missing casts to pdf_int64 + +--- + test/unit/EncryptTest.cpp | 6 +++--- + 1 files changed, 3 insertions(+), 3 deletions(-) + +diff --git a/test/unit/EncryptTest.cpp b/test/unit/EncryptTest.cpp +index e0b4801..3355175 100644 +--- a/test/unit/EncryptTest.cpp ++++ b/test/unit/EncryptTest.cpp +@@ -326,9 +326,9 @@ void EncryptTest::testEnableAlgorithms() + + PdfObject object; + object.GetDictionary().AddKey(PdfName("Filter"), PdfName("Standard")); +- object.GetDictionary().AddKey(PdfName("V"), 4L); +- object.GetDictionary().AddKey(PdfName("R"), 4L); +- object.GetDictionary().AddKey(PdfName("P"), 1L); ++ object.GetDictionary().AddKey(PdfName("V"), static_cast(4L)); ++ object.GetDictionary().AddKey(PdfName("R"), static_cast(4L)); ++ object.GetDictionary().AddKey(PdfName("P"), static_cast(1L)); + object.GetDictionary().AddKey(PdfName("O"), PdfString("")); + object.GetDictionary().AddKey(PdfName("U"), PdfString("")); + +-- +1.6.6.1 + diff --git a/podofo.spec b/podofo.spec index 7e70639..246cb91 100644 --- a/podofo.spec +++ b/podofo.spec @@ -1,12 +1,13 @@ Name: podofo Version: 0.8.1 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Tools and libraries to work with the PDF file format Group: Applications/Publishing License: GPLv2+ URL: http://podofo.sourceforge.net Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz +Patch0: %{name}-0.8.1-casts.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: cmake @@ -56,6 +57,7 @@ Development files and documentation for the %{name} library. %prep %setup -q +%patch0 -p1 -b .casts %build @@ -104,6 +106,9 @@ rm -rf $RPM_BUILD_ROOT %changelog +* Tue Jun 8 2010 Dan Horák 0.8.1-2 +- fix building tests + * Mon Jun 7 2010 Dan Horák 0.8.1-1 - updated to 0.8.1