Manage library version information 39/111339/4 submit/tizen/20170314.091005 submit/tizen/20170315.062057
authorSunmin Lee <sunm.lee@samsung.com>
Fri, 20 Jan 2017 06:31:32 +0000 (15:31 +0900)
committerSunmin Lee <sunm.lee@samsung.com>
Tue, 14 Mar 2017 07:25:34 +0000 (16:25 +0900)
From Tizen 4.0, the change of libtzplatform-config will be expressed
by so version number. Because the meta file is in this package, it
looks resonable that the version info also is managed by this.
They should be changed/updated together.

Change-Id: I4c3a90bb21cb78bb2a4c4284c3001f825c0c3e39
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
packaging/libtzplatform-config.version [new file with mode: 0644]
packaging/tizen-platform-config-meta.spec

diff --git a/packaging/libtzplatform-config.version b/packaging/libtzplatform-config.version
new file mode 100644 (file)
index 0000000..cd2a9d5
--- /dev/null
@@ -0,0 +1,19 @@
+#        libtzplatform-config so version
+#
+# It follows the rule of libtool's version info flag
+#  (current):(revision):(age)
+#
+# Reference cases
+#  1. Programs using the previous version may use the new version as
+#   drop-in replacement, and programs using the new version can also work with
+#   the previous one. In other words, no recompiling nor relinking is needed.
+#   In this case, bump revision only, don’t touch current nor age.
+#  2. Programs using the previous version may use the new version as drop-in
+#   replacement, but programs using the new version may use APIs not present in
+#   the previous one. In other words, a program linking against the new version
+#   may fail with "unresolved symbols" if linking against the old version at
+#   runtime: set revision to 0, bump current and age.
+#  3. Programs may need to be changed, recompiled, and relinked in order to use
+#   the new version. Bump current, set revision and age to 0.
+#
+0:0:0
index 2021d9886a9cee062a471f3a1b13823a06a9ee05..e0f8129d9e195e071f2bd10cc1f2f99c02301db2 100644 (file)
@@ -1,5 +1,5 @@
 Name:           tizen-platform-config-meta
-Version:        1.2
+Version:        1.3
 Release:        0
 Summary:        Tizen Platform Configuration Meta data
 License:        MIT
@@ -9,6 +9,7 @@ Source0:        %{name}-%{version}.tar.gz
 Source1:        %{name}-rpmlintrc
 Source2:        %{name}.manifest
 Source3:        tizen-platform.meta
+Source4:        libtzplatform-config.version
 
 # the main package only contains a config file but other dependent packages
 # will contain binary. So, we can't build a noarch package and have to avoid
@@ -24,8 +25,10 @@ cp %{SOURCE2} .
 %install
 mkdir -p %{buildroot}%{_sysconfdir}
 cp %{SOURCE3} %{buildroot}%{_sysconfdir}/tizen-platform.meta
+cp %{SOURCE4} %{buildroot}%{_sysconfdir}/libtzplatform-config.version
 
 %files
 %manifest %{name}.manifest
 %license LICENSE
 %attr(644, root, root) %{_sysconfdir}/tizen-platform.meta
+%attr(644, root, root) %{_sysconfdir}/libtzplatform-config.version