From a065cb6ef403798028017390ceda00f775351599 Mon Sep 17 00:00:00 2001 From: "Ankur Sinha (Ankur Sinha Gmail)" Date: Tue, 19 Mar 2013 23:34:11 +1100 Subject: [PATCH] * Add patch to prevent over linking rhbz # 818587 Thanks Rex Dieter for the patch! --- libgexiv2-pkgconf.patch | 13 +++++++++++++ libgexiv2.spec | 7 ++++++- 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 libgexiv2-pkgconf.patch diff --git a/libgexiv2-pkgconf.patch b/libgexiv2-pkgconf.patch new file mode 100644 index 0000000..e948c05 --- /dev/null +++ b/libgexiv2-pkgconf.patch @@ -0,0 +1,13 @@ +diff -up libgexiv2-0.4.1/gexiv2.m4.pkgconfig libgexiv2-0.4.1/gexiv2.m4 +--- libgexiv2-0.4.1/gexiv2.m4.pkgconfig 2012-03-28 17:41:52.000000000 -0500 ++++ libgexiv2-0.4.1/gexiv2.m4 2012-05-03 08:07:39.951487246 -0500 +@@ -5,7 +5,7 @@ includedir=${prefix}/include + + Name: GExiv2 + Description: GObject bindings for exiv2 +-Requires: exiv2 glib-2.0 gobject-2.0 ++Requires.private: exiv2 glib-2.0 gobject-2.0 + Version: _VERSION_ + Libs: -L${libdir} -lgexiv2 + Cflags: -I${includedir}/gexiv2 -I${libdir}/gexiv2/include + diff --git a/libgexiv2.spec b/libgexiv2.spec index 8a78360..25d2136 100644 --- a/libgexiv2.spec +++ b/libgexiv2.spec @@ -1,12 +1,13 @@ Name: libgexiv2 Version: 0.5.0 -Release: 3%{?dist} +Release: 4%{?dist} Summary: Gexiv2 is a GObject-based wrapper around the Exiv2 library Group: System Environment/Libraries License: GPLv2 URL: http://trac.yorba.org/wiki/gexiv2 Source0: http://yorba.org/download/gexiv2/0.5/%{name}-%{version}.tar.xz +Patch0: %{name}-pkgconf.patch BuildRequires: exiv2-devel gobject-introspection-devel libtool @@ -29,6 +30,7 @@ developing applications that use %{name}. %prep %setup -q +%patch0 -p1 %build CFLAGS="%{optflags}"; export CFLAGS @@ -66,6 +68,9 @@ find $RPM_BUILD_ROOT -name '*.a' -exec rm -f {} ';' %changelog +* Tue Mar 19 2013 Ankur Sinha 0.5.0-4 +- Add patch to remove overlinking rhbz#818587 + * Mon Mar 11 2013 Ankur Sinha 0.5.0-3 - Enable introspection for py support - add new files for introspection