#
+# TODO:
+# testsuite failures:
+# https://bugs.freedesktop.org/show_bug.cgi?id=5076
+#
# Conditional build:
%bcond_without apidocs # disable gtk-doc
%bcond_with xcb # enable XCB backend (XCB not released yet)
+%bcond_with tests # perform tests (can fail due to out of memory)
#
Summary: Cairo - multi-platform 2D graphics library
Summary(pl): Cairo - wieloplatformowa biblioteka graficzna 2D
Name: cairo
Version: 1.0.2
-Release: 2
+Release: 2.1
License: LGPL v2.1 or MPL v1.1
Group: Libraries
Source0: http://cairographics.org/releases/%{name}-%{version}.tar.gz
# Source0-md5: d0b7111a14f90ec3afa777ec40c44984
+Patch0: %{name}-gcc4.patch
URL: http://cairographics.org/
BuildRequires: autoconf >= 2.54
BuildRequires: automake >= 1.7
%prep
%setup -q
+%patch0 -p1
%build
%{__libtoolize}
--enable-pdf \
--with-html-dir=%{_gtkdocdir}
%{__make}
+%{?with_tests:%{__make} check}
%install
rm -rf $RPM_BUILD_ROOT