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