1 %define build_xcb_backend 0
2 %define build_gl_backend 1
3 %define enable_wayland 1
8 License: LGPL-2.1+ or MPL-1.1
9 Summary: Vector Graphics Library with Cross-Device Output Support
10 Url: http://cairographics.org/
11 Group: System/Libraries
12 Source: http://cairographics.org/releases/%{name}-%{version}.tar.xz
13 Source99: baselibs.conf
14 BuildRequires: gtk-doc
15 BuildRequires: libtool
16 BuildRequires: pkg-config
18 BuildRequires: pkgconfig(fontconfig)
19 BuildRequires: pkgconfig(freetype2)
20 BuildRequires: pkgconfig(gobject-2.0)
21 BuildRequires: pkgconfig(libpng)
22 BuildRequires: pkgconfig(pixman-1)
23 BuildRequires: pkgconfig(x11)
25 %if %build_xcb_backend
26 BuildRequires: pkgconfig(xcb)
27 BuildRequires: pkgconfig(xcb-shm)
30 BuildRequires: mesa-devel
32 BuildRequires: pkgconfig(wayland-egl)
35 BuildRequires: pkgconfig(xrender)
36 BuildRoot: %{_tmppath}/%{name}-%{version}-build
39 Cairo is a vector graphics library with cross-device output support.
40 Currently supported output targets include the X Window System,
41 in-memory image buffers, and PostScript. Cairo is designed to produce
42 identical output on all output media while taking advantage of display
43 hardware acceleration when available.
46 License: LGPL-2.1+ or MPL-1.1
47 Summary: Vector Graphics Library with Cross-Device Output Support
48 Group: System/Libraries
49 Provides: cairo = %{version}
50 Obsoletes: cairo < %{version}
52 %description -n libcairo
53 Cairo is a vector graphics library with cross-device output support.
54 Currently supported output targets include the X Window System,
55 in-memory image buffers, and PostScript. Cairo is designed to produce
56 identical output on all output media while taking advantage of display
57 hardware acceleration when available.
59 %package -n libcairo-gobject
60 License: LGPL-2.1+ or MPL-1.1
61 Summary: Vector Graphics Library with Cross-Device Output Support
62 Group: System/Libraries
64 %description -n libcairo-gobject
65 Cairo is a vector graphics library with cross-device output support.
66 Currently supported output targets include the X Window System,
67 in-memory image buffers, and PostScript. Cairo is designed to produce
68 identical output on all output media while taking advantage of display
69 hardware acceleration when available.
71 This library contains GType declarations for Cairo types. It is also
72 meant to support gobject-introspection binding creation.
74 %package -n libcairo-script-interpreter
75 License: LGPL-2.1+ or MPL-1.1
76 Summary: Vector Graphics Library with Cross-Device Output Support
77 Group: System/Libraries
79 %description -n libcairo-script-interpreter
80 Cairo is a vector graphics library with cross-device output support.
81 Currently supported output targets include the X Window System,
82 in-memory image buffers, and PostScript. Cairo is designed to produce
83 identical output on all output media while taking advantage of display
84 hardware acceleration when available.
88 Summary: Vector Graphics Library with Cross-Device Output Support -- Utilities
89 Group: Development/Libraries/X11
90 # We need an explicit requires since nothing links to the cairo library
91 Requires: libcairo = %{version}
94 Cairo is a vector graphics library with cross-device output support.
95 Currently supported output targets include the X Window System,
96 in-memory image buffers, and PostScript. Cairo is designed to produce
97 identical output on all output media while taking advantage of display
98 hardware acceleration when available.
100 This package contains various cairo utilities.
103 License: LGPL-2.1+ or MPL-1.1
104 Summary: Development environment for cairo
105 Group: Development/Libraries/X11
106 Requires: libcairo = %{version}
107 Requires: libcairo-gobject = %{version}
108 Requires: libcairo-script-interpreter = %{version}
111 This package contains all files necessary to build binaries using
119 NOCONFIGURE=1 ./autogen.sh
124 %if %build_gl_backend
125 --enable-gl --enable-egl \
132 %if %build_xcb_backend
138 make %{?_smp_mflags} V=1
143 %post -n libcairo -p /sbin/ldconfig
145 %postun -n libcairo -p /sbin/ldconfig
147 %post -n libcairo-gobject -p /sbin/ldconfig
149 %postun -n libcairo-gobject -p /sbin/ldconfig
151 %post -n libcairo-script-interpreter -p /sbin/ldconfig
153 %postun -n libcairo-script-interpreter -p /sbin/ldconfig
156 %defattr(-, root, root)
157 %doc COPYING COPYING-LGPL-2.1 COPYING-MPL-1.1
158 %{_libdir}/libcairo.so.*
160 %files -n libcairo-gobject
161 %defattr(-, root, root)
162 %{_libdir}/libcairo-gobject.so.2*
164 %files -n libcairo-script-interpreter
165 %defattr(-, root, root)
166 %doc util/cairo-script/COPYING
167 %{_libdir}/libcairo-script-interpreter.so.*
170 %defattr(-, root, root)
171 %doc util/cairo-trace/COPYING util/cairo-trace/COPYING-GPL-3
172 %{_bindir}/cairo-sphinx
173 %{_bindir}/cairo-trace
174 %dir %{_libdir}/cairo
175 %{_libdir}/cairo/cairo-fdr.so
176 %{_libdir}/cairo/cairo-sphinx.so
177 %{_libdir}/cairo/libcairo-trace.so
180 %defattr(-, root, root)
182 %doc %{_datadir}/gtk-doc/html/cairo
183 %{_includedir}/cairo/
185 %{_libdir}/pkgconfig/*.pc