debian/0000775000000000000000000000000012501554571007175 5ustar debian/compat0000664000000000000000000000000212500670772010374 0ustar 9 debian/changelog0000664000000000000000000000171212501554571011050 0ustar python-pyeclib (1.0.5m-1~ubuntu14.04.1) trusty-backports; urgency=medium * No-change backport to trusty (LP: #1432496) -- Scott Kitterman Mon, 16 Mar 2015 09:24:09 -0400 python-pyeclib (1.0.5m-1) unstable; urgency=medium * New upstream release using liberasurecode 1.0.5. * Refreshed patches. -- Thomas Goirand Fri, 13 Mar 2015 23:23:29 +0000 python-pyeclib (0.9.10-3) unstable; urgency=medium * Fixed the debian/watch file to use the URL from bitbucket. -- Thomas Goirand Sun, 08 Mar 2015 18:41:06 +0000 python-pyeclib (0.9.10-2) unstable; urgency=medium * Added missing python{3,}-all-dev build-depends. * Added missing libjerasure-dev build-depends. -- Thomas Goirand Thu, 20 Nov 2014 02:15:48 +0800 python-pyeclib (0.9.10-1) unstable; urgency=low * Initial release. (Closes: #769519) -- Thomas Goirand Fri, 14 Nov 2014 17:37:50 +0800 debian/patches/0000775000000000000000000000000012500670772010625 5ustar debian/patches/disable-check-for-liberasure-code.patch0000664000000000000000000000140312500670772020151 0ustar Description: Disable check for liberasurecode Upstream is using a naive way to check if the liberasurecode.so is present on the system (eg, it only checks in /usr/lib, which of course fails in a multiarch system). One could spend hours trying to fix, but I decided to simply remove the check. After all, we have a build-depends for a reason... Author: Thomas Goirand Forwarded: no Last-Update: 2014-11-14 Index: python-pyeclib/setup.py =================================================================== --- python-pyeclib.orig/setup.py +++ python-pyeclib/setup.py @@ -90,7 +90,7 @@ class build(_build): sys.exit(1) def run(self): - self.check_liberasure() + #self.check_liberasure() _build.run(self) debian/patches/remove-rpath-tweak.patch0000664000000000000000000000147212500670772015374 0ustar Description: Removes rpath tweak Upstream is playing with rpath, which should never happen in a system like Debian. So this patch removes it from setup.py. Author: Thomas Goirand Forwarded: no Last-Update: 2014-11-14 Index: python-pyeclib/setup.py =================================================================== --- python-pyeclib.orig/setup.py +++ python-pyeclib/setup.py @@ -173,8 +173,6 @@ module = Extension('pyeclib_c', libraries=['erasurecode'], # The extra arguments are for debugging # extra_compile_args=['-g', '-O0'], - extra_link_args=['-Wl,-rpath,%s' % - l for l in default_library_paths], sources=['src/c/pyeclib_c/pyeclib_c.c']) setup(name='PyECLib', debian/patches/more-rpath-tweak-removal.patch0000664000000000000000000000333112500670772016500 0ustar Description: More rpath tweak removal Author: Thomas Goirand Forwarded: no Last-Update: 2014-11-14 Index: python-pyeclib/setup.py =================================================================== --- python-pyeclib.orig/setup.py +++ python-pyeclib/setup.py @@ -46,9 +46,7 @@ from setuptools.command.install import i platform_str = platform.platform() default_python_incdir = get_python_inc() default_python_libdir = get_python_lib() -default_library_paths = [default_python_libdir, - ('%s/usr/local/lib' % _exec_prefix), - '/lib', '/usr/lib', '/usr/local/lib'] +default_library_paths = [default_python_libdir] # utility routine def _read_file_as_str(name): @@ -130,7 +128,6 @@ class install(_install): if installroot.startswith("/usr"): installroot = "/" - default_library_paths.insert(0, "%s/usr/local/lib" % installroot) _install.run(self) # Another Mac-ism... If the libraries are installed @@ -163,11 +160,8 @@ module = Extension('pyeclib_c', define_macros=[('MAJOR VERSION', '1'), ('MINOR VERSION', '0')], include_dirs=[default_python_incdir, - '/usr/local/include', - '/usr/local/include/jerasure', '/usr/include', - 'src/c/pyeclib_c', - '/usr/local/include'], + 'src/c/pyeclib_c'], library_dirs=default_library_paths, runtime_library_dirs=default_library_paths, libraries=['erasurecode'], debian/patches/series0000664000000000000000000000014012500670772012035 0ustar disable-check-for-liberasure-code.patch remove-rpath-tweak.patch more-rpath-tweak-removal.patch debian/copyright0000664000000000000000000000314312500670772011132 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: PyECLib Source: https://bitbucket.org/kmgreen2/pyeclib Files: debian/* Copyright: (c) 2014, Thomas Goirand License: BSD-2-clause Files: * Copyright: (c) 2013, Kevin Greenan (c) 2013, Tushar Gohad License: BSD-2-clause License: BSD-2-clause Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: . Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. . 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. . 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 COPYRIGHT HOLDER OR 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. debian/rules0000775000000000000000000000240412500670772010256 0ustar #!/usr/bin/make -f PYTHONS:=$(shell pyversions -vr) PYTHON3S:=$(shell py3versions -vr) UPSTREAM_GIT = https://bitbucket.org/kmgreen2/pyeclib.git -include /usr/share/openstack-pkg-tools/pkgos.make %: dh $@ --buildsystem=python_distutils --with python2,python3 override_dh_install: set -e && for pyvers in $(PYTHONS); do \ python$$pyvers setup.py install --install-layout=deb \ --root $(CURDIR)/debian/python-pyeclib; \ done set -e && for pyvers in $(PYTHON3S); do \ python$$pyvers setup.py install --install-layout=deb \ --root $(CURDIR)/debian/python3-pyeclib; \ done override_dh_auto_clean: find . -iname '*.pyc' -delete # TODO: run the test stuff #override_dh_auto_test: #ifeq (,$(findstring nocheck, $(DEB_BUILD_OPTIONS))) # set -e && for pyvers in $(PYTHONS) $(PYTHON3S); do \ # python$$pyvers setup.py test ; \ # done #endif # Commands not to run override_dh_installcatalogs: override_dh_installemacsen override_dh_installifupdown: override_dh_installinfo override_dh_installmenu override_dh_installmime: override_dh_installmodules override_dh_installlogcheck: override_dh_installpam override_dh_installppp override_dh_installudev override_dh_installwm: override_dh_installxfonts override_dh_gconf override_dh_icons override_dh_perl override_dh_usrlocal: debian/control0000664000000000000000000000522212500670772010602 0ustar Source: python-pyeclib Section: python Priority: optional Maintainer: PKG OpenStack Uploaders: Julien Danjou , Thomas Goirand , Mehdi Abaakouk , Gonéri Le Bouder Build-Depends: debhelper (>= 9), liberasurecode-dev, libgf-complete-dev, libjerasure-dev, python-all-dev (>= 2.6.6-3~), python-setuptools, python3-all-dev, python3-setuptools Standards-Version: 3.9.6 Vcs-Browser: http://anonscm.debian.org/gitweb/?p=openstack/python-pyeclib.git Vcs-Git: git://anonscm.debian.org/openstack/python-pyeclib.git Homepage: https://bitbucket.org/kmgreen2/pyeclib Package: python-pyeclib Architecture: any Pre-Depends: dpkg (>= 1.15.6~) Depends: ${misc:Depends}, ${python:Depends}, ${shlibs:Depends} Description: interface for implementing erasure codes - Python 2.x This library provides a simple Python interface for implementing erasure codes. To obtain the best possible performance, the underlying erasure code algorithms are written in C. . This library makes use of Jerasure for Reed-Solomon and provides its own flat XOR-based erasure code encoder and decoder. Currently, it implements a specific class of HD Combination Codes (see "Flat XOR-based erasure codes in storage systems: Constructions, efficient recovery, and tradeoffs" in IEEE MSST 2010). These codes are well-suited to archival use-cases, have a simple construction and require a minimum number of participating disks during single-disk reconstruction (think XOR-based LRC code). . This package contains the Python 2.x module. Package: python3-pyeclib Architecture: any Pre-Depends: dpkg (>= 1.15.6~) Depends: ${misc:Depends}, ${python3:Depends}, ${shlibs:Depends} Description: interface for implementing erasure codes - Python 3.x This library provides a simple Python interface for implementing erasure codes. To obtain the best possible performance, the underlying erasure code algorithms are written in C. . This library makes use of Jerasure for Reed-Solomon and provides its own flat XOR-based erasure code encoder and decoder. Currently, it implements a specific class of HD Combination Codes (see "Flat XOR-based erasure codes in storage systems: Constructions, efficient recovery, and tradeoffs" in IEEE MSST 2010). These codes are well-suited to archival use-cases, have a simple construction and require a minimum number of participating disks during single-disk reconstruction (think XOR-based LRC code). . This package contains the Python 3.x module. debian/source/0000775000000000000000000000000012500670772010476 5ustar debian/source/format0000664000000000000000000000001412500670772011704 0ustar 3.0 (quilt) debian/source/options0000664000000000000000000000005212500670772012111 0ustar extend-diff-ignore = "^[^/]*[.]egg-info/" debian/watch0000664000000000000000000000022612500670772010227 0ustar version=3 opts="uversionmangle=s/[\.-](b|rc)/~$1/" \ https://bitbucket.org/kmgreen2/pyeclib/downloads /kmgreen2/pyeclib/get/v(\d[brc\d\.-]+)\.tar\.gz debian/gbp.conf0000664000000000000000000000024012500670772010611 0ustar [DEFAULT] upstream-branch = master debian-branch = debian/unstable upstream-tag = %(version)s compression = xz [git-buildpackage] export-dir = ../build-area/