[erfa] 02/03: erfa-1.0.0, 2nd upload: fix SONAME version

Ole Streicher olebole-guest at alioth.debian.org
Sun Oct 27 13:22:58 UTC 2013


This is an automated email from the git hooks/post-receive script.

olebole-guest pushed a commit to branch debian
in repository erfa.

commit ed06a554fd18d411fa2291c3b9714802951b1280
Author: Ole Streicher <debian at liska.ath.cx>
Date:   Sun Oct 27 14:09:25 2013 +0100

    erfa-1.0.0, 2nd upload: fix SONAME version
---
 .gitignore      |    1 +
 src/Makefile.am |   14 +++++++++++++-
 2 files changed, 14 insertions(+), 1 deletion(-)

diff --git a/.gitignore b/.gitignore
index 05835a9..bb46ec2 100644
--- a/.gitignore
+++ b/.gitignore
@@ -21,3 +21,4 @@ Makefile
 Makefile.in
 /build-aux
 src/t_erfa_c
+erfa-*.tar.gz
diff --git a/src/Makefile.am b/src/Makefile.am
index bd9270c..59a5c62 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -29,7 +29,19 @@ include_HEADERS = erfa.h erfam.h
 ## Revision is the version of the current interface
 ## If the source code has changed at all, rev += 1
 
-liberfa_la_LDFLAGS = -version-info 0:0:0
+#liberfa_la_LDFLAGS = -version-info 0:0:0
+
+#for erfa, we compute this version info. For ERFA x.y.z we set version-info
+#to (x+y):z:y, as this reproduces the appropriate SONAME matching the
+#library version number for semantic versioning
+PKG_MAJ = `echo $(PACKAGE_VERSION) | cut -d . -f 1`
+PKG_MIN = `echo $(PACKAGE_VERSION) | cut -d . -f 2`
+PKG_BUG = `echo $(PACKAGE_VERSION) | cut -d . -f 3`
+VI_CURR =  $(shell expr $(PKG_MAJ) + $(PKG_MIN))
+VI_REV = $(PKG_BUG)
+VI_AGE = $(PKG_MIN)
+
+liberfa_la_LDFLAGS = -version-info $(VI_CURR):$(VI_REV):$(VI_AGE)
 
 
 ## Check program

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/erfa.git



More information about the debian-science-commits mailing list