1 %bcond_without cairo_xcb_backend
2 %bcond_without cairo_gl_backend
10 License: LGPL-2.1+ or MPL-1.1
11 Summary: Vector Graphics Library with Cross-Device Output Support
12 Url: http://cairographics.org/
13 Group: Graphics/Libraries
14 Source: http://cairographics.org/releases/%{name}-%{version}.tar.xz
15 Source99: baselibs.conf
16 Source1001: cairo.manifest
17 BuildRequires: libtool
18 BuildRequires: pkg-config
20 BuildRequires: pkgconfig(fontconfig)
21 BuildRequires: pkgconfig(freetype2)
22 BuildRequires: pkgconfig(gobject-2.0)
23 BuildRequires: pkgconfig(libpng)
24 BuildRequires: pkgconfig(pixman-1)
26 %if %{with cairo_gl_backend}
27 BuildRequires: pkgconfig(gl)
28 BuildRequires: pkgconfig(glesv2)
30 BuildRequires: pkgconfig(wayland-egl)
35 BuildRequires: pkgconfig(xext)
36 BuildRequires: pkgconfig(x11)
37 BuildRequires: pkgconfig(xrender)
38 %if %{with cairo_xcb_backend}
39 BuildRequires: pkgconfig(xcb)
40 BuildRequires: pkgconfig(xcb-shm)
46 Cairo is a vector graphics library with cross-device output support.
47 Currently supported output targets include the X Window System,
48 in-memory image buffers, and PostScript. Cairo is designed to produce
49 identical output on all output media while taking advantage of display
50 hardware acceleration when available.
53 License: LGPL-2.1+ or MPL-1.1
54 Summary: Vector Graphics Library with Cross-Device Output Support
55 Group: Graphics/Libraries
56 Provides: cairo = %{version}
57 Obsoletes: cairo < %{version}
59 %description -n libcairo
60 Cairo is a vector graphics library with cross-device output support.
61 Currently supported output targets include the X Window System,
62 in-memory image buffers, and PostScript. Cairo is designed to produce
63 identical output on all output media while taking advantage of display
64 hardware acceleration when available.
66 %package -n libcairo-gobject
67 License: LGPL-2.1+ or MPL-1.1
68 Summary: Vector Graphics Library with Cross-Device Output Support
69 Group: Graphics/Libraries
71 %description -n libcairo-gobject
72 Cairo is a vector graphics library with cross-device output support.
73 Currently supported output targets include the X Window System,
74 in-memory image buffers, and PostScript. Cairo is designed to produce
75 identical output on all output media while taking advantage of display
76 hardware acceleration when available.
78 This library contains GType declarations for Cairo types. It is also
79 meant to support gobject-introspection binding creation.
81 %package -n libcairo-script-interpreter
82 License: LGPL-2.1+ or MPL-1.1
83 Summary: Vector Graphics Library with Cross-Device Output Support
84 Group: Graphics/Libraries
86 %description -n libcairo-script-interpreter
87 Cairo is a vector graphics library with cross-device output support.
88 Currently supported output targets include the X Window System,
89 in-memory image buffers, and PostScript. Cairo is designed to produce
90 identical output on all output media while taking advantage of display
91 hardware acceleration when available.
95 Summary: Vector Graphics Library with Cross-Device Output Support -- Utilities
96 Group: Development/Libraries
97 # We need an explicit requires since nothing links to the cairo library
98 Requires: libcairo = %{version}
101 Cairo is a vector graphics library with cross-device output support.
102 Currently supported output targets include the X Window System,
103 in-memory image buffers, and PostScript. Cairo is designed to produce
104 identical output on all output media while taking advantage of display
105 hardware acceleration when available.
107 This package contains various cairo utilities.
110 License: LGPL-2.1+ or MPL-1.1
111 Summary: Development environment for cairo
112 Group: Development/Libraries
113 Requires: libcairo = %{version}
114 Requires: libcairo-gobject = %{version}
115 Requires: libcairo-script-interpreter = %{version}
118 This package contains all files necessary to build binaries using
126 # Disable Atom optimizations in order to make binaries executable in buildroot
127 export RPM_OPT_FLAGS=`echo $RPM_OPT_FLAGS | sed s'/atom/i686/g'`
128 export CFLAGS=`echo $CFLAGS | sed s'/atom/i686/g'`
129 export CXXFLAGS=`echo $CXXFLAGS | sed s'/atom/i686/g'`
132 NOCONFIGURE=1 ./autogen.sh
137 %if %{with cairo_gl_backend}
139 --enable-glesv2=yes \
151 %if %{with cairo_xcb_backend}
157 make %{?_smp_mflags} V=1
162 %post -n libcairo -p /sbin/ldconfig
164 %postun -n libcairo -p /sbin/ldconfig
166 %post -n libcairo-gobject -p /sbin/ldconfig
168 %postun -n libcairo-gobject -p /sbin/ldconfig
170 %post -n libcairo-script-interpreter -p /sbin/ldconfig
172 %postun -n libcairo-script-interpreter -p /sbin/ldconfig
175 %manifest %{name}.manifest
176 %defattr(-, root, root)
177 %license COPYING COPYING-LGPL-2.1 COPYING-MPL-1.1
178 %{_libdir}/libcairo.so.*
180 %files -n libcairo-gobject
181 %manifest %{name}.manifest
182 %defattr(-, root, root)
183 %{_libdir}/libcairo-gobject.so.2*
185 %files -n libcairo-script-interpreter
186 %manifest %{name}.manifest
187 %defattr(-, root, root)
188 %license util/cairo-script/COPYING
189 %{_libdir}/libcairo-script-interpreter.so.*
192 %manifest %{name}.manifest
193 %defattr(-, root, root)
194 %license util/cairo-trace/COPYING util/cairo-trace/COPYING-GPL-3
195 %{_bindir}/cairo-sphinx
196 %{_bindir}/cairo-trace
197 %dir %{_libdir}/cairo
198 %{_libdir}/cairo/cairo-fdr.so
199 %{_libdir}/cairo/cairo-sphinx.so
200 %{_libdir}/cairo/libcairo-trace.so
203 %manifest %{name}.manifest
204 %defattr(-, root, root)
206 %{_includedir}/cairo/
207 %doc %{_datadir}/gtk-doc/html/cairo
209 %{_libdir}/pkgconfig/*.pc