]> git.pld-linux.org Git - packages/cairo.git/blob - cairo.spec
- commented out R: libpixman in devel subpackage
[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 # 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)
30
31 %description
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
37 Extension.
38
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
43 PDF 1.4.
44
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.
50
51 %description -l pl
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.
59
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.
64
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.
70
71 %package devel
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
82
83 %description devel
84 Development files for Cairo library.
85
86 %description devel -l pl
87 Pliki programistyczne biblioteki Cairo.
88
89 %package static
90 Summary:        Static Cairo library
91 Summary(pl):    Statyczna biblioteka Cairo
92 Group:          Development/Libraries
93 Requires:       %{name}-devel = %{version}-%{release}
94
95 %description static
96 Static Cairo library.
97
98 %description static -l pl
99 Statyczna biblioteka Cairo.
100
101 %prep
102 %setup -q
103
104 %build
105 %{__libtoolize}
106 %{__aclocal}
107 %{__autoheader}
108 %{__autoconf}
109 %{__automake}
110 %configure \
111         --enable-gtk-doc \
112         --with-html-dir=%{_gtkdocdir}
113 %{__make}
114
115 %install
116 rm -rf $RPM_BUILD_ROOT
117
118 %{__make} install \
119         DESTDIR=$RPM_BUILD_ROOT
120
121 %clean
122 rm -rf $RPM_BUILD_ROOT
123
124 %post   -p /sbin/ldconfig
125 %postun -p /sbin/ldconfig
126
127 %files
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.*.*.*
132
133 %files devel
134 %defattr(644,root,root,755)
135 %attr(755,root,root) %{_libdir}/lib*.so
136 %{_libdir}/lib*.la
137 %{_includedir}/*
138 %{_pkgconfigdir}/*.pc
139 %{_gtkdocdir}/cairo
140
141 %files static
142 %defattr(644,root,root,755)
143 %{_libdir}/lib*.a
This page took 0.045274 seconds and 4 git commands to generate.