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