]> git.pld-linux.org Git - packages/cairo.git/blob - cairo.spec
911d0e3413c91d9942886e2901f40b06661f91c0
[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:        2
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 Patch0:         %{name}-bug4110.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.4
17 BuildRequires:  gtk-doc >= 1.3
18 # libpixman incorporated (explanation in NEWS)
19 #BuildRequires: libpixman-devel >= 0.1.6
20 BuildRequires:  libpng-devel
21 BuildRequires:  libtool
22 BuildRequires:  pkgconfig
23 #BuildRequires: xcb-devel (http://freedesktop.org/software/xcb - CVS only, not released yet)
24 BuildRequires:  xrender-devel >= 0.6
25 BuildRequires:  zlib-devel
26 Requires:       freetype >= 2.1.0
27 Requires:       glitz >= 0.4.4
28 #Requires:      libpixman >= 0.1.6
29 Requires:       xrender >= 0.6
30 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31
32 %description
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
38 Extension.
39
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
44 PDF 1.4.
45
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.
51
52 %description -l pl
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.
60
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.
65
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.
71
72 %package devel
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.0
79 Requires:       glitz-devel >= 0.4.4
80 #Requires:      libpixman-devel >= 0.1.6
81 Requires:       libpng-devel
82 Requires:       xrender-devel >= 0.6
83
84 %description devel
85 Development files for Cairo library.
86
87 %description devel -l pl
88 Pliki programistyczne biblioteki Cairo.
89
90 %package static
91 Summary:        Static Cairo library
92 Summary(pl):    Statyczna biblioteka Cairo
93 Group:          Development/Libraries
94 Requires:       %{name}-devel = %{version}-%{release}
95
96 %description static
97 Static Cairo library.
98
99 %description static -l pl
100 Statyczna biblioteka Cairo.
101
102 %prep
103 %setup -q
104 %patch0 -p1
105
106 %build
107 %{__libtoolize}
108 %{__aclocal}
109 %{__autoheader}
110 %{__autoconf}
111 %{__automake}
112 %configure \
113         --enable-gtk-doc \
114         --with-html-dir=%{_gtkdocdir}
115 %{__make}
116
117 %install
118 rm -rf $RPM_BUILD_ROOT
119
120 %{__make} install \
121         DESTDIR=$RPM_BUILD_ROOT
122
123 %clean
124 rm -rf $RPM_BUILD_ROOT
125
126 %post   -p /sbin/ldconfig
127 %postun -p /sbin/ldconfig
128
129 %files
130 %defattr(644,root,root,755)
131 # COPYING contains only notes, not LGPL/MPL texts
132 %doc AUTHORS COPYING ChangeLog NEWS README TODO
133 %attr(755,root,root) %{_libdir}/lib*.so.*.*.*
134
135 %files devel
136 %defattr(644,root,root,755)
137 %attr(755,root,root) %{_libdir}/lib*.so
138 %{_libdir}/lib*.la
139 %{_includedir}/*
140 %{_pkgconfigdir}/*.pc
141 %{_gtkdocdir}/cairo
142
143 %files static
144 %defattr(644,root,root,755)
145 %{_libdir}/lib*.a
This page took 0.054897 seconds and 3 git commands to generate.