[slepc] 06/16: update alternatives: no alts for patch versions (3.8.z)
Drew Parsons
dparsons at moszumanska.debian.org
Mon Nov 6 06:33:20 UTC 2017
This is an automated email from the git hooks/post-receive script.
dparsons pushed a commit to branch experimental
in repository slepc.
commit 03941f448e408fac2afbb5dcda8507998e986599
Author: Drew Parsons <dparsons at debian.org>
Date: Mon Nov 6 12:03:53 2017 +0800
update alternatives: no alts for patch versions (3.8.z)
---
debian/libslepc-complex3.8-dev.links | 2 ++
debian/libslepc-complex3.8-dev.postinst | 15 ++++++---------
debian/libslepc-complex3.8-dev.prerm | 8 ++++----
debian/libslepc-complex3.8.links | 2 ++
debian/libslepc-complex3.8.postinst | 6 +-----
debian/libslepc-complex3.8.prerm | 1 -
debian/libslepc-real3.8-dev.links | 2 ++
debian/libslepc-real3.8-dev.postinst | 14 ++++++--------
debian/libslepc-real3.8-dev.prerm | 7 ++++---
debian/libslepc-real3.8.links | 2 ++
debian/libslepc-real3.8.postinst | 7 +------
debian/libslepc-real3.8.prerm | 1 -
12 files changed, 30 insertions(+), 37 deletions(-)
diff --git a/debian/libslepc-complex3.8-dev.links b/debian/libslepc-complex3.8-dev.links
new file mode 100755
index 0000000..6efce60
--- /dev/null
+++ b/debian/libslepc-complex3.8-dev.links
@@ -0,0 +1,2 @@
+#! /bin/sh
+echo usr/lib/${DEB_HOST_MULTIARCH}/libslepc_complex.so.${SLEPC_VERSION} ${SLEPC_REAL_DIR_PREFIX}/lib/libslepc_complex.so.${SLEPC_VERSION}
diff --git a/debian/libslepc-complex3.8-dev.postinst b/debian/libslepc-complex3.8-dev.postinst
index 9a105ce..2e8cafc 100644
--- a/debian/libslepc-complex3.8-dev.postinst
+++ b/debian/libslepc-complex3.8-dev.postinst
@@ -8,8 +8,10 @@ SLEPC_VERSION=__SLEPC_VERSION__
SLEPC_ARCH=${DEB_HOST_MULTIARCH}
SLEPC_COMPLEX_ARCH=${SLEPC_ARCH}-complex
SLEPC_VERSION_NUMBER=$( echo ${SLEPC_VERSION} | sed "s/\.//g" )
+SLEPC_SONAME_VERSION=__SLEPC_SONAME_VERSION__
+SLEPC_NAME=slepc${SLEPC_SONAME_VERSION}
-SLEPC_DIR_COMPLEX=/usr/lib/slepcdir/${SLEPC_VERSION}/${SLEPC_COMPLEX_ARCH}
+SLEPC_DIR_COMPLEX=/usr/lib/slepcdir/${SLEPC_NAME}/${SLEPC_COMPLEX_ARCH}
# Make alternatives links
if [ "$1" = "configure" ]; then
@@ -25,10 +27,10 @@ if update-alternatives --query slepc | grep libslepc.so.multiarch > /dev/null ;
fi
# alternative default slepc (e.g. real or complex)
-update-alternatives --install /usr/lib/slepc slepc /usr/lib/slepcdir/${SLEPC_VERSION}/${SLEPC_COMPLEX_ARCH} ${SLEPC_VERSION_NUMBER}73 \
+update-alternatives --install /usr/lib/slepc slepc ${SLEPC_DIR_COMPLEX} ${SLEPC_VERSION_NUMBER}73 \
--slave /usr/lib/${DEB_HOST_MULTIARCH}/libslepc.so libslepc.so /usr/lib/${DEB_HOST_MULTIARCH}/libslepc_complex.so.${SLEPC_VERSION} \
- --slave /usr/include/slepc slepcinclude /usr/lib/slepcdir/${SLEPC_VERSION}/${SLEPC_COMPLEX_ARCH}/include \
- --slave /usr/lib/${DEB_HOST_MULTIARCH}/pkgconfig/SLEPc.pc SLEPc.pc /usr/lib/slepcdir/${SLEPC_VERSION}/${SLEPC_COMPLEX_ARCH}/lib/pkgconfig/SLEPc.pc
+ --slave /usr/include/slepc slepcinclude ${SLEPC_DIR_COMPLEX}/include \
+ --slave /usr/lib/${DEB_HOST_MULTIARCH}/pkgconfig/SLEPc.pc SLEPc.pc ${SLEPC_DIR_COMPLEX}/lib/pkgconfig/SLEPc.pc
# alternative base version of slepc complex
update-alternatives --install /usr/lib/${DEB_HOST_MULTIARCH}/libslepc_complex.so libslepc_complex.so /usr/lib/${DEB_HOST_MULTIARCH}/libslepc_complex.so.${SLEPC_VERSION} ${SLEPC_VERSION_NUMBER}77
@@ -36,11 +38,6 @@ update-alternatives --install /usr/lib/${DEB_HOST_MULTIARCH}/libslepc_complex.so
# alternative slepc for this X.Y soname (e.g. real or complex)
update-alternatives --install /usr/lib/slepcdir/${SONAME} slepc${SONAME} ${SLEPC_DIR_COMPLEX} ${SLEPC_VERSION_NUMBER}73
-# alternative complex slepc for this X.Y soname
-update-alternatives --install /usr/lib/slepcdir/${SONAME}-complex slepc${SONAME}-complex ${SLEPC_DIR_COMPLEX} ${SLEPC_VERSION_NUMBER}73
-
-
fi
-
#DEBHELPER#
diff --git a/debian/libslepc-complex3.8-dev.prerm b/debian/libslepc-complex3.8-dev.prerm
index 3cc3fa1..3ee8f4e 100644
--- a/debian/libslepc-complex3.8-dev.prerm
+++ b/debian/libslepc-complex3.8-dev.prerm
@@ -7,16 +7,16 @@ SONAME=__SLEPC_SONAME_VERSION__
SLEPC_VERSION=__SLEPC_VERSION__
SLEPC_ARCH=${DEB_HOST_MULTIARCH}
SLEPC_COMPLEX_ARCH=${SLEPC_ARCH}-complex
+SLEPC_SONAME_VERSION=__SLEPC_SONAME_VERSION__
+SLEPC_NAME=slepc${SLEPC_SONAME_VERSION}
-SLEPC_DIR_COMPLEX=/usr/lib/slepcdir/${SLEPC_VERSION}/${SLEPC_COMPLEX_ARCH}
+SLEPC_DIR_COMPLEX=/usr/lib/slepcdir/${SLEPC_NAME}/${SLEPC_COMPLEX_ARCH}
# Remove alternatives links
if [ "$1" = "remove" ]; then
- update-alternatives --remove slepc /usr/lib/slepcdir/${SLEPC_VERSION}/${SLEPC_COMPLEX_ARCH}
+ update-alternatives --remove slepc ${SLEPC_DIR_COMPLEX}
update-alternatives --remove libslepc_complex.so /usr/lib/${DEB_HOST_MULTIARCH}/libslepc_complex.so.${SLEPC_VERSION}
-
update-alternatives --remove slepc${SONAME} ${SLEPC_DIR_COMPLEX}
- update-alternatives --remove slepc${SONAME}-complex ${SLEPC_DIR_COMPLEX}
fi
#DEBHELPER#
diff --git a/debian/libslepc-complex3.8.links b/debian/libslepc-complex3.8.links
new file mode 100755
index 0000000..4fb7d0b
--- /dev/null
+++ b/debian/libslepc-complex3.8.links
@@ -0,0 +1,2 @@
+#! /bin/sh
+echo usr/lib/${DEB_HOST_MULTIARCH}/libslepc_complex.so.${SLEPC_VERSION} usr/lib/${DEB_HOST_MULTIARCH}/libslepc_complex.so.${SLEPC_SONAME_VERSION}
diff --git a/debian/libslepc-complex3.8.postinst b/debian/libslepc-complex3.8.postinst
index 6d67896..ceaf31e 100644
--- a/debian/libslepc-complex3.8.postinst
+++ b/debian/libslepc-complex3.8.postinst
@@ -9,11 +9,7 @@ SONAME=__SLEPC_SONAME_VERSION__
# Make alternatives links
if [ "$1" = "configure" ]; then
# alternative slepc version (for given soname), real or complex
- update-alternatives --install /usr/lib/${DEB_HOST_MULTIARCH}/libslepc.so.${SONAME} libslepc.so.${SONAME} /usr/lib/${DEB_HOST_MULTIARCH}/libslepc_complex.so.${SLEPC_VERSION} ${SLEPC_VERSION_NUMBER}73 \
- --slave /usr/lib/${DEB_HOST_MULTIARCH}/libslepc.so.${SLEPC_VERSION} libslepc.so.${SLEPC_VERSION} /usr/lib/${DEB_HOST_MULTIARCH}/libslepc_complex.so.${SLEPC_VERSION}
-
- # alternative complex version (for given soname)
- update-alternatives --install /usr/lib/${DEB_HOST_MULTIARCH}/libslepc_complex.so.${SONAME} libslepc_complex.so.${SONAME} /usr/lib/${DEB_HOST_MULTIARCH}/libslepc_complex.so.${SLEPC_VERSION} ${SLEPC_VERSION_NUMBER}77
+ update-alternatives --install /usr/lib/${DEB_HOST_MULTIARCH}/libslepc.so.${SONAME} libslepc.so.${SONAME} /usr/lib/${DEB_HOST_MULTIARCH}/libslepc_complex.so.${SLEPC_VERSION} ${SLEPC_VERSION_NUMBER}73
fi
diff --git a/debian/libslepc-complex3.8.prerm b/debian/libslepc-complex3.8.prerm
index d2b3659..4b46504 100644
--- a/debian/libslepc-complex3.8.prerm
+++ b/debian/libslepc-complex3.8.prerm
@@ -7,7 +7,6 @@ SONAME=__SLEPC_SONAME_VERSION__
# Remove alternatives links
if [ "$1" = "remove" ]; then
update-alternatives --remove libslepc.so.${SONAME} /usr/lib/${DEB_HOST_MULTIARCH}/libslepc_complex.so.${SLEPC_VERSION}
- update-alternatives --remove libslepc_complex.so.${SONAME} /usr/lib/${DEB_HOST_MULTIARCH}/libslepc_complex.so.${SLEPC_VERSION}
fi
#DEBHELPER#
diff --git a/debian/libslepc-real3.8-dev.links b/debian/libslepc-real3.8-dev.links
new file mode 100755
index 0000000..4089a1e
--- /dev/null
+++ b/debian/libslepc-real3.8-dev.links
@@ -0,0 +1,2 @@
+#! /bin/sh
+echo usr/lib/${DEB_HOST_MULTIARCH}/libslepc_real.so.${SLEPC_VERSION} ${SLEPC_REAL_DIR_PREFIX}/lib/libslepc_real.so.${SLEPC_VERSION}
diff --git a/debian/libslepc-real3.8-dev.postinst b/debian/libslepc-real3.8-dev.postinst
index d375030..77d867b 100644
--- a/debian/libslepc-real3.8-dev.postinst
+++ b/debian/libslepc-real3.8-dev.postinst
@@ -8,8 +8,10 @@ SLEPC_VERSION=__SLEPC_VERSION__
SLEPC_ARCH=${DEB_HOST_MULTIARCH}
SLEPC_REAL_ARCH=${SLEPC_ARCH}-real
SLEPC_VERSION_NUMBER=$( echo ${SLEPC_VERSION} | sed "s/\.//g" )
+SLEPC_SONAME_VERSION=__SLEPC_SONAME_VERSION__
+SLEPC_NAME=slepc${SLEPC_SONAME_VERSION}
-SLEPC_DIR_REAL=/usr/lib/slepcdir/${SLEPC_VERSION}/${SLEPC_REAL_ARCH}
+SLEPC_DIR_REAL=/usr/lib/slepcdir/${SLEPC_NAME}/${SLEPC_REAL_ARCH}
# Make alternatives links
if [ "$1" = "configure" ]; then
@@ -25,10 +27,10 @@ if update-alternatives --query slepc | grep libslepc.so.multiarch > /dev/null ;
fi
# alternative default slepc (e.g. real or complex)
-update-alternatives --install /usr/lib/slepc slepc /usr/lib/slepcdir/${SLEPC_VERSION}/${SLEPC_REAL_ARCH} ${SLEPC_VERSION_NUMBER}77 \
+update-alternatives --install /usr/lib/slepc slepc ${SLEPC_DIR_REAL} ${SLEPC_VERSION_NUMBER}77 \
--slave /usr/lib/${DEB_HOST_MULTIARCH}/libslepc.so libslepc.so /usr/lib/${DEB_HOST_MULTIARCH}/libslepc_real.so.${SLEPC_VERSION} \
- --slave /usr/include/slepc slepcinclude /usr/lib/slepcdir/${SLEPC_VERSION}/${SLEPC_REAL_ARCH}/include \
- --slave /usr/lib/${DEB_HOST_MULTIARCH}/pkgconfig/SLEPc.pc SLEPc.pc /usr/lib/slepcdir/${SLEPC_VERSION}/${SLEPC_REAL_ARCH}/lib/pkgconfig/SLEPc.pc
+ --slave /usr/include/slepc slepcinclude ${SLEPC_DIR_REAL}/include \
+ --slave /usr/lib/${DEB_HOST_MULTIARCH}/pkgconfig/SLEPc.pc SLEPc.pc ${SLEPC_DIR_REAL}/lib/pkgconfig/SLEPc.pc
# alternative base version of slepc real
update-alternatives --install /usr/lib/${DEB_HOST_MULTIARCH}/libslepc_real.so libslepc_real.so /usr/lib/${DEB_HOST_MULTIARCH}/libslepc_real.so.${SLEPC_VERSION} ${SLEPC_VERSION_NUMBER}77
@@ -36,10 +38,6 @@ update-alternatives --install /usr/lib/${DEB_HOST_MULTIARCH}/libslepc_real.so li
# alternative slepc for this X.Y soname (e.g. real or complex)
update-alternatives --install /usr/lib/slepcdir/${SONAME} slepc${SONAME} ${SLEPC_DIR_REAL} ${SLEPC_VERSION_NUMBER}77
-# alternative real slepc for this X.Y soname
-update-alternatives --install /usr/lib/slepcdir/${SONAME}-real slepc${SONAME}-real ${SLEPC_DIR_REAL} ${SLEPC_VERSION_NUMBER}77
-
fi
-
#DEBHELPER#
diff --git a/debian/libslepc-real3.8-dev.prerm b/debian/libslepc-real3.8-dev.prerm
index 1bad081..0f80543 100644
--- a/debian/libslepc-real3.8-dev.prerm
+++ b/debian/libslepc-real3.8-dev.prerm
@@ -7,16 +7,17 @@ SONAME=__SLEPC_SONAME_VERSION__
SLEPC_VERSION=__SLEPC_VERSION__
SLEPC_ARCH=${DEB_HOST_MULTIARCH}
SLEPC_REAL_ARCH=${SLEPC_ARCH}-real
+SLEPC_SONAME_VERSION=__SLEPC_SONAME_VERSION__
+SLEPC_NAME=slepc${SLEPC_SONAME_VERSION}
-SLEPC_DIR_REAL=/usr/lib/slepcdir/${SLEPC_VERSION}/${SLEPC_REAL_ARCH}
+SLEPC_DIR_REAL=/usr/lib/slepcdir/${SLEPC_NAME}/${SLEPC_REAL_ARCH}
# Remove alternatives links
if [ "$1" = "remove" ]; then
- update-alternatives --remove slepc /usr/lib/slepcdir/${SLEPC_VERSION}/${SLEPC_REAL_ARCH}
+ update-alternatives --remove slepc ${SLEPC_DIR_REAL}
update-alternatives --remove libslepc_real.so /usr/lib/${DEB_HOST_MULTIARCH}/libslepc_real.so.${SLEPC_VERSION}
update-alternatives --remove slepc${SONAME} ${SLEPC_DIR_REAL}
- update-alternatives --remove slepc${SONAME}-real ${SLEPC_DIR_REAL}
fi
#DEBHELPER#
diff --git a/debian/libslepc-real3.8.links b/debian/libslepc-real3.8.links
new file mode 100755
index 0000000..23c568a
--- /dev/null
+++ b/debian/libslepc-real3.8.links
@@ -0,0 +1,2 @@
+#! /bin/sh
+echo usr/lib/${DEB_HOST_MULTIARCH}/libslepc_real.so.${SLEPC_VERSION} usr/lib/${DEB_HOST_MULTIARCH}/libslepc_real.so.${SLEPC_SONAME_VERSION}
diff --git a/debian/libslepc-real3.8.postinst b/debian/libslepc-real3.8.postinst
index c998e20..0ee4461 100644
--- a/debian/libslepc-real3.8.postinst
+++ b/debian/libslepc-real3.8.postinst
@@ -9,12 +9,7 @@ SONAME=__SLEPC_SONAME_VERSION__
# Make alternatives links
if [ "$1" = "configure" ]; then
# alternative slepc version (for given soname), real or complex
- update-alternatives --install /usr/lib/${DEB_HOST_MULTIARCH}/libslepc.so.${SONAME} libslepc.so.${SONAME} /usr/lib/${DEB_HOST_MULTIARCH}/libslepc_real.so.${SLEPC_VERSION} ${SLEPC_VERSION_NUMBER}77 \
- --slave /usr/lib/${DEB_HOST_MULTIARCH}/libslepc.so.${SLEPC_VERSION} libslepc.so.${SLEPC_VERSION} /usr/lib/${DEB_HOST_MULTIARCH}/libslepc_real.so.${SLEPC_VERSION}
-
- # alternative real version (for given soname)
- update-alternatives --install /usr/lib/${DEB_HOST_MULTIARCH}/libslepc_real.so.${SONAME} libslepc_real.so.${SONAME} /usr/lib/${DEB_HOST_MULTIARCH}/libslepc_real.so.${SLEPC_VERSION} ${SLEPC_VERSION_NUMBER}77
-
+ update-alternatives --install /usr/lib/${DEB_HOST_MULTIARCH}/libslepc.so.${SONAME} libslepc.so.${SONAME} /usr/lib/${DEB_HOST_MULTIARCH}/libslepc_real.so.${SLEPC_VERSION} ${SLEPC_VERSION_NUMBER}77
fi
diff --git a/debian/libslepc-real3.8.prerm b/debian/libslepc-real3.8.prerm
index 589eca7..10982da 100644
--- a/debian/libslepc-real3.8.prerm
+++ b/debian/libslepc-real3.8.prerm
@@ -7,7 +7,6 @@ SONAME=__SLEPC_SONAME_VERSION__
# Remove alternatives links
if [ "$1" = "remove" ]; then
update-alternatives --remove libslepc.so.${SONAME} /usr/lib/${DEB_HOST_MULTIARCH}/libslepc_real.so.${SLEPC_VERSION}
- update-alternatives --remove libslepc_real.so.${SONAME} /usr/lib/${DEB_HOST_MULTIARCH}/libslepc_real.so.${SLEPC_VERSION}
fi
#DEBHELPER#
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/slepc.git
More information about the debian-science-commits
mailing list