SHA256
1
0
forked from pool/cairo
cairo/cairo.spec
Vincent Untz 28b77abc9f Accepting request 44290 from home:dimstar:branches:GNOME:Factory
Copy from home:dimstar:branches:GNOME:Factory/cairo via accept of submit request 44290 revision 2.
Request was accepted with message:
thanks

OBS-URL: https://build.opensuse.org/request/show/44290
OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/cairo?expand=0&rev=35
2010-08-05 20:55:38 +00:00

179 lines
5.5 KiB
RPMSpec

#
# spec file for package cairo (Version 1.9.14)
#
# Copyright (c) 2010 SUSE LINUX Products 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/
#
Name: cairo
Version: 1.9.14
Release: 1
License: LGPL v2.1 or later ; MPL ..
Summary: Vector Graphics Library with Cross-Device Output Support
Url: http://cairographics.org/
Group: Development/Libraries/X11
Source: %{name}-%{version}.tar.bz2
Source99: baselibs.conf
# PATCH-FIX-UPSTREAM cairo-modules-no-version.patch dimstar@opensuse.org -- Build modules with -module -avoid-version.
Patch0: cairo-modules-no-version.patch
# These libraries are needed only for tests.
# Do not enable tests in build systems, it causes build loop!
#BuildRequires: librsvg-devel poppler-devel
BuildRequires: gtk-doc
BuildRequires: pkg-config
BuildRequires: pkgconfig(fontconfig)
BuildRequires: pkgconfig(freetype2)
BuildRequires: pkgconfig(libpng)
BuildRequires: pkgconfig(pixman-1)
BuildRequires: pkgconfig(x11)
BuildRequires: pkgconfig(xcb)
BuildRequires: pkgconfig(xrender)
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%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 v2.1 or later ; MPL ..
Group: Development/Libraries/X11
Provides: cairo = %{version}
Obsoletes: cairo < %{version}
# bug437293
%ifarch ppc64
Obsoletes: cairo-64bit
%endif
#
%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-script-interpreter2
Summary: Vector Graphics Library with Cross-Device Output Support
License: LGPL v2.1 or later ; 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.
%package utils
Summary: Vector Graphics Library with Cross-Device Output Support -- Utilities
License: LGPL v2.1 or later ; MPL ..
Group: Development/Libraries/X11
# We need an explicit requires since nothing links to the cairo library
Requires: libcairo2 = %{version}
%description utils
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
License: LGPL v2.1 or later ; MPL ..
Summary: Development environment for cairo
Group: Development/Libraries/X11
Requires: libcairo2 = %{version}
Requires: libcairo-script-interpreter2 = %{version}
Provides: cairo-doc = %{version}
Obsoletes: cairo-doc < %{version}
# bug437293
%ifarch ppc64
Obsoletes: cairo-devel-64bit
%endif
#
%description devel
This package contains all files necessary to build binaries using
cairo.
%prep
%setup -q
%patch0 -p1
%build
NOCONFIGURE=1 ./autogen.sh
%configure \
--with-pic \
--enable-ps \
--enable-pdf \
--enable-xcb \
--enable-svg \
--enable-script \
--disable-gtk-doc \
--disable-static
%{__make} %{?jobs:-j %jobs}
%install
%makeinstall
%if 0%{?suse_version} > 1110
find %{buildroot} -type f -name "*.la" -delete -print
%endif
%post -n libcairo2 -p /sbin/ldconfig
%postun -n libcairo2 -p /sbin/ldconfig
%post -n libcairo-script-interpreter2 -p /sbin/ldconfig
%postun -n libcairo-script-interpreter2 -p /sbin/ldconfig
%clean
%{__rm} -rf %{buildroot}
%files -n libcairo2
%defattr(-, root, root)
%doc AUTHORS COPYING COPYING-LGPL-2.1 COPYING-MPL-1.1 ChangeLog NEWS README
%{_libdir}/libcairo.so.*
%files -n libcairo-script-interpreter2
%defattr(-, root, root)
%{_libdir}/libcairo-script-interpreter.so.*
%files utils
%defattr(-, root, root)
%{_bindir}/cairo-trace
%dir %{_libdir}/cairo
%{_libdir}/cairo/libcairo-trace.so
%{_libdir}/cairo/cairo-fdr.so
%files devel
%defattr(-, root, root)
%doc PORTING_GUIDE
%doc %{_datadir}/gtk-doc/html/cairo
%{_includedir}/cairo
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc
%if 0%{?suse_version} <= 1110
%{_libdir}/*.la
%endif
%changelog