r37363 - in /packages/openblas: ./ branches/ tags/ trunk/ trunk/debian/

sylvestre at users.alioth.debian.org sylvestre at users.alioth.debian.org
Sat Feb 19 00:30:00 UTC 2011


Author: sylvestre
Date: Sat Feb 19 00:29:57 2011
New Revision: 37363

URL: http://svn.debian.org/wsvn/debian-science/?sc=1&rev=37363
Log:
Initial packaging of gotoblas / openblas

Added:
    packages/openblas/
    packages/openblas/branches/
    packages/openblas/tags/
    packages/openblas/trunk/
    packages/openblas/trunk/debian/
    packages/openblas/trunk/debian/NEWS.Debian
    packages/openblas/trunk/debian/README.Debian
    packages/openblas/trunk/debian/README.source
    packages/openblas/trunk/debian/changelog
    packages/openblas/trunk/debian/compat
    packages/openblas/trunk/debian/control
    packages/openblas/trunk/debian/copyright
    packages/openblas/trunk/debian/docs
    packages/openblas/trunk/debian/files
    packages/openblas/trunk/debian/libopenblas-base.install
    packages/openblas/trunk/debian/libopenblas-base.postinst
    packages/openblas/trunk/debian/libopenblas-base.prerm
    packages/openblas/trunk/debian/libopenblas-dev.install
    packages/openblas/trunk/debian/libopenblas-dev.postinst
    packages/openblas/trunk/debian/libopenblas-dev.prerm
    packages/openblas/trunk/debian/rules   (with props)
    packages/openblas/trunk/debian/watch

Added: packages/openblas/trunk/debian/NEWS.Debian
URL: http://svn.debian.org/wsvn/debian-science/packages/openblas/trunk/debian/NEWS.Debian?rev=37363&op=file
==============================================================================
--- packages/openblas/trunk/debian/NEWS.Debian (added)
+++ packages/openblas/trunk/debian/NEWS.Debian Sat Feb 19 00:29:57 2011
@@ -1,0 +1,19 @@
+atlas (3.8.3-25) unstable; urgency=low
+
+    Before version 3.8.3-25, optimized binary packages were provided.
+    However, due to the fact that most Atlas optimisation are done at build
+    time, it has been decided to remove them and give priority to locally built
+    packages.
+    See README.Debian on how to rebuild Atlas optimized packages.
+
+ -- Sylvestre Ledru <sylvestre at debian.org>  Wed, 25 Aug 2010 21:42:25 +0200
+
+atlas (3.8.3-18) experimental; urgency=low
+
+ * Since Atlas 3.8.3-10, it is trivial to switch between the various Atlas
+   optimized version.
+   More information are available here:
+   http://wiki.debian.org/DebianScience/LinearAlgebraLibraries
+
+ -- Sylvestre Ledru <sylvestre at debian.org>  Thu, 25 Mar 2010 23:39:26 +0100
+

Added: packages/openblas/trunk/debian/README.Debian
URL: http://svn.debian.org/wsvn/debian-science/packages/openblas/trunk/debian/README.Debian?rev=37363&op=file
==============================================================================
--- packages/openblas/trunk/debian/README.Debian (added)
+++ packages/openblas/trunk/debian/README.Debian Sat Feb 19 00:29:57 2011
@@ -1,0 +1,83 @@
+TODO: update that to openblas
+
+ATLAS for Debian
+----------------------
+
+Starting from Atlas 3.8.3-1, the whole build process has been rewritten.
+It is now using most of the debhelper tools and simplify the management of 
+other archs.
+
+Why optimized packages are no longer available?
+===============================================
+
+ Before version 3.8.3-25, optimized binary packages were provided.
+ However, due to the fact that most Atlas optimisations are done at build time,
+ it has been decided to remove them and give priority to locally built packages.
+
+ See section "Building Optimized Atlas Packages on your ARCH" on how to rebuild
+ Atlas for best performances.
+
+ See also http://people.debian.org/~sylvestre/presentation-linear-algebra.pdf
+ for more information about linear algebra libraries.
+
+How to switch between the BLAS/LAPACK implementation and ATLAS optimized version
+===============================================================================
+
+Since Atlas 3.8.3-10, it is trivial to switch between the various Atlas
+optimized version.
+More information are available here:
+http://wiki.debian.org/DebianScience/LinearAlgebraLibraries
+
+BLAS:
+update-alternatives --config libblas.so.3gf
+
+LAPACK:
+update-alternatives --config liblapack.so.3gf 
+
+
+Building Optimized Atlas Packages on your ARCH
+==============================================
+
+Building your own optimized packages of Atlas is straightforward.
+Just get the sources of the package:
+
+# apt-get source atlas
+
+and type
+
+# fakeroot debian/rules custom
+
+it should produce a package called:
+# ../libatlas3gf-base_*.deb
+
+which should be optimized for the architecture Atlas has been built on.
+
+All dependencies can be installed with the following command:
+# aptitude install build-essential dpkg-dev cdbs devscripts gfortran \
+ liblapack-dev, liblapack-pic, texlive-latex-base
+
+How to load optimized/custom atlas libraries
+============================================
+
+In the previous packages of Atlas, each packages was configured through
+/etc/ld.so.conf.d/.
+Since Atlas 3.8.3-1, this mechanism has been removed since it is forbidden
+by the Debian Policy.
+
+Please see the section:
+"How to switch between the BLAS/LAPACK implementation and ATLAS optimized version" 
+
+
+Misc
+====
+
+Thanks to David Cournapeau for providing all the patches for the shared 
+libraries managements.
+
+Most the information underneath are outdated. They are left here "in case".
+
+
+ -- Sylvestre Ledru <sylvestre at debian.org>  Wed, 24 Jun 2009 16:20:02 +0200
+Last update: Wed, 25 Aug 2010 21:42:25 +0200
+
+

