From 7b862b5a98f79ecba4e2f5c4313c45866a5a922f Mon Sep 17 00:00:00 2001 From: Jakub Bogusz Date: Sun, 29 Jan 2023 17:37:03 +0100 Subject: [PATCH] - added cppunit patch (fixes build with recent gcc) --- podofo-cppunit.patch | 30 ++++++++++++++++++++++++++++++ podofo.spec | 2 ++ 2 files changed, 32 insertions(+) create mode 100644 podofo-cppunit.patch diff --git a/podofo-cppunit.patch b/podofo-cppunit.patch new file mode 100644 index 0000000..ddc77b8 --- /dev/null +++ b/podofo-cppunit.patch @@ -0,0 +1,30 @@ +--- podofo-0.9.8/test/unit/StringTest.cpp.orig 2019-01-15 14:04:40.000000000 +0100 ++++ podofo-0.9.8/test/unit/StringTest.cpp 2023-01-29 16:58:01.449674179 +0100 +@@ -18,22 +18,22 @@ + * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * + ***************************************************************************/ + +-#include "StringTest.h" +- + #include + + #ifndef __clang__ + + using namespace PoDoFo; + +-// Registers the fixture into the 'registry' +-CPPUNIT_TEST_SUITE_REGISTRATION( StringTest ); +- + inline std::ostream& operator<<(std::ostream& o, const PdfString& s) + { + return o << s.GetStringUtf8(); + } + ++#include "StringTest.h" ++ ++// Registers the fixture into the 'registry' ++CPPUNIT_TEST_SUITE_REGISTRATION( StringTest ); ++ + void StringTest::setUp() + { + } diff --git a/podofo.spec b/podofo.spec index 1452cf5..e5af81e 100644 --- a/podofo.spec +++ b/podofo.spec @@ -11,6 +11,7 @@ License: LGPL with OpenSSL exception Group: Libraries Source0: https://downloads.sourceforge.net/podofo/%{name}-%{version}.tar.gz # Source0-md5: f6d3d5f917c7150c44fc6a15848442dd +Patch0: %{name}-cppunit.patch URL: https://podofo.sourceforge.net/ # for examples only, with -DWANT_BOOST=ON #BuildRequires: boost-devel @@ -114,6 +115,7 @@ Programy przykładowe do PoDoFo. %prep %setup -q +%patch0 -p1 %build install -d build -- 2.44.0