]> git.pld-linux.org Git - packages/libe-book.git/commitdiff
- added css patch (update for libCSS 0.6 API); release 6 auto/th/libe-book-0.1.2-6
authorJakub Bogusz <qboosh@pld-linux.org>
Wed, 18 May 2016 14:58:00 +0000 (16:58 +0200)
committerJakub Bogusz <qboosh@pld-linux.org>
Wed, 18 May 2016 14:58:00 +0000 (16:58 +0200)
libe-book-css.patch [new file with mode: 0644]
libe-book.spec

diff --git a/libe-book-css.patch b/libe-book-css.patch
new file mode 100644 (file)
index 0000000..af6e644
--- /dev/null
@@ -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;
+   }
index 0239d1a9751831f37f1d988a9727df9ca955610b..aff6e95b4aefa92ba3225cae144f93d7b99254db 100644 (file)
@@ -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}
This page took 0.167203 seconds and 4 git commands to generate.