Added: packages/openblas/trunk/debian/README.source
URL: http://svn.debian.org/wsvn/debian-science/packages/openblas/trunk/debian/README.source?rev=37363&op=file
==============================================================================
--- packages/openblas/trunk/debian/README.source (added)
+++ packages/openblas/trunk/debian/README.source Sat Feb 19 00:29:57 2011
@@ -1,0 +1,7 @@
+atlas*.tar.gz is modified from upstream.
+
+*.pdf are removed from the tarball and the TexDoc directory from the CVS
+AtlasBase module is included.
+
+ -- Sylvestre Ledru <sylvestre at debian.org>  Thu, 17 Sep 2009 23:31:54 +0200
+

Added: packages/openblas/trunk/debian/changelog
URL: http://svn.debian.org/wsvn/debian-science/packages/openblas/trunk/debian/changelog?rev=37363&op=file
==============================================================================
--- packages/openblas/trunk/debian/changelog (added)
+++ packages/openblas/trunk/debian/changelog Sat Feb 19 00:29:57 2011
@@ -1,0 +1,40 @@
+openblas (1.2-1+custom5) UNRELEASED; urgency=low
+
+  * custom build on: Linux losinj 2.6.35-trunk-amd64 #1 SMP Mon Sep 6
+    15:15:26 UTC 2010 x86_64 GNU/Linux
+
+ -- Sylvestre Ledru <sylvestre at debian.org>  Thu, 17 Feb 2011 18:20:26 +0100
+
+openblas (1.2-1+custom4) UNRELEASED; urgency=low
+
+  * custom build on: Linux losinj 2.6.35-trunk-amd64 #1 SMP Mon Sep 6
+    15:15:26 UTC 2010 x86_64 GNU/Linux
+
+ -- Sylvestre Ledru <sylvestre at debian.org>  Thu, 17 Feb 2011 18:20:23 +0100
+
+openblas (1.2-1+custom3) UNRELEASED; urgency=low
+
+  * custom build on: Linux losinj 2.6.35-trunk-amd64 #1 SMP Mon Sep 6
+    15:15:26 UTC 2010 x86_64 GNU/Linux
+
+ -- Sylvestre Ledru <sylvestre at debian.org>  Thu, 17 Feb 2011 18:20:07 +0100
+
+openblas (1.2-1+custom2) UNRELEASED; urgency=low
+
+  * custom build on: Linux losinj 2.6.35-trunk-amd64 #1 SMP Mon Sep 6
+    15:15:26 UTC 2010 x86_64 GNU/Linux
+
+ -- Sylvestre Ledru <sylvestre at debian.org>  Thu, 17 Feb 2011 18:19:27 +0100
+
+openblas (1.2-1+custom1) UNRELEASED; urgency=low
+
+  * custom build on: Linux losinj 2.6.35-trunk-amd64 #1 SMP Mon Sep 6
+    15:15:26 UTC 2010 x86_64 GNU/Linux
+
+ -- Sylvestre Ledru <sylvestre at debian.org>  Thu, 17 Feb 2011 18:19:24 +0100
+
+openblas (1.2-1) UNRELEASED; urgency=low
+
+  * Initial version
+
+ -- Sylvestre Ledru <sylvestre at debian.org>  Fri, 04 Feb 2011 18:28:26 +0100

