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