File linphone-fix-pkgconfig.patch of Package linphone

Index: liblinphone-5.2.88/share/CMakeLists.txt
===================================================================
--- liblinphone-5.2.88.orig/share/CMakeLists.txt
+++ liblinphone-5.2.88/share/CMakeLists.txt
@@ -30,6 +30,15 @@ set(GRAMMAR_FILES
 	PARENT_SCOPE
 )
 
+set(LINPHONE_CFLAGS ${LINPHONE_CPPFLAGS})
+set(LINPHONE_LIBS ${LINPHONE_LDFLAGS})
+set(prefix ${CMAKE_INSTALL_PREFIX})
+set(exec_prefix ${prefix}/bin)
+set(libdir ${CMAKE_INSTALL_LIBDIR})
+set(includedir ${prefix}/include)
+configure_file(${CMAKE_CURRENT_SOURCE_DIR}/linphone.pc.in ${CMAKE_CURRENT_BINARY_DIR}/linphone.pc)
+install(FILES ${CMAKE_CURRENT_BINARY_DIR}/linphone.pc DESTINATION "${CMAKE_INSTALL_LIBDIR}/pkgconfig")
+
 if(ENABLE_ASSETS)
 	set(SOUND_FILES
 		"${CMAKE_CURRENT_SOURCE_DIR}/hello16000.wav"
Index: liblinphone-5.2.88/share/linphone.pc.in
===================================================================
--- liblinphone-5.2.88.orig/share/linphone.pc.in
+++ liblinphone-5.2.88/share/linphone.pc.in
@@ -3,7 +3,7 @@ exec_prefix=@exec_prefix@
 libdir=@libdir@
 includedir=@includedir@
 
-Requires: mediastreamer ortp bctoolbox
+Requires: mediastreamer belle-sip belcard
 Name: liblinphone
 Description: All in one linphone libs.
 Version: @VERSION@
openSUSE Build Service is sponsored by