refresh rpath patch

epel9
Rex Dieter 13 years ago
parent aa842645a9
commit a70e09c952

@ -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

@ -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

@ -9,7 +9,7 @@
Summary: Multimedia framework api Summary: Multimedia framework api
Name: phonon Name: phonon
Version: 4.6.0 Version: 4.6.0
Release: 3%{?dist} Release: 4%{?dist}
Group: System Environment/Libraries Group: System Environment/Libraries
License: LGPLv2+ License: LGPLv2+
URL: http://phonon.kde.org/ URL: http://phonon.kde.org/
@ -20,13 +20,13 @@ Source0: ftp://ftp.kde.org/pub/kde/stable/phonon/%{version}/src/phonon-%{version
%endif %endif
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Patch1: phonon-4.4.4-no_rpath.patch
## upstreamable patches ## upstreamable patches
# phonon_backend ... could not be loaded # phonon_backend ... could not be loaded
# http://bugzilla.redhat.com/760039 # http://bugzilla.redhat.com/760039
Patch50: phonon-4.5.57-plugindir.patch Patch50: phonon-4.5.57-plugindir.patch
Patch51: phonon-4.6.0-syntax.patch Patch51: phonon-4.6.0-syntax.patch
# https://git.reviewboard.kde.org/r/103423
Patch52: phonon-4.6.0-rpath.patch
## Upstream patches ## Upstream patches
@ -93,9 +93,9 @@ Includes experimental and unstable apis.
%prep %prep
%setup -q %setup -q
%patch1 -p1 -b .no_rpath
%patch50 -p1 -b .plugindir %patch50 -p1 -b .plugindir
%patch51 -p1 -b .syntax %patch51 -p1 -b .syntax
%patch52 -p1 -b .rpath
%build %build
mkdir -p %{_target_platform} mkdir -p %{_target_platform}
@ -181,6 +181,9 @@ rm -rf %{buildroot}
%changelog %changelog
* Sun May 20 2012 Rex Dieter <rdieter@fedoraproject.org> 4.6.0-4
- refresh rpath patch
* Wed Mar 28 2012 Than Ngo <than@redhat.com> - 4.6.0-3 * Wed Mar 28 2012 Than Ngo <than@redhat.com> - 4.6.0-3
- fix syntax in *.pri file - fix syntax in *.pri file

Loading…
Cancel
Save