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

mckinstry pushed a commit to branch dev-alternatives
in repository hdf5.

commit a8908e0eea4781fee4e106f72d9c4f3edfc9ce4e
Author: Alastair McKinstry <mckins...@debian.org>
Date:   Tue Jun 3 17:17:46 2014 +0100

    Setup some alternatives
---
 debian/hdf5-serial.pc                 |  6 ++++++
 debian/hdf5.pc                        |  6 ------
 debian/libhdf5-flavor-dev.postinst.in | 20 +++++++++++++++++---
 debian/libhdf5-flavor-dev.prerm.in    |  1 +
 debian/rules                          |  2 +-
 5 files changed, 25 insertions(+), 10 deletions(-)

diff --git a/debian/hdf5-serial.pc b/debian/hdf5-serial.pc
new file mode 100644
index 0000000..465e259
--- /dev/null
+++ b/debian/hdf5-serial.pc
@@ -0,0 +1,6 @@
+Name: HDF5
+Description: Hierarchical Data Format 5 (HDF5, Serial version)
+Version: 1.8.13
+Requires:
+Cflags:
+Libs: -lhdf5_serial
diff --git a/debian/hdf5.pc b/debian/hdf5.pc
deleted file mode 100644
index e4a0da8..0000000
--- a/debian/hdf5.pc
+++ /dev/null
@@ -1,6 +0,0 @@
-Name: HDF5
-Description: Hierarchical Data Format 5 (HDF5)
-Version: 1.8.13
-Requires:
-Cflags:
-Libs: -lhdf5
diff --git a/debian/libhdf5-flavor-dev.postinst.in 
b/debian/libhdf5-flavor-dev.postinst.in
index 510e39f..792e037 100644
--- a/debian/libhdf5-flavor-dev.postinst.in
+++ b/debian/libhdf5-flavor-dev.postinst.in
@@ -2,13 +2,27 @@
 
 set -e
 
-if [ "@FLAVOR@" != "serial" ]; then
+ if [ "@FLAVOR@" != "serial" ]; then
   update-alternatives \
        --install /usr/bin/h5pcc h5pcc /usr/bin/h5pcc.@FLAVOR@ 50 \
        --slave /usr/bin/h5pfc h5pfc /usr/bin/h5pfc.@FLAVOR@ \
        --slave /usr/share/man/man1/h5pcc.1.gz h5pcc.1.gz 
/usr/share/man/man1/h5pcc.@fla...@.1.gz \
-       --slave /usr/share/man/man1/h5pfc.1.gz h5pfc.1.gz 
/usr/share/man/man1/h5pfc.@fla...@.1.gz
-fi
+       --slave /usr/share/man/man1/h5pfc.1.gz h5pfc.1.gz 
/usr/share/man/man1/h5pfc.@fla...@.1.gz \
+ fi
+ update-alternatives \
+       --install /usr/lib/@MULTIARCH@/pkgconfig/hdf5.pc          
/usr/lib/@MULTIARCH@/pkgconfig/hdf5-@FLAVOR@.pc \
+       --slave /usr/lib/@MULTIARCH@/libhdf5.so.8.1.1     
/usr/lib/@MULTIARCH@/libhdf5-@FLAVOR@.so.8.1.1 \
+       --slave /usr/lib/@MULTIARCH@/libhdf5hl.so.8.1.1   
/usr/lib/@MULTIARCH@/libhdf5hl@FLAVOR@.so.8.1.1 \
+       --slave /usr/lib/@MULTIARCH@/libhdf5_fortran.so.8.1.1     
/usr/lib/@MULTIARCH@/libhdf5_fortran@FLAVOR@.so.8.1.1 \
+       --slave /usr/lib/@MULTIARCH@/libhdf5hl_fortran.so.8.1.1   
/usr/lib/@MULTIARCH@/libhdf5hl_fortran@FLAVOR@.so.8.1.1  \
+       --slave /usr/lib/@MULTIARCH@/libhdf5.so.8         
/usr/lib/@MULTIARCH@/libhdf5-@FLAVOR@.so.8.1.1 \
+       --slave /usr/lib/@MULTIARCH@/libhdf5hl.so.8       
/usr/lib/@MULTIARCH@/libhdf5hl@FLAVOR@.so.8.1.1 \
+       --slave /usr/lib/@MULTIARCH@/libhdf5_fortran.so.8         
/usr/lib/@MULTIARCH@/libhdf5_fortran@FLAVOR@.so.8.1.1 \
+       --slave /usr/lib/@MULTIARCH@/libhdf5hl_fortran.so.8       
/usr/lib/@MULTIARCH@/libhdf5hl_fortran@FLAVOR@.so.8.1.1 \
+        --slave /usr/lib/@MULTIARCH@/libhdf5.so         
/usr/lib/@MULTIARCH@/libhdf5-@FLAVOR@.so.8.1.1 \
+        --slave /usr/lib/@MULTIARCH@/libhdf5hl.so       
/usr/lib/@MULTIARCH@/libhdf5hl@FLAVOR@.so.8.1.1 \
+        --slave /usr/lib/@MULTIARCH@/libhdf5_fortran.so         
/usr/lib/@MULTIARCH@/libhdf5_fortran@FLAVOR@.so.8.1.1 \
+        --slave /usr/lib/@MULTIARCH@/libhdf5hl_fortran.so       
/usr/lib/@MULTIARCH@/libhdf5hl_fortran@FLAVOR@.so.8.1.1
 
 #DEBHELPER#
 
diff --git a/debian/libhdf5-flavor-dev.prerm.in 
b/debian/libhdf5-flavor-dev.prerm.in
index 1b181a7..c5207eb 100644
--- a/debian/libhdf5-flavor-dev.prerm.in
+++ b/debian/libhdf5-flavor-dev.prerm.in
@@ -7,6 +7,7 @@ if [ "$1" != "upgrade" ]; then
     update-alternatives \
        --remove h5pcc /usr/bin/h5pcc.@FLAVOR@
   fi
+  update-alternatives --remove hdf5.pc  
/usr/lib/@MULTIARCH@/pkgconfig/hdf5-@FLAVOR@.pc  
 fi
 
 #DEBHELPER#
diff --git a/debian/rules b/debian/rules
index 16f2379..1067122 100755
--- a/debian/rules
+++ b/debian/rules
@@ -227,7 +227,7 @@ install-serial: build-stamp
        dh_install -p$(serpack) -p$(package)-dev -phdf5-helpers -phdf5-tools 
-p$(sercpppack) \
                --sourcedir=debian/build/tmpinst
        find debian/$(serpack)/usr/lib -name '*cpp*' -delete
-       install -m644 -D debian/hdf5.pc 
debian/$(package)-dev/usr/lib/$(DEB_HOST_MULTIARCH)/pkgconfig/hdf5.pc
+       install -m644 -D debian/hdf5-serial.pc 
debian/$(package)-dev/usr/lib/$(DEB_HOST_MULTIARCH)/pkgconfig/hdf5-serial.pc
 
 install-openmpi: build-stamp-openmpi
        dh_testdir

-- 
Alioth's /usr/local/bin/git-commit-notice on 
/srv/git.debian.org/git/pkg-grass/hdf5.git

_______________________________________________
Pkg-grass-devel mailing list
Pkg-grass-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-grass-devel

Reply via email to