3 %bcond_with xcb # enable XCB backend (XCB not released yet)
5 Summary: Cairo - multi-platform 2D graphics library
6 Summary(pl): Cairo - wieloplatformowa biblioteka graficzna 2D
10 License: LGPL v2.1 or MPL v1.1
12 Source0: http://cairographics.org/releases/%{name}-%{version}.tar.gz
13 # Source0-md5: d0b7111a14f90ec3afa777ec40c44984
14 URL: http://cairographics.org/
15 BuildRequires: autoconf >= 2.54
16 BuildRequires: automake >= 1.7
17 BuildRequires: fontconfig-devel
18 BuildRequires: freetype-devel >= 2.1.10
19 BuildRequires: glitz-devel >= 0.4.4
20 BuildRequires: gtk-doc >= 1.3
21 BuildRequires: libpng-devel
22 BuildRequires: libtool
23 BuildRequires: pkgconfig
24 %{?with_xcb:BuildRequires: xcb-devel}
25 BuildRequires: xrender-devel >= 0.6
26 BuildRequires: zlib-devel
27 Requires: freetype >= 2.1.10
28 Requires: glitz >= 0.4.4
29 Requires: xrender >= 0.6
30 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
33 Cairo provides anti-aliased vector-based rendering for X. Paths
34 consist of line segments and cubic splines and can be rendered at any
35 width with various join and cap styles. All colors may be specified
36 with optional translucence (opacity/alpha) and combined using the
37 extended Porter/Duff compositing algebra as found in the X Render
40 Cairo exports a stateful rendering API similar in spirit to the path
41 construction, text, and painting operators of PostScript, (with the
42 significant addition of translucence in the imaging model). When
43 complete, the API is intended to support the complete imaging model of
46 Cairo relies on the Xc library for backend rendering. Xc provides an
47 abstract interface for rendering to multiple target types. As of this
48 writing, Xc allows Cairo to target X drawables as well as generic
49 image buffers. Future backends such as PostScript, PDF, and perhaps
50 OpenGL are currently being planned.
53 Cairo obs³uguje oparty na wektorach rendering z antyaliasingiem dla X.
54 ¦cie¿ki sk³adaj± siê z odcinków i splajnów kubicznych, a renderowane
55 mog± byæ z dowoln± grubo¶ci± i ró¿nymi stylami po³±czeñ i zakoñczeñ.
56 Wszystkie kolory mog± byæ podane z opcjonaln± pó³przezroczysto¶ci±
57 (podan± przez wspó³czynnik nieprzezroczysto¶ci lub alpha) i ³±czone
58 przy u¿yciu rozszerzonego algorytmu mieszania Portera-Duffa, który
59 mo¿na znale¼æ w rozszerzeniu X Render.
61 Cairo eksportuje stanowe API renderuj±ce w duchu podobne do operatorów
62 konstruowania ¶cie¿ek, tekstu i rysowania z PostScriptu (ze znacznym
63 dodatkiem pó³przezroczysto¶ci w modelu obrazu). Kiedy API zostanie
64 ukoñczone, ma obs³ugiwaæ pe³ny model obrazu z PDF w wersji 1.4.
66 Cairo do backendowego renderowania wykorzystuje bibliotekê Xc. Xc
67 dostarcza abstrakcyjny interfejs do renderowania na wiele rodzajów
68 wyj¶æ. Aktualnie Xc pozwala Cairo tworzyæ obiekty X, a tak¿e ogólne
69 bufory obrazu. W przysz³o¶ci planowane s± takie backendy jak
70 PostScript, PDF i byæ mo¿e OpenGL.
73 Summary: Development files for Cairo library
74 Summary(pl): Pliki programistyczne biblioteki Cairo
75 Group: Development/Libraries
76 Requires: %{name} = %{version}-%{release}
77 Requires: fontconfig-devel
78 Requires: freetype-devel >= 2.1.10
79 Requires: glitz-devel >= 0.4.4
80 Requires: libpng-devel
81 %{?with_xcb:Requires: xcb-devel}
82 Requires: xrender-devel >= 0.6
85 Development files for Cairo library.
87 %description devel -l pl
88 Pliki programistyczne biblioteki Cairo.
91 Summary: Static Cairo library
92 Summary(pl): Statyczna biblioteka Cairo
93 Group: Development/Libraries
94 Requires: %{name}-devel = %{version}-%{release}
99 %description static -l pl
100 Statyczna biblioteka Cairo.
113 %{?with_xcb:--enable-xcb} \
117 --with-html-dir=%{_gtkdocdir}
121 rm -rf $RPM_BUILD_ROOT
124 DESTDIR=$RPM_BUILD_ROOT
127 rm -rf $RPM_BUILD_ROOT
129 %post -p /sbin/ldconfig
130 %postun -p /sbin/ldconfig
133 %defattr(644,root,root,755)
134 # COPYING contains only notes, not LGPL/MPL texts
135 %doc AUTHORS COPYING ChangeLog NEWS README TODO
136 %attr(755,root,root) %{_libdir}/lib*.so.*.*.*
139 %defattr(644,root,root,755)
140 %attr(755,root,root) %{_libdir}/lib*.so
143 %{_pkgconfigdir}/*.pc
147 %defattr(644,root,root,755)