Kristian Høgsberg 52b186
%define freetype_version 2.1.3-3
Kristian Høgsberg 52b186
%define fontconfig_version 2.0
Kristian Høgsberg 52b186
Kristian Høgsberg 3e0d57
Summary:   A vector graphics library
Kristian Høgsberg 3e0d57
Name:      cairo
Matthias Clasen c4c799
Version:   1.2.0
Matthias Clasen 4380b8
Release:   2
Kristian Høgsberg 3e0d57
URL:       http://cairographics.org
Kristian Høgsberg 3e0d57
Source0:   %{name}-%{version}.tar.gz
Kristian Høgsberg 3e0d57
License:   LGPL/MPL
Kristian Høgsberg 3e0d57
Group:     System Environment/Libraries
Kristian Høgsberg 3e0d57
BuildRoot: %{_tmppath}/%{name}-%{version}-root
Kristian Høgsberg 3e0d57
Kristian Høgsberg 86d892
Obsoletes: libpixman <= 0.1.6
Kristian Høgsberg 86d892
Obsoletes: libpixman-devel <= 0.1.6
Kristian Høgsberg 3b1034
Obsoletes: libpixman-debuginfo <= 0.1.6
Kristian Høgsberg 063b13
Kristian Høgsberg 094e3d
Requires: /sbin/ldconfig
Kristian Høgsberg 3e0d57
BuildRequires: pkgconfig
Matthias Clasen 6d731b
BuildRequires: libXrender-devel
Ray Strode 41714f
BuildRequires: libX11-devel
Kristian Høgsberg 52b186
BuildRequires: libpng-devel
Karsten Hopp a58929
BuildRequires: libxml2-devel
Kristian Høgsberg 52b186
BuildRequires: freetype-devel >= %{freetype_version}
Kristian Høgsberg 52b186
BuildRequires: fontconfig-devel >= %{fontconfig_version}
Kristian Høgsberg 52b186
Kristian Høgsberg 3e0d57
%description 
Kristian Høgsberg 3e0d57
Cairo is a vector graphics library designed to provide high-quality
Kristian Høgsberg 3e0d57
display and print output. Currently supported output targets include
Kristian Høgsberg 3e0d57
the X Window System, OpenGL (via glitz), in-memory image buffers, and
Kristian Høgsberg 98fffe
image files (PDF and PostScript).  Cairo is designed to produce
Kristian Høgsberg 98fffe
identical output on all output media while taking advantage of display
Kristian Høgsberg 98fffe
hardware acceleration when available (eg. through the X Render
Kristian Høgsberg 98fffe
Extension or OpenGL).
Kristian Høgsberg 3e0d57
Kristian Høgsberg 3e0d57
%package devel
Kristian Høgsberg 98fffe
Summary: Cairo developmental libraries and header files
Kristian Høgsberg 3e0d57
Group: Development/Libraries
Kristian Høgsberg 3e0d57
Requires: %{name} = %{version}-%{release}
Matthias Clasen 6d731b
Requires: libXrender-devel
Kristian Høgsberg 52b186
Requires: libpng-devel
Kristian Høgsberg 52b186
Requires: freetype-devel >= %{freetype_version}
Kristian Høgsberg 52b186
Requires: fontconfig-devel >= %{fontconfig_version}
Kristian Høgsberg 3e0d57
Kristian Høgsberg 3e0d57
%description devel
Kristian Høgsberg 3e0d57
Developmental libraries and header files required for developing or
Kristian Høgsberg 3e0d57
compiling software which links to the cairo library, which is an open
Kristian Høgsberg 3e0d57
source vector graphics library.
Kristian Høgsberg 3e0d57
Kristian Høgsberg 3e0d57
%prep
Kristian Høgsberg 3e0d57
%setup -q
Kristian Høgsberg 3e0d57
Kristian Høgsberg 3e0d57
%build
Kristian Høgsberg 6cd4e2
%configure --enable-warnings --disable-glitz --disable-quartz \
Kristian Høgsberg a195f0
	--disable-atsui --disable-xcb --disable-win32 \
Kristian Høgsberg a195f0
	--disable-gtk-doc
