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