rebuilt with recent icu with patch [release 0.1.3-2mamba;Sun Jun 13 2021]

This commit is contained in:
Silvan Calarco 2024-01-06 04:09:35 +01:00
parent 5bcfa69a6f
commit 46df6b1bc8
2 changed files with 28 additions and 2 deletions

View File

@ -0,0 +1,20 @@
Regressed by https://github.com/unicode-org/icu/commit/c3fe7e09d844
EBOOKCharsetConverter.cpp:127:7: error: use of undeclared identifier 'TRUE'
TRUE, TRUE, &status)
^
EBOOKCharsetConverter.cpp:127:13: error: use of undeclared identifier 'TRUE'
TRUE, TRUE, &status)
^
--- src/lib/EBOOKCharsetConverter.cpp.orig 2018-01-01 11:16:28 UTC
+++ src/lib/EBOOKCharsetConverter.cpp
@@ -124,7 +124,7 @@ bool EBOOKCharsetConverter::convertBytes(const char *c
m_converterToUTF8.get(), m_converterToUnicode.get(),
&outText, outText + out.size(), &inText, inText + length,
nullptr, nullptr, nullptr, nullptr,
- TRUE, TRUE, &status)
+ true, true, &status)
;
if (status==U_BUFFER_OVERFLOW_ERROR)
{

View File

@ -1,7 +1,7 @@
%define apiver %(echo %version | cut -d. -f1-2)
Name: libe-book
Version: 0.1.3
Release: 1mamba
Release: 2mamba
Summary: Library for import of reflowable e-book formats
Group: System/Libraries
Vendor: openmamba
@ -9,11 +9,13 @@ Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://sourceforge.net/projects/libebook/
Source: http://downloads.sourceforge.net/project/libebook/libe-book-%{version}/libe-book-%{version}.tar.xz
Patch0: libe-book-0.1.3-icu-69.1.patch
License: MPL 2.0
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libgcc
BuildRequires: libicu-devel
BuildRequires: liblangtag-devel
BuildRequires: liblzma-devel
BuildRequires: librevenge-devel
BuildRequires: libstdc++6-devel
@ -21,7 +23,7 @@ BuildRequires: libxml2-devel
BuildRequires: libz-devel
## AUTOBUILDREQ-END
BuildRequires: libwpd-devel >= 0.10
BuildRoot: %{_tmppath}/%{name}-%{version}-root
BuildRequires: libicu-devel >= 69.1
%description
Library for import of reflowable e-book formats.
@ -47,6 +49,7 @@ This package contains utility applications for %{name}.
%prep
%setup -q
%patch0 -p0
%build
%configure \
@ -88,6 +91,9 @@ This package contains utility applications for %{name}.
%{_bindir}/ebook2text
%changelog
* Sun Jun 13 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 0.1.3-2mamba
- rebuilt with recent icu with patch
* Sun Jan 07 2018 Automatic Build System <autodist@mambasoft.it> 0.1.3-1mamba
- automatic version update by autodist