%bcond_with cogl # Cogl surface backend [incompatible with cogl 1.12.x]
%bcond_with directfb # DirectFB surface backend
%bcond_with drm # DRM surface backend
-%bcond_without gl # OpenGL surface backend
+%bcond_with gl # OpenGL surface backend, http://lists.pld-linux.org/mailman/pipermail/pld-devel-en/2015-May/024387.html
%bcond_with glesv2 # OpenGLESv2 surface backend (mutually exclusive with gl)
%bcond_with openvg # OpenVG surface backend
%bcond_without pdf # PDF surface backend
Summary: Cairo - multi-platform 2D graphics library
Summary(pl.UTF-8): Cairo - wieloplatformowa biblioteka graficzna 2D
Name: cairo
-Version: 1.14.0
-Release: 1
+Version: 1.14.8
+Release: 2
License: LGPL v2.1 or MPL v1.1
Group: Libraries
-Source0: http://cairographics.org/releases/%{name}-%{version}.tar.xz
-# Source0-md5: fc3a5edeba703f906f2241b394f0cced
+Source0: https://www.cairographics.org/releases/%{name}-%{version}.tar.xz
+# Source0-md5: 4ef0db2eacb271c74f8a3fd87822aa98
Patch0: %{name}-link.patch
-URL: http://cairographics.org/
+Patch1: %{name}-gobject-deps.patch
+URL: https://www.cairographics.org/
%{?with_directfb:BuildRequires: DirectFB-devel}
%if %{with gl} || %{with glesv2} || %{with openvg}
BuildRequires: EGL-devel >= 1.1
%{?with_xcb:BuildRequires: libxcb-devel >= 1.6}
BuildRequires: lzo-devel >= 2
BuildRequires: pixman-devel >= 0.30.0
-BuildRequires: pkgconfig >= 1:0.9
+BuildRequires: pkgconfig >= 1:0.18
%if %{with pdf} && %{with tests}
BuildRequires: poppler-glib-devel >= 0.17.4
%endif
%{?with_drm:Requires: libdrm-devel}
Requires: libpng-devel >= 2:1.4.0
%{?with_xcb:Requires: libxcb-devel >= 1.6}
+Requires: lzo-devel >= 2
Requires: pixman-devel >= 0.30.0
%{?with_drm:Requires: udev-devel >= 1:136}
%if "%{pld_release}" == "ac"
%prep
%setup -q
%patch0 -p1
+%patch1 -p1
%build
%{?with_apidocs:%{__gtkdocize}}
%{__automake}
%configure \
--disable-silent-rules \
- %{?with_cogl:--enable-cogl} \
- %{?with_directfb:--enable-directfb} \
+ %{__enable_disable cogl} \
+ %{__enable_disable directfb} \
+ %{__enable_disable gl} \
+ %{__enable_disable glesv2} \
+ %{__enable_disable apidocs gtk-doc} \
+ %{__enable_disable pdf} \
+ %{__enable_disable ps} \
+ %{__enable_disable qt} \
+ %{__enable_disable svg} \
+ %{__enable_disable openvg vg} \
+ %{__enable_disable xcb} \
--enable-ft \
- %{?with_gl:--enable-gl} \
- %{?with_glesv2:--enable-glesv2} \
- %{?with_apidocs:--enable-gtk-doc} \
- %{?with_pdf:--enable-pdf} \
--enable-png \
- %{?with_ps:--enable-ps} \
- %{?with_qt:--enable-qt} \
- %{!?with_svg:--disable-svg} \
--enable-tee \
- %{?with_openvg:--enable-vg} \
- %{?with_xcb:--enable-xcb} \
--enable-xml \
--with-html-dir=%{_gtkdocdir}
-%{__sed} -i 's/gobject-2.0 glib-2.0//' src/cairo.pc
-
%{__make}
%{?with_tests:%{__make} check}