From: Jakub Bogusz Date: Wed, 18 May 2016 14:58:00 +0000 (+0200) Subject: - added css patch (update for libCSS 0.6 API); release 6 X-Git-Tag: auto/th/libe-book-0.1.2-6 X-Git-Url: https://git.pld-linux.org/?a=commitdiff_plain;h=71fc963e762f0b70050abe40763430f55ff33f22;p=packages%2Flibe-book.git - added css patch (update for libCSS 0.6 API); release 6 --- diff --git a/libe-book-css.patch b/libe-book-css.patch new file mode 100644 index 0000000..af6e644 --- /dev/null +++ b/libe-book-css.patch @@ -0,0 +1,28 @@ +--- libe-book-0.1.2/src/lib/XMLTreeWalker.cpp.orig 2014-12-31 09:00:16.000000000 +0100 ++++ libe-book-0.1.2/src/lib/XMLTreeWalker.cpp 2016-05-18 16:12:03.744754212 +0200 +@@ -318,7 +318,7 @@ + lwc_string *lang, bool *match); + + css_error css_node_presentational_hint(void *pw, void *node, +- uint32_t property, css_hint *hint); ++ uint32_t *nhints, css_hint **hints); + + css_error css_ua_default_for_property(void *pw, uint32_t property, + css_hint *hint); +@@ -1055,13 +1055,13 @@ + return CSS_OK; + } + +- css_error css_node_presentational_hint(void *pw, void *const node, const uint32_t property, css_hint *const hint) ++ css_error css_node_presentational_hint(void *pw, void *const node, uint32_t *nhints, css_hint **const hints) + { + // TODO: implement me + (void) pw; + (void) node; +- (void) property; +- (void) hint; ++ (void) nhints; ++ (void) hints; + + return CSS_PROPERTY_NOT_SET; + } diff --git a/libe-book.spec b/libe-book.spec index 0239d1a..aff6e95 100644 --- a/libe-book.spec +++ b/libe-book.spec @@ -6,18 +6,19 @@ Summary: Library and tools for reading and converting various non-HTML reflowabl Summary(pl.UTF-8): Biblioteka i narzedzia do odczytu i konwersji różnych formatów e-booków Name: libe-book Version: 0.1.2 -Release: 5 +Release: 6 License: LGPL v2.1+ or MPL v2.0+ Group: Libraries Source0: http://downloads.sourceforge.net/libebook/%{name}-%{version}.tar.xz # Source0-md5: 19d84f4a97aab32d350d1f47ea3da0b3 Patch0: %{name}-missing.patch Patch1: boost-1.59.patch +Patch2: %{name}-css.patch URL: http://libebook.sourceforge.net/ BuildRequires: boost-devel BuildRequires: doxygen BuildRequires: gperf -BuildRequires: libCSS-devel >= 0.3.0 +BuildRequires: libCSS-devel >= 0.6.0 BuildRequires: libhubbub-devel >= 0.3.0 BuildRequires: libicu-devel BuildRequires: libmspack-devel @@ -30,7 +31,7 @@ BuildRequires: pkgconfig >= 1:0.20 BuildRequires: tar >= 1:1.22 BuildRequires: xz BuildRequires: zlib-devel -Requires: libCSS >= 0.3.0 +Requires: libCSS >= 0.6.0 Requires: libhubbub >= 0.3.0 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) @@ -69,7 +70,7 @@ Summary: Header files for libe-book library Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libe-book Group: Development/Libraries Requires: %{name} = %{version}-%{release} -Requires: libCSS-devel >= 0.3.0 +Requires: libCSS-devel >= 0.6.0 Requires: libhubbub-devel >= 0.3.0 Requires: libicu-devel Requires: libmspack-devel @@ -128,6 +129,7 @@ obsługiwane są HTML, tekst i format surowy. %setup -q %patch0 -p1 %patch1 -p1 +%patch2 -p1 %build %{__libtoolize}