Add version of so files 62/310362/1 accepted/tizen_unified accepted/tizen_unified_x tizen accepted/tizen/unified/20240430.020619 accepted/tizen/unified/x/20240430.094817
authorJeongmo Yang <jm80.yang@samsung.com>
Fri, 26 Apr 2024 03:34:10 +0000 (12:34 +0900)
committerJeongmo Yang <jm80.yang@samsung.com>
Fri, 26 Apr 2024 03:34:10 +0000 (12:34 +0900)
- 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 <jm80.yang@samsung.com>
configure.ac
packaging/libmm-camcorder.spec
src/Makefile.am

index ffd914b..8f3cb73 100644 (file)
@@ -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
index 7e6e33b..f4f9db6 100755 (executable)
@@ -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
index 04dde15..f990e10 100644 (file)
@@ -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