File belcard-fix-pkgconfig.patch of Package belcard

Index: belcard-5.3.7/belcard.pc.in
===================================================================
--- belcard-5.3.7.orig/belcard.pc.in
+++ belcard-5.3.7/belcard.pc.in
@@ -5,5 +5,5 @@ Name:  @PROJECT_NAME@
 Description: Belcard is Belledonne Communications' vCard 4 parsing library
 Version: @PROJECT_VERSION@
 Libs: -L@CMAKE_INSTALL_FULL_LIBDIR@ -lbelcard
-Libs.private: @LIBS_PRIVATE@
+Requires.private: @PACKAGES_PRIVATE@
 Cflags: -I@CMAKE_INSTALL_FULL_INCLUDEDIR@
Index: belcard-5.3.7/CMakeLists.txt
===================================================================
--- belcard-5.3.7.orig/CMakeLists.txt
+++ belcard-5.3.7/CMakeLists.txt
@@ -75,6 +75,12 @@ if(BELCARD_CPPFLAGS)
 endif()
 add_definitions("-DBELCARD_EXPORTS")
 
+
+set(PACKAGES_PRIVATE "belr bctoolbox")
+configure_file(${CMAKE_CURRENT_SOURCE_DIR}/belcard.pc.in ${CMAKE_CURRENT_BINARY_DIR}/belcard.pc)
+install(FILES ${CMAKE_CURRENT_BINARY_DIR}/belcard.pc DESTINATION "${CMAKE_INSTALL_LIBDIR}/pkgconfig")
+
+
 set(STRICT_OPTIONS_CPP )
 set(STRICT_OPTIONS_C )
 set(STRICT_OPTIONS_CXX )
openSUSE Build Service is sponsored by