Kristian Høgsberg 094e3d
make
Kristian Høgsberg 3e0d57
Kristian Høgsberg 3e0d57
%install
Kristian Høgsberg 3e0d57
rm -rf $RPM_BUILD_ROOT
Kristian Høgsberg b87c7f
Kristian Høgsberg 3e0d57
%makeinstall 
Kristian Høgsberg 752b75
rm $RPM_BUILD_ROOT%{_libdir}/*.la
Kristian Høgsberg 752b75
rm $RPM_BUILD_ROOT%{_libdir}/*.a
Kristian Høgsberg b87c7f
Kristian Høgsberg 3e0d57
%clean
Kristian Høgsberg 3e0d57
rm -rf $RPM_BUILD_ROOT
Kristian Høgsberg 3e0d57
Kristian Høgsberg 094e3d
%post -p /sbin/ldconfig 
Kristian Høgsberg 094e3d
%postun -p /sbin/ldconfig
Kristian Høgsberg 094e3d
Kristian Høgsberg 3e0d57
%files
Kristian Høgsberg 3e0d57
%defattr(-,root,root,-)
Kristian Høgsberg 3e0d57
%doc AUTHORS ChangeLog COPYING INSTALL NEWS README TODO
Kristian Høgsberg 3e0d57
Kristian Høgsberg 3e0d57
%{_libdir}/libcairo*.so.* 
Kristian Høgsberg 3e0d57
Kristian Høgsberg 3e0d57
%files devel
Kristian Høgsberg 3e0d57
%defattr(-,root,root,-)
Kristian Høgsberg 752b75
%{_includedir}/*
Kristian Høgsberg 752b75
%{_libdir}/libcairo*.so
Kristian Høgsberg 752b75
%{_libdir}/pkgconfig/*
Kristian Høgsberg 752b75
%{_datadir}/gtk-doc/*
Kristian Høgsberg 3e0d57
Kristian Høgsberg 3e0d57
%changelog
Matthias Clasen 4380b8
* Tue Jul 18 2006 Matthias Clasen <mclasen@redhat.com> - 1.2.0-2
Matthias Clasen 4380b8
- rebuild
Matthias Clasen 4380b8
Jesse Keating 90fd39
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 1.2.0-1.1
Jesse Keating 90fd39
- rebuild
Jesse Keating 90fd39
Matthias Clasen c4c799
* Mon Jul  3 2006 Matthias Clasen <mclasen@redhat.com> 1.2.0-1
Matthias Clasen c4c799
- Update to 1.2.0
Matthias Clasen c4c799
Carl Worth 1cfcea
* Fri Jun 16 2006 Carl Worth <cworth@redhat.com> 1.1.10-1
Carl Worth 1cfcea
- Update to 1.1.10 (fixes crash on 16-bit X servers like Xvnc)
Carl Worth 1cfcea
Matthias Clasen c2ae88
* Wed Jun 14 2006 Matthias Clasen <mclasen@redhat.com> 1.1.8-1
Matthias Clasen c2ae88
- Update to 1.1.8
Matthias Clasen c2ae88
Karsten Hopp a58929
* Tue May 16 2006 Karsten Hopp <karsten@redhat.de> 1.1.6-6
Karsten Hopp a58929
- buildrequire libxml2-devel
Karsten Hopp a58929
Carl Worth 42479b
* Fri May  5 2006 Carl Worth <cworth@redhat.com> - 1.1.6-2
Carl Worth 42479b
- Refuse to build pdf2svg to avoid depending on newer poppler
Carl Worth 42479b
Carl Worth b454d5
* Fri May  5 2006 Carl Worth <cworth@redhat.com> - 1.1.6-1
Carl Worth b454d5
- Update to new upstream 1.1.6
Carl Worth b454d5
Carl Worth a365d6
* Wed May  3 2006 Carl Worth <cworth@redhat.com> - 1.1.4-2
Carl Worth a365d6
- Revert upstream commit that introduced a dependency on a newer
Carl Worth a365d6
  poppler version for the PDF tests.
Carl Worth a365d6
Carl Worth afafd2
* Wed May  3 2006 Carl Worth <cworth@redhat.com> - 1.1.4-1
Carl Worth afafd2
- Update to new upstream 1.1.4
Carl Worth afafd2
- Drop both embedded-bitmaps and XRenderAddGlyphs patches as both now
Carl Worth afafd2
  have upstream versions
Carl Worth afafd2
Carl Worth c317f8
* Fri Apr 28 2006 Carl Worth <cworth@redhat.com> - 1.1.2-2
Carl Worth c317f8
- Add suggested patch for XRenderAddGlyphs crash of bug #4705
Carl Worth c317f8
  https://bugs.freedesktop.org/show_bug.cgi?id=4705
Carl Worth c317f8
Carl Worth bd89b9
* Tue Apr 25 2006 Carl Worth <cworth@redhat.com> - 1.1.2-1
Carl Worth bd89b9
- Update to new upstream 1.1.2
Carl Worth bd89b9
- Port forward the embedded bitmaps patch (now committed upstream to
Carl Worth bd89b9
  1.1.3)
Carl Worth bd89b9
- Drop build-fix and chunk-glyphs patches which now come from upstream
Carl Worth bd89b9
Matthias Clasen 396979
* Wed Mar 15 2006 Matthias Clasen <mclasen@redhat.com> - 1.0.4-1
Matthias Clasen 396979
- Update to 1.0.4
Matthias Clasen 8bd90c
- Drop upstreamed patches
Matthias Clasen 396979
Carl Worth f62d78
* Fri Mar  3 2006 Carl Worth <cworth@redhat.com> - 1.0.2-5
Carl Worth f62d78
- add patch to chunk Xlib glyph compositing (bug 182416 and
Carl Worth f62d78
  CVE-20060528)
Carl Worth f62d78
Jesse Keating e3575a
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 1.0.2-4.2
Jesse Keating e3575a
- bump again for double-long bug on ppc(64)
Jesse Keating e3575a
Jesse Keating 4f1cb4
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 1.0.2-4.1
Jesse Keating 4f1cb4
- rebuilt for new gcc4.1 snapshot and glibc changes
Jesse Keating 4f1cb4
Ray Strode 41714f
* Tue Jan 31 2006 Ray Strode <rstrode@redhat.com> 1.0.2-4
Ray Strode 41714f
- add patch from Tim Mayberry to support embbedded bitmap
Ray Strode 41714f
  fonts (bug 176910)
Ray Strode 41714f
Jesse Keating b4f803
* Tue Jan  3 2006 Jesse Keating <jkeating@redhat.com> 1.0.2-3.2
Jesse Keating b4f803
- rebuilt again
Jesse Keating b4f803
Jesse Keating 5623fb
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
Jesse Keating 5623fb
- rebuilt
Jesse Keating 5623fb
Matthias Clasen 6d731b
* Mon Oct 31 2005 Matthias Clasen <mclasen@redhat.com> 1.0.2-3
Matthias Clasen 6d731b
- Require libXrender-devel instead of xorg-X11-devel
Matthias Clasen 6d731b
Kristian Høgsberg 592f4d
* Tue Oct 11 2005 Kristian Høgsberg <krh@redhat.com> 1.0.2-2
Kristian Høgsberg 592f4d
- Rebuild against freetype-2.10 to pick up FT_GlyphSlot_Embolden.
Kristian Høgsberg 592f4d
Kristian Høgsberg e5a112
* Thu Oct  6 2005 Kristian Høgsberg <krh@redhat.com> - 1.0.2-1
Kristian Høgsberg e5a112
- Update to cairo-1.0.2.
Kristian Høgsberg e5a112
Kristian Høgsberg c8d8ce
* Wed Aug 24 2005 Kristian Høgsberg <krh@redhat.com> - 1.0.0-1
Kristian Høgsberg c8d8ce
- Update to cairo-1.0.0.
Kristian Høgsberg c8d8ce
- Drop cairo-0.9.2-cache-eviction-fix.patch and
Kristian Høgsberg c8d8ce
  cairo-0.9.2-dont-hash-null-string.patch.
Kristian Høgsberg c8d8ce
Kristian Høgsberg b6c9ce
* Fri Aug 19 2005 Kristian Høgsberg <krh@redhat.com> 0.9.2-3
Kristian Høgsberg b6c9ce
- Add cairo-0.9.2-dont-hash-null-string.patch to avoid crash when
Kristian Høgsberg b6c9ce
  creating a cairo font from a FT_Face.
Kristian Høgsberg b6c9ce
Kristian Høgsberg c87ea6
* Tue Aug 16 2005 Kristian Høgsberg <krh@redhat.com> - 0.9.2-2
Kristian Høgsberg c87ea6
- Rebuild against new freetype to get rid of --rpath in cairo.pc.
Kristian Høgsberg c87ea6
Kristian Høgsberg 3b1034
* Mon Aug 15 2005 Kristian Høgsberg <krh@redhat.com> 0.9.2-1
Kristian Høgsberg 3b1034
- Also obsolete libpixman-debuginfo.
Kristian Høgsberg 3b1034
- Add cairo-0.9.2-cache-eviction-fix.patch to fix ft font cache eviction.
Kristian Høgsberg 3b1034
Kristian Høgsberg 86d892
* Sun Aug 14 2005 Kristian Høgsberg <krh@redhat.com> 0.9.2-1
Kristian Høgsberg 86d892
- Update to cairo 0.9.2.  Add Obsoletes: for libpixman <= 0.1.6.
Kristian Høgsberg 86d892
- Drop cairo-0.6.0-font-options-to-scaled-font.patch.
Kristian Høgsberg 86d892
Kristian Høgsberg 063b13
* Tue Aug  2 2005 Kristian Høgsberg <krh@redhat.com> - 0.6.0-2
Kristian Høgsberg 063b13
- Add cairo-0.6.0-font-options-to-scaled-font.patch to make sure font
Kristian Høgsberg 063b13
  cache eviction works correctly (#164664).
Kristian Høgsberg 063b13
Owen Taylor 6a298c
* Thu Jul 28 2005 Owen Taylor <otaylor@devserv.devel.redhat.com> 0.6.0-1
Owen Taylor 6a298c
- Update to cairo-0.6.0
Owen Taylor 6a298c
Kristian Høgsberg f8e613
* Mon Jul 18 2005 Kristian Høgsberg <krh@redhat.com> 0.5.2-1
Kristian Høgsberg f8e613
- Update to cairo-0.5.2 and drop bitmap font patch.
Kristian Høgsberg f8e613
Kristian Høgsberg e7c9b3
* Wed Jul  6 2005 Kristian Høgsberg <krh@redhat.com> - 0.5.1-5
Kristian Høgsberg e7c9b3
- Fix typo in use of libpixman_version macro (Thanks to Michael
Kristian Høgsberg e7c9b3
  Schwendt, #162550).
Kristian Høgsberg e7c9b3
Kristian Høgsberg 52b186
* Sun Jun 26 2005 Kristian Høgsberg <krh@redhat.com> - 0.5.1-4
Kristian Høgsberg 52b186
- Add more missing devel package requires (libpng-devel and
Kristian Høgsberg 52b186
  xorg-x11-devel) (#161688)
Kristian Høgsberg 52b186
- Add Owens patch (cairo-0.5.1-bitmap-fonts.patch) to make bitmap
Kristian Høgsberg 52b186
  fonts work with cairo (#161653).
Kristian Høgsberg 52b186
Kristian Høgsberg e7c9b3
* Wed Jun 22 2005 Kristian Høgsberg <krh@redhat.com> - 0.5.1-3
Kristian Høgsberg c8c0a3
- Add requirement on libpixman-devel for devel package.
Kristian Høgsberg c8c0a3
Kristian Høgsberg 752b75
* Tue Jun 21 2005 Kristian Høgsberg <krh@redhat.com> - 0.5.1-2
Kristian Høgsberg 752b75
- Package gtk docs as part of devel package.
Kristian Høgsberg 752b75
- Nuke static library.
Kristian Høgsberg 752b75
- Update devel files so /usr/include/cairo is owned by devel package.
Kristian Høgsberg 752b75
Kristian Høgsberg 752b75
* Mon Jun 20 2005 Kristian Høgsberg <krh@redhat.com> - 0.5.1-1
Kristian Høgsberg 973014
- Update to cairo 0.5.1.
Kristian Høgsberg b87c7f
- Remove gtk-doc files, since --disable-gtk-doc doesn't work.
Kristian Høgsberg a195f0
- Disable gtk-doc and add freetype and fontconfig BuildRequires.
Kristian Høgsberg 973014
Kristian Høgsberg 752b75
* Tue Jun 14 2005 Kristian Høgsberg <krh@redhat.com> - 0.5.0-2
Kristian Høgsberg 667fa7
- Add libpixman-devel BuildRequires.
Kristian Høgsberg 667fa7
- Explicitly disable win32 backend.
Kristian Høgsberg 667fa7
Kristian Høgsberg 98fffe
* Tue May 17 2005 Kristian Høgsberg <krh@redhat.com> - 0.5.0-1
Kristian Høgsberg 98fffe
- Update to 0.5.0.
Kristian Høgsberg 98fffe
Kristian Høgsberg 6cd4e2
* Sun Jan 23 2005 Kristian Høgsberg <krh@redhat.com> - 0.3.0-1
Kristian Høgsberg 6cd4e2
- Update to 0.3.0, explicitly disable more backends.
Kristian Høgsberg 6cd4e2
Kristian Høgsberg 094e3d
* Tue Nov 16 2004 Kristian Høgsberg <krh@redhat.com> - 0.2.0-1
Kristian Høgsberg 094e3d
- Incorporate changes suggested by katzj: Require: ldconfig and run it
Kristian Høgsberg 094e3d
  in %post and %postun, don't pass CFLAGS to make.
Kristian Høgsberg 094e3d
Kristian Høgsberg f40fc3
* Mon Aug  9 2004 Kristian Høgsberg <krh@redhat.com> - 0.2.0-1
Kristian Høgsberg f40fc3
- Update license, explicitly disable glitz.
Kristian Høgsberg 3e0d57
- Create package.