]> git.pld-linux.org Git - packages/cairo.git/blame - cairo.spec
- s/enabled-freetype/enabled-ft/
[packages/cairo.git] / cairo.spec
CommitLineData
79fcc918
JB
1#
2# Conditional build:
9f933f96 3%bcond_without apidocs # disable gtk-doc
0ecd672c 4%bcond_without svg # disable SVG support (to boostrap librsvg)
68f80d0c 5%if "%{pld_release}" == "ac"
75cc31b6 6%bcond_with xcb # XCB backend
68f80d0c 7%else
75cc31b6 8%bcond_without xcb # XCB backend
68f80d0c 9%endif
75cc31b6
MB
10%bcond_with tests # perform tests (can fail due to out of memory)
11#
b7ccdbe1 12Summary: Cairo - multi-platform 2D graphics library
beb0026f 13Summary(pl.UTF-8): Cairo - wieloplatformowa biblioteka graficzna 2D
8c7ef450 14Name: cairo
0dfe25d4 15Version: 1.10.2
e1c407a0 16Release: 9
9b33cbb5 17License: LGPL v2.1 or MPL v1.1
b7ccdbe1 18Group: Libraries
0b5be3e0 19Source0: http://cairographics.org/releases/%{name}-%{version}.tar.gz
0dfe25d4 20# Source0-md5: f101a9e88b783337b20b2e26dfd26d5f
c9185d93 21Patch0: %{name}-link.patch
8c7ef450 22URL: http://cairographics.org/
3396a3ae
JB
23BuildRequires: autoconf >= 2.59
24BuildRequires: automake >= 1:1.9.6
25BuildRequires: fontconfig-devel >= 2.2.95
75cc31b6 26BuildRequires: freetype-devel >= 1:2.3.0
3396a3ae 27BuildRequires: glib2-devel >= 1:2.0
a14e3f3c 28%{?with_apidocs:BuildRequires: gtk-doc >= 1.6}
42ecc17e 29BuildRequires: libpng-devel >= 2:1.4.0
0ecd672c 30%{?with_svg:BuildRequires: librsvg-devel >= 2.15.0}
3396a3ae
JB
31BuildRequires: libspectre-devel >= 0.2.0
32BuildRequires: libtool >= 1.4
33BuildRequires: pixman-devel >= 0.18.4
8f628762 34BuildRequires: pkgconfig >= 1:0.9
afbe183c 35%{?with_tests:BuildRequires: poppler-glib-devel >= 0.13.3}
68f80d0c 36BuildRequires: rpm >= 4.4.9-56
0c4a4f34 37BuildRequires: sed >= 4.0
c0a654a7 38BuildRequires: binutils-devel
b2aa6d0c 39%if %{with xcb}
3396a3ae 40BuildRequires: libxcb-devel >= 1.4
b2aa6d0c 41%endif
68f80d0c
ER
42%if "%{pld_release}" == "ac"
43BuildRequires: xrender-devel >= 0.6
44%else
3396a3ae 45BuildRequires: xorg-lib-libX11-devel%{?with_xcb: >= 1.1}
ddb9a7c6 46BuildRequires: xorg-lib-libXrender-devel >= 0.6
68f80d0c 47%endif
9bc5a16c 48BuildRequires: zlib-devel
75cc31b6 49Requires: freetype >= 1:2.3.0
3396a3ae 50Requires: pixman >= 0.18.4
b7ccdbe1 51BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
8c7ef450 52
53%description
76666767 54Cairo provides anti-aliased vector-based rendering for X. Paths
b7ccdbe1
JB
55consist of line segments and cubic splines and can be rendered at any
56width with various join and cap styles. All colors may be specified
57with optional translucence (opacity/alpha) and combined using the
58extended Porter/Duff compositing algebra as found in the X Render
59Extension.
60
61Cairo exports a stateful rendering API similar in spirit to the path
62construction, text, and painting operators of PostScript, (with the
63significant addition of translucence in the imaging model). When
64complete, the API is intended to support the complete imaging model of
65PDF 1.4.
66
65aac246
JR
67%description -l pl.UTF-8
68Cairo obsługuje oparty na wektorach rendering z antyaliasingiem dla X.
69Ścieżki składają się z odcinków i splajnów kubicznych, a renderowane
70mogą być z dowolną grubością i różnymi stylami połączeń i zakończeń.
71Wszystkie kolory mogą być podane z opcjonalną półprzezroczystością
72(podaną przez współczynnik nieprzezroczystości lub alpha) i łączone
9c95588d 73przy użyciu rozszerzonego algorytmu składania Portera-Duffa, który
65aac246
JR
74można znaleźć w rozszerzeniu X Render.
75
76Cairo eksportuje stanowe API renderujące w duchu podobne do operatorów
77konstruowania ścieżek, tekstu i rysowania z PostScriptu (ze znacznym
78dodatkiem półprzezroczystości w modelu obrazu). Kiedy API zostanie
79ukończone, ma obsługiwać pełny model obrazu z PDF w wersji 1.4.
80
8c7ef450 81%package devel
b7ccdbe1 82Summary: Development files for Cairo library
beb0026f 83Summary(pl.UTF-8): Pliki programistyczne biblioteki Cairo
4233927e 84Group: Development/Libraries
b7ccdbe1 85Requires: %{name} = %{version}-%{release}
3396a3ae 86Requires: fontconfig-devel >= 2.2.95
75cc31b6 87Requires: freetype-devel >= 1:2.3.0
42ecc17e 88Requires: libpng-devel >= 2:1.4.0
3396a3ae
JB
89%{?with_xcb:Requires: libxcb-devel >= 1.4}
90Requires: pixman-devel >= 0.18.4
68f80d0c
ER
91%if "%{pld_release}" == "ac"
92Requires: xrender-devel >= 0.6
93%else
3396a3ae 94Requires: xorg-lib-libX11-devel%{?with_xcb: >= 1.1}
ddb9a7c6 95Requires: xorg-lib-libXrender-devel >= 0.6
68f80d0c 96%endif
8c7ef450 97
98%description devel
b7ccdbe1
JB
99Development files for Cairo library.
100
65aac246 101%description devel -l pl.UTF-8
b7ccdbe1 102Pliki programistyczne biblioteki Cairo.
8c7ef450 103
104%package static
b7ccdbe1 105Summary: Static Cairo library
beb0026f 106Summary(pl.UTF-8): Statyczna biblioteka Cairo
4233927e 107Group: Development/Libraries
b7ccdbe1 108Requires: %{name}-devel = %{version}-%{release}
8c7ef450 109
110%description static
b7ccdbe1
JB
111Static Cairo library.
112
65aac246 113%description static -l pl.UTF-8
b7ccdbe1 114Statyczna biblioteka Cairo.
8c7ef450 115
8f628762
JB
116%package gobject
117Summary: GObject functions library for Cairo graphics library
118Summary(pl.UTF-8): Biblioteka funkcji GObject dla biblioteki graficznej Cairo
119Group: Libraries
120Requires: %{name} = %{version}-%{release}
121
122%description gobject
123GObject functions library for Cairo graphics library.
124
125%description gobject -l pl.UTF-8
126Biblioteka funkcji GObject dla biblioteki graficznej Cairo.
127
128%package gobject-devel
129Summary: Header files for Cairo GObject library
130Summary(pl.UTF-8): Pliki nagłówkowe biblioteki Cairo GObject
131Group: Development/Libraries
132Requires: %{name}-devel = %{version}-%{release}
133Requires: %{name}-gobject = %{version}-%{release}
134Requires: glib2-devel >= 1:2.0
135
136%description gobject-devel
137Header files for Cairo GObject library.
138
139%description gobject-devel -l pl.UTF-8
140Pliki nagłówkowe biblioteki Cairo GObject.
141
142%package gobject-static
143Summary: Static Cairo GObject library
144Summary(pl.UTF-8): Statyczna biblioteka Cairo GObject
145Group: Development/Libraries
146Requires: %{name}-gobject-devel = %{version}-%{release}
147
148%description gobject-static
149Static Cairo GObject library.
150
151%description gobject-static -l pl.UTF-8
152Statyczna biblioteka Cairo GObject.
153
154%package trace
155Summary: Cairo calls tracing utility
156Summary(pl.UTF-8): Narzędzie do śledzenia wywołań Cairo
157Group: Development/Tools
158Requires: %{name} = %{version}-%{release}
c0a654a7 159Requires: binutils-libs >= 2.21.53
8f628762
JB
160
161%description trace
162Cairo calls tracing utility.
163
164%description trace -l pl.UTF-8
165Narzędzie do śledzenia wywołań Cairo.
166
ecad233f 167%package apidocs
168Summary: Cairo API documentation
beb0026f 169Summary(pl.UTF-8): Dokumentacja API Cairo
ecad233f 170Group: Documentation
171Requires: gtk-doc-common
172
173%description apidocs
174Cairo API documentation.
175
65aac246 176%description apidocs -l pl.UTF-8
d55df9d3 177Dokumentacja API Cairo.
ecad233f 178
8c7ef450 179%prep
56de7934 180%setup -q
c9185d93 181%patch0 -p1
8c7ef450 182
183%build
2e75f7d0 184%{?with_apidocs:%{__gtkdocize}}
b7ccdbe1 185%{__libtoolize}
75cc31b6 186%{__aclocal} -I build
8c7ef450 187%{__autoheader}
8c7ef450 188%{__autoconf}
b7ccdbe1 189%{__automake}
7fdf57cf 190%configure \
3396a3ae 191 --disable-silent-rules \
c0a654a7 192 --enable-ft \
5cbde25f 193 %{?with_apidocs:--enable-gtk-doc} \
3396a3ae 194 --enable-pdf \
2d024fa9 195 --enable-png \
5cbde25f 196 --enable-ps \
0ecd672c 197 %{!?with_svg:--disable-svg} \
e9726ad7 198 --enable-tee \
5cbde25f 199 %{?with_xcb:--enable-xcb} \
7fdf57cf 200 --with-html-dir=%{_gtkdocdir}
0c4a4f34 201
202%{__sed} -i 's/gobject-2.0 glib-2.0//' src/cairo.pc
203
8c7ef450 204%{__make}
d71997d7 205%{?with_tests:%{__make} check}
8c7ef450 206
207%install
208rm -rf $RPM_BUILD_ROOT
8c7ef450 209
210%{__make} install \
211 DESTDIR=$RPM_BUILD_ROOT
212
8f628762
JB
213# LD_PRELOADable library
214%{__rm} $RPM_BUILD_ROOT%{_libdir}/cairo/libcairo-trace.{la,a}
215
8452c411
ER
216%{!?with_apidocs:rm -rf $RPM_BUILD_ROOT%{_gtkdocdir}/cairo}
217
8c7ef450 218%clean
219rm -rf $RPM_BUILD_ROOT
220
b7ccdbe1
JB
221%post -p /sbin/ldconfig
222%postun -p /sbin/ldconfig
8c7ef450 223
8f628762
JB
224%post gobject -p /sbin/ldconfig
225%postun gobject -p /sbin/ldconfig
226
b7ccdbe1
JB
227%files
228%defattr(644,root,root,755)
9b33cbb5 229# COPYING contains only notes, not LGPL/MPL texts
2d024fa9 230%doc AUTHORS COPYING ChangeLog NEWS README
daa7aa2f
JB
231%attr(755,root,root) %{_libdir}/libcairo.so.*.*.*
232%attr(755,root,root) %ghost %{_libdir}/libcairo.so.2
1fb61c53
PZ
233%attr(755,root,root) %{_libdir}/libcairo-script-interpreter.so.*.*.*
234%attr(755,root,root) %ghost %{_libdir}/libcairo-script-interpreter.so.2
8c7ef450 235
236%files devel
237%defattr(644,root,root,755)
daa7aa2f 238%attr(755,root,root) %{_libdir}/libcairo.so
1fb61c53 239%attr(755,root,root) %{_libdir}/libcairo-script-interpreter.so
daa7aa2f 240%{_libdir}/libcairo.la
1fb61c53 241%{_libdir}/libcairo-script-interpreter.la
daa7aa2f 242%{_includedir}/cairo
8f628762 243%exclude %{_includedir}/cairo/cairo-gobject.h
daa7aa2f 244%{_pkgconfigdir}/cairo.pc
1fb61c53 245%{_pkgconfigdir}/cairo-fc.pc
daa7aa2f 246%{_pkgconfigdir}/cairo-ft.pc
4d4ec739 247%{_pkgconfigdir}/cairo-pdf.pc
daa7aa2f
JB
248%{_pkgconfigdir}/cairo-png.pc
249%{_pkgconfigdir}/cairo-ps.pc
0ecd672c 250%{?with_svg:%{_pkgconfigdir}/cairo-svg.pc}
e9726ad7 251%{_pkgconfigdir}/cairo-tee.pc
8452c411 252%{?with_xcb:%{_pkgconfigdir}/cairo-xcb.pc}
1fb61c53 253%{?with_xcb:%{_pkgconfigdir}/cairo-xcb-shm.pc}
daa7aa2f
JB
254%{_pkgconfigdir}/cairo-xlib.pc
255%{_pkgconfigdir}/cairo-xlib-xrender.pc
b7ccdbe1
JB
256
257%files static
258%defattr(644,root,root,755)
daa7aa2f 259%{_libdir}/libcairo.a
1fb61c53 260%{_libdir}/libcairo-script-interpreter.a
ecad233f 261
8f628762
JB
262%files gobject
263%defattr(644,root,root,755)
264%attr(755,root,root) %{_libdir}/libcairo-gobject.so.*.*.*
265%attr(755,root,root) %ghost %{_libdir}/libcairo-gobject.so.2
266
267%files gobject-devel
268%defattr(644,root,root,755)
269%attr(755,root,root) %{_libdir}/libcairo-gobject.so
270%{_libdir}/libcairo-gobject.la
271%{_includedir}/cairo/cairo-gobject.h
272%{_pkgconfigdir}/cairo-gobject.pc
273
274%files gobject-static
275%defattr(644,root,root,755)
276%{_libdir}/libcairo-gobject.a
277
278%files trace
279%defattr(644,root,root,755)
280%attr(755,root,root) %{_bindir}/cairo-trace
281%dir %{_libdir}/cairo
282%attr(755,root,root) %{_libdir}/cairo/libcairo-trace.so*
283
8452c411 284%if %{with apidocs}
ecad233f 285%files apidocs
286%defattr(644,root,root,755)
287%{_gtkdocdir}/cairo
8452c411 288%endif
This page took 0.084279 seconds and 4 git commands to generate.