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