forked from pool/libcdr
Accepting request 859270 from LibreOffice:Factory
OBS-URL: https://build.opensuse.org/request/show/859270 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libcdr?expand=0&rev=25
This commit is contained in:
commit
604189efd9
27
icu-68.patch
Normal file
27
icu-68.patch
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
From 0dc41f8f6bd099813acb3972f75e4bbb2a5cdb2d Mon Sep 17 00:00:00 2001
|
||||||
|
From: Lars Wendler <polynomial-c@gentoo.org>
|
||||||
|
Date: Fri, 30 Oct 2020 14:28:08 +0100
|
||||||
|
Subject: [PATCH] Fix build with icu-68.1
|
||||||
|
|
||||||
|
icu-68.1 removed public macro definitions for TRUE and FALSE
|
||||||
|
|
||||||
|
Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
|
||||||
|
---
|
||||||
|
src/lib/libcdr_utils.cpp | 2 +-
|
||||||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/src/lib/libcdr_utils.cpp b/src/lib/libcdr_utils.cpp
|
||||||
|
index 09ab42e..250f0a0 100644
|
||||||
|
--- a/src/lib/libcdr_utils.cpp
|
||||||
|
+++ b/src/lib/libcdr_utils.cpp
|
||||||
|
@@ -108,7 +108,7 @@ static unsigned short getEncoding(const unsigned char *buffer, unsigned bufferLe
|
||||||
|
csd = ucsdet_open(&status);
|
||||||
|
if (U_FAILURE(status) || !csd)
|
||||||
|
return 0;
|
||||||
|
- ucsdet_enableInputFilter(csd, TRUE);
|
||||||
|
+ ucsdet_enableInputFilter(csd, true);
|
||||||
|
ucsdet_setText(csd, (const char *)buffer, bufferLength, &status);
|
||||||
|
if (U_FAILURE(status))
|
||||||
|
throw libcdr::EncodingException();
|
||||||
|
--
|
||||||
|
2.29.2
|
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Dec 14 16:15:35 UTC 2020 - Callum Farmer <gmbr3@opensuse.org>
|
||||||
|
|
||||||
|
- Add icu-68.patch: fix build with ICU 68
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Sun Feb 2 20:22:58 UTC 2020 - Fridrich Strba <fstrba@suse.com>
|
Sun Feb 2 20:22:58 UTC 2020 - Fridrich Strba <fstrba@suse.com>
|
||||||
|
|
||||||
|
@ -26,6 +26,7 @@ Group: Productivity/Publishing/Word
|
|||||||
URL: http://www.freedesktop.org/wiki/Software/libcdr
|
URL: http://www.freedesktop.org/wiki/Software/libcdr
|
||||||
Source0: http://dev-www.libreoffice.org/src/%{name}/%{name}-%{version}.tar.xz
|
Source0: http://dev-www.libreoffice.org/src/%{name}/%{name}-%{version}.tar.xz
|
||||||
Patch0: libcdr-0.1.1-pkgconfig.patch
|
Patch0: libcdr-0.1.1-pkgconfig.patch
|
||||||
|
Patch1: icu-68.patch
|
||||||
BuildRequires: doxygen
|
BuildRequires: doxygen
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: gcc-c++
|
BuildRequires: gcc-c++
|
||||||
@ -82,6 +83,7 @@ Tools to work with documents in Corel Draw file format.
|
|||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
%patch0 -p1
|
%patch0 -p1
|
||||||
|
%patch1 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
export CXXFLAGS="%{optflags} -fvisibility-inlines-hidden"
|
export CXXFLAGS="%{optflags} -fvisibility-inlines-hidden"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user