[atlas] 01/01: Add pkg-config file atlas-blas.pc and atlas-lapack.pc alias via update-alternatives.
Sébastien Villemot
sebastien at debian.org
Wed Oct 15 20:16:22 UTC 2014
This is an automated email from the git hooks/post-receive script.
sebastien pushed a commit to branch master
in repository atlas.
commit ac6be215df5d706d4d6b8fe0a07769768a24916d
Author: Sébastien Villemot <sebastien at debian.org>
Date: Wed Oct 15 21:36:42 2014 +0200
Add pkg-config file atlas-blas.pc and atlas-lapack.pc alias via update-alternatives.
---
.gitignore | 2 ++
debian/blas-atlas.pc.in | 10 ++++++++++
debian/changelog | 8 ++++++++
debian/lapack-atlas.pc.in | 10 ++++++++++
debian/libatlas-base-dev.install | 3 ++-
debian/libatlas-base-dev.postinst | 8 ++++++--
debian/rules | 11 +++++++++--
7 files changed, 47 insertions(+), 5 deletions(-)
diff --git a/.gitignore b/.gitignore
index b141f0d..6c86635 100644
--- a/.gitignore
+++ b/.gitignore
@@ -25,4 +25,6 @@ debian/libatlas3-base.postrm.debhelper
debian/libatlas3gf-base/
debian/libatlas3gf-base.substvars
debian/libatlas3gf-base.debhelper.log
+debian/blas-atlas.pc
+debian/lapack-atlas.pc
debian/tmp
diff --git a/debian/blas-atlas.pc.in b/debian/blas-atlas.pc.in
new file mode 100644
index 0000000..3cb9d3b
--- /dev/null
+++ b/debian/blas-atlas.pc.in
@@ -0,0 +1,10 @@
+prefix=/usr
+libdir=${prefix}/lib/atlas-base/atlas
+includedir=${prefix}/include
+Name: atlas-blas
+Description: Automatically Tuned Linear Algebra Software, BLAS
+Version: @DEB_UPSTREAM_VERSION@
+URL: http://math-atlas.sourceforge.net/
+Libs: -L${libdir} -lblas
+Libs.private: -L${libdir} -latlas -lm
+Cflags: -I${includedir}
diff --git a/debian/changelog b/debian/changelog
index 0b78b92..f42ab00 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,11 @@
+atlas (3.10.2-4) unstable; urgency=medium
+
+ [ Alastair McKinstry ]
+ * Add pkg-config file atlas-blas.pc and atlas-lapack.pc alias via
+ update-alternatives.
+
+ -- Sébastien Villemot <sebastien at debian.org> Wed, 15 Oct 2014 21:35:39 +0200
+
atlas (3.10.2-3) unstable; urgency=medium
* libatlas3-base: add dependency on libblas-common.
diff --git a/debian/lapack-atlas.pc.in b/debian/lapack-atlas.pc.in
new file mode 100644
index 0000000..23f1332
--- /dev/null
+++ b/debian/lapack-atlas.pc.in
@@ -0,0 +1,10 @@
+prefix=/usr
+libdir=${prefix}/lib/atlas-base/atlas
+includedir=${prefix}/include
+Name: atlas-lapack
+Description: Automatically Tuned Linear Algebra Software, LAPACK
+Version: @DEB_UPSTREAM_VERSION@
+URL: http://math-atlas.sourceforge.net/
+Libs: -L${libdir} -llapack
+Libs.private: -L${libdir} -latlas -lm
+Cflags: -I${includedir}
diff --git a/debian/libatlas-base-dev.install b/debian/libatlas-base-dev.install
index 4771930..70dbae3 100644
--- a/debian/libatlas-base-dev.install
+++ b/debian/libatlas-base-dev.install
@@ -2,4 +2,5 @@ debian/tmp/usr/lib/atlas-base/*.so
debian/tmp/usr/lib/atlas-base/*.a
debian/tmp/usr/lib/atlas-base/atlas/*.so
debian/tmp/usr/lib/atlas-base/atlas/*.a
-
+debian/blas-atlas.pc /usr/lib/pkgconfig
+debian/lapack-atlas.pc /usr/lib/pkgconfig
diff --git a/debian/libatlas-base-dev.postinst b/debian/libatlas-base-dev.postinst
index ed95c4f..5c1d211 100644
--- a/debian/libatlas-base-dev.postinst
+++ b/debian/libatlas-base-dev.postinst
@@ -5,12 +5,16 @@ set -e
update-alternatives --install /usr/lib/libblas.so libblas.so \
/usr/lib/atlas-base/atlas/libblas.so 35 \
--slave /usr/lib/libblas.a libblas.a \
- /usr/lib/atlas-base/atlas/libblas.a
+ /usr/lib/atlas-base/atlas/libblas.a \
+ --slave /usr/lib/pkgconfig/blas.pc blas.pc \
+ /usr/lib/pkgconfig/blas-atlas.pc
update-alternatives --install /usr/lib/liblapack.so liblapack.so \
/usr/lib/atlas-base/atlas/liblapack.so 35 \
--slave /usr/lib/liblapack.a liblapack.a \
- /usr/lib/atlas-base/atlas/liblapack.a
+ /usr/lib/atlas-base/atlas/liblapack.a \
+ --slave /usr/lib/pkgconfig/lapack.pc lapack.pc \
+ /usr/lib/pkgconfig/lapack-atlas.pc
# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.
diff --git a/debian/rules b/debian/rules
index f14b098..9ff1949 100755
--- a/debian/rules
+++ b/debian/rules
@@ -143,8 +143,14 @@ configure-stamp:
cd -
touch $@
+debian/blas-atlas.pc: debian/blas-atlas.pc.in
+ sed -e "s%@DEB_UPSTREAM_VERSION@%$(DEB_UPSTREAM_VERSION)%" < $< > $@
+
+debian/lapack-atlas.pc: debian/lapack-atlas.pc.in
+ sed -e "s%@DEB_UPSTREAM_VERSION@%$(DEB_UPSTREAM_VERSION)%" < $< > $@
+
common-build-arch common-build-indep:: build-stamp
-build-stamp:
+build-stamp: debian/blas-atlas.pc debian/lapack-atlas.pc
dh_testdir
set -e; \
targetName=`echo $(ARCHS)|sed -e "s|\(.*\)_.*_.*|atlas-\1|g"`; \
@@ -164,7 +170,8 @@ clean:: clean-work
clean-work: restore-armhf-archdef
dh_testdir
dh_testroot
- rm -rf build check
+ rm -rf build check
+ rm -f debian/blas-atlas.pc debian/lapack-atlas.pc
rm -f configure-stamp build-stamp
rm -f TexDoc/*.pdf
[ ! -f Makefile ] || $(MAKE) distclean
--
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