From a70e09c9521e21ffa84dc8b1f24b3d639d8cb5d5 Mon Sep 17 00:00:00 2001 From: Rex Dieter Date: Sun, 20 May 2012 14:40:40 -0500 Subject: [PATCH] refresh rpath patch --- phonon-4.4.4-no_rpath.patch | 14 -------------- phonon-4.6.0-rpath.patch | 15 +++++++++++++++ phonon.spec | 11 +++++++---- 3 files changed, 22 insertions(+), 18 deletions(-) delete mode 100644 phonon-4.4.4-no_rpath.patch create mode 100644 phonon-4.6.0-rpath.patch diff --git a/phonon-4.4.4-no_rpath.patch b/phonon-4.4.4-no_rpath.patch deleted file mode 100644 index 36110f7..0000000 --- a/phonon-4.4.4-no_rpath.patch +++ /dev/null @@ -1,14 +0,0 @@ -diff -up phonon-4.4.4/cmake/FindPhononInternal.cmake.no_rpath phonon-4.4.4/cmake/FindPhononInternal.cmake ---- phonon-4.4.4/cmake/FindPhononInternal.cmake.no_rpath 2011-01-19 13:20:00.000000000 -0600 -+++ phonon-4.4.4/cmake/FindPhononInternal.cmake 2011-01-21 09:02:08.242131811 -0600 -@@ -232,8 +232,8 @@ endif(APPLE) - # These two options below make it set the RPATH of the installed targets to all - # RPATH directories outside the current CMAKE_BINARY_DIR and also the library - # install directory. Alex --set(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE) --set(CMAKE_INSTALL_RPATH "${LIB_INSTALL_DIR}") -+#set(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE) -+#set(CMAKE_INSTALL_RPATH "${LIB_INSTALL_DIR}") - - - # Uninstall Target diff --git a/phonon-4.6.0-rpath.patch b/phonon-4.6.0-rpath.patch new file mode 100644 index 0000000..85cc17e --- /dev/null +++ b/phonon-4.6.0-rpath.patch @@ -0,0 +1,15 @@ +diff -up phonon-4.6.0/cmake/FindPhononInternal.cmake.rpath phonon-4.6.0/cmake/FindPhononInternal.cmake +--- phonon-4.6.0/cmake/FindPhononInternal.cmake.rpath 2011-12-19 14:30:45.000000000 -0600 ++++ phonon-4.6.0/cmake/FindPhononInternal.cmake 2012-05-20 14:38:23.366555537 -0500 +@@ -123,7 +123,11 @@ endif(APPLE) + # RPATH directories outside the current CMAKE_BINARY_DIR and also the library + # install directory. Alex + set(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE) ++list(FIND CMAKE_PLATFORM_IMPLICIT_LINK_DIRECTORIES "${LIB_INSTALL_DIR}" _isSystemPlatformLibDir) ++list(FIND CMAKE_CXX_IMPLICIT_LINK_DIRECTORIES "${LIB_INSTALL_DIR}" _isSystemCxxLibDir) ++if("${_isSystemPlatformLibDir}" STREQUAL "-1" AND "${_isSystemCxxLibDir}" STREQUAL "-1") + set(CMAKE_INSTALL_RPATH "${LIB_INSTALL_DIR}") ++endif("${_isSystemPlatformLibDir}" STREQUAL "-1" AND "${_isSystemCxxLibDir}" STREQUAL "-1") + + + # Uninstall Target diff --git a/phonon.spec b/phonon.spec index 7cf8066..29b27f6 100644 --- a/phonon.spec +++ b/phonon.spec @@ -9,7 +9,7 @@ Summary: Multimedia framework api Name: phonon Version: 4.6.0 -Release: 3%{?dist} +Release: 4%{?dist} Group: System Environment/Libraries License: LGPLv2+ URL: http://phonon.kde.org/ @@ -20,13 +20,13 @@ Source0: ftp://ftp.kde.org/pub/kde/stable/phonon/%{version}/src/phonon-%{version %endif BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) -Patch1: phonon-4.4.4-no_rpath.patch - ## upstreamable patches # phonon_backend ... could not be loaded # http://bugzilla.redhat.com/760039 Patch50: phonon-4.5.57-plugindir.patch Patch51: phonon-4.6.0-syntax.patch +# https://git.reviewboard.kde.org/r/103423 +Patch52: phonon-4.6.0-rpath.patch ## Upstream patches @@ -93,9 +93,9 @@ Includes experimental and unstable apis. %prep %setup -q -%patch1 -p1 -b .no_rpath %patch50 -p1 -b .plugindir %patch51 -p1 -b .syntax +%patch52 -p1 -b .rpath %build mkdir -p %{_target_platform} @@ -181,6 +181,9 @@ rm -rf %{buildroot} %changelog +* Sun May 20 2012 Rex Dieter 4.6.0-4 +- refresh rpath patch + * Wed Mar 28 2012 Than Ngo - 4.6.0-3 - fix syntax in *.pri file