diff --git a/configure.ac b/configure.ac index 56de946..660f144 100644 --- a/configure.ac +++ b/configure.ac @@ -349,6 +349,11 @@ AC_ARG_WITH([libname], [AS_HELP_STRING([--with-libname], [Setup library name])], AC_DEFINE(LIB3270_NAME,$app_cv_libname) AC_SUBST(LIB3270_NAME,$app_cv_libname) +AC_ARG_WITH([sdk-version], [AS_HELP_STRING([--with-sdk-version], [Setup library version for SDK])], [ app_cv_sdkversion="$withval" ],[ app_cv_sdkversion=$VERSION ]) + +AC_DEFINE(LIB3270_SDK_VERSION,$app_cv_sdkversion) +AC_SUBST(LIB3270_SDK_VERSION,$app_cv_sdkversion) + dnl --------------------------------------------------------------------------- dnl Check for headers dnl --------------------------------------------------------------------------- diff --git a/rpm/lib3270.spec b/rpm/lib3270.spec index dd5f41c..2be7987 100644 --- a/rpm/lib3270.spec +++ b/rpm/lib3270.spec @@ -96,7 +96,8 @@ See more details at https://softwarepublico.gov.br/social/pw3270/ NOCONFIGURE=1 ./autogen.sh -%configure +%configure \ + --with-sdk-version=%{version} %build make clean diff --git a/sdk/lib3270.pc.in b/sdk/lib3270.pc.in index a223bb3..42f2715 100644 --- a/sdk/lib3270.pc.in +++ b/sdk/lib3270.pc.in @@ -5,6 +5,7 @@ includedir=@includedir@ version_major=@PACKAGE_MAJOR_VERSION@ version_minor=@PACKAGE_MINOR_VERSION@ +sdk_version=@LIB3270_SDK_VERSION@ Name: @PACKAGE_NAME@ Description: @PACKAGE_DESCRIPTION@ -- libgit2 0.21.2