From 2d3be82822f7aa15517a812db25a8926f500e00d Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sat, 6 Jan 2024 10:23:37 +0100 Subject: [PATCH] patch against gcc 4.9 [release 0.9.3-2mamba;Sat Sep 27 2014] --- podofo-0.9.3-gcc-4.9.patch | 11 +++++++++++ podofo.spec | 24 ++++++++++++++++++++---- 2 files changed, 31 insertions(+), 4 deletions(-) create mode 100644 podofo-0.9.3-gcc-4.9.patch diff --git a/podofo-0.9.3-gcc-4.9.patch b/podofo-0.9.3-gcc-4.9.patch new file mode 100644 index 0000000..28363d8 --- /dev/null +++ b/podofo-0.9.3-gcc-4.9.patch @@ -0,0 +1,11 @@ +--- podofo-0.9.3/test/unit/EncryptTest.h.orig 2014-09-27 13:57:19.195358412 +0200 ++++ podofo-0.9.3/test/unit/EncryptTest.h 2014-09-27 13:55:43.003326947 +0200 +@@ -83,7 +83,7 @@ + + private: + char* m_pEncBuffer; +- long m_lLen; ++ int m_lLen; + int m_protection; + + }; diff --git a/podofo.spec b/podofo.spec index 3dc5ec6..05e96ff 100644 --- a/podofo.spec +++ b/podofo.spec @@ -1,23 +1,26 @@ %define majver %(echo %version | cut -d. -f1-2) Name: podofo -Version: 0.9.2 -Release: 1mamba +Version: 0.9.3 +Release: 2mamba Summary: Tools based on libpodofo to work with the PDF file format Group: System/Tools Vendor: openmamba Distribution: openmamba Packager: Ercole 'ercolinux' Carpanetto URL: http://podofo.sourceforge.net/ -Source: http://downloads.sourceforge.net/project/podofo/podofo/%{majver}/podofo-%{version}.tar.gz +Source: https://downloads.sourceforge.net/project/podofo/podofo/%{version}/podofo-%{version}.tar.gz +Patch0: podofo-0.9.3-gcc-4.9.patch License: GPL ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel BuildRequires: libfontconfig-devel BuildRequires: libfreetype-devel BuildRequires: libgcc +BuildRequires: libidn-devel BuildRequires: libjpeg-devel -BuildRequires: liblua51-devel +BuildRequires: liblua-devel +BuildRequires: libopenssl-devel BuildRequires: libpng-devel BuildRequires: libstdc++6-devel BuildRequires: libtiff-devel @@ -56,12 +59,19 @@ This package contains libraries and header files for developing applications tha %prep %setup -q +%ifnarch x86_64 +%patch0 -p1 +%endif %build %cmake -d build \ -DPODOFO_BUILD_SHARED:BOOL=TRUE \ -DPODOFO_BUILD_STATIC:BOOL=FALSE \ -DLUA_INCLUDE_DIR=`pkg-config --variable=includedir lua5.1` \ + -DFREETYPE_INCLUDE_DIR=%{_includedir}/freetype2 \ + -DPODOFO_HAVE_JPEG_LIB=1 \ + -DPODOFO_HAVE_PNG_LIB=1 \ + -DPODOFO_HAVE_TIFF_LIB=1 \ %ifarch x86_64 -DWANT_LIB64=1 \ %endif @@ -94,6 +104,12 @@ This package contains libraries and header files for developing applications tha %{_mandir}/man1/podofo*.1* %changelog +* Sat Sep 27 2014 Silvan Calarco 0.9.3-2mamba +- patch against gcc 4.9 + +* Mon Aug 18 2014 Silvan Calarco 0.9.3-1mamba +- update to 0.9.3 + * Sat Jul 20 2013 Automatic Build System 0.9.2-1mamba - automatic version update by autodist