# Conditional build:
%bcond_without apidocs # disable gtk-doc
%bcond_with glitz # build with glitz backend
-%bcond_with xcb # enable XCB backend
+%bcond_without xcb # XCB backend
%bcond_with tests # perform tests (can fail due to out of memory)
%bcond_without lcd # use own LCD filtering instead of freetype's
#
Summary: Cairo - multi-platform 2D graphics library
Summary(pl.UTF-8): Cairo - wieloplatformowa biblioteka graficzna 2D
Name: cairo
-Version: 1.2.6
-Release: 3
+Version: 1.4.6
+Release: 1
License: LGPL v2.1 or MPL v1.1
Group: Libraries
Source0: http://cairographics.org/releases/%{name}-%{version}.tar.gz
-# Source0-md5: 487b3d7515752fe57f780d0fd707b01a
+# Source0-md5: ae16e73f9dca46ac93b4ce435e93773c
Patch0: %{name}-link.patch
Patch1: http://david.freetype.org/lcd/cairo-1.2.4-lcd-filter-1.patch
URL: http://cairographics.org/
BuildRequires: libpng-devel
BuildRequires: libtool
BuildRequires: pkgconfig
-%{?with_xcb:BuildRequires: libxcb-devel}
+%if %{with xcb}
+BuildRequires: libxcb-devel >= 0.9.92
+BuildRequires: xcb-util-devel >= 0.2
+%endif
BuildRequires: xorg-lib-libXrender-devel >= 0.6
BuildRequires: zlib-devel
-Requires: freetype >= 1:2.1.10
+%{!?with_lcd:Requires: freetype >= 1:2.1.10}
+%{?with_lcd:Requires: freetype >= 1:2.3.0}
%{?with_glitz:Requires: glitz >= 0.5.1}
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
complete, the API is intended to support the complete imaging model of
PDF 1.4.
-Cairo relies on the Xc library for backend rendering. Xc provides an
-abstract interface for rendering to multiple target types. As of this
-writing, Xc allows Cairo to target X drawables as well as generic
-image buffers. Future backends such as PostScript, PDF, and perhaps
-OpenGL are currently being planned.
-
%description -l pl.UTF-8
Cairo obsługuje oparty na wektorach rendering z antyaliasingiem dla X.
Ścieżki składają się z odcinków i splajnów kubicznych, a renderowane
dodatkiem półprzezroczystości w modelu obrazu). Kiedy API zostanie
ukończone, ma obsługiwać pełny model obrazu z PDF w wersji 1.4.
-Cairo do backendowego renderowania wykorzystuje bibliotekę Xc. Xc
-dostarcza abstrakcyjny interfejs do renderowania na wiele rodzajów
-wyjść. Aktualnie Xc pozwala Cairo tworzyć obiekty X, a także ogólne
-bufory obrazu. W przyszłości planowane są takie backendy jak
-PostScript, PDF i być może OpenGL.
-
%package devel
Summary: Development files for Cairo library
Summary(pl.UTF-8): Pliki programistyczne biblioteki Cairo
Requires: freetype-devel >= 1:2.1.10
%{?with_glitz:Requires: glitz-devel >= 0.5.1}
Requires: libpng-devel
-%{?with_xcb:Requires: libxcb-devel}
+%{?with_xcb:Requires: libxcb-devel >= 0.9.92}
+%{?with_xcb:Requires: xcb-util-devel >= 0.2}
Requires: xorg-lib-libXrender-devel >= 0.6
%description devel