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