Commit 51d2a0463d82f21bcbdbde2651ad8d84d72f7f7e
1 parent
a4dc7de8
Exists in
master
and in
3 other branches
Adding option to set the sdk version for use by the 'unstable' packages.
Showing
3 changed files
with
8 additions
and
1 deletions
Show diff stats
configure.ac
@@ -349,6 +349,11 @@ AC_ARG_WITH([libname], [AS_HELP_STRING([--with-libname], [Setup library name])], | @@ -349,6 +349,11 @@ AC_ARG_WITH([libname], [AS_HELP_STRING([--with-libname], [Setup library name])], | ||
349 | AC_DEFINE(LIB3270_NAME,$app_cv_libname) | 349 | AC_DEFINE(LIB3270_NAME,$app_cv_libname) |
350 | AC_SUBST(LIB3270_NAME,$app_cv_libname) | 350 | AC_SUBST(LIB3270_NAME,$app_cv_libname) |
351 | 351 | ||
352 | +AC_ARG_WITH([sdk-version], [AS_HELP_STRING([--with-sdk-version], [Setup library version for SDK])], [ app_cv_sdkversion="$withval" ],[ app_cv_sdkversion=$VERSION ]) | ||
353 | + | ||
354 | +AC_DEFINE(LIB3270_SDK_VERSION,$app_cv_sdkversion) | ||
355 | +AC_SUBST(LIB3270_SDK_VERSION,$app_cv_sdkversion) | ||
356 | + | ||
352 | dnl --------------------------------------------------------------------------- | 357 | dnl --------------------------------------------------------------------------- |
353 | dnl Check for headers | 358 | dnl Check for headers |
354 | dnl --------------------------------------------------------------------------- | 359 | dnl --------------------------------------------------------------------------- |
rpm/lib3270.spec
@@ -96,7 +96,8 @@ See more details at https://softwarepublico.gov.br/social/pw3270/ | @@ -96,7 +96,8 @@ See more details at https://softwarepublico.gov.br/social/pw3270/ | ||
96 | 96 | ||
97 | NOCONFIGURE=1 ./autogen.sh | 97 | NOCONFIGURE=1 ./autogen.sh |
98 | 98 | ||
99 | -%configure | 99 | +%configure \ |
100 | + --with-sdk-version=%{version} | ||
100 | 101 | ||
101 | %build | 102 | %build |
102 | make clean | 103 | make clean |
sdk/lib3270.pc.in
@@ -5,6 +5,7 @@ includedir=@includedir@ | @@ -5,6 +5,7 @@ includedir=@includedir@ | ||
5 | 5 | ||
6 | version_major=@PACKAGE_MAJOR_VERSION@ | 6 | version_major=@PACKAGE_MAJOR_VERSION@ |
7 | version_minor=@PACKAGE_MINOR_VERSION@ | 7 | version_minor=@PACKAGE_MINOR_VERSION@ |
8 | +sdk_version=@LIB3270_SDK_VERSION@ | ||
8 | 9 | ||
9 | Name: @PACKAGE_NAME@ | 10 | Name: @PACKAGE_NAME@ |
10 | Description: @PACKAGE_DESCRIPTION@ | 11 | Description: @PACKAGE_DESCRIPTION@ |