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
|
|
|
#
|
2011-02-22 15:22:32 +01:00
|
|
|
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
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.
|
|
|
|
|
2007-01-16 00:06:30 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2010-09-11 11:50:34 +02:00
|
|
|
%define build_xcb_backend 0
|
|
|
|
%define build_gl_backend 0
|
2008-04-10 13:09:49 +02:00
|
|
|
|
2007-01-16 00:06:30 +01:00
|
|
|
Name: cairo
|
2011-01-06 02:32:48 +01:00
|
|
|
Version: 1.10.2
|
2011-09-09 11:09:15 +02:00
|
|
|
Release: 9
|
2011-09-02 18:03:27 +02:00
|
|
|
# FIXME: on update, check that cairo-fix-libs.patch (patch1) is still needed (nobody has the right fix for upstream :/)
|
2010-08-09 16:43:35 +02:00
|
|
|
License: LGPLv2.1+ ; MPL ..
|
2007-01-16 00:06:30 +01:00
|
|
|
Summary: Vector Graphics Library with Cross-Device Output Support
|
2007-12-22 19:32:36 +01:00
|
|
|
Url: http://cairographics.org/
|
2010-08-09 16:43:36 +02:00
|
|
|
Group: Development/Libraries/X11
|
2007-02-04 18:20:20 +01:00
|
|
|
Source: %{name}-%{version}.tar.bz2
|
2010-02-19 16:28:22 +01:00
|
|
|
Source99: baselibs.conf
|
2010-08-09 16:43:36 +02:00
|
|
|
# PATCH-FIX-UPSTREAM cairo-modules-no-version.patch dimstar@opensuse.org -- Build modules with -module -avoid-version.
|
|
|
|
Patch0: cairo-modules-no-version.patch
|
2011-09-02 18:01:14 +02:00
|
|
|
# PATCH-FIX-OPENSUSE cairo-fix-libs.patch coolo@suse.de -- Fix build with newer ld
|
|
|
|
Patch1: cairo-fix-libs.patch
|
2010-08-09 16:43:36 +02:00
|
|
|
# These libraries are needed only for tests.
|
|
|
|
# Do not enable tests in build systems, it causes build loop!
|
|
|
|
#BuildRequires: librsvg-devel poppler-devel
|
2010-09-11 11:50:34 +02:00
|
|
|
%if %build_gl_backend
|
|
|
|
BuildRequires: Mesa-devel
|
|
|
|
%endif
|
2010-08-09 16:43:36 +02:00
|
|
|
BuildRequires: gtk-doc
|
2011-10-04 09:01:47 +02:00
|
|
|
BuildRequires: libtool
|
2010-08-09 16:43:36 +02:00
|
|
|
BuildRequires: pkg-config
|
|
|
|
BuildRequires: pkgconfig(fontconfig)
|
|
|
|
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)
|
|
|
|
BuildRequires: pkgconfig(pixman-1)
|
|
|
|
BuildRequires: pkgconfig(x11)
|
2010-09-11 11:50:34 +02:00
|
|
|
%if %build_xcb_backend
|
2010-08-09 16:43:36 +02:00
|
|
|
BuildRequires: pkgconfig(xcb)
|
2010-09-11 11:50:34 +02:00
|
|
|
%endif
|
2010-08-09 16:43:36 +02:00
|
|
|
BuildRequires: pkgconfig(xrender)
|
2010-07-21 16:36:15 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
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
|
|
|
|
License: LGPLv2.1+ ; MPL ..
|
|
|
|
Group: Development/Libraries/X11
|
|
|
|
Provides: cairo = %{version}
|
|
|
|
Obsoletes: cairo < %{version}
|
2008-11-02 15:35:33 +01:00
|
|
|
# bug437293
|
|
|
|
%ifarch ppc64
|
|
|
|
Obsoletes: cairo-64bit
|
|
|
|
%endif
|
|
|
|
#
|
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
|
|
|
|
License: LGPLv2.1+ ; MPL ..
|
|
|
|
Group: Development/Libraries/X11
|
|
|
|
|
|
|
|
%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
|
|
|
|
License: LGPLv2.1+ ; MPL ..
|
|
|
|
Group: Development/Libraries/X11
|
|
|
|
|
|
|
|
%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
|
2010-08-09 16:43:36 +02:00
|
|
|
Summary: Vector Graphics Library with Cross-Device Output Support -- Utilities
|
|
|
|
License: LGPLv2.1+ ; MPL ..
|
|
|
|
Group: Development/Libraries/X11
|
|
|
|
# We need an explicit requires since nothing links to the cairo library
|
|
|
|
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
|
2010-08-09 16:43:35 +02:00
|
|
|
License: LGPLv2.1+ ; MPL ..
|
2007-01-16 00:06:30 +01:00
|
|
|
Summary: Development environment for cairo
|
|
|
|
Group: Development/Libraries/X11
|
2010-08-09 16:43:36 +02:00
|
|
|
Requires: libcairo2 = %{version}
|
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}
|
2009-07-31 18:52:05 +02:00
|
|
|
Provides: cairo-doc = %{version}
|
2010-08-09 16:43:36 +02:00
|
|
|
Obsoletes: cairo-doc < %{version}
|
2008-11-02 15:35:33 +01:00
|
|
|
# bug437293
|
|
|
|
%ifarch ppc64
|
|
|
|
Obsoletes: cairo-devel-64bit
|
|
|
|
%endif
|
|
|
|
#
|
2007-01-16 00:06:30 +01:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
This package contains all files necessary to build binaries using
|
|
|
|
cairo.
|
|
|
|
|
|
|
|
%prep
|
2007-03-15 01:22:13 +01:00
|
|
|
%setup -q
|
2009-02-16 18:36:22 +01:00
|
|
|
%patch0 -p1
|
2011-09-02 18:01:14 +02:00
|
|
|
%patch1 -p1
|
2007-01-16 00:06:30 +01:00
|
|
|
|
|
|
|
%build
|
2010-08-09 16:43:36 +02:00
|
|
|
NOCONFIGURE=1 ./autogen.sh
|
2009-02-06 21:32:47 +01:00
|
|
|
%configure \
|
|
|
|
--with-pic \
|
2010-09-11 11:50:34 +02:00
|
|
|
--enable-fc \
|
|
|
|
--enable-ft \
|
|
|
|
%if %build_gl_backend
|
|
|
|
--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 \
|
|
|
|
%if %build_xcb_backend
|
|
|
|
--enable-xcb \
|
|
|
|
%else
|
|
|
|
--enable-xlib \
|
|
|
|
%endif
|
2009-02-06 21:32:47 +01:00
|
|
|
--disable-gtk-doc \
|
|
|
|
--disable-static
|
2011-09-21 17:25:59 +02:00
|
|
|
make %{?_smp_mflags} V=1
|
2007-01-16 00:06:30 +01:00
|
|
|
|
|
|
|
%install
|
2007-02-04 18:20:20 +01:00
|
|
|
%makeinstall
|
2009-02-06 21:32:47 +01:00
|
|
|
%if 0%{?suse_version} > 1110
|
2009-07-31 18:52:05 +02:00
|
|
|
find %{buildroot} -type f -name "*.la" -delete -print
|
2009-02-06 21:32:47 +01:00
|
|
|
%endif
|
2007-01-16 00:06:30 +01:00
|
|
|
|
2010-08-09 16:43:36 +02:00
|
|
|
%post -n libcairo2 -p /sbin/ldconfig
|
2010-07-22 08:48:08 +02:00
|
|
|
|
2010-08-09 16:43:36 +02:00
|
|
|
%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
|
2007-01-16 00:06:30 +01:00
|
|
|
%defattr(-, root, root)
|
2008-06-22 02:26:02 +02:00
|
|
|
%doc AUTHORS COPYING COPYING-LGPL-2.1 COPYING-MPL-1.1 ChangeLog NEWS README
|
2010-08-09 16:43:36 +02:00
|
|
|
%{_libdir}/libcairo.so.*
|
|
|
|
|
2010-09-11 11:50:34 +02:00
|
|
|
%files -n libcairo-gobject2
|
|
|
|
%defattr(-, root, root)
|
|
|
|
%{_libdir}/libcairo-gobject.so.2*
|
|
|
|
|
2010-08-09 16:43:36 +02:00
|
|
|
%files -n libcairo-script-interpreter2
|
|
|
|
%defattr(-, root, root)
|
|
|
|
%{_libdir}/libcairo-script-interpreter.so.*
|
|
|
|
|
2010-09-11 11:50:34 +02:00
|
|
|
%files tools
|
2010-08-09 16:43:36 +02:00
|
|
|
%defattr(-, root, root)
|
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
|
|
|
|
%defattr(-, root, root)
|
2007-03-15 01:22:13 +01:00
|
|
|
%doc PORTING_GUIDE
|
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
|
2009-02-06 21:32:47 +01:00
|
|
|
%if 0%{?suse_version} <= 1110
|
|
|
|
%{_libdir}/*.la
|
|
|
|
%endif
|
2007-01-16 00:06:30 +01:00
|
|
|
|
2007-03-15 01:22:13 +01:00
|
|
|
%changelog
|