[atlas] 01/04: Ship libpt{c, f77}blas.so when relevant in the custom package.
Sébastien Villemot
sebastien at debian.org
Sun Aug 6 10:39:20 UTC 2017
This is an automated email from the git hooks/post-receive script.
sebastien pushed a commit to branch master
in repository atlas.
commit 5c320ed33f7473ef9bc18e415c6675fd103a7d89
Author: Sébastien Villemot <sebastien at debian.org>
Date: Sun Aug 6 11:02:00 2017 +0200
Ship libpt{c,f77}blas.so when relevant in the custom package.
Closes: #737834
---
debian/libatlas-base-dev.install | 4 ++--
debian/libatlas3-base.install | 4 ++--
debian/rules | 18 ++++++++++++++++++
3 files changed, 22 insertions(+), 4 deletions(-)
diff --git a/debian/libatlas-base-dev.install b/debian/libatlas-base-dev.install
index c3c8cac..d521098 100644
--- a/debian/libatlas-base-dev.install
+++ b/debian/libatlas-base-dev.install
@@ -6,6 +6,6 @@ libblas.so /usr/lib/atlas-base/atlas/
liblapack.a /usr/lib/atlas-base/atlas/
liblapack.so /usr/lib/atlas-base/atlas/
libatlas.so /usr/lib/
-libcblas.so /usr/lib/
-libf77blas.so /usr/lib/
+lib*cblas.so /usr/lib/
+lib*f77blas.so /usr/lib/
liblapack_atlas.so /usr/lib/
\ No newline at end of file
diff --git a/debian/libatlas3-base.install b/debian/libatlas3-base.install
index d8757c5..f416d14 100644
--- a/debian/libatlas3-base.install
+++ b/debian/libatlas3-base.install
@@ -1,6 +1,6 @@
libblas.so.* /usr/lib/atlas-base/atlas/
liblapack.so.* /usr/lib/atlas-base/atlas/
libatlas.so.* /usr/lib/
-libcblas.so.* /usr/lib/
-libf77blas.so.* /usr/lib/
+lib*cblas.so.* /usr/lib/
+lib*f77blas.so.* /usr/lib/
liblapack_atlas.so.* /usr/lib/
diff --git a/debian/rules b/debian/rules
index ac8ee27..e9cd32c 100755
--- a/debian/rules
+++ b/debian/rules
@@ -138,6 +138,24 @@ override_dh_auto_build:
ln -sf liblapack_atlas.so.$(DEB_VERSION_UPSTREAM) liblapack_atlas.so.3
ln -sf liblapack_atlas.so.$(DEB_VERSION_UPSTREAM) liblapack_atlas.so
+ if test -f build/lib/libptcblas.a; then \
+ gfortran $(LDFLAGS) -shared -Wl,-soname=libptcblas.so.3 \
+ -o libptcblas.so.$(DEB_VERSION_UPSTREAM) \
+ -Wl,--whole-archive build/lib/libptcblas.a -Wl,--no-whole-archive \
+ -L. -latlas -lm -lc; \
+ ln -sf libptcblas.so.$(DEB_VERSION_UPSTREAM) libptcblas.so.3; \
+ ln -sf libptcblas.so.$(DEB_VERSION_UPSTREAM) libptcblas.so; \
+ fi
+
+ if test -f build/lib/libptf77blas.a; then \
+ gfortran $(LDFLAGS) -shared -Wl,-soname=libptf77blas.so.3 \
+ -o libptf77blas.so.$(DEB_VERSION_UPSTREAM) \
+ -Wl,--whole-archive build/lib/libptf77blas.a -Wl,--no-whole-archive \
+ -L. -lptcblas -latlas -lm -lc; \
+ ln -sf libptf77blas.so.$(DEB_VERSION_UPSTREAM) libptf77blas.so.3; \
+ ln -sf libptf77blas.so.$(DEB_VERSION_UPSTREAM) libptf77blas.so; \
+ fi
+
# Create static and shared full BLAS
mkdir tmp
cd tmp && \
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/atlas.git
More information about the debian-science-commits
mailing list