Fix pkgconfig to use proper package version (Issue 60, thanks to Jan Engelhardt).
authorMilan Broz <gmazyland@gmail.com>
Mon, 12 Apr 2010 11:53:36 +0000 (11:53 +0000)
committerMilan Broz <gmazyland@gmail.com>
Mon, 12 Apr 2010 11:53:36 +0000 (11:53 +0000)
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@196 36d66b0a-2a48-0410-832c-cd162a569da5

ChangeLog
configure.in
lib/Makefile.am
lib/libcryptsetup.pc.in

index 6aae0e4..c1cc770 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,6 @@
+2010-04-12  Milan Broz  <mbroz@redhat.com>
+       * Fix package config to use proper package version.
+
 2010-04-06  Milan Broz  <mbroz@redhat.com>
        * Prefer some device paths in status display.
        * Support device topology detectionfor data alignment.
index 7dccc15..3b8cd6c 100644 (file)
@@ -1,5 +1,10 @@
 AC_PREREQ(2.57)
 AC_INIT(cryptsetup,1.1.0)
+
+dnl library version from <major>.<minor>.<release>[-<suffix>]
+LIBCRYPTSETUP_VERSION=$(echo $PACKAGE_VERSION | cut -f1 -d-)
+LIBCRYPTSETUP_VERSION_INFO=1:0:0
+
 AC_CONFIG_SRCDIR(src/cryptsetup.c)
 AC_CONFIG_MACRO_DIR([m4])
 
@@ -94,8 +99,10 @@ fi
 LIBS=$saved_LIBS
 
 DEVMAPPER_LIBS="$DEVMAPPER_LIBS $LIB_PTHREAD"
-AC_SUBST(DEVMAPPER_LIBS)
-AC_SUBST(SELINUX_STATIC_LIBS)
+AC_SUBST([DEVMAPPER_LIBS])
+AC_SUBST([SELINUX_STATIC_LIBS])
+AC_SUBST([LIBCRYPTSETUP_VERSION])
+AC_SUBST([LIBCRYPTSETUP_VERSION_INFO])
 
 dnl ==========================================================================
 AC_DEFUN([CS_DEFINE],
index 72210fb..6068751 100644 (file)
@@ -26,7 +26,7 @@ libcryptsetup_la_DEPENDENCIES = libcryptsetup.sym
 libcryptsetup_la_LDFLAGS = \
        $(_STATIC_LIBRARY) \
        -Wl,--version-script=$(top_srcdir)/lib/libcryptsetup.sym \
-       -version-info 1:0:0
+       -version-info @LIBCRYPTSETUP_VERSION_INFO@
 
 libcryptsetup_la_CFLAGS = -Wall @LIBGCRYPT_CFLAGS@
 
index 24f363b..00c6e4a 100644 (file)
@@ -5,6 +5,6 @@ includedir=@includedir@
 
 Name: cryptsetup
 Description: cryptsetup library
-Version: 1.0.0
+Version: @LIBCRYPTSETUP_VERSION@
 Cflags: -I${includedir} 
 Libs: -L${libdir} -lcryptsetup