Added: packages/openblas/trunk/debian/compat
URL: http://svn.debian.org/wsvn/debian-science/packages/openblas/trunk/debian/compat?rev=37363&op=file
==============================================================================
--- packages/openblas/trunk/debian/compat (added)
+++ packages/openblas/trunk/debian/compat Sat Feb 19 00:29:57 2011
@@ -1,0 +1,1 @@
+7

Added: packages/openblas/trunk/debian/control
URL: http://svn.debian.org/wsvn/debian-science/packages/openblas/trunk/debian/control?rev=37363&op=file
==============================================================================
--- packages/openblas/trunk/debian/control (added)
+++ packages/openblas/trunk/debian/control Sat Feb 19 00:29:57 2011
@@ -1,0 +1,38 @@
+Source: openblas
+Section: devel
+Priority: optional
+Maintainer: Debian Science Team <debian-science-maintainers at lists.alioth.debian.org>
+Uploaders: Sylvestre Ledru <sylvestre at debian.org>
+Standards-Version: 3.9.1
+Build-Depends: debhelper (>= 7), patch, cdbs, texlive-latex-base
+Homepage: TODO
+Vcs-Svn: svn://svn.debian.org/svn/debian-science/packages/openblas/
+Vcs-Browser: http://svn.debian.org/viewsvn/debian-science/packages/openblas/
+
+Package: libopenblas-base
+Section: libs
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Provides: libblas.so.3gf
+Suggests: ${libs:Suggests}, liblapack3gf
+Description: Optimized BLAS (linear algebra) library based on GotoBLAS2
+ OpenBLAS is an optimized BLAS library based on GotoBLAS2 1.13 BSD version.
+ .
+ The libraries in this package are built without any processor extension
+ instructions, and should run on all processors of this general
+ architecture, albeit less than optimally.  
+ .
+ For more information on how to rebuild locally OpenBLAS, see the section:
+ "Building Optimized OpenBLAS Packages on your ARCH" in README.Debian
+
+Package: libopenblas-dev
+Section: libdevel
+Architecture: any
+Depends: libopenblas-base (= ${binary:Version}), ${shlibs:Depends}
+Provides: libblas-3gf.so
+Suggests: liblapack-dev
+Description: Optimized BLAS (linear algebra) library based on GotoBLAS2
+ OpenBLAS is an optimized BLAS library based on GotoBLAS2 1.13 BSD version.
+ .
+ This package includes the static libraries and symbolic links
+ needed for program development.

