2007-01-16 00:06:30 +01:00
#
2011-02-22 20:18:48 +01:00
# spec file for package cairo
2007-01-16 00:06:30 +01:00
#
2020-02-27 16:49:14 +01:00
# Copyright (c) 2020 SUSE LLC
2007-01-16 00:06:30 +01:00
#
2008-08-28 21:50:41 +02:00
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
2018-10-06 12:50:48 +02:00
# Please submit bugfixes or comments via https://bugs.opensuse.org/
2007-01-16 00:06:30 +01:00
#
2012-02-17 09:45:17 +01:00
2012-03-28 07:56:12 +02:00
%define build_xcb_backend 1
2013-03-14 00:02:39 +01:00
%define build_gl_backend 1
2007-01-16 00:06:30 +01:00
Name : cairo
2018-10-22 15:23:05 +02:00
Version : 1.16.0
2011-12-12 16:51:37 +01:00
Release : 0
2007-01-16 00:06:30 +01:00
Summary : Vector Graphics Library with Cross-Device Output Support
2018-04-13 08:51:45 +02:00
License : LGPL-2.1-or-later OR MPL-1.1
2017-02-12 18:10:01 +01:00
Group : Development/Libraries/C and C++
2018-04-13 08:51:45 +02:00
URL : https://cairographics.org/
2018-10-22 15:23:05 +02:00
Source0 : https://cairographics.org/releases/%{name} -%{version} .tar.xz
2010-02-19 16:28:22 +01:00
Source99 : baselibs.conf
2014-07-10 13:50:24 +02:00
# PATCH-FIX-UPSTREAM cairo-xlib-endianness.patch fdo#63461 bnc#882951 fcrozat@suse.com -- Fix crash when client and server have different endianness
2017-01-09 12:32:46 +01:00
Patch0 : cairo-xlib-endianness.patch
2017-06-07 15:34:23 +02:00
# PATCH-FIX-UPSTREAM cairo-get_bitmap_surface-bsc1036789-CVE-2017-7475.diff alarrosa@suse.com -- Fix segfault in get_bitmap_surface
2017-06-16 22:45:25 +02:00
Patch1 : cairo-get_bitmap_surface-bsc1036789-CVE-2017-7475.diff
2019-09-04 13:34:19 +02:00
# PATCH-FIX-UPSTREAM cairo-Use-FT_Done_MM_Var-instead-of-free-when-available.patch -- ft: Use FT_Done_MM_Var instead of free when available in cairo_ft_apply_variations
Patch2 : cairo-Use-FT_Done_MM_Var-instead-of-free-when-available.patch
# PATCH-FIX-UPSTREAM cairo-composite_color_glyphs.patch -- Fix a thinko in composite_color_glyphs
Patch3 : cairo-composite_color_glyphs.patch
2020-02-27 16:49:14 +01:00
# PATCH-FIX-UPSTREAM cairo-pdf-add-missing-flush.patch - fix pdf generation (upstream issue #342)
Patch4 : cairo-pdf-add-missing-flush.patch
2021-10-26 12:02:59 +02:00
# PATCH-FIX-UPSTREAM cairo-do-not-override-explicitly-requested-grayscale-aa.patch -- Fix font antialiasing requested by applications
Patch5 : cairo-do-not-override-explicitly-requested-grayscale-aa.patch
2010-08-09 16:43:36 +02:00
BuildRequires : gtk-doc
2017-08-31 09:46:01 +02:00
BuildRequires : pkgconfig
2010-08-09 16:43:36 +02:00
BuildRequires : pkgconfig(fontconfig)
2015-05-18 11:36:25 +02:00
BuildRequires : pkgconfig(freetype2)
2010-09-11 11:50:34 +02:00
BuildRequires : pkgconfig(gobject-2.0)
2010-08-09 16:43:36 +02:00
BuildRequires : pkgconfig(libpng)
2014-11-10 22:23:14 +01:00
BuildRequires : pkgconfig(pixman-1) >= 0.30.0
2010-08-09 16:43:36 +02:00
BuildRequires : pkgconfig(x11)
2012-10-15 10:31:12 +02:00
BuildRequires : pkgconfig(xext)
2010-08-09 16:43:36 +02:00
BuildRequires : pkgconfig(xrender)
2018-02-19 14:17:33 +01:00
BuildRequires : pkgconfig(zlib)
2015-01-14 18:58:14 +01:00
# These libraries are needed only for tests.
# Do not enable tests in build systems, it causes build loop!
#BuildRequires: librsvg-devel poppler-devel
%if %{build_gl_backend}
2017-12-12 12:48:07 +01:00
BuildRequires : pkgconfig(egl)
BuildRequires : pkgconfig(gl)
2015-01-14 18:58:14 +01:00
%endif
%if %{build_xcb_backend}
2018-02-19 14:20:00 +01:00
BuildRequires : pkgconfig(xcb) >= 1.6
BuildRequires : pkgconfig(xcb-render) >= 1.6
2015-01-14 18:58:14 +01:00
BuildRequires : pkgconfig(xcb-shm)
%endif
2010-08-09 16:43:36 +02:00
%description
Cairo is a vector graphics library with cross-device output support.
Currently supported output targets include the X Window System,
in-memory image buffers, and PostScript. Cairo is designed to produce
identical output on all output media while taking advantage of display
hardware acceleration when available.
%package -n libcairo2
Summary : Vector Graphics Library with Cross-Device Output Support
2018-04-13 08:51:45 +02:00
License : LGPL-2.1-or-later OR MPL-1.1
2012-02-17 09:45:17 +01:00
Group : System/Libraries
2010-08-09 16:43:36 +02:00
Provides : cairo = %{version}
Obsoletes : cairo < %{version}
2007-01-16 00:06:30 +01:00
2010-08-09 16:43:36 +02:00
%description -n libcairo2
2007-01-16 00:06:30 +01:00
Cairo is a vector graphics library with cross-device output support.
Currently supported output targets include the X Window System,
in-memory image buffers, and PostScript. Cairo is designed to produce
identical output on all output media while taking advantage of display
hardware acceleration when available.
2010-09-11 11:50:34 +02:00
%package -n libcairo-gobject2
Summary : Vector Graphics Library with Cross-Device Output Support
2018-04-13 08:51:45 +02:00
License : LGPL-2.1-or-later OR MPL-1.1
2012-02-17 09:45:17 +01:00
Group : System/Libraries
2010-09-11 11:50:34 +02:00
%description -n libcairo-gobject2
Cairo is a vector graphics library with cross-device output support.
Currently supported output targets include the X Window System,
in-memory image buffers, and PostScript. Cairo is designed to produce
identical output on all output media while taking advantage of display
hardware acceleration when available.
This library contains GType declarations for Cairo types. It is also
meant to support gobject-introspection binding creation.
2010-08-09 16:43:36 +02:00
%package -n libcairo-script-interpreter2
Summary : Vector Graphics Library with Cross-Device Output Support
2018-04-13 08:51:45 +02:00
License : LGPL-2.1-or-later OR MPL-1.1
2012-02-17 09:45:17 +01:00
Group : System/Libraries
2010-08-09 16:43:36 +02:00
%description -n libcairo-script-interpreter2
Cairo is a vector graphics library with cross-device output support.
Currently supported output targets include the X Window System,
in-memory image buffers, and PostScript. Cairo is designed to produce
identical output on all output media while taking advantage of display
hardware acceleration when available.
2010-09-11 11:50:34 +02:00
%package tools
2017-02-12 18:10:01 +01:00
Summary : Utilities for cairo, a Vector Graphics Library with Cross-Device Output Support
2017-06-16 22:45:25 +02:00
# We need an explicit requires since nothing links to the cairo library
2018-03-09 11:01:23 +01:00
License : GPL-3.0-or-later
2012-02-17 09:45:17 +01:00
Group : Development/Libraries/X11
2010-08-09 16:43:36 +02:00
Requires : libcairo2 = %{version}
2010-09-11 11:50:34 +02:00
# Named changed during development of 11.4
Provides : %{name} -utils = %{version}
Obsoletes : %{name} -utils < %{version}
2010-08-09 16:43:36 +02:00
2010-09-11 11:50:34 +02:00
%description tools
2010-08-09 16:43:36 +02:00
Cairo is a vector graphics library with cross-device output support.
Currently supported output targets include the X Window System,
in-memory image buffers, and PostScript. Cairo is designed to produce
identical output on all output media while taking advantage of display
hardware acceleration when available.
This package contains various cairo utilities.
2007-01-16 00:06:30 +01:00
%package devel
Summary : Development environment for cairo
2018-04-13 08:51:45 +02:00
License : LGPL-2.1-or-later OR MPL-1.1
2012-02-17 09:45:17 +01:00
Group : Development/Libraries/X11
2010-09-11 11:50:34 +02:00
Requires : libcairo-gobject2 = %{version}
2010-08-09 16:43:36 +02:00
Requires : libcairo-script-interpreter2 = %{version}
2012-03-28 07:56:12 +02:00
Requires : libcairo2 = %{version}
2009-07-31 18:52:05 +02:00
Provides : cairo-doc = %{version}
2010-08-09 16:43:36 +02:00
Obsoletes : cairo-doc < %{version}
2007-01-16 00:06:30 +01:00
%description devel
This package contains all files necessary to build binaries using
cairo.
%prep
2019-09-04 13:34:19 +02:00
%autosetup -p1
2007-01-16 00:06:30 +01:00
%build
2009-02-06 21:32:47 +01:00
%configure \
2010-09-11 11:50:34 +02:00
--enable-fc \
--enable-ft \
2015-01-14 18:58:14 +01:00
%if %{build_gl_backend}
2010-09-11 11:50:34 +02:00
--enable-gl \
%endif
2008-11-07 14:59:17 +01:00
--enable-ps \
2009-10-05 23:22:40 +02:00
--enable-pdf \
2010-09-11 11:50:33 +02:00
--enable-script \
2010-09-11 11:50:34 +02:00
--enable-svg \
--enable-tee \
2015-01-14 18:58:14 +01:00
%if %{build_xcb_backend}
2010-09-11 11:50:34 +02:00
--enable-xcb \
%endif
2012-03-28 08:20:05 +02:00
--enable-xlib \
2017-08-31 09:46:01 +02:00
--enable-gtk-doc \
2009-02-06 21:32:47 +01:00
--disable-static
2011-09-21 17:25:59 +02:00
make %{?_smp_mflags} V=1
2007-01-16 00:06:30 +01:00
%install
2017-08-31 09:46:01 +02:00
%make_install
2009-07-31 18:52:05 +02:00
find %{buildroot} -type f -name " * . l a " -delete -print
2007-01-16 00:06:30 +01:00
2010-08-09 16:43:36 +02:00
%post -n libcairo2 -p /sbin/ldconfig
%postun -n libcairo2 -p /sbin/ldconfig
2010-09-11 11:50:34 +02:00
%post -n libcairo-gobject2 -p /sbin/ldconfig
%postun -n libcairo-gobject2 -p /sbin/ldconfig
2010-08-09 16:43:36 +02:00
%post -n libcairo-script-interpreter2 -p /sbin/ldconfig
%postun -n libcairo-script-interpreter2 -p /sbin/ldconfig
2007-06-19 02:21:14 +02:00
2010-08-09 16:43:36 +02:00
%files -n libcairo2
2017-08-31 09:46:01 +02:00
%license COPYING COPYING-LGPL-2.1 COPYING-MPL-1.1
2010-08-09 16:43:36 +02:00
%{_libdir} /libcairo.so.*
2010-09-11 11:50:34 +02:00
%files -n libcairo-gobject2
%{_libdir} /libcairo-gobject.so.2*
2010-08-09 16:43:36 +02:00
%files -n libcairo-script-interpreter2
2018-03-09 11:01:23 +01:00
%license util/cairo-script/COPYING
2010-08-09 16:43:36 +02:00
%{_libdir} /libcairo-script-interpreter.so.*
2010-09-11 11:50:34 +02:00
%files tools
2018-03-09 11:01:23 +01:00
%license util/cairo-trace/COPYING util/cairo-trace/COPYING-GPL-3
2010-09-11 11:50:34 +02:00
%{_bindir} /cairo-sphinx
2010-08-09 16:43:36 +02:00
%{_bindir} /cairo-trace
%dir %{_libdir} /cairo
2010-09-11 11:50:33 +02:00
%{_libdir} /cairo/cairo-fdr.so
2010-09-11 11:50:34 +02:00
%{_libdir} /cairo/cairo-sphinx.so
%{_libdir} /cairo/libcairo-trace.so
2007-01-16 00:06:30 +01:00
%files devel
2017-08-31 09:46:01 +02:00
%doc AUTHORS ChangeLog NEWS PORTING_GUIDE README
2010-08-09 16:43:36 +02:00
%doc %{_datadir} /gtk-doc/html/cairo
2010-09-11 11:50:34 +02:00
%{_includedir} /cairo/
2009-07-31 18:52:05 +02:00
%{_libdir} /*.so
2007-01-16 00:06:30 +01:00
%{_libdir} /pkgconfig/*.pc
2007-03-15 01:22:13 +01:00
%changelog