From 733df6753f282915a501125c56390734ac1341b5 Mon Sep 17 00:00:00 2001 From: Jeongmo Yang Date: Fri, 26 Apr 2024 12:34:10 +0900 Subject: [PATCH] Add version of so files - Previously, there is no version for so files in this package. - The initial version of so files is 0.5.0, not 1.0.0. Because the version of so files can be managed differently with package version, and the prebuilt binary which has dependency of this package will be failed while loading this shared library by different so name if version of so file is 1.0.0. (new:libmmfcamcorder.so.1 vs old:libmmfcamcorder.so.0) [Version] 1.0.0-1 [Issue Type] Update Change-Id: I29c9c9da8ef7bb9221b9154aa0a2b72158b172f3 Signed-off-by: Jeongmo Yang --- configure.ac | 12 +++++++++++- packaging/libmm-camcorder.spec | 2 +- src/Makefile.am | 2 +- 3 files changed, 13 insertions(+), 3 deletions(-) diff --git a/configure.ac b/configure.ac index ffd914b..8f3cb73 100644 --- a/configure.ac +++ b/configure.ac @@ -1,10 +1,20 @@ AC_PREREQ(2.52) -AC_INIT([libmm-camcorder], [0.8.0]) +m4_define([PACAKGE_MAJOR], [1]) +m4_define([PACKAGE_MINOR], [0]) +m4_define([PACKAGE_MICRO], [0]) + +AC_INIT([libmm-camcorder], [PACKAGE_MAJOR.PACKAGE_MINOR.PACKAGE_MICRO]) AM_INIT_AUTOMAKE([-Wall -Werror foreign]) AC_CONFIG_HEADERS([config.h:config.hin]) AC_CONFIG_MACRO_DIR([m4]) +# Version for so file +m4_define([SO_MAJOR], [0]) +m4_define([SO_MINOR], [11]) +m4_define([SO_MICRO], [0]) +AC_SUBST([SO_VERSION], [SO_MAJOR:SO_MINOR:SO_MICRO]) + # Checks for programs. m4_ifdef([AM_PROG_AR], [AM_PROG_AR]) AC_PROG_CC diff --git a/packaging/libmm-camcorder.spec b/packaging/libmm-camcorder.spec index 7e6e33b..f4f9db6 100755 --- a/packaging/libmm-camcorder.spec +++ b/packaging/libmm-camcorder.spec @@ -1,7 +1,7 @@ Name: libmm-camcorder Summary: Camera and recorder library Version: 1.0.0 -Release: 0 +Release: 1 Group: Multimedia/Libraries License: Apache-2.0 Source0: %{name}-%{version}.tar.gz diff --git a/src/Makefile.am b/src/Makefile.am index 04dde15..f990e10 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -81,7 +81,7 @@ libmmfcamcorder_la_LIBADD = \ libmmfcamcorder_la_CFLAGS += -D_FILE_OFFSET_BITS=64 libmmfcamcorder_la_CFLAGS += -fdata-sections -ffunction-sections -Wl,--gc-sections -Wall -Werror -libmmfcamcorder_la_LDFLAGS = -Wl,--gc-sections +libmmfcamcorder_la_LDFLAGS = -Wl,--gc-sections -version-number $(SO_VERSION) libmmfcamcorder_la_LIBADD += $(SYSTEMINFO_LIBS) if MM_RESOURCE_MANAGER_SUPPORT -- 2.7.4