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