libservicelog/libservicelog-pkgconfig.patch
Dirk Mueller c912222f0e Accepting request 90023 from home:k0da:ppc
- update to 1.1.11
  - new build requires librtas-devel pkg-config
  - reworked patches
  - Drop libservicelog.warnings.patch,
	libservicelog.sqlite-include.patch
	libservicelog-sqlite_fixes.patch 
  - Fix package description typo
  - ppc,ppc64 exclusive package as it is requires librtas

OBS-URL: https://build.opensuse.org/request/show/90023
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libservicelog?expand=0&rev=10
2011-11-03 12:20:54 +00:00

29 lines
1011 B
Diff

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