summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbertagaz <bertagaz@ptitcanardnoir.org>2011-06-14 15:28:46 +0200
committerbertagaz <bertagaz@ptitcanardnoir.org>2011-06-14 15:28:46 +0200
commitc9ecdd0c5d99b8a55d5289a32669f310faa6477f (patch)
treeef7519972d56868d14c5b610b0a1a14cdb38046c
parent30e9097985656920f01a72efc1088caa2b8d41b3 (diff)
Import Debian patch.
-rw-r--r--debian/changelog44
-rw-r--r--debian/compat1
-rw-r--r--debian/control35
-rw-r--r--debian/copyright100
-rw-r--r--debian/patches/do_not_regenerate_darcs_stuff.patch31
-rw-r--r--debian/patches/move_testvectors_outside_site-packages.patch39
-rw-r--r--debian/patches/series2
-rw-r--r--debian/python-pycryptopp.dirs1
-rw-r--r--debian/python-pycryptopp.docs1
-rwxr-xr-xdebian/rules78
-rw-r--r--debian/source/format1
-rw-r--r--debian/watch2
12 files changed, 335 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..349c3c3
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,44 @@
+pycryptopp (0.5.29-1) UNRELEASED; urgency=low
+
+ * Team upload.
+ TODO: get rid of *.egg and embeddedcryptopp directories or document them in
+ debian/copyright
+
+ [ Piotr Ożarowski ]
+ * New upstream release
+ * Use dh_pyton2 instead of dh_pysupport
+ - minimum required python-all build version bymped to 2.6.6-3
+ * Convert source package format to 3.0 (quilt)
+ * Bumped Standards-Version to 3.9.1 (no other changes needed)
+
+ -- Piotr Ożarowski <piotr@debian.org> Sun, 20 Feb 2011 23:06:31 +0100
+
+pycryptopp (0.5.17-1) unstable; urgency=low
+
+ [ Piotr Ożarowski ]
+ * New upstream release
+
+ -- Debian Python Modules Team <python-modules-team@lists.alioth.debian.org> Wed, 30 Sep 2009 22:40:25 +0200
+
+pycryptopp (0.5.15-2) unstable; urgency=low
+
+ [ Piotr Ożarowski ]
+ * Prepare for Python 2.6:
+ - add $(py_setup_install_args) to the install args (LP: #427025)
+
+ -- Debian Python Modules Team <python-modules-team@lists.alioth.debian.org> Thu, 10 Sep 2009 20:18:04 +0200
+
+pycryptopp (0.5.15-1) unstable; urgency=low
+
+ [ Piotr Ożarowski ]
+ * New upstream release
+ * Bumped Standards-Version to 3.8.3
+ - add debian/README.source
+
+ -- Debian Python Modules Team <python-modules-team@lists.alioth.debian.org> Thu, 27 Aug 2009 00:13:48 +0200
+
+pycryptopp (0.5.14-1) unstable; urgency=low
+
+ * Initial release (Closes: #503977).
+
+ -- Zooko O'Whielacronx <zooko@zooko.com> Mon, 22 Jun 2009 22:20:50 +0200
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..7ed6ff8
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+5
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..d2fde48
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,35 @@
+Source: pycryptopp
+Section: python
+Priority: optional
+Maintainer: Zooko O'Whielacronx <zooko@zooko.com>
+Uploaders: Debian Python Modules Team <python-modules-team@lists.alioth.debian.org>
+Build-Depends: debhelper (>= 5), python-all-dev (>= 2.6.6-3), python-all-dbg, python-setuptools (>= 0.6b3), libcrypto++-dev
+Standards-Version: 3.9.1
+Vcs-Svn: svn://svn.debian.org/python-modules/packages/pycryptopp/trunk
+Vcs-Browser: http://svn.debian.org/viewsvn/python-modules/packages/pycryptopp/trunk/
+Homepage: http://allmydata.org/trac/pycryptopp
+X-Python-Version: >= 2.4
+
+Package: python-pycryptopp
+Architecture: any
+Depends: ${python:Depends}, ${shlibs:Depends}, ${misc:Depends}
+Breaks: ${python:Breaks}
+Provides: ${python:Provides}
+Description: Python wrappers for the Crypto++ library
+ PyCryptopp is a set of Python wrappers for a few of the best crypto algorithms
+ from the Crypto++ library (including SHA-256, AES, RSA signatures and Elliptic
+ Curve DSA signatures).
+
+Package: python-pycryptopp-dbg
+Architecture: any
+Section: debug
+Priority: extra
+Depends: python-pycryptopp (= ${binary:Version}), python-dbg, ${shlibs:Depends}, ${misc:Depends}
+Breaks: ${python:Breaks}
+Provides: ${python:Provides}
+Description: Python wrappers for the Crypto++ library (debug extension)
+ PyCryptopp is a set of Python wrappers for a few of the best crypto algorithms
+ from the Crypto++ library (including SHA-256, AES, RSA signatures and Elliptic
+ Curve DSA signatures).
+ .
+ This package contains the extension built for the Python debug interpreter.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..20f3604
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,100 @@
+This package was debianized by Zooko O'Whielacronx zooko@zooko.com on
+Tue, 16 July 2009 23:30:00 +0000.
+
+It was originally downloaded from http://allmydata.org/trac/pycryptopp
+
+Upstream Author: Zooko O'Whielacronx <zooko@zooko.com>
+
+Copyright:
+
+You may use this package under the GNU General Public License, version
+2 or, at your option, any later version. You may use this package
+under the Transitive Grace Period Public Licence, version 1.0 or, at
+your option, any later version. (You may choose to use this package
+under the terms of either licence, at your option.) See the file
+COPYING.GPL for the terms of the GNU General Public License, version 2.
+See the file COPYING.TGPPL.html for the terms of the Transitive Grace
+Period Public Licence, version 1.0.
+
+The following licensing text applies to a subset of the Crypto++ source code
+which is included in the pycryptopp source tree under the "cryptopp"
+subdirectory. That embedded subset of the Crypto++ source code is not used
+when pycryptopp is built for Debian -- instead the --disable-embedded-cryptopp
+option to "setup.py build" is used to for pycryptopp to build against the
+system libcryptopp.
+
+---[ License.txt begin ]---
+Compilation Copyright (c) 1995-2009 by Wei Dai. All rights reserved.
+This copyright applies only to this software distribution package
+as a compilation, and does not imply a copyright on any particular
+file in the package.
+
+The following files are copyrighted by their respective original authors,
+and their use is subject to additional licenses included in these files.
+
+mars.cpp - Copyright 1998 Brian Gladman.
+
+All other files in this compilation are placed in the public domain by
+Wei Dai and other contributors.
+
+I would like to thank the following authors for placing their works into
+the public domain:
+
+Joan Daemen - 3way.cpp
+Leonard Janke - cast.cpp, seal.cpp
+Steve Reid - cast.cpp
+Phil Karn - des.cpp
+Andrew M. Kuchling - md2.cpp, md4.cpp
+Colin Plumb - md5.cpp
+Seal Woods - rc6.cpp
+Chris Morgan - rijndael.cpp
+Paulo Baretto - rijndael.cpp, skipjack.cpp, square.cpp
+Richard De Moliner - safer.cpp
+Matthew Skala - twofish.cpp
+Kevin Springle - camellia.cpp, shacal2.cpp, ttmac.cpp, whrlpool.cpp, ripemd.cpp
+
+Permission to use, copy, modify, and distribute this compilation for
+any purpose, including commercial applications, is hereby granted
+without fee, subject to the following restrictions:
+
+1. Any copy or modification of this compilation in any form, except
+in object code form as part of an application software, must include
+the above copyright notice and this license.
+
+2. Users of this software agree that any modification or extension
+they provide to Wei Dai will be considered public domain and not
+copyrighted unless it includes an explicit copyright notice.
+
+3. Wei Dai makes no warranty or representation that the operation of the
+software in this compilation will be error-free, and Wei Dai is under no
+obligation to provide any services, by way of maintenance, update, or
+otherwise. THE SOFTWARE AND ANY DOCUMENTATION ARE PROVIDED "AS IS"
+WITHOUT EXPRESS OR IMPLIED WARRANTY INCLUDING, BUT NOT LIMITED TO,
+THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+PURPOSE. IN NO EVENT WILL WEI DAI OR ANY OTHER CONTRIBUTOR BE LIABLE FOR
+DIRECT, INCIDENTAL OR CONSEQUENTIAL DAMAGES, EVEN IF
+ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
+
+4. Users will not use Wei Dai or any other contributor's name in any
+publicity or advertising, without prior written consent in each case.
+
+5. Export of this software from the United States may require a
+specific license from the United States Government. It is the
+responsibility of any person or organization contemplating export
+to obtain such a license before exporting.
+
+6. Certain parts of this software may be protected by patents. It
+is the users' responsibility to obtain the appropriate
+licenses before using those parts.
+
+If this compilation is used in object code form in an application
+software, acknowledgement of the author is not required but would be
+appreciated. The contribution of any useful modifications or extensions
+to Wei Dai is not required but would also be appreciated.
+---[ License.txt end ]---
+
+The Debian packaging is © 2009 Zooko O'Whielacronx <zooko@zooko.com> - it is
+licensed under the same terms as the pycryptopp source code itself.
+
+On Debian systems, the complete text of the GNU General Public License
+can be found in `/usr/share/common-licenses/GPL-2'.
diff --git a/debian/patches/do_not_regenerate_darcs_stuff.patch b/debian/patches/do_not_regenerate_darcs_stuff.patch
new file mode 100644
index 0000000..7472072
--- /dev/null
+++ b/debian/patches/do_not_regenerate_darcs_stuff.patch
@@ -0,0 +1,31 @@
+# upstream tarball already has all .py files generated by darcs / setuptools_darcs
+# no need to regenerate them
+Index: pycryptopp-0.5.29/setup.py
+===================================================================
+--- pycryptopp-0.5.29.orig/setup.py
++++ pycryptopp-0.5.29/setup.py
+@@ -226,7 +226,7 @@ install_requires = ['setuptools >= 0.6a9
+ # that are already in use), you may need to add it to setup.cfg and configure
+ # it to run darcsver before your command, if you want the version number to be
+ # correct when that command runs. http://pypi.python.org/pypi/darcsver
+-setup_requires.append('darcsver >= 1.6.3')
++#setup_requires.append('darcsver >= 1.6.3')
+
+ # setuptools_pyflakes is needed only if you want "./setup.py flakes" to run
+ # pyflakes on all the pycryptopp modules.
+Index: pycryptopp-0.5.29/setup.cfg
+===================================================================
+--- pycryptopp-0.5.29.orig/setup.cfg
++++ pycryptopp-0.5.29/setup.cfg
+@@ -10,8 +10,8 @@ tag_svn_revision = 0
+ sdist_dsc = darcsver --count-all-patches sdist_dsc
+ sdist = darcsver --count-all-patches sdist
+ trial = darcsver --count-all-patches trial
+-build = darcsver --count-all-patches build
+-install = darcsver --count-all-patches install
+-test = darcsver --count-all-patches test
++#build = darcsver --count-all-patches build
++#install = darcsver --count-all-patches install
++#test = darcsver --count-all-patches test
+ bdist_egg = darcsver --count-all-patches bdist_egg
+
diff --git a/debian/patches/move_testvectors_outside_site-packages.patch b/debian/patches/move_testvectors_outside_site-packages.patch
new file mode 100644
index 0000000..956370c
--- /dev/null
+++ b/debian/patches/move_testvectors_outside_site-packages.patch
@@ -0,0 +1,39 @@
+# moves testvecoros (i.e. non .py files) outside site-packages
+Index: pycryptopp-0.5.29/pycryptopp/test/__init__.py
+===================================================================
+--- /dev/null
++++ pycryptopp-0.5.29/pycryptopp/test/__init__.py
+@@ -0,0 +1,7 @@
++import os
++
++def resource_string(package_or_requirement, resource_name):
++ return file(os.path.join("/usr/share/python-pycryptopp/%s" % resource_name)).read()
++
++def resource_listdir(package_or_requirement, resource_name):
++ return os.listdir("/usr/share/python-pycryptopp/%s" % resource_name)
+Index: pycryptopp-0.5.29/pycryptopp/test/test_aes.py
+===================================================================
+--- pycryptopp-0.5.29.orig/pycryptopp/test/test_aes.py
++++ pycryptopp-0.5.29/pycryptopp/test/test_aes.py
+@@ -11,7 +11,7 @@ VERBOSE=False
+
+ from pycryptopp.cipher import aes
+
+-from pkg_resources import resource_string, resource_listdir
++from pycryptopp.test import resource_string, resource_listdir
+
+ from base64 import b32encode
+ def ab(x): # debuggery
+Index: pycryptopp-0.5.29/pycryptopp/test/test_sha256.py
+===================================================================
+--- pycryptopp-0.5.29.orig/pycryptopp/test/test_sha256.py
++++ pycryptopp-0.5.29/pycryptopp/test/test_sha256.py
+@@ -11,7 +11,7 @@ VERBOSE=False
+
+ from pycryptopp.hash import sha256
+
+-from pkg_resources import resource_string
++from pycryptopp.test import resource_string
+
+ def resource_string_lines(pkgname, resname):
+ return split_on_newlines(resource_string(pkgname, resname))
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..721518e
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1,2 @@
+move_testvectors_outside_site-packages.patch
+do_not_regenerate_darcs_stuff.patch
diff --git a/debian/python-pycryptopp.dirs b/debian/python-pycryptopp.dirs
new file mode 100644
index 0000000..49f3877
--- /dev/null
+++ b/debian/python-pycryptopp.dirs
@@ -0,0 +1 @@
+/usr/share/python-pycryptopp/
diff --git a/debian/python-pycryptopp.docs b/debian/python-pycryptopp.docs
new file mode 100644
index 0000000..71dfd5b
--- /dev/null
+++ b/debian/python-pycryptopp.docs
@@ -0,0 +1 @@
+README.txt
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..55ae4f2
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,78 @@
+#!/usr/bin/make -f
+
+#export DH_VERBOSE=1
+
+include /usr/share/python/python.mk
+
+PYVERS=$(shell pyversions -vr)
+PKGDIR=$(CURDIR)/debian/python-pycryptopp
+
+clean:
+ dh_testdir
+ dh_testroot
+ rm -rf dist build build-*
+ find . -name '*\.pyc' -delete
+ dh_clean install-stamp build-stamp \
+ $(PYVERS:%=install-python%) $(PYVERS:%=build-python%) \
+ $(PYVERS:%=install-debug-python%) $(PYVERS:%=build-debug-python%)
+
+build: build-stamp
+
+build-stamp: $(PYVERS:%=build-python%) $(PYVERS:%=build-debug-python%)
+ touch $@
+
+build-python%:
+ python$* setup.py build --disable-embedded-cryptopp
+ touch $@
+
+build-debug-python%:
+ python$*-dbg setup.py build --disable-embedded-cryptopp
+ touch $@
+
+install: $(PYVERS:%=install-python%) $(PYVERS:%=install-debug-python%)
+ # pkg_resources is not used (see patches), no need to require setuptools
+ find $(PKGDIR)/usr/ -type f -name requires.txt -delete
+ # docs are in /usr/share/doc/python-pycryptopp/, remove duplicates
+ rm -rf $(PKGDIR)/usr/share/doc/pycryptopp/
+ rm -rf $(PKGDIR)-dbg/usr/share/doc/pycryptopp/
+
+install-python%: build
+ dh_installdirs
+ python$* setup.py install $(py_setup_install_args) \
+ --skip-build --single-version-externally-managed --root $(PKGDIR)
+ # move test vectors outside site-packages
+ if [ -d $(PKGDIR)/usr/share/python-pycryptopp/testvectors ]; then \
+ rm -rf $(PKGDIR)/$(call py_libdir,$*)/pycryptopp/testvectors; \
+ else mv $(PKGDIR)/$(call py_libdir,$*)/pycryptopp/testvectors $(PKGDIR)/usr/share/python-pycryptopp/; fi
+ touch $@
+
+install-debug-python%: build
+ python$*-dbg setup.py install $(py_setup_install_args) \
+ --skip-build --single-version-externally-managed --root $(PKGDIR)-dbg/
+ find $(PKGDIR)-dbg/usr/lib/python$*/ ! -type d ! -name '*_d\.so' -delete
+ find $(PKGDIR)-dbg/usr/lib/python$*/ -depth -empty -delete
+ touch $@
+
+binary-arch: build install
+ dh_testdir
+ dh_testroot
+ dh_installchangelogs
+ dh_installdocs
+ dh_python2
+ dh_makeshlibs
+ dh_strip --dbg-package=python-pycryptopp-dbg
+ rm -rf $(PKGDIR)-dbg/usr/share/doc/python-pycryptopp-dbg
+ ln -s python-pycryptopp $(PKGDIR)-dbg/usr/share/doc/python-pycryptopp-dbg
+ dh_compress -a -X.py
+ dh_fixperms -a
+ dh_installdeb -a
+ dh_shlibdeps -a
+ dh_gencontrol -a
+ dh_md5sums -a
+ dh_builddeb -a -- -Z bzip2
+
+binary-indep:
+
+binary: binary-indep binary-arch
+
+.PHONY: build clean binary-indep binary-arch binary install
diff --git a/debian/source/format b/debian/source/format
new file mode 100644
index 0000000..163aaf8
--- /dev/null
+++ b/debian/source/format
@@ -0,0 +1 @@
+3.0 (quilt)
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..09c1630
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,2 @@
+version=3
+http://pypi.python.org/packages/source/p/pycryptopp pycryptopp-(.*)\.tar\.gz debian uupdate