From 8359010bba4a190ee101870a00e560b6d6867b52 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Thu, 1 Jul 2010 01:36:40 +0000 Subject: [PATCH] fix .pc files --- librsvg2.spec | 9 ++++++++- rsvg-pixbuf.patch | 12 ++++++++++++ 2 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 rsvg-pixbuf.patch diff --git a/librsvg2.spec b/librsvg2.spec index cdbe7a0..9b76f9d 100644 --- a/librsvg2.spec +++ b/librsvg2.spec @@ -3,12 +3,15 @@ Name: librsvg2 Summary: An SVG library based on cairo Version: 2.31.0 -Release: 0.1.%{alphatag}%{?dist} +Release: 0.2.%{alphatag}%{?dist} License: LGPLv2+ Group: System Environment/Libraries Source: http://download.gnome.org/sources/librsvg/2.31/librsvg-%{version}-%{alphatag}.tar.bz2 +# upstream fix +Patch0: rsvg-pixbuf.patch + Requires(post): gdk-pixbuf2 Requires(postun): gdk-pixbuf2 BuildRequires: libpng-devel @@ -48,6 +51,7 @@ files to allow you to develop with librsvg. %prep %setup -q -n librsvg-%{version} +%patch0 -p1 -b .pixbuf %build GDK_PIXBUF_QUERYLOADERS=/usr/bin/gdk-pixbuf-query-loaders-%{__isa_bits} @@ -98,6 +102,9 @@ gdk-pixbuf-query-loaders-%{__isa_bits} --update-cache || : %changelog +* Wed Jun 30 2010 Matthias Clasen - 2.31.0-0.2.20100628git +- Fix the .pc file to require gdk-pixbuf-2.0 + * Mon Jun 28 2010 Matthias Clasen - 2.31.0-0.1.20100628git - Update to a git snapshot that builds against standalone gdk-pixbuf - Drop librsvg3 package diff --git a/rsvg-pixbuf.patch b/rsvg-pixbuf.patch new file mode 100644 index 0000000..ad60095 --- /dev/null +++ b/rsvg-pixbuf.patch @@ -0,0 +1,12 @@ +diff -up librsvg-2.31.0/librsvg.pc.in.pixbuf librsvg-2.31.0/librsvg.pc.in +--- librsvg-2.31.0/librsvg.pc.in.pixbuf 2010-06-30 21:25:28.641806068 -0400 ++++ librsvg-2.31.0/librsvg.pc.in 2010-06-30 21:25:53.882811376 -0400 +@@ -9,7 +9,7 @@ css_supported=@CSS_SUPPORTED@ + Name: librsvg + Description: library that renders svg files + Version: @VERSION@ +-Requires: glib-2.0 gio-2.0 gdk-pixbuf-@GTK_API_VERSION@ cairo ++Requires: glib-2.0 gio-2.0 gdk-pixbuf-2.0 cairo + Requires.private: + Libs: -L${libdir} -lrsvg-@RSVG_API_MAJOR_VERSION@ -lm + Cflags: -I${includedir}/librsvg-@RSVG_API_VERSION@