cairo.spec revision 13857
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk#
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk# Copyright (c) 2008 Sun Microsystems, Inc.
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk# This file and all modifications and additions to the pristine
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk# package are under the same license as the package itself.
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk#
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk# Owner: erwannc
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk# bugdb: bugzilla.freedesktop.org
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk#
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenkName: cairo
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenkLicense: LGPL
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenkGroup: System/Libraries
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenkVersion: 1.7.4
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenkRelease: 1
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenkDistribution: Java Desktop System
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenkVendor: Sun Microsystems, Inc.
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenkSummary: Vector graphics library
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenkSource: http://cairographics.org/snapshots/%{name}-%{version}.tar.gz
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk#owner:erwannc date:2000-00-00 type:feature bugzilla:6997
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenkPatch1: cairo-01-uninstalled-pc.diff
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk#owner:erwannc date:2006-11-02 type:feature
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenkPatch2: cairo-02-full-hinting.diff
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk#owner:dkenny date:2008-04-18 type:bug bugster:????
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenkPatch3: cairo-03-no-pixman-dep.diff
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenkURL: http://www.cairographics.org
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenkBuildRoot: %{_tmppath}/%{name}-%{version}-build
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenkDocdir: %{_defaultdocdir}
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenkAutoreqprov: on
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenkPrereq: /sbin/ldconfig
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenkRequires: freetype2
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenkBuildRequires:freetype2-devel
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenkRequires: fontconfig
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenkBuildRequires:fontconfig-devel
dff2cc5646d4437ab9e0cb1dcb59da65462a5938jeff.schenk
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk%description
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenkCairo is a vector graphics library with cross-device output
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenksupport. Currently supported output targets include the X Window
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenkSystem and in-memory image buffers. Cairo is designed to produce
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenkidentical output on all output media while taking advantage of
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenkdisplay hardware acceleration when available (eg. through the
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenkX Render Extension).
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk
dff2cc5646d4437ab9e0cb1dcb59da65462a5938jeff.schenkCairo provides a stateful user-level API with capabilities similar to
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenkthe PDF 1.4 imaging model. Cairo provides operations including
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenkstroking and filling Bezier cubic splines, transforming and
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenkcompositing translucent images, and antialiased text rendering.
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk%package devel
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenkSummary: Vector graphics library
dff2cc5646d4437ab9e0cb1dcb59da65462a5938jeff.schenkGroup: Development/Libraries
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenkRequires: %{name} = %{version}
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk%description devel
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenkCairo is a vector graphics library with cross-device output
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenksupport. Currently supported output targets include the X Window
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenkSystem and in-memory image buffers. Cairo is designed to produce
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenkidentical output on all output media while taking advantage of
dff2cc5646d4437ab9e0cb1dcb59da65462a5938jeff.schenkdisplay hardware acceleration when available (eg. through the
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenkX Render Extension).
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenkCairo provides a stateful user-level API with capabilities similar to
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenkthe PDF 1.4 imaging model. Cairo provides operations including
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenkstroking and filling Bezier cubic splines, transforming and
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenkcompositing translucent images, and antialiased text rendering.
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk%prep
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk%setup -q
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk%patch1 -p1
dff2cc5646d4437ab9e0cb1dcb59da65462a5938jeff.schenk%patch2 -p1
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk%patch3 -p1
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk%build
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk%ifos linux
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenkif [ -x /usr/bin/getconf ]; then
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk CPUS=`getconf _NPROCESSORS_ONLN`
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenkfi
dff2cc5646d4437ab9e0cb1dcb59da65462a5938jeff.schenk%else
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk%endif
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenkif test "x$CPUS" = "x" -o $CPUS = 0; then
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk CPUS=1
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenkfi
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenkexport PATH=`pwd`:$PATH
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenkaclocal $ACLOCAL_FLAGS
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenkgtkdocize
dff2cc5646d4437ab9e0cb1dcb59da65462a5938jeff.schenkautoheader
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenkautomake -a -c -f
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenkautoconf
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenkexport CFLAGS="%optflags -D_POSIX_PTHREAD_SEMANTICS"
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenkexport LDFLAGS="%_ldflags"
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk./configure \
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk --prefix=%{_prefix} \
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk --libdir=%{_libdir} \
dff2cc5646d4437ab9e0cb1dcb59da65462a5938jeff.schenk --bindir=%{_bindir} \
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk %{gtk_doc_option}
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenkmake -j $CPUS
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk%install
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenkmake install DESTDIR=$RPM_BUILD_ROOT
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenkrm $RPM_BUILD_ROOT%{_libdir}/*.a
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenkrm $RPM_BUILD_ROOT%{_libdir}/*.la
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk%clean
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenkrm -rf $RPM_BUILD_ROOT
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk%post
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk/sbin/ldconfig
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk%postun
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk/sbin/ldconfig
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk
%files
%defattr(-,root,root)
%{_libdir}/*.so.*
%files devel
%defattr(-,root,root)
%doc AUTHORS ChangeLog COPYING NEWS README TODO
%{_includedir}/*
%{_libdir}/*.so
%{_datadir}/gtk-doc/*
%{_libdir}/pkgconfig/*
%changelog
* Wed Aug 13 2008 - damien.carbery@sun.com
- Reenable patch2 (02-full-hinting) because the build machine is on snv_92 or
greater.
* Tue Aug 12 2008 - damien.carbery@sun.com
- Bump to 1.7.4.
* Fri Jul 11 2008 - damien.carbery@sun.com
- Disable 02-full-hinting patch as build machines use snv_91. freetype fix is
in snv_92.
* Thu Jul 10 2008 - erwann.chenede@sun.com
- re-enabled cairo-02-full-hinting.diff patch as freetype is fixed now.
* Thu Jun 12 2008 - damien.carbery@sun.com
- Comment out patch2 because of change to Freetype in snv_91 breaks build.
* Sun Apr 20 2008 - damien.carbery@sun.com
- Add -D_POSIX_PTHREAD_SEMANTICS to CFLAGS to fix sparc build (ctime_r error).
* Fri Apr 18 2008 - darren.kenny@sun.com
- Temporarily remove depenency on pixman in pkg-config file since it's
directly linked into libcairo until pixman is delivered by X.
* Tue Jan 22 2008 - damien.carbery@sun.com
- Revert to 1.4.14 as 1.5.6 requires pixman and this will be delivered by X
Server group in the future. Remove obsolete patch 05-ctime_r: only an issue in
1.5.6.
* Thu Jan 17 2008 - patrick.ale@gmail.com
- Someone bumped up to snapshot 1.5.6.
- Changed URL to fetch from snapshot dir rather than releases
* Tue Jan 15 2008 - damien.carbery@sun.com
- Bump to 1.4.14.
* Tue Nov 27 2007 - brian.cameron@sun.com
- Bump to 1.4.12
* Fri Aug 3 2007 - chris.wang@sun.com
- merge patch cairo-02-8bit-fix.diff and cairo-05-null-struct-pointer.diff, and
remove cairo-05-null-struct-pointer.diff from repository. revised patch
cairo-02-8bit-fix.diff, added code to support 8bit Truecolor. This fixed bug
6555333, xscreensaver-demo crash when display set to 8 bit.
* Mon Jul 23 2007 - chris.wang@sun.com
- add patch cairo-05-null-struct-pointer.diff which fixed the bug nautilus
crash when D&D files
* Tue Jul 03 2007 - damien.carbery@sun.com
- Bump to 1.4.10.
* Wed May 9 2007 - elaine.xiong@sun.com
- Removed obsolete buggy_repeat path for Xsun.
* Wed May 2 2007 - brian.cameron@sun.com
- Bump to 1.4.6.
* Sun Apr 1 2007 - laca@sun.com
- add missing aclocal calls
* Thu Mar 15 2007 - laca@sun.com
- convert to new style of building multiple ISAs as per docs/multi-ISA.txt
* Wed Mar 15 2007 - dougs@truemail.co.th
- Changed source URL from snapshots to releases for 1.4.0
* Wed Mar 15 2007 - dougs@truemail.co.th
- Removed adding ccdir to PATH
* Wed Mar 14 2007 - damien.carbery@sun.com
- Bump to 1.4.0. Remove upstream patch, 04-endian-search. Renumber remainder.
* Fri Feb 16 2007 - brian.cameron@sun.com
- Add mediaLib patch and autoheader call needed for this patch.
* Thu Dec 14 2006 - damien.carbery@sun.com
- Correct url for unstable builds: s/releases/snapshots/.
* Tue Dec 12 2006 - damien.carbery@sun.com
- Readd a patch to fix bug 9124 (called 04-endian-search this time).
* Mon Dec 11 2006 - damien.carbery@sun.com
- Bump to 1.3.6. Remove upstream patch 04-float-word.
* Fri Dec 08 2006 - brian.cameron@sun.com
- Add patch description for 8-bit patch since I noticed the bugzilla bug.
* Fri Nov 24 2006 - damien.carbery@sun.com
- Bump to 1.3.2. Add patch 04-float-word to fix configure issue. Fixes #9124.
* Fri Nov 3 2006 - laca@sun.com
- use %gtk_doc_option in configure so that it can be disabled using
--without-gtk-doc
* Mon Oct 16 2006 brian.cameron@sun.com
- Enable gtk-docs. This required adding gtkdocize and automake
before calling configure
* Mon Aug 28 2006 harry.lu@sun.com
- Bumped to 1.2.4.
* Fri Aug 11 2006 damien.carbery@sun.com
- Remove upstream patch, 02-buggyx. Renumber others.
* Fri Aug 11 2006 damien.carbery@sun.com
- Bumped to 1.2.2.
* Thu Jul 20 2006 damien.carbery@sun.com
- Bumped to 1.2.0.
* Wed Jun 14 2006 yandong.yao@sun.com
- Fix bug 6434250: cairo will crash when access 0x0 bitmap image glyph
Add patch cairo-04-g11n-0x0glyph-fix.diff
* Wed Oct 26 2005 damien.carbery@sun.com
- Bumped to 1.0.2.
* Tue Oct 25 2005 brian.cameron@sun.com
- Add patch 2 to workaround the buggy Xserver shipped with
Solaris 10. This fixes the problem that the background
would not get repainted when you would move an icon, view
the root menu, etc. The same workaround is used in the
code to resolve this problem on other platforms using an
Xorg server older than 2.8.2 (we use 2.8.0 on Solaris 10).
* Tue Sep 13 2005 brian.cameron@sun.com
- Bumped to 1.0.0
* Fri Aug 26 2005 laca@sun.com
- add 64-bit bits
* Tue Aug 16 2005 laca@sun.com
- add some missing dependencies
* Mon Aug 15 2005 glynn.foster@sun.com
- Bump to 0.9.2
* Mon Feb 28 2004 brian.cameron@sun.com
- Add patch 01 so that we can build libsvg and libsvg-cairo.
* Tue Feb 22 2004 brian.cameron@sun.com
- created