SHA256
1
0
forked from pool/cairo
cairo/cairo.spec

140 lines
3.8 KiB
RPMSpec
Raw Normal View History

#
# spec file for package cairo (Version 1.9.2)
#
# Copyright (c) 2009 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/
#
# norootforbuild
Name: cairo
BuildRequires: freetype2-devel
BuildRequires: gtk-doc
BuildRequires: libpng-devel
BuildRequires: pkg-config
BuildRequires: xorg-x11-devel
BuildRequires: xorg-x11-libxcb-devel
# These libraries are needed only for tests.
# Do not enable tests in build systems, it causes build loop!
#BuildRequires: librsvg-devel poppler-devel
License: LGPL v2.1 or later ; MPL ..
Group: Development/Libraries/X11
Summary: Vector Graphics Library with Cross-Device Output Support
Url: http://cairographics.org/
Version: 1.9.2
Release: 2
Source: %{name}-%{version}.tar.bz2
# 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
BuildRoot: %{_tmppath}/%{name}-%{version}-build
# Last present in SuSE Linux 10.0 (and NLD9):
Obsoletes: libpixman <= 0.1.1
Provides: libpixman <= 0.1.1
# bug437293
%ifarch ppc64
Obsoletes: cairo-64bit
%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.
Authors:
--------
Carl D. Worth <cworth@isi.edu>
%package devel
License: LGPL v2.1 or later ; MPL ..
Summary: Development environment for cairo
Group: Development/Libraries/X11
Requires: %{name} = %{version} freetype2-devel fontconfig-devel libpng-devel xorg-x11-devel xorg-x11-libXrender-devel xorg-x11-libX11-devel xorg-x11-libxcb-devel
Provides: cairo-doc = %{version}
Obsoletes: cairo-doc <= %{version}
# Last present in SuSE Linux 10.0 (and NLD9):
Provides: libpixman-devel <= 0.1.1
Obsoletes: libpixman-devel <= 0.1.1
# bug437293
%ifarch ppc64
Obsoletes: cairo-devel-64bit
%endif
#
%description devel
This package contains all files necessary to build binaries using
cairo.
Authors:
--------
Carl D. Worth <cworth@isi.edu>
%prep
%setup -q
%patch0 -p1
%build
#autoreconf -f -i
# Only for tests: --enable-pdf --enable-svg
%configure \
--with-pic \
--enable-ps \
--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 -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%clean
%{__rm} -rf ${RPM_BUILD_ROOT}
%files
%defattr(-, root, root)
%doc AUTHORS COPYING COPYING-LGPL-2.1 COPYING-MPL-1.1 ChangeLog NEWS README
%dir %{_libdir}/cairo
%{_libdir}/cairo/*.so.*
%{_libdir}/*.so.*
%{_bindir}/cairo-trace
%files devel
%defattr(-, root, root)
%doc PORTING_GUIDE
%{_includedir}/cairo
%{_libdir}/cairo/*.so
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc
%if 0%{?suse_version} <= 1110
%{_libdir}/*.la
%endif
%{_datadir}/gtk-doc/html/*
%changelog