--- /dev/null
+Backport of:
+commit 1273639b93dea51af1b0dd39651bf15c3bbff2d9
+Author: Federico Mena Quintero <federico@gnome.org>
+Date: Fri Jan 25 11:21:11 2019 -0600
+
+ Try to make Docbook 5 really work...
+
+diff --git a/doc/rsvg-docs.xml b/doc/rsvg-docs.xml
+index 12b50518..d744e2e0 100644
+--- a/doc/rsvg-docs.xml
++++ b/doc/rsvg-docs.xml
+@@ -1,12 +1,10 @@
+ <?xml version="1.0" encoding="UTF-8" ?>
+-<!DOCTYPE book
++<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML 5.0//EN"
++ "http://www.oasis-open.org/docbook/xml/5.0"
+ [
+ <!ENTITY version SYSTEM "version.xml">
+ ]>
+-<book xmlns="http://docbook.org/ns/docbook"
+- xmlns:xi="http://www.w3.org/2001/XInclude"
+- xmlns:xlink="http://www.w3.org/1999/xlink"
+- version="5.1">
++<book xmlns:xi="http://www.w3.org/2001/XInclude">
+ <!--
+ Copyright © 2009, 2010 Christian Persch
+ Copyright © 2017 Federico Mena Quintero
+@@ -24,7 +22,7 @@
+ For librsvg version &version;
+
+ The latest version of this documentation can be found on-line at the
+- <link xlink:href="http://library.gnome.org/devel/rsvg/index.html" role="online-location">GNOME Library</link>.
++ <link href="http://library.gnome.org/devel/rsvg/index.html" role="online-location">GNOME Library</link>.
+ </releaseinfo>
+
+ <copyright>
+@@ -57,7 +55,7 @@
+
+ You may obtain a copy of the <citetitle>GNU General Public Licence</citetitle>
+ from the Free Software Foundation at
+- <link xlink:href="http://www.gnu.org/licences/">GNU Licences web site</link>
++ <link href="http://www.gnu.org/licences/">GNU Licences web site</link>
+ or by writing to:
+
+ <address>
+@@ -70,16 +68,14 @@
+ </legalnotice>
+ </info>
+
+- <part xml:id="rsvg">
++ <part id="rsvg">
+ <title>API Reference</title>
+ <partintro>
+ <para>
+ Librsvg is a library for rendering Scalable Vector Graphics 1.1
+- files (<link
+- xlink:href="https://www.w3.org/TR/SVG/">SVG 1.1</link>).
++ files (<link href="https://www.w3.org/TR/SVG/">SVG 1.1</link>).
+ Specifically, it can take non-animated, non-scripted SVG data
+- and render it into a <link
+- xlink:href="https://www.cairographics.org/">Cairo</link>
++ and render it into a <link href="https://www.cairographics.org/">Cairo</link>
+ surface. Normally this means an in-memory raster surface, but
+ it could also be any of the other surface types that Cairo
+ supports.
+@@ -87,7 +83,7 @@
+
+ <para>
+ Librsvg supports many of the graphic features in the <link
+- xlink:href="https://www.w3.org/TR/SVG/">SVG 1.1
++ href="https://www.w3.org/TR/SVG/">SVG 1.1
+ specification</link>. The main features of SVG 1.1 that
+ librsvg does not support are the following:
+ </para>
+@@ -192,7 +188,7 @@
+ <para>
+ You may obtain a copy of the <citetitle>GNU General Public Licence</citetitle>
+ from the Free Software Foundation at
+- <link xlink:href="http://www.gnu.org/licences/">GNU Licences web site</link>
++ <link href="http://www.gnu.org/licences/">GNU Licences web site</link>
+ or by writing to:
+
+ <address>
+--- librsvg-2.44.14/librsvg/rsvg-handle.c.orig 2019-02-15 19:20:24.000000000 +0100
++++ librsvg-2.44.14/librsvg/rsvg-handle.c 2019-06-09 17:05:18.357977812 +0200
+@@ -31,7 +31,7 @@
+ * or in the most general form, from a #GInputStream that will provide SVG data.
+ *
+ * Librsvg supports reading <link
+- * xlink:href="https://www.w3.org/TR/SVG/">SVG 1.1</link> data. It also
++ * href="https://www.w3.org/TR/SVG/">SVG 1.1</link> data. It also
+ * supports SVGZ files, which is just an SVG stream compressed with the GZIP
+ * algorithm.
+ *
+@@ -43,7 +43,7 @@
+ * and that it has an image element like this:
+ *
+ * |[
+- * <image xlink:href="resources/foo.png" .../>
++ * <image href="resources/foo.png" .../>
+ * ]|
+ *
+ * In this case, librsvg needs to know the location of the toplevel
%bcond_without vala # Vala API (vala up to 0.38.x already contains librsvg-2.0.vapi)
%define mver 2.44
-%define pver 13
+%define pver 14
Summary: A Raph's Library for Rendering SVG Data
Summary(pl.UTF-8): Biblioteka Raph's SVG do renderowania danych SVG
Summary(pt_BR.UTF-8): Biblioteca SVG
License: LGPL v2+
Group: X11/Libraries
Source0: http://ftp.gnome.org/pub/GNOME/sources/librsvg/%{mver}/%{name}-%{version}.tar.xz
-# Source0-md5: 5be17e248dfbf0259c14922a52193b26
+# Source0-md5: 7570d139148f3554fa60fb2a0ecfc4f8
Source1: rsvg
Patch0: x32.patch
+Patch1: %{name}-docbook5.patch
+Patch2: %{name}-gtkdoc.patch
URL: http://librsvg.sourceforge.net/
BuildRequires: autoconf >= 2.50
BuildRequires: automake >= 1:1.9
BuildRequires: cairo-devel >= 1.15.12
BuildRequires: cargo
-BuildRequires: docbook-dtd412-xml
+BuildRequires: docbook-dtd5-xml
# pkgconfig(freetype) >= 20.0.14
BuildRequires: freetype-devel >= 1:2.8
BuildRequires: gdk-pixbuf2-devel >= 2.20
%prep
%setup -q
%patch0 -p1
+%patch1 -p1
+%patch2 -p1
%if %{without apidocs}
echo 'CLEANFILES=' > gtk-doc.make
%build
%{?with_apidocs:%{__gtkdocize}}
%{__libtoolize}
-%{__aclocal}
+%{__aclocal} -I m4
%{__autoconf}
%{__autoheader}
%{__automake}