]>
Commit | Line | Data |
---|---|---|
1 | # | |
2 | # Conditional build: | |
3 | %bcond_without apidocs # disable gtk-doc | |
4 | %bcond_with xcb # enable XCB backend (XCB not released yet) | |
5 | %bcond_with tests # perform tests (can fail due to out of memory) | |
6 | # | |
7 | Summary: Cairo - multi-platform 2D graphics library | |
8 | Summary(pl): Cairo - wieloplatformowa biblioteka graficzna 2D | |
9 | Name: cairo | |
10 | Version: 1.0.2 | |
11 | Release: 5 | |
12 | License: LGPL v2.1 or MPL v1.1 | |
13 | Group: Libraries | |
14 | Source0: http://cairographics.org/releases/%{name}-%{version}.tar.gz | |
15 | # Source0-md5: d0b7111a14f90ec3afa777ec40c44984 | |
16 | Patch0: %{name}-gcc4.patch | |
17 | URL: http://cairographics.org/ | |
18 | BuildRequires: autoconf >= 2.54 | |
19 | BuildRequires: automake >= 1.7 | |
20 | BuildRequires: fontconfig-devel | |
21 | BuildRequires: freetype-devel >= 1:2.1.10 | |
22 | BuildRequires: glitz-devel >= 0.4.4 | |
23 | %{?with_apidocs:BuildRequires: gtk-doc >= 1.3} | |
24 | BuildRequires: libpng-devel | |
25 | BuildRequires: libtool | |
26 | BuildRequires: pkgconfig | |
27 | %{?with_xcb:BuildRequires: xcb-devel} | |
28 | BuildRequires: xorg-lib-libXrender-devel | |
29 | BuildRequires: zlib-devel | |
30 | Requires: freetype >= 1:2.1.10 | |
31 | Requires: glitz >= 0.4.4 | |
32 | Requires: xrender >= 0.6 | |
33 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
34 | ||
35 | %description | |
36 | Cairo provides anti-aliased vector-based rendering for X. Paths | |
37 | consist of line segments and cubic splines and can be rendered at any | |
38 | width with various join and cap styles. All colors may be specified | |
39 | with optional translucence (opacity/alpha) and combined using the | |
40 | extended Porter/Duff compositing algebra as found in the X Render | |
41 | Extension. | |
42 | ||
43 | Cairo exports a stateful rendering API similar in spirit to the path | |
44 | construction, text, and painting operators of PostScript, (with the | |
45 | significant addition of translucence in the imaging model). When | |
46 | complete, the API is intended to support the complete imaging model of | |
47 | PDF 1.4. | |
48 | ||
49 | Cairo relies on the Xc library for backend rendering. Xc provides an | |
50 | abstract interface for rendering to multiple target types. As of this | |
51 | writing, Xc allows Cairo to target X drawables as well as generic | |
52 | image buffers. Future backends such as PostScript, PDF, and perhaps | |
53 | OpenGL are currently being planned. | |
54 | ||
55 | %description -l pl | |
56 |