[phonon] fix plugindir usage (#760039)

Rex Dieter rdieter at fedoraproject.org
Wed Dec 7 18:47:46 UTC 2011


commit 962199dce10151af0cff56054d8dba2a45d32517
Author: Rex Dieter <rdieter at fedoraproject.org>
Date:   Wed Dec 7 12:47:35 2011 -0600

    fix plugindir usage (#760039)

 phonon-4.5.57-plugindir.patch |   12 ++++++++++++
 phonon.spec                   |   11 +++++++++--
 2 files changed, 21 insertions(+), 2 deletions(-)
---
diff --git a/phonon-4.5.57-plugindir.patch b/phonon-4.5.57-plugindir.patch
new file mode 100644
index 0000000..d1af9a8
--- /dev/null
+++ b/phonon-4.5.57-plugindir.patch
@@ -0,0 +1,12 @@
+diff -up phonon-4.5.57/phonon/CMakeLists.txt.plugindir phonon-4.5.57/phonon/CMakeLists.txt
+--- phonon-4.5.57/phonon/CMakeLists.txt.plugindir	2011-10-21 08:54:42.000000000 -0500
++++ phonon-4.5.57/phonon/CMakeLists.txt	2011-12-07 12:18:01.148682382 -0600
+@@ -78,7 +78,7 @@ if (PHONON_NO_PLATFORMPLUGIN)
+     add_definitions(-DQT_NO_PHONON_PLATFORMPLUGIN)
+ endif (PHONON_NO_PLATFORMPLUGIN)
+ 
+-add_definitions(-DPHONON_LIBRARY_PATH="${PLUGIN_INSTALL_DIR}/plugins")
++add_definitions(-DPHONON_LIBRARY_PATH="${CMAKE_INSTALL_PREFIX}/${PLUGIN_INSTALL_DIR}/plugins")
+ 
+ automoc4_add_library(phonon SHARED ${phonon_LIB_SRCS})
+ target_link_libraries(phonon ${QT_QTCORE_LIBRARY} ${QT_QTGUI_LIBRARY})
diff --git a/phonon.spec b/phonon.spec
index 1322aad..54b2e2a 100644
--- a/phonon.spec
+++ b/phonon.spec
@@ -11,7 +11,7 @@
 Summary: Multimedia framework api
 Name:    phonon
 Version: 4.5.57
-Release: 3.%{snap}%{?dist}
+Release: 4.%{snap}%{?dist}
 Group:   System Environment/Libraries
 License: LGPLv2+
 URL:     http://phonon.kde.org/
@@ -24,7 +24,10 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 Patch1: phonon-4.4.4-no_rpath.patch
 
-## Ubuntu/upstreamable patches
+## upstreamable patches
+# phonon_backend ... could not be loaded
+# http://bugzilla.redhat.com/760039
+Patch50: phonon-4.5.57-plugindir.patch 
 
 ## Upstream patches
 
@@ -92,6 +95,7 @@ Includes experimental and unstable apis.
 %setup -q 
 
 %patch1 -p1 -b .no_rpath
+%patch50 -p1 -b .plugindir
 
 
 %build
@@ -178,6 +182,9 @@ rm -rf %{buildroot}
 
 
 %changelog
+* Wed Dec 07 2011 Rex Dieter <rdieter at fedoraproject.org> 4.5.57-4.20111031
+- fix plugindir usage (#760039)
+
 * Wed Nov 02 2011 Rex Dieter <rdieter at fedoraproject.org> 4.5.57-3.20111031
 - fix release
 


More information about the scm-commits mailing list