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