1 %bcond_without cairo_xcb_backend
2 %bcond_without cairo_gl_backend
11 License: LGPL-2.1+ or MPL-1.1
12 Summary: Vector Graphics Library with Cross-Device Output Support
13 Url: http://cairographics.org/
14 Group: Graphics/Libraries
15 Source: http://cairographics.org/releases/%{name}-%{version}.tar.xz
16 Source99: baselibs.conf
17 Source1001: cairo.manifest
18 BuildRequires: libtool
19 BuildRequires: pkg-config
21 BuildRequires: pkgconfig(fontconfig)
22 BuildRequires: pkgconfig(freetype2)
23 BuildRequires: pkgconfig(gobject-2.0)
24 BuildRequires: pkgconfig(libpng)
25 BuildRequires: pkgconfig(pixman-1)
27 %if %{with cairo_gl_backend}
28 %if %{with x} && %{with desktop}
29 BuildRequires: pkgconfig(gl)
31 BuildRequires: pkgconfig(glesv2)
33 BuildRequires: pkgconfig(wayland-egl)
37 BuildRequires: pkgconfig(xext)
38 BuildRequires: pkgconfig(x11)
39 BuildRequires: pkgconfig(xrender)
40 %if %{with cairo_xcb_backend}
41 BuildRequires: pkgconfig(xcb)
42 BuildRequires: pkgconfig(xcb-shm)
48 Cairo is a vector graphics library with cross-device output support.
49 Currently supported output targets include the X Window System,
50 in-memory image buffers, and PostScript. Cairo is designed to produce
51 identical output on all output media while taking advantage of display
52 hardware acceleration when available.
55 License: LGPL-2.1+ or MPL-1.1
56 Summary: Vector Graphics Library with Cross-Device Output Support
57 Group: Graphics/Libraries
58 Provides: cairo = %{version}
59 Obsoletes: cairo < %{version}
61 %description -n libcairo
62 Cairo is a vector graphics library with cross-device output support.
63 Currently supported output targets include the X Window System,
64 in-memory image buffers, and PostScript. Cairo is designed to produce
65 identical output on all output media while taking advantage of display
66 hardware acceleration when available.
68 %package -n libcairo-gobject
69 License: LGPL-2.1+ or MPL-1.1
70 Summary: Vector Graphics Library with Cross-Device Output Support
71 Group: Graphics/Libraries
73 %description -n libcairo-gobject
74 Cairo is a vector graphics library with cross-device output support.
75 Currently supported output targets include the X Window System,
76 in-memory image buffers, and PostScript. Cairo is designed to produce
77 identical output on all output media while taking advantage of display
78 hardware acceleration when available.
80 This library contains GType declarations for Cairo types. It is also
81 meant to support gobject-introspection binding creation.
83 %package -n libcairo-script-interpreter
84 License: LGPL-2.1+ or MPL-1.1
85 Summary: Vector Graphics Library with Cross-Device Output Support
86 Group: Graphics/Libraries
88 %description -n libcairo-script-interpreter
89 Cairo is a vector graphics library with cross-device output support.
90 Currently supported output targets include the X Window System,
91 in-memory image buffers, and PostScript. Cairo is designed to produce
92 identical output on all output media while taking advantage of display
93 hardware acceleration when available.
97 Summary: Vector Graphics Library with Cross-Device Output Support -- Utilities
98 Group: Development/Libraries
99 # We need an explicit requires since nothing links to the cairo library
100 Requires: libcairo = %{version}
103 Cairo is a vector graphics library with cross-device output support.
104 Currently supported output targets include the X Window System,
105 in-memory image buffers, and PostScript. Cairo is designed to produce
106 identical output on all output media while taking advantage of display
107 hardware acceleration when available.
109 This package contains various cairo utilities.
112 License: LGPL-2.1+ or MPL-1.1
113 Summary: Development environment for cairo
114 Group: Development/Libraries
115 Requires: libcairo = %{version}
116 Requires: libcairo-gobject = %{version}
117 Requires: libcairo-script-interpreter = %{version}
120 This package contains all files necessary to build binaries using
128 # Disable Atom optimizations in order to make binaries executable in buildroot
129 export RPM_OPT_FLAGS=`echo $RPM_OPT_FLAGS | sed s'/atom/i686/g'`
130 export CFLAGS=`echo $CFLAGS | sed s'/atom/i686/g'`
131 export CXXFLAGS=`echo $CXXFLAGS | sed s'/atom/i686/g'`
133 export CFLAGS+=" -ffat-lto-objects"
134 export CXXFLAGS+=" -ffat-lto-objects"
137 export CFLAGS="$CFLAGS -fno-lto"
138 export CXXFLAGS="$CXXFLAGS -fno-lto"
142 NOCONFIGURE=1 ./autogen.sh
147 %if %{with cairo_gl_backend}
149 --enable-glesv2=yes \
156 %if %{with wayland} && !%{with x}
161 %if %{with cairo_xcb_backend}
167 make %{?_smp_mflags} V=1
172 %post -n libcairo -p /sbin/ldconfig
174 %postun -n libcairo -p /sbin/ldconfig
176 %post -n libcairo-gobject -p /sbin/ldconfig
178 %postun -n libcairo-gobject -p /sbin/ldconfig
180 %post -n libcairo-script-interpreter -p /sbin/ldconfig
182 %postun -n libcairo-script-interpreter -p /sbin/ldconfig
185 %manifest %{name}.manifest
186 %defattr(-, root, root)
187 %license COPYING COPYING-LGPL-2.1 COPYING-MPL-1.1
188 %{_libdir}/libcairo.so.*
190 %files -n libcairo-gobject
191 %manifest %{name}.manifest
192 %defattr(-, root, root)
193 %{_libdir}/libcairo-gobject.so.2*
195 %files -n libcairo-script-interpreter
196 %manifest %{name}.manifest
197 %defattr(-, root, root)
198 %license util/cairo-script/COPYING
199 %{_libdir}/libcairo-script-interpreter.so.*
202 %manifest %{name}.manifest
203 %defattr(-, root, root)
204 %license util/cairo-trace/COPYING util/cairo-trace/COPYING-GPL-3
205 %{_bindir}/cairo-sphinx
206 %{_bindir}/cairo-trace
207 %dir %{_libdir}/cairo
208 %{_libdir}/cairo/cairo-fdr.so
209 %{_libdir}/cairo/cairo-sphinx.so
210 %{_libdir}/cairo/libcairo-trace.so
213 %manifest %{name}.manifest
214 %defattr(-, root, root)
216 %{_includedir}/cairo/
217 %doc %{_datadir}/gtk-doc/html/cairo
219 %{_libdir}/pkgconfig/*.pc