diff --git a/libfm-0.1.11-wrong-linkage.patch b/libfm-0.1.11-wrong-linkage.patch new file mode 100644 index 0000000..cfc7fcf --- /dev/null +++ b/libfm-0.1.11-wrong-linkage.patch @@ -0,0 +1,10 @@ +--- libfm-0.1.10/src/Makefile.am 2010-04-19 02:57:07.000000000 +0900 ++++ libfm-0.1.11/src/Makefile.am 2010-04-25 22:00:36.000000000 +0900 +@@ -211,7 +211,6 @@ + $(GTK_LIBS) \ + $(MENU_CACHE_LIBS) \ + $(INTLLIBS) \ +- libfm.la \ + libfm-gtk.la \ + $(NULL) + diff --git a/libfm.spec b/libfm.spec index 9733348..97ca8bd 100644 --- a/libfm.spec +++ b/libfm.spec @@ -10,6 +10,8 @@ License: GPLv2+ URL: http://pcmanfm.sourceforge.net/ Source0: http://downloads.sourceforge.net/pcmanfm/%{name}-%{version}.tar.gz Patch0: libfm-0.1.9-pref-apps.patch +# The following patch must be reversed +Patch1: libfm-0.1.11-wrong-linkage.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: gtk2-devel >= 2.16.0 @@ -17,6 +19,9 @@ BuildRequires: menu-cache-devel >= 0.3.2 BuildRequires: gettext BuildRequires: intltool BuildRequires: desktop-file-utils +# For Patch1 +BuildRequires: automake +BuildRequires: libtool Requires(post): /sbin/ldconfig Requires(postun): /sbin/ldconfig @@ -73,6 +78,10 @@ developing applications that use %{name}-gtk. %patch0 -p1 -b .orig +# Patch1 needs autotools +%patch1 -p1 -b .link -R +autoreconf -fi + %build %configure --disable-static # remove rpaths