[arch-commits] Commit in python-h5py/trunk (DOCS_LICENSE.txt PKGBUILD)

Bruno Pagani archange at archlinux.org
Sat Jun 17 18:13:11 UTC 2017


    Date: Saturday, June 17, 2017 @ 18:13:10
  Author: archange
Revision: 237983

HDF5 rebuild + some cleaning

Use the license file from upstream, verify source with PGP.

Modified:
  python-h5py/trunk/PKGBUILD
Deleted:
  python-h5py/trunk/DOCS_LICENSE.txt

------------------+
 DOCS_LICENSE.txt |   25 -------------------------
 PKGBUILD         |   41 +++++++++++++++++++++--------------------
 2 files changed, 21 insertions(+), 45 deletions(-)

Deleted: DOCS_LICENSE.txt
===================================================================
--- DOCS_LICENSE.txt	2017-06-17 17:28:36 UTC (rev 237982)
+++ DOCS_LICENSE.txt	2017-06-17 18:13:10 UTC (rev 237983)
@@ -1,25 +0,0 @@
-Summary
-=======
-
-The h5py documentation is licensed under the Creative Commons "BY" license.
-This license allows you to reproduce and create derivative works based on the
-documentation contained in this directory, provided you acknowledge the h5py
-authors when you do so.
-
-We suggest you use the following method of acknowledgement:
-
-****************************************************
-HDF5 for Python Documentation
-Copyright 2008-2011 Andrew Collette and contributers
-http://h5py.alfven.org
-****************************************************
-
-License Terms
-=============
-
-The text of this license is available on the Creative Commons website:
-http://creativecommons.org/licenses/by/3.0/legalcode
-
-A non-official summary is also available:
-http://creativecommons.org/licenses/by/3.0/
-

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2017-06-17 17:28:36 UTC (rev 237982)
+++ PKGBUILD	2017-06-17 18:13:10 UTC (rev 237983)
@@ -1,63 +1,64 @@
 # $Id$
 # Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Maintainer: Bruno Pagani (a.k.a. ArchangeGabriel) <archange at archlinux.org>
 # Contributor: Andrzej Giniewicz <gginiu at gmail.com>
 # Contributor: Rich Li <rich at dranek.com>
 # Contributor: Sebastien Binet <binet at lblbox>
 
-pkgbase=python-h5py
-pkgname=(python-h5py python2-h5py)
+_pkg=h5py
+pkgbase=python-$_pkg
+pkgname=(python-$_pkg python2-$_pkg)
 pkgver=2.7.0
-pkgrel=1
+pkgrel=2
 pkgdesc="General-purpose Python bindings for the HDF5 library"
 url="http://www.h5py.org/"
 arch=('i686' 'x86_64')
 license=('BSD')
-makedepends=('cython' 'cython2' 'hdf5' 'python-numpy' 'python2-numpy' 'python-six' 'python2-six'
+makedepends=('hdf5' 'cython' 'cython2' 'python-numpy' 'python2-numpy' 'python-six' 'python2-six'
              'python-pkgconfig' 'python2-pkgconfig')
-source=("https://pypi.io/packages/source/h/h5py/h5py-$pkgver.tar.gz"
-        DOCS_LICENSE.txt)
-md5sums=('f62937f40f68d3b128b3941be239dd93'
-         '747a856995bb271af44733b2fdab642b')
+source=("https://pypi.io/packages/source/h/$_pkg/$_pkg-$pkgver.tar.gz"{,.asc})
+md5sums=('f62937f40f68d3b128b3941be239dd93' 'SKIP')
+validpgpkeys=('AC47F71DB275ECD0B3DA46E857FA4540DD4EFCF7') # Thomas A Caswell (Brookhaven National Lab) <tcaswell at bnl.gov>
 
 prepare() {
   # Remove RPATH
-  sed -i "s/settings\\['runtime_library_dirs'\\] = settings\\['library_dirs'\\]/pass/" h5py-$pkgver/setup_build.py
+  sed -i "s/settings\\['runtime_library_dirs'\\] = settings\\['library_dirs'\\]/pass/" $_pkg-$pkgver/setup_build.py
 
-  cp -a h5py-$pkgver{,-py2}
+  cp -a $_pkg-$pkgver{,-py2}
 }
 
 build() {
-  cd "$srcdir"/h5py-$pkgver
+  cd $_pkg-$pkgver
   python setup.py build
 
-  cd "$srcdir"/h5py-$pkgver-py2
+  cd ../$_pkg-$pkgver-py2
   python2 setup.py build
 }
 
 check() {
-  cd "$srcdir"/h5py-$pkgver
+  cd $_pkg-$pkgver
   python setup.py test
 
-  cd "$srcdir"/h5py-$pkgver-py2
+  cd ../$_pkg-$pkgver-py2
   python2 setup.py test
 }
 
 package_python-h5py() {
   depends=('hdf5' 'python-numpy' 'python-six' 'cython')
-  conflicts=('hdf5-openmpi' 'python-h5py-openmpi')
+  conflicts=('hdf5-openmpi')
 
-  cd "$srcdir"/h5py-$pkgver
+  cd $_pkg-$pkgver
   python setup.py install --root="$pkgdir" --optimize=1
 
-  install -D "$srcdir"/DOCS_LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+  install -D licenses/license.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
 }
 
 package_python2-h5py() {
   depends=('hdf5' 'python2-numpy' 'python2-six' 'cython2')
-  conflicts=('hdf5-openmpi' 'python2-h5py-openmpi')
+  conflicts=('hdf5-openmpi')
 
-  cd "$srcdir"/h5py-$pkgver-py2
+  cd $_pkg-$pkgver-py2
   python2 setup.py install --root="$pkgdir" --optimize=1
 
-  install -D "$srcdir"/DOCS_LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+  install -D licenses/license.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
 }



More information about the arch-commits mailing list