diff --git a/libe-book-0.1.3-icu-69.1.patch b/libe-book-0.1.3-icu-69.1.patch new file mode 100644 index 0000000..17f6d8e --- /dev/null +++ b/libe-book-0.1.3-icu-69.1.patch @@ -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) + { diff --git a/libe-book.spec b/libe-book.spec index a26fb13..d10fac4 100644 --- a/libe-book.spec +++ b/libe-book.spec @@ -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 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 0.1.3-2mamba +- rebuilt with recent icu with patch + * Sun Jan 07 2018 Automatic Build System 0.1.3-1mamba - automatic version update by autodist