forked from pool/cairo
Dominique Leuenberger
ac8e0d8c36
- Update to version 1.15.8: + This small snapshot provides new colored emoji glyph support, and a handful of minor fixes. For a complete log of changes, please see http://cairographics.org/releases/ChangeLog.1.15.8 + Features and Enhancements: Support colored emoji glyphs, stored as PNG images in OpenType fonts. + Bug Fixes: - pdf: . Fix internal links pointing to other pages, by pre-calculating page heights so that link positions can be calculated more accurately. . Don't emit /PageLabel dict when no labels defined. - image: Fix crash on negative lengths. - win32: Fix initialization of mutexes for static builds. - font: . Fix color font loading on big-endian systems. . Fix color font support infinite-loop with empty glyphs. - Fix off by one check in cairo-image-info.c. - Drop cairo-fix-off-by-one-check.patch: Fixed upstream. - Run spec-cleaner, modernize spec. - Rename 0001-image-prevent-invalid-ptr-access-for-4GB-images.patch to cairo-image-prevent-invalid-ptr-access.patch. - Pass enable-gtk-doc instead of disable-gtk-doc to configure, we already have the gtk-doc BuildRequires in place so I can only assume that this was an honest error. OBS-URL: https://build.opensuse.org/request/show/519713 OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/cairo?expand=0&rev=124
203 lines
7.0 KiB
RPMSpec
203 lines
7.0 KiB
RPMSpec
#
|
|
# spec file for package cairo
|
|
#
|
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
|
#
|
|
# 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.
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%define build_xcb_backend 1
|
|
%define build_gl_backend 1
|
|
Name: cairo
|
|
Version: 1.15.8
|
|
Release: 0
|
|
Summary: Vector Graphics Library with Cross-Device Output Support
|
|
License: LGPL-2.1+ OR MPL-1.1
|
|
Group: Development/Libraries/C and C++
|
|
Url: http://cairographics.org/
|
|
Source: http://cairographics.org/snapshots/%{name}-%{version}.tar.xz
|
|
Source99: baselibs.conf
|
|
# PATCH-FIX-UPSTREAM cairo-xlib-endianness.patch fdo#63461 bnc#882951 fcrozat@suse.com -- Fix crash when client and server have different endianness
|
|
Patch0: cairo-xlib-endianness.patch
|
|
# PATCH-FIX-UPSTREAM cairo-get_bitmap_surface-bsc1036789-CVE-2017-7475.diff alarrosa@suse.com -- Fix segfault in get_bitmap_surface
|
|
Patch1: cairo-get_bitmap_surface-bsc1036789-CVE-2017-7475.diff
|
|
# PATCH-FIX-UPSTREAM cairo-image-prevent-invalid-ptr-access.patch bsc#1007255 fdo#98165 CVE-2016-9082 alarrosa@suse.com -- Fix segfault when using >4GB images
|
|
Patch2: cairo-image-prevent-invalid-ptr-access.patch
|
|
BuildRequires: gtk-doc
|
|
BuildRequires: pkgconfig
|
|
BuildRequires: pkgconfig(fontconfig)
|
|
BuildRequires: pkgconfig(freetype2)
|
|
BuildRequires: pkgconfig(gobject-2.0)
|
|
BuildRequires: pkgconfig(libpng)
|
|
BuildRequires: pkgconfig(pixman-1) >= 0.30.0
|
|
BuildRequires: pkgconfig(x11)
|
|
BuildRequires: pkgconfig(xext)
|
|
BuildRequires: pkgconfig(xrender)
|
|
# 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}
|
|
BuildRequires: Mesa-devel
|
|
%endif
|
|
%if %{build_xcb_backend}
|
|
BuildRequires: pkgconfig(xcb)
|
|
BuildRequires: pkgconfig(xcb-shm)
|
|
%endif
|
|
|
|
%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
|
|
License: LGPL-2.1+ OR MPL-1.1
|
|
Group: System/Libraries
|
|
Provides: cairo = %{version}
|
|
Obsoletes: cairo < %{version}
|
|
|
|
%description -n libcairo2
|
|
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 libcairo-gobject2
|
|
Summary: Vector Graphics Library with Cross-Device Output Support
|
|
License: LGPL-2.1+ OR MPL-1.1
|
|
Group: System/Libraries
|
|
|
|
%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.
|
|
|
|
%package -n libcairo-script-interpreter2
|
|
Summary: Vector Graphics Library with Cross-Device Output Support
|
|
License: LGPL-2.1+ OR MPL-1.1
|
|
Group: System/Libraries
|
|
|
|
%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.
|
|
|
|
%package tools
|
|
Summary: Utilities for cairo, a Vector Graphics Library with Cross-Device Output Support
|
|
# We need an explicit requires since nothing links to the cairo library
|
|
License: GPL-3.0+
|
|
Group: Development/Libraries/X11
|
|
Requires: libcairo2 = %{version}
|
|
# Named changed during development of 11.4
|
|
Provides: %{name}-utils = %{version}
|
|
Obsoletes: %{name}-utils < %{version}
|
|
|
|
%description tools
|
|
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.
|
|
|
|
%package devel
|
|
Summary: Development environment for cairo
|
|
License: LGPL-2.1+ OR MPL-1.1
|
|
Group: Development/Libraries/X11
|
|
Requires: libcairo-gobject2 = %{version}
|
|
Requires: libcairo-script-interpreter2 = %{version}
|
|
Requires: libcairo2 = %{version}
|
|
Provides: cairo-doc = %{version}
|
|
Obsoletes: cairo-doc < %{version}
|
|
|
|
%description devel
|
|
This package contains all files necessary to build binaries using
|
|
cairo.
|
|
|
|
%prep
|
|
%setup -q
|
|
%patch0 -p1
|
|
%patch1 -p1
|
|
%patch2 -p1
|
|
|
|
%build
|
|
%configure \
|
|
--enable-fc \
|
|
--enable-ft \
|
|
%if %{build_gl_backend}
|
|
--enable-gl \
|
|
%endif
|
|
--enable-ps \
|
|
--enable-pdf \
|
|
--enable-script \
|
|
--enable-svg \
|
|
--enable-tee \
|
|
%if %{build_xcb_backend}
|
|
--enable-xcb \
|
|
%endif
|
|
--enable-xlib \
|
|
--enable-gtk-doc \
|
|
--disable-static
|
|
make %{?_smp_mflags} V=1
|
|
|
|
%install
|
|
%make_install
|
|
find %{buildroot} -type f -name "*.la" -delete -print
|
|
|
|
%post -n libcairo2 -p /sbin/ldconfig
|
|
%postun -n libcairo2 -p /sbin/ldconfig
|
|
%post -n libcairo-gobject2 -p /sbin/ldconfig
|
|
%postun -n libcairo-gobject2 -p /sbin/ldconfig
|
|
%post -n libcairo-script-interpreter2 -p /sbin/ldconfig
|
|
%postun -n libcairo-script-interpreter2 -p /sbin/ldconfig
|
|
|
|
%files -n libcairo2
|
|
%license COPYING COPYING-LGPL-2.1 COPYING-MPL-1.1
|
|
%{_libdir}/libcairo.so.*
|
|
|
|
%files -n libcairo-gobject2
|
|
%{_libdir}/libcairo-gobject.so.2*
|
|
|
|
%files -n libcairo-script-interpreter2
|
|
%doc util/cairo-script/COPYING
|
|
%{_libdir}/libcairo-script-interpreter.so.*
|
|
|
|
%files tools
|
|
%doc util/cairo-trace/COPYING util/cairo-trace/COPYING-GPL-3
|
|
%{_bindir}/cairo-sphinx
|
|
%{_bindir}/cairo-trace
|
|
%dir %{_libdir}/cairo
|
|
%{_libdir}/cairo/cairo-fdr.so
|
|
%{_libdir}/cairo/cairo-sphinx.so
|
|
%{_libdir}/cairo/libcairo-trace.so
|
|
|
|
%files devel
|
|
%doc AUTHORS ChangeLog NEWS PORTING_GUIDE README
|
|
%doc %{_datadir}/gtk-doc/html/cairo
|
|
%{_includedir}/cairo/
|
|
%{_libdir}/*.so
|
|
%{_libdir}/pkgconfig/*.pc
|
|
|
|
%changelog
|