File libservicelog-pkgconfig.patch of Package libservicelog

--- src/servicelog-1.pc.in.orig	2011-11-02 12:51:24.000000000 +0100
+++ src/servicelog-1.pc.in	2011-11-02 12:52:56.000000000 +0100
@@ -6,5 +6,5 @@
 Name: servicelog
 Description: Library for access to the system servicelog
 Version: @VERSION@
-Libs: -L${libdir} -lsqlite3 -l@GENERIC_PACKAGE_NAME@
-Cflags: -I${includedir}/@GENERIC_PACKAGE_NAME@-@GENERIC_API_VERSION@
+Libs: @LIBS_LIBDIR@ -lsqlite3 -l@GENERIC_PACKAGE_NAME@
+Cflags: -I${includedir}/servicelog-@GENERIC_API_VERSION@
--- configure.ac.orig	2011-11-02 12:54:39.000000000 +0100
+++ configure.ac	2011-11-02 12:56:44.000000000 +0100
@@ -74,5 +74,15 @@
 AC_FUNC_STRFTIME
 AC_CHECK_FUNCS([memset strerror strtoull uname])
 
+AC_MSG_CHECKING([Whether to put -L\${libdir} in .pc])
+if test -z "$(echo $libdir|fgrep /usr)"; then
+    LIBS_LIBDIR='-L${libdir}'
+    use_libdir=yes
+else
+    use_libdir=no
+fi
+AC_MSG_RESULT(${use_libdir})
+AC_SUBST(LIBS_LIBDIR)
+ 
 AC_CONFIG_FILES([Makefile src/Makefile libservicelog.spec src/servicelog-1.pc])
 AC_OUTPUT
openSUSE Build Service is sponsored by