2007-01-16 00:06:30 +01:00
|
|
|
#
|
2009-07-31 18:52:05 +02:00
|
|
|
# spec file for package cairo (Version 1.9.2)
|
2007-01-16 00:06:30 +01:00
|
|
|
#
|
2009-01-19 01:45:29 +01:00
|
|
|
# Copyright (c) 2009 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/
|
|
|
|
#
|
|
|
|
|
|
|
|
# norootforbuild
|
|
|
|
|
2008-04-10 13:09:49 +02:00
|
|
|
|
2007-01-16 00:06:30 +01:00
|
|
|
Name: cairo
|
2009-02-16 18:36:22 +01: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 01:22:13 +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
|
2009-07-31 18:52:05 +02:00
|
|
|
License: LGPL v2.1 or later ; MPL ..
|
2007-01-16 00:06:30 +01:00
|
|
|
Group: Development/Libraries/X11
|
|
|
|
Summary: Vector Graphics Library with Cross-Device Output Support
|
2007-12-22 19:32:36 +01:00
|
|
|
Url: http://cairographics.org/
|
2009-07-31 18:52:05 +02:00
|
|
|
Version: 1.9.2
|
2009-08-06 17:45:29 +02:00
|
|
|
Release: 2
|
2007-02-04 18:20:20 +01:00
|
|
|
Source: %{name}-%{version}.tar.bz2
|
2009-07-31 18:52:05 +02:00
|
|
|
# PATCH-FIX-UPSTREAM cairo-missing-include.patch-fdo22610.patch captain.magnus@opensuse.org -- Add missing include to silence OBS
|
|
|
|
Patch0: cairo-missing-include-fdo22610.patch
|
2007-01-16 00:06:30 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2007-02-04 18:20:20 +01:00
|
|
|
# Last present in SuSE Linux 10.0 (and NLD9):
|
2008-04-14 17:23:15 +02:00
|
|
|
Obsoletes: libpixman <= 0.1.1
|
|
|
|
Provides: libpixman <= 0.1.1
|
2008-11-02 15:35:33 +01:00
|
|
|
# bug437293
|
|
|
|
%ifarch ppc64
|
|
|
|
Obsoletes: cairo-64bit
|
|
|
|
%endif
|
|
|
|
#
|
2007-01-16 00:06:30 +01: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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Carl D. Worth <cworth@isi.edu>
|
|
|
|
|
|
|
|
%package devel
|
2009-07-31 18:52:05 +02:00
|
|
|
License: LGPL v2.1 or later ; MPL ..
|
2007-01-16 00:06:30 +01:00
|
|
|
Summary: Development environment for cairo
|
|
|
|
Group: Development/Libraries/X11
|
2009-02-06 21:32:47 +01: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 18:52:05 +02:00
|
|
|
Provides: cairo-doc = %{version}
|
|
|
|
Obsoletes: cairo-doc <= %{version}
|
2007-02-04 18:20:20 +01:00
|
|
|
# Last present in SuSE Linux 10.0 (and NLD9):
|
2008-04-14 17:23:15 +02:00
|
|
|
Provides: libpixman-devel <= 0.1.1
|
2009-07-31 18:52:05 +02:00
|
|
|
Obsoletes: libpixman-devel <= 0.1.1
|
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Carl D. Worth <cworth@isi.edu>
|
|
|
|
|
|
|
|
%prep
|
2007-03-15 01:22:13 +01:00
|
|
|
%setup -q
|
2009-02-16 18:36:22 +01:00
|
|
|
%patch0 -p1
|
2007-01-16 00:06:30 +01:00
|
|
|
|
|
|
|
%build
|
2009-07-31 18:52:05 +02:00
|
|
|
#autoreconf -f -i
|
2007-03-15 01:22:13 +01:00
|
|
|
# Only for tests: --enable-pdf --enable-svg
|
2009-02-06 21:32:47 +01:00
|
|
|
%configure \
|
|
|
|
--with-pic \
|
2008-11-07 14:59:17 +01:00
|
|
|
--enable-ps \
|
|
|
|
--enable-xcb \
|
2009-07-31 18:52:05 +02:00
|
|
|
--enable-svg \
|
|
|
|
--enable-script \
|
2009-02-06 21:32:47 +01:00
|
|
|
--disable-gtk-doc \
|
|
|
|
--disable-static
|
|
|
|
%{__make} %{?jobs:-j %jobs}
|
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
|
|
|
|
2008-04-14 17:23:15 +02:00
|
|
|
%post -p /sbin/ldconfig
|
2007-06-19 02:21:14 +02:00
|
|
|
|
2008-04-14 17:23:15 +02:00
|
|
|
%postun -p /sbin/ldconfig
|
2007-06-19 02:21:14 +02:00
|
|
|
|
2007-01-16 00:06:30 +01:00
|
|
|
%clean
|
2009-02-06 21:32:47 +01:00
|
|
|
%{__rm} -rf ${RPM_BUILD_ROOT}
|
2007-01-16 00:06:30 +01:00
|
|
|
|
|
|
|
%files
|
|
|
|
%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
|
2009-07-31 18:52:05 +02:00
|
|
|
%dir %{_libdir}/cairo
|
2009-08-06 17:45:29 +02:00
|
|
|
%{_libdir}/cairo/*.so.*
|
2009-07-31 18:52:05 +02:00
|
|
|
%{_libdir}/*.so.*
|
|
|
|
%{_bindir}/cairo-trace
|
2007-01-16 00:06:30 +01:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-, root, root)
|
2007-03-15 01:22:13 +01:00
|
|
|
%doc PORTING_GUIDE
|
2007-02-04 18:20:20 +01:00
|
|
|
%{_includedir}/cairo
|
2009-07-31 18:52:05 +02:00
|
|
|
%{_libdir}/cairo/*.so
|
|
|
|
%{_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-02-04 18:20:20 +01:00
|
|
|
%{_datadir}/gtk-doc/html/*
|
2007-01-16 00:06:30 +01:00
|
|
|
|
2007-03-15 01:22:13 +01:00
|
|
|
%changelog
|