]> git.pld-linux.org Git - packages/cairo.git/blob - cairo.spec
- 0.9.2
[packages/cairo.git] / cairo.spec
1 Summary:        Cairo - multi-platform 2D graphics library
2 Summary(pl):    Cairo - wieloplatformowa biblioteka graficzna 2D
3 Name:           cairo
4 Version:        0.9.2
5 Release:        1
6 License:        LGPL v2.1 or MPL v1.1
7 Group:          Libraries
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 BuildRequires:  libpixman-devel >= 0.1.6
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.4
26 Requires:       libpixman >= 0.1.6
27 Requires:       xrender >= 0.6
28 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29
30 %description
31 Cairo provides anti-aliased vector-based rendering for X. Paths
32 consist of line segments and cubic splines and can be rendered at any
33 width with various join and cap styles. All colors may be specified
34 with optional translucence (opacity/alpha) and combined using the
35 extended Porter/Duff compositing algebra as found in the X Render
36 Extension.
37
38 Cairo exports a stateful rendering API similar in spirit to the path
39 construction, text, and painting operators of PostScript, (with the
40 significant addition of translucence in the imaging model). When
41 complete, the API is intended to support the complete imaging model of
42 PDF 1.4.
43
44 Cairo relies on the Xc library for backend rendering. Xc provides an
45 abstract interface for rendering to multiple target types. As of this
46 writing, Xc allows Cairo to target X drawables as well as generic
47 image buffers. Future backends such as PostScript, PDF, and perhaps
48 OpenGL are currently being planned.
49
50 %description -l pl
51 Cairo obs³uguje oparty na wektorach rendering z antyaliasingiem dla X.
52 ¦cie¿ki sk³adaj± siê z odcinków i splajnów kubicznych, a renderowane
53 mog± byæ z dowoln± grubo¶ci± i ró¿nymi stylami po³±czeñ i zakoñczeñ.
54 Wszystkie kolory mog± byæ podane z opcjonaln± pó³przezroczysto¶ci±
55 (podan± przez wspó³czynnik nieprzezroczysto¶ci lub alpha) i ³±czone
56 przy u¿yciu rozszerzonego algorytmu mieszania Portera-Duffa, który
57 mo¿na znale¼æ w rozszerzeniu X Render.
58
59 Cairo eksportuje stanowe API renderuj±ce w duchu podobne do operatorów
60 konstruowania ¶cie¿ek, tekstu i rysowania z PostScriptu (ze znacznym
61 dodatkiem pó³przezroczysto¶ci w modelu obrazu). Kiedy API zostanie
62 ukoñczone, ma obs³ugiwaæ pe³ny model obrazu z PDF w wersji 1.4.
63
64 Cairo do backendowego renderowania wykorzystuje bibliotekê Xc. Xc
65 dostarcza abstrakcyjny interfejs do renderowania na wiele rodzajów
66 wyj¶æ. Aktualnie Xc pozwala Cairo tworzyæ obiekty X, a tak¿e ogólne
67 bufory obrazu. W przysz³o¶ci planowane s± takie backendy jak
68 PostScript, PDF i byæ mo¿e OpenGL.
69
70 %package devel
71 Summary:        Development files for Cairo library
72 Summary(pl):    Pliki programistyczne biblioteki Cairo
73 Group:          Development/Libraries
74 Requires:       %{name} = %{version}-%{release}
75 Requires:       fontconfig-devel
76 Requires:       freetype-devel >= 2.1.0
77 Requires:       glitz-devel >= 0.4.4
78 Requires:       libpixman-devel >= 0.1.6
79 Requires:       libpng-devel
80 Requires:       xrender-devel >= 0.6
81
82 %description devel
83 Development files for Cairo library.
84
85 %description devel -l pl
86 Pliki programistyczne biblioteki Cairo.
87
88 %package static
89 Summary:        Static Cairo library
90 Summary(pl):    Statyczna biblioteka Cairo
91 Group:          Development/Libraries
92 Requires:       %{name}-devel = %{version}-%{release}
93
94 %description static
95 Static Cairo library.
96
97 %description static -l pl
98 Statyczna biblioteka Cairo.
99
100 %prep
101 %setup -q
102
103 %build
104 %{__libtoolize}
105 %{__aclocal}
106 %{__autoheader}
107 %{__autoconf}
108 %{__automake}
109 %configure \
110         --enable-gtk-doc \
111         --with-html-dir=%{_gtkdocdir}
112 %{__make}
113
114 %install
115 rm -rf $RPM_BUILD_ROOT
116
117 %{__make} install \
118         DESTDIR=$RPM_BUILD_ROOT
119
120 %clean
121 rm -rf $RPM_BUILD_ROOT
122
123 %post   -p /sbin/ldconfig
124 %postun -p /sbin/ldconfig
125
126 %files
127 %defattr(644,root,root,755)
128 # COPYING contains only notes, not LGPL/MPL texts
129 %doc AUTHORS COPYING ChangeLog NEWS README TODO
130 %attr(755,root,root) %{_libdir}/lib*.so.*.*.*
131
132 %files devel
133 %defattr(644,root,root,755)
134 %attr(755,root,root) %{_libdir}/lib*.so
135 %{_libdir}/lib*.la
136 %{_includedir}/*
137 %{_pkgconfigdir}/*.pc
138 %{_gtkdocdir}/cairo
139
140 %files static
141 %defattr(644,root,root,755)
142 %{_libdir}/lib*.a
This page took 0.037865 seconds and 3 git commands to generate.