#
# Conditional build:
%bcond_without apidocs # disable gtk-doc
+%bcond_without svg # disable SVG support (to boostrap librsvg)
%if "%{pld_release}" == "ac"
%bcond_with xcb # XCB backend
%else
Summary(pl.UTF-8): Cairo - wieloplatformowa biblioteka graficzna 2D
Name: cairo
Version: 1.10.2
-Release: 2
+Release: 8
License: LGPL v2.1 or MPL v1.1
Group: Libraries
Source0: http://cairographics.org/releases/%{name}-%{version}.tar.gz
BuildRequires: glib2-devel >= 1:2.0
%{?with_apidocs:BuildRequires: gtk-doc >= 1.6}
BuildRequires: libpng-devel >= 2:1.4.0
-BuildRequires: librsvg-devel >= 2.15.0
+%{?with_svg:BuildRequires: librsvg-devel >= 2.15.0}
BuildRequires: libspectre-devel >= 0.2.0
BuildRequires: libtool >= 1.4
BuildRequires: pixman-devel >= 0.18.4
BuildRequires: pkgconfig >= 1:0.9
-BuildRequires: poppler-glib-devel >= 0.13.3
+%{?with_tests:BuildRequires: poppler-glib-devel >= 0.13.3}
BuildRequires: rpm >= 4.4.9-56
+BuildRequires: sed >= 4.0
%if %{with xcb}
BuildRequires: libxcb-devel >= 1.4
%endif
--enable-pdf \
--enable-png \
--enable-ps \
+ %{!?with_svg:--disable-svg} \
+ --enable-tee \
%{?with_xcb:--enable-xcb} \
--with-html-dir=%{_gtkdocdir}
+
+%{__sed} -i 's/gobject-2.0 glib-2.0//' src/cairo.pc
+
%{__make}
%{?with_tests:%{__make} check}
%{_pkgconfigdir}/cairo-pdf.pc
%{_pkgconfigdir}/cairo-png.pc
%{_pkgconfigdir}/cairo-ps.pc
-%{_pkgconfigdir}/cairo-svg.pc
+%{?with_svg:%{_pkgconfigdir}/cairo-svg.pc}
+%{_pkgconfigdir}/cairo-tee.pc
%{?with_xcb:%{_pkgconfigdir}/cairo-xcb.pc}
%{?with_xcb:%{_pkgconfigdir}/cairo-xcb-shm.pc}
%{_pkgconfigdir}/cairo-xlib.pc