cairo.spec revision 10562
18861N/A#
18861N/A# Copyright (c) 2005 Sun Microsystems, Inc.
18861N/A# This file and all modifications and additions to the pristine
18861N/A# package are under the same license as the package itself.
18861N/A#
18861N/A# Owner: erwannc
18861N/A# bugdb: bugzilla.freedesktop.org
18861N/A#
18861N/AName: cairo
18861N/ALicense: LGPL
18861N/AGroup: System/Libraries
18861N/AVersion: 1.4.6
18861N/ARelease: 6
18861N/ADistribution: Java Desktop System
18861N/AVendor: Sun Microsystems, Inc.
18861N/ASummary: Vector graphics library
18861N/ASource: http://cairographics.org/releases/%{name}-%{version}.tar.gz
18861N/A#owner:erwannc date:2000-00-00 type:feature bugzilla:6997
18861N/APatch1: cairo-01-uninstalled-pc.diff
18861N/A#owner:erwannc date:2006-06-09 type:bug bugzilla:4945
18861N/APatch2: cairo-02-8bit-fix.diff
18861N/A#owner:erwannc date:2006-11-02 type:feature
18861N/APatch3: cairo-03-full-hinting.diff
18970N/A#owner:yippi date:2007-02-14 type:feature bugzilla:10151
18954N/APatch4: cairo-04-mediaLib.diff
18861N/AURL: http://www.cairographics.org
18861N/ABuildRoot: %{_tmppath}/%{name}-%{version}-build
18861N/ADocdir: %{_defaultdocdir}
18861N/AAutoreqprov: on
18861N/APrereq: /sbin/ldconfig
18861N/ARequires: freetype2
18861N/ABuildRequires:freetype2-devel
19142N/ARequires: fontconfig
18861N/ABuildRequires:fontconfig-devel
18861N/A
18861N/A%description
18861N/ACairo is a vector graphics library with cross-device output
18861N/Asupport. Currently supported output targets include the X Window
18861N/ASystem and in-memory image buffers. Cairo is designed to produce
18861N/Aidentical output on all output media while taking advantage of
18861N/Adisplay hardware acceleration when available (eg. through the
18861N/AX Render Extension).
18861N/A
18861N/ACairo provides a stateful user-level API with capabilities similar to
18861N/Athe PDF 1.4 imaging model. Cairo provides operations including
18861N/Astroking and filling Bezier cubic splines, transforming and
18861N/Acompositing translucent images, and antialiased text rendering.
18861N/A
18861N/A
19142N/A%package devel
18861N/ASummary: Vector graphics library
18861N/AGroup: Development/Libraries
18861N/ARequires: %{name} = %{version}
19126N/A
18861N/A%description devel
19126N/ACairo is a vector graphics library with cross-device output
18861N/Asupport. Currently supported output targets include the X Window
19142N/ASystem and in-memory image buffers. Cairo is designed to produce
18861N/Aidentical output on all output media while taking advantage of
18861N/Adisplay hardware acceleration when available (eg. through the
18861N/AX Render Extension).
18861N/A
18861N/ACairo provides a stateful user-level API with capabilities similar to
18861N/Athe PDF 1.4 imaging model. Cairo provides operations including
18861N/Astroking and filling Bezier cubic splines, transforming and
18861N/Acompositing translucent images, and antialiased text rendering.
18861N/A
18861N/A%prep
18861N/A%setup -q
18861N/A%patch1 -p1
18861N/A%patch2 -p1
18861N/A%patch3 -p1
18861N/A%patch4 -p1
18861N/A
18861N/A%build
18861N/A%ifos linux
18861N/Aif [ -x /usr/bin/getconf ]; then
18880N/A CPUS=`getconf _NPROCESSORS_ONLN`
18880N/Afi
18880N/A%else
18880N/A CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
18861N/A%endif
18861N/Aif test "x$CPUS" = "x" -o $CPUS = 0; then
18861N/A CPUS=1
18861N/Afi
18861N/A
18861N/Aexport PATH=`pwd`:$PATH
18861N/A
18861N/Aaclocal $ACLOCAL_FLAGS
18861N/Agtkdocize
18861N/Aautoheader
18861N/Aautomake -a -c -f
18861N/Aautoconf
18861N/Aexport CFLAGS="%optflags"
18861N/Aexport LDFLAGS="%_ldflags"
18861N/A./configure \
18861N/A --prefix=%{_prefix} \
18861N/A --libdir=%{_libdir} \
18861N/A --bindir=%{_bindir} \
18861N/A %{gtk_doc_option}
18861N/A
19142N/Amake -j $CPUS
19142N/A
19142N/A%install
18861N/Amake install DESTDIR=$RPM_BUILD_ROOT
18861N/Arm $RPM_BUILD_ROOT%{_libdir}/*.a
18861N/Arm $RPM_BUILD_ROOT%{_libdir}/*.la
18861N/A
18861N/A%clean
18861N/Arm -rf $RPM_BUILD_ROOT
18861N/A
18861N/A%post
18861N/A/sbin/ldconfig
18861N/A
18861N/A%postun
18861N/A/sbin/ldconfig
18861N/A
18861N/A%files
18861N/A%defattr(-,root,root)
18861N/A%{_libdir}/*.so.*
18861N/A
18861N/A%files devel
18861N/A%defattr(-,root,root)
18861N/A%doc AUTHORS ChangeLog COPYING NEWS README TODO
18861N/A%{_includedir}/*
18861N/A%{_libdir}/*.so
18861N/A%{_datadir}/gtk-doc/*
18861N/A%{_libdir}/pkgconfig/*
18861N/A
18861N/A%changelog
18861N/A* Wed May 2 2007 - brian.cameron@sun.com
18861N/A- Bump to 1.4.6.
18861N/A* Sun Apr 1 2007 - laca@sun.com
18861N/A- add missing aclocal calls
18861N/A* Thu Mar 15 2007 - laca@sun.com
18861N/A- convert to new style of building multiple ISAs as per docs/multi-ISA.txt
18861N/A* Wed Mar 15 2007 - dougs@truemail.co.th
18861N/A- Changed source URL from snapshots to releases for 1.4.0
18861N/A* Wed Mar 15 2007 - dougs@truemail.co.th
18861N/A- Removed adding ccdir to PATH
18861N/A* Wed Mar 14 2007 - damien.carbery@sun.com
18861N/A- Bump to 1.4.0. Remove upstream patch, 04-endian-search. Renumber remainder.
18861N/A* Fri Feb 16 2007 - brian.cameron@sun.com
18861N/A- Add mediaLib patch and autoheader call needed for this patch.
18861N/A* Thu Dec 14 2006 - damien.carbery@sun.com
18861N/A- Correct url for unstable builds: s/releases/snapshots/.
18861N/A* Tue Dec 12 2006 - damien.carbery@sun.com
18861N/A- Readd a patch to fix bug 9124 (called 04-endian-search this time).
18861N/A* Mon Dec 11 2006 - damien.carbery@sun.com
18861N/A- Bump to 1.3.6. Remove upstream patch 04-float-word.
18861N/A* Fri Dec 08 2006 - brian.cameron@sun.com
18861N/A- Add patch description for 8-bit patch since I noticed the bugzilla bug.
18861N/A* Fri Nov 24 2006 - damien.carbery@sun.com
18880N/A- Bump to 1.3.2. Add patch 04-float-word to fix configure issue. Fixes #9124.
18880N/A* Fri Nov 3 2006 - laca@sun.com
18880N/A- use %gtk_doc_option in configure so that it can be disabled using
18880N/A --without-gtk-doc
18861N/A* Mon Oct 16 2006 brian.cameron@sun.com
18861N/A- Enable gtk-docs. This required adding gtkdocize and automake
18861N/A before calling configure
18861N/A* Mon Aug 28 2006 harry.lu@sun.com
18861N/A- Bumped to 1.2.4.
18861N/A* Fri Aug 11 2006 damien.carbery@sun.com
18861N/A- Remove upstream patch, 02-buggyx. Renumber others.
18861N/A* Fri Aug 11 2006 damien.carbery@sun.com
18861N/A- Bumped to 1.2.2.
18861N/A* Thu Jul 20 2006 damien.carbery@sun.com
18861N/A- Bumped to 1.2.0.
18861N/A* Wed Jun 14 2006 yandong.yao@sun.com
18861N/A- Fix bug 6434250: cairo will crash when access 0x0 bitmap image glyph
18861N/A Add patch cairo-04-g11n-0x0glyph-fix.diff
18861N/A* Wed Oct 26 2005 damien.carbery@sun.com
18861N/A- Bumped to 1.0.2.
18861N/A* Tue Oct 25 2005 brian.cameron@sun.com
18861N/A- Add patch 2 to workaround the buggy Xserver shipped with
18861N/A Solaris 10. This fixes the problem that the background
18861N/A would not get repainted when you would move an icon, view
18861N/A the root menu, etc. The same workaround is used in the
18970N/A code to resolve this problem on other platforms using an
18970N/A Xorg server older than 2.8.2 (we use 2.8.0 on Solaris 10).
18954N/A* Tue Sep 13 2005 brian.cameron@sun.com
18954N/A- Bumped to 1.0.0
18954N/A* Fri Aug 26 2005 laca@sun.com
18880N/A- add 64-bit bits
18880N/A* Tue Aug 16 2005 laca@sun.com
18880N/A- add some missing dependencies
18861N/A* Mon Aug 15 2005 glynn.foster@sun.com
18861N/A- Bump to 0.9.2
18861N/A* Mon Feb 28 2004 brian.cameron@sun.com
18861N/A- Add patch 01 so that we can build libsvg and libsvg-cairo.
18861N/A* Tue Feb 22 2004 brian.cameron@sun.com
18861N/A- created
18861N/A