Added: packages/openblas/trunk/debian/copyright
URL: http://svn.debian.org/wsvn/debian-science/packages/openblas/trunk/debian/copyright?rev=37363&op=file
==============================================================================
--- packages/openblas/trunk/debian/copyright (added)
+++ packages/openblas/trunk/debian/copyright Sat Feb 19 00:29:57 2011
@@ -1,0 +1,63 @@
+This package was debianized by Camm Maguire <camm at enhanced.com> on
+Tue, 14 Sep 1999 09:28:44 -0400 and rewritten by Sylvestre Ledru
+<sylvestre.ledru at inria.fr> on September 2009.
+
+It was downloaded from http://math-atlas.sourceforge.net/
+
+Upstream Authors: 
+	R. Clint Whaley <atlas at cs.utk.edu>
+	Jack Dongarra <atlas at cs.utk.edu>
+	Jeff Horner
+	Peter Soendergaard
+	Antoine P. Petitet
+	Julian Ruhe
+	Tim Mattox
+	Hank Dietz
+	Camm Maguire
+
+Copyright:
+	(C) Copyright 1997-2008 All Rights Reserved
+	(C) 1996-2006 R. Clint Whaley
+	(C) 1998 Jeff Horner
+	(C) 2001 Peter Soendergaard
+	(C) 1999 Antoine P. Petitet
+	(C) 2001 Julian Ruhe
+	(C) 2003 Tim Mattox
+	(C) 2003 Hank Dietz
+	(C) 2003 Camm Maguire
+	(C) 1999 The Australian National University
+
+
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions
+ are met:
+   1. Redistributions of source code must retain the above copyright
+      notice, this list of conditions and the following disclaimer.
+   2. Redistributions in binary form must reproduce the above copyright
+      notice, this list of conditions, and the following disclaimer in the
+      documentation and/or other materials provided with the distribution.
+   3. The name of the ATLAS group or the names of its contributers may
+      not be used to endorse or promote products derived from this
+      software without specific written permission.
+
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+`AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+ TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE ATLAS GROUP OR ITS CONTRIBUTORS
+ BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ POSSIBILITY OF SUCH DAMAGE.
+
+On alpha architectures, the standard builds use K. GOTO's kernels
+contributed to the ATLAS project under the LGPL.  Therefore on these
+platforms, the distributed prebuilt libraries, as well as any user
+built library using this kernel, is licensed under the LGPL.
+
+On Debian GNU/Linux systems, the complete text of the GNU Lesser General
+Public License can be found in `/usr/share/common-licenses/LGPL-2'
+and the complete text of the BSD License can be found in 
+`/usr/share/common-licenses/BSD'.

Added: packages/openblas/trunk/debian/docs
URL: http://svn.debian.org/wsvn/debian-science/packages/openblas/trunk/debian/docs?rev=37363&op=file
==============================================================================
--- packages/openblas/trunk/debian/docs (added)
+++ packages/openblas/trunk/debian/docs Sat Feb 19 00:29:57 2011
@@ -1,0 +1,1 @@
+README

Added: packages/openblas/trunk/debian/files
URL: http://svn.debian.org/wsvn/debian-science/packages/openblas/trunk/debian/files?rev=37363&op=file
==============================================================================
--- packages/openblas/trunk/debian/files (added)
+++ packages/openblas/trunk/debian/files Sat Feb 19 00:29:57 2011
@@ -1,0 +1,14 @@
+libopenblas-base_1.2-1_amd64.deb libs optional
+libopenblas-dev_1.2-1_amd64.deb libdevel optional
+libopenblas-base_1.2-1_amd64.deb libs optional
+libopenblas-dev_1.2-1_amd64.deb libdevel optional
+libopenblas-base_1.2-1_amd64.deb libs optional
+libopenblas-dev_1.2-1_amd64.deb libdevel optional
+libopenblas-base_1.2-1_amd64.deb libs optional
+libopenblas-dev_1.2-1_amd64.deb libdevel optional
+libopenblas-base_1.2-1_amd64.deb libs optional
+libopenblas-dev_1.2-1_amd64.deb libdevel optional
+libopenblas-base_1.2-1_amd64.deb libs optional
+libopenblas-dev_1.2-1_amd64.deb libdevel optional
+libopenblas-base_1.2-1+custom5_amd64.deb libs optional
+libopenblas-dev_1.2-1+custom5_amd64.deb libdevel optional

Added: packages/openblas/trunk/debian/libopenblas-base.install
URL: http://svn.debian.org/wsvn/debian-science/packages/openblas/trunk/debian/libopenblas-base.install?rev=37363&op=file
==============================================================================
--- packages/openblas/trunk/debian/libopenblas-base.install (added)
+++ packages/openblas/trunk/debian/libopenblas-base.install Sat Feb 19 00:29:57 2011
@@ -1,0 +1,1 @@
+libopenblas.so.0 usr/lib/openblas-base/

Added: packages/openblas/trunk/debian/libopenblas-base.postinst
URL: http://svn.debian.org/wsvn/debian-science/packages/openblas/trunk/debian/libopenblas-base.postinst?rev=37363&op=file
==============================================================================
--- packages/openblas/trunk/debian/libopenblas-base.postinst (added)
+++ packages/openblas/trunk/debian/libopenblas-base.postinst Sat Feb 19 00:29:57 2011
@@ -1,0 +1,13 @@
+#! /bin/sh
+
+set -e
+
+update-alternatives --install /usr/lib/libblas.so.3gf libblas.so.3gf \
+	/usr/lib/openblas-base/libopenblas.so.0 40
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0

Added: packages/openblas/trunk/debian/libopenblas-base.prerm
URL: http://svn.debian.org/wsvn/debian-science/packages/openblas/trunk/debian/libopenblas-base.prerm?rev=37363&op=file
==============================================================================
--- packages/openblas/trunk/debian/libopenblas-base.prerm (added)
+++ packages/openblas/trunk/debian/libopenblas-base.prerm Sat Feb 19 00:29:57 2011
@@ -1,0 +1,13 @@
+#!/bin/sh
+
+set -e
+
+if [ "$1" != "upgrade" ]
+then
+    update-alternatives --remove libblas.so.3gf \
+    /usr/lib/openblas-base/libopenblas.so.0
+fi
+
+#DEBHELPER#
+
+exit 0

Added: packages/openblas/trunk/debian/libopenblas-dev.install
URL: http://svn.debian.org/wsvn/debian-science/packages/openblas/trunk/debian/libopenblas-dev.install?rev=37363&op=file
==============================================================================
--- packages/openblas/trunk/debian/libopenblas-dev.install (added)
+++ packages/openblas/trunk/debian/libopenblas-dev.install Sat Feb 19 00:29:57 2011
@@ -1,0 +1,2 @@
+libopenblas.a usr/lib/openblas-base/
+libopenblas.so usr/lib/openblas-base/

Added: packages/openblas/trunk/debian/libopenblas-dev.postinst
URL: http://svn.debian.org/wsvn/debian-science/packages/openblas/trunk/debian/libopenblas-dev.postinst?rev=37363&op=file
==============================================================================
--- packages/openblas/trunk/debian/libopenblas-dev.postinst (added)
+++ packages/openblas/trunk/debian/libopenblas-dev.postinst Sat Feb 19 00:29:57 2011
@@ -1,0 +1,16 @@
+#! /bin/sh
+
+set -e
+
+update-alternatives --install /usr/lib/libblas.so libblas.so \
+	/usr/lib/openblas-base/libopenblas.so 40 \
+    --slave /usr/lib/libblas.a libblas.a \
+    /usr/lib/openblas-base/libopenblas.a
+
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0

Added: packages/openblas/trunk/debian/libopenblas-dev.prerm
URL: http://svn.debian.org/wsvn/debian-science/packages/openblas/trunk/debian/libopenblas-dev.prerm?rev=37363&op=file
==============================================================================
--- packages/openblas/trunk/debian/libopenblas-dev.prerm (added)
+++ packages/openblas/trunk/debian/libopenblas-dev.prerm Sat Feb 19 00:29:57 2011
@@ -1,0 +1,13 @@
+#!/bin/sh
+
+set -e
+
+if [ "$1" != "upgrade" ]
+then
+    update-alternatives --remove libblas.so \
+    /usr/lib/openblas-base/libopenblas.so
+fi
+
+#DEBHELPER#
+
+exit 0

Added: packages/openblas/trunk/debian/rules
URL: http://svn.debian.org/wsvn/debian-science/packages/openblas/trunk/debian/rules?rev=37363&op=file
==============================================================================
--- packages/openblas/trunk/debian/rules (added)
+++ packages/openblas/trunk/debian/rules Sat Feb 19 00:29:57 2011
@@ -1,0 +1,41 @@
+#!/usr/bin/make -f
+# Copyright 2008-2010 Sylvestre Ledru <sylvestre at debian.org>
+
+include /usr/share/cdbs/1/rules/debhelper.mk
+
+build: build-stamp
+
+build-stamp:
+	if test "$(TARGET)" = ""; then 		\
+			echo "Disable all CPU optimization"; \
+			make TARGET=generic;		\
+	fi
+
+	if test "$(TARGET)" = "custom"; then 		\
+			echo "Leave the detection to GotoBLAS / OpenBLAS"; \
+			make; 								\
+	fi
+
+	if test "$(TARGET)" != "" -a "$(TARGET)" != "custom"; then 		\
+			echo "Use the value '$(TARGET)' provided by the user";	\
+			make TARGET=$(TARGET);									\
+	fi;
+
+	rm libopenblas.so
+	mv libopenblas_*.so libopenblas.so.0
+	ln -s libopenblas.so.0 libopenblas.so
+	mv libopenblas_*.a libopenblas.a
+	touch $@
+
+custom: custom-stamp
+	dch --local='+custom'  "custom build on: `uname -a`"
+	LANG=C debian/rules ARCH=custom build
+
+clean:
+	make clean
+
+# Build a custom package optimized for the current arch
+custom-stamp:
+
+get-orig-source:
+	-uscan --upstream-version 0

Propchange: packages/openblas/trunk/debian/rules
------------------------------------------------------------------------------
    svn:executable = *

Added: packages/openblas/trunk/debian/watch
URL: http://svn.debian.org/wsvn/debian-science/packages/openblas/trunk/debian/watch?rev=37363&op=file
==============================================================================
--- packages/openblas/trunk/debian/watch (added)
+++ packages/openblas/trunk/debian/watch Sat Feb 19 00:29:57 2011
@@ -1,0 +1,3 @@
+version=3
+http://sf.net/math-atlas/atlas(\d.*)\.tar\.gz debian debian/orig-tar.sh
+




More information about the debian-science-commits mailing list