patch against gcc 4.9 [release 0.9.3-2mamba;Sat Sep 27 2014]

This commit is contained in:
Silvan Calarco 2024-01-06 10:23:37 +01:00
parent 5d41708a8f
commit 2d3be82822
2 changed files with 31 additions and 4 deletions

View File

@ -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;
};

View File

@ -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 <ercole69@gmail.com>
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 <silvan.calarco@mambasoft.it> 0.9.3-2mamba
- patch against gcc 4.9
* Mon Aug 18 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 0.9.3-1mamba
- update to 0.9.3
* Sat Jul 20 2013 Automatic Build System <autodist@mambasoft.it> 0.9.2-1mamba
- automatic version update by autodist