[clapack] 03/04: adapt to the package layout of lapacke and try to use d-shlibs.

Andreas Tille tille at debian.org
Mon May 23 10:04:52 UTC 2016


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

tille pushed a commit to branch master
in repository clapack.

commit 38504b09f0e03541728468fa363f0413c578bb61
Author: Andreas Tille <tille at debian.org>
Date:   Sun May 22 23:39:38 2016 +0200

    adapt to the package layout of lapacke and try to use d-shlibs.
---
 debian/control              | 68 ++++++++++++++++++++++++++-------------------
 debian/patches/soname.patch |  8 +++---
 debian/rules                | 14 ++++++++++
 3 files changed, 57 insertions(+), 33 deletions(-)

diff --git a/debian/control b/debian/control
index b0063aa..20cbb2d 100644
--- a/debian/control
+++ b/debian/control
@@ -4,12 +4,50 @@ Uploaders: Andreas Tille <tille at debian.org>
 Section: libs
 Priority: optional
 Build-Depends: debhelper (>= 9),
-               cmake
+               cmake,
+               d-shlibs
 Standards-Version: 3.9.8
 Vcs-Browser: https://anonscm.debian.org/cgit/debian-science/packages/clapack.git
 Vcs-Git: https://anonscm.debian.org/git/debian-science/packages/clapack.git
 Homepage: http://www.netlib.org/clapack/
 
+Package: libcblas3
+Architecture: any
+Provides: libcblas.so.3
+Depends: ${shlibs:Depends}, ${misc:Depends}, libblas-common
+Description: Basic Linear Algebra Reference implementations, shared library
+ BLAS (Basic Linear Algebra Subroutines) is a set of efficient
+ routines for most of the basic vector and matrix operations.
+ They are widely used as the basis for other high quality linear
+ algebra software, for example lapack and linpack.  This
+ implementation is the Fortran 77 reference implementation found
+ at netlib.
+ .
+ This implementation of the library belongs to the CLAPACK distribution.
+ .
+ This package contains a shared version of the library.
+
+Package: libcblas-dev
+Architecture: any
+Section: libdevel
+Provides: libcblas.so
+Depends: libcblas3 (= ${binary:Version}), ${misc:Depends}, gfortran
+Description: Basic Linear Algebra Subroutines 3, static library
+ This package is a binary incompatible upgrade to the blas-dev
+ package. Several minor changes to the C interface have been
+ incorporated.
+ .
+ BLAS (Basic Linear Algebra Subroutines) is a set of efficient
+ routines for most of the basic vector and matrix operations.
+ They are widely used as the basis for other high quality linear
+ algebra software, for example lapack and linpack.  This
+ implementation is the Fortran 77 reference implementation found
+ at netlib.
+ .
+ This implementation of the library belongs to the CLAPACK distribution.
+ .
+ This package contains a static version of the library.
+
 Package: libclapack3
 Architecture: any
 Depends: ${misc:Depends},
@@ -22,20 +60,6 @@ Description: C Library of FORTRAN linear algebra routines - shared version
  decomposition, etc. It is a very comprehensive and reputable package
  that has found extensive use in the scientific community.
  .
- The CLAPACK library was built using a Fortran to C conversion utility
- called f2c. The entire Fortran 77 LAPACK library is run through f2c to
- obtain C code, and then modified to improve readability. CLAPACK's
- goal is to provide LAPACK for someone who does not have access to a
- Fortran compiler.
- .
- However, f2c is designed to create C code that is still callable from
- Fortran, so all arguments must be passed using Fortran calling
- conventions and data structures. This requirement has several
- repercussions. The first is that since many compilers require distinct
- Fortran and C routine namespaces, an underscore (_) is appended to C
- routine names which will be called from Fortran. Therefore, f2c has
- added this underscore to all the names in CLAPACK.
- .
  This package contains a shared version of the library.
 
 Package: libclapack-dev
@@ -50,19 +74,5 @@ Description: C Library of FORTRAN linear algebra routines - development
  decomposition, etc. It is a very comprehensive and reputable package
  that has found extensive use in the scientific community.
  .
- The CLAPACK library was built using a Fortran to C conversion utility
- called f2c. The entire Fortran 77 LAPACK library is run through f2c to
- obtain C code, and then modified to improve readability. CLAPACK's
- goal is to provide LAPACK for someone who does not have access to a
- Fortran compiler.
- .
- However, f2c is designed to create C code that is still callable from
- Fortran, so all arguments must be passed using Fortran calling
- conventions and data structures. This requirement has several
- repercussions. The first is that since many compilers require distinct
- Fortran and C routine namespaces, an underscore (_) is appended to C
- routine names which will be called from Fortran. Therefore, f2c has
- added this underscore to all the names in CLAPACK.
- .
  This package contains development files for the C language library for
  CLAPACK, including a static version of the library.
diff --git a/debian/patches/soname.patch b/debian/patches/soname.patch
index 60e0834..1b19547 100644
--- a/debian/patches/soname.patch
+++ b/debian/patches/soname.patch
@@ -12,8 +12,8 @@ Description: Add soname
 +  ENABLE_EXPORTS On
 +  #  LINK_INTERFACE_LIBRARIES ""
 +  OUTPUT_NAME cblas
-+  VERSION 0.0.0
-+  SOVERSION 0
++  VERSION 3.2.1
++  SOVERSION 3
 +  )
 +
  add_library(cblas_static STATIC ${ALLOBJ})
@@ -33,8 +33,8 @@ Description: Add soname
 +  ENABLE_EXPORTS On
 +  #  LINK_INTERFACE_LIBRARIES ""
 +  OUTPUT_NAME clapack
-+  VERSION 0.0.0
-+  SOVERSION 0
++  VERSION 3.2.1
++  SOVERSION 3
 +  )
 +
  add_library(clapack_static STATIC ${ALLOBJ} ${ALLXOBJ})
diff --git a/debian/rules b/debian/rules
index 1367010..7604ab1 100755
--- a/debian/rules
+++ b/debian/rules
@@ -8,3 +8,17 @@ DPKG_EXPORT_BUILDFLAGS = 1
 
 %:
 	dh $@ --buildsystem=cmake
+
+override_dh_install:
+	dh_install
+	d-shlibmove --commit \
+		    --multiarch \
+		    --devunversioned \
+		    --movedev INCLUDE/blaswrap.h usr/include \
+		    */BLAS/SRC/libcblas.so
+
+#	d-shlibmove --commit \
+#		    --multiarch \
+#		    --devunversioned \
+#		    --movedev INCLUDE/clapack.h usr/include \
+#		    */SRC/libclapack.so

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



More information about the debian-science-commits mailing list