2007-01-15 23:06:30 +00:00
|
|
|
#
|
2010-02-21 17:34:27 +00:00
|
|
|
# spec file for package cairo (Version 1.8.10)
|
2007-01-15 23:06:30 +00:00
|
|
|
#
|
2010-03-05 01:08:46 +00:00
|
|
|
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2007-01-15 23:06:30 +00:00
|
|
|
#
|
2008-08-28 19:50:41 +00: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-15 23:06:30 +00:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
# norootforbuild
|
|
|
|
|
2008-04-10 11:09:49 +00:00
|
|
|
|
2007-01-15 23:06:30 +00:00
|
|
|
Name: cairo
|
2009-02-16 17:36:22 +00:00
|
|
|
BuildRequires: freetype2-devel
|
|
|
|
BuildRequires: gtk-doc
|
|
|
|
BuildRequires: libpng-devel
|
|
|
|
BuildRequires: pkg-config
|
|
|
|
BuildRequires: xorg-x11-devel
|
|
|
|
BuildRequires: xorg-x11-libxcb-devel
|
2007-03-15 00:22:13 +00: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-02-19 15:28:22 +00:00
|
|
|
License: LGPLv2.1+ ; MPL ..
|
2007-01-15 23:06:30 +00:00
|
|
|
Group: Development/Libraries/X11
|
|
|
|
Summary: Vector Graphics Library with Cross-Device Output Support
|
2007-12-22 18:32:36 +00:00
|
|
|
Url: http://cairographics.org/
|
2010-02-21 17:34:27 +00:00
|
|
|
Version: 1.8.10
|
|
|
|
Release: 1
|
2007-02-04 17:20:20 +00:00
|
|
|
Source: %{name}-%{version}.tar.bz2
|
2010-02-19 15:28:22 +00:00
|
|
|
Source99: baselibs.conf
|
2009-10-05 21:22:40 +00:00
|
|
|
# PATCH-FIX-UPSTREAM cairo-1.8.6-repeat-modes.patch vuntz@opensuse.org -- Based on patch from Fedora & Ubuntu
|
|
|
|
Patch0: cairo-1.8.6-repeat-modes.patch
|
|
|
|
# PATCH-FIX-UPSTREAM cairo-lcd-filter.patch vuntz@opensuse.org -- Improve font rendering on LCD, patch used by Debian, Mandriva & Ubuntu
|
|
|
|
Patch1: cairo-lcd-filter.patch
|
2007-01-15 23:06:30 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2007-02-04 17:20:20 +00:00
|
|
|
# Last present in SuSE Linux 10.0 (and NLD9):
|
2008-04-14 15:23:15 +00:00
|
|
|
Obsoletes: libpixman <= 0.1.1
|
|
|
|
Provides: libpixman <= 0.1.1
|
2008-11-02 14:35:33 +00:00
|
|
|
# bug437293
|
|
|
|
%ifarch ppc64
|
|
|
|
Obsoletes: cairo-64bit
|
|
|
|
%endif
|
|
|
|
#
|
2007-01-15 23:06:30 +00: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 devel
|
2010-02-19 15:28:22 +00:00
|
|
|
License: LGPLv2.1+ ; MPL ..
|
2007-01-15 23:06:30 +00:00
|
|
|
Summary: Development environment for cairo
|
|
|
|
Group: Development/Libraries/X11
|
2009-02-06 20:32:47 +00:00
|
|
|
Requires: %{name} = %{version} freetype2-devel fontconfig-devel libpng-devel xorg-x11-devel xorg-x11-libXrender-devel xorg-x11-libX11-devel xorg-x11-libxcb-devel
|
2009-07-31 16:52:05 +00:00
|
|
|
Provides: cairo-doc = %{version}
|
|
|
|
Obsoletes: cairo-doc <= %{version}
|
2007-02-04 17:20:20 +00:00
|
|
|
# Last present in SuSE Linux 10.0 (and NLD9):
|
2008-04-14 15:23:15 +00:00
|
|
|
Provides: libpixman-devel <= 0.1.1
|
2009-07-31 16:52:05 +00:00
|
|
|
Obsoletes: libpixman-devel <= 0.1.1
|
2008-11-02 14:35:33 +00:00
|
|
|
# bug437293
|
|
|
|
%ifarch ppc64
|
|
|
|
Obsoletes: cairo-devel-64bit
|
|
|
|
%endif
|
|
|
|
#
|
2007-01-15 23:06:30 +00:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
This package contains all files necessary to build binaries using
|
|
|
|
cairo.
|
|
|
|
|
|
|
|
%prep
|
2007-03-15 00:22:13 +00:00
|
|
|
%setup -q
|
2009-02-16 17:36:22 +00:00
|
|
|
%patch0 -p1
|
2009-10-05 21:22:40 +00:00
|
|
|
%patch1 -p1
|
2007-01-15 23:06:30 +00:00
|
|
|
|
|
|
|
%build
|
2009-02-06 20:32:47 +00:00
|
|
|
%configure \
|
|
|
|
--with-pic \
|
2008-11-07 13:59:17 +00:00
|
|
|
--enable-ps \
|
2009-10-05 21:22:40 +00:00
|
|
|
--enable-pdf \
|
2008-11-07 13:59:17 +00:00
|
|
|
--enable-xcb \
|
2009-07-31 16:52:05 +00:00
|
|
|
--enable-svg \
|
|
|
|
--enable-script \
|
2009-02-06 20:32:47 +00:00
|
|
|
--disable-gtk-doc \
|
|
|
|
--disable-static
|
|
|
|
%{__make} %{?jobs:-j %jobs}
|
2007-01-15 23:06:30 +00:00
|
|
|
|
|
|
|
%install
|
2007-02-04 17:20:20 +00:00
|
|
|
%makeinstall
|
2009-02-06 20:32:47 +00:00
|
|
|
%if 0%{?suse_version} > 1110
|
2009-07-31 16:52:05 +00:00
|
|
|
find %{buildroot} -type f -name "*.la" -delete -print
|
2009-02-06 20:32:47 +00:00
|
|
|
%endif
|
2007-01-15 23:06:30 +00:00
|
|
|
|
2008-04-14 15:23:15 +00:00
|
|
|
%post -p /sbin/ldconfig
|
2007-06-19 00:21:14 +00:00
|
|
|
|
2008-04-14 15:23:15 +00:00
|
|
|
%postun -p /sbin/ldconfig
|
2007-06-19 00:21:14 +00:00
|
|
|
|
2007-01-15 23:06:30 +00:00
|
|
|
%clean
|
2009-02-06 20:32:47 +00:00
|
|
|
%{__rm} -rf ${RPM_BUILD_ROOT}
|
2007-01-15 23:06:30 +00:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-, root, root)
|
2008-06-22 00:26:02 +00:00
|
|
|
%doc AUTHORS COPYING COPYING-LGPL-2.1 COPYING-MPL-1.1 ChangeLog NEWS README
|
2009-07-31 16:52:05 +00:00
|
|
|
%{_libdir}/*.so.*
|
2007-01-15 23:06:30 +00:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-, root, root)
|
2007-03-15 00:22:13 +00:00
|
|
|
%doc PORTING_GUIDE
|
2007-02-04 17:20:20 +00:00
|
|
|
%{_includedir}/cairo
|
2009-07-31 16:52:05 +00:00
|
|
|
%{_libdir}/*.so
|
2007-01-15 23:06:30 +00:00
|
|
|
%{_libdir}/pkgconfig/*.pc
|
2009-02-06 20:32:47 +00:00
|
|
|
%if 0%{?suse_version} <= 1110
|
|
|
|
%{_libdir}/*.la
|
|
|
|
%endif
|
2007-02-04 17:20:20 +00:00
|
|
|
%{_datadir}/gtk-doc/html/*
|
2007-01-15 23:06:30 +00:00
|
|
|
|
2007-03-15 00:22:13 +00:00
|
|
|
%changelog
|