summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--debian/changelog58
-rw-r--r--debian/compat1
-rw-r--r--debian/control35
-rw-r--r--debian/copyright100
-rw-r--r--debian/patches/move_testvectors_outside_site-packages.patch38
-rw-r--r--debian/patches/noextraversion.patch34
-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, 351 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..5191c99
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,58 @@
+pycryptopp (0.6.0.12-1) unstable; urgency=low
+
+ * Update debian/watch
+ * Refresh patches
+ * Import new upstream version
+
+ -- Micah Anderson <micah@debian.org> Thu, 22 Aug 2013 16:31:55 -0400
+
+pycryptopp (0.5.29-1) unstable; urgency=low
+
+ [ Micah Anderson ]
+ * Add myself to Uploaders
+ * Set compat to 7 and adjust Build-Dep
+
+ [ Bert Agaz ]
+ * Bump debhelper compatibility.
+ * Update Vcs-* in debian/control.
+ * Bump Standards-Version number.
+ * Fix typo 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)
+
+ -- Bert Agaz <bertagaz@ptitcanardnoir.org> Tue, 14 Jun 2011 23:12:11 +0200
+
+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..7f8f011
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+7
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..e5fccd8
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,35 @@
+Source: pycryptopp
+Section: python
+Priority: optional
+Maintainer: Bert Agaz <bertagaz@ptitcanardnoir.org>
+Uploaders: Micah Anderson <micah@debian.org>
+Build-Depends: debhelper (>= 7), python-all-dev (>= 2.6.6-3), python-all-dbg, python-setuptools (>= 0.6b3), libcrypto++-dev
+Standards-Version: 3.9.2
+Vcs-Git: git://anonscm.debian.org/tahoe/pycryptopp.git
+Vcs-Browser: http://anonscm.debian.org/gitweb/?p=tahoe/pycryptopp.git
+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..18c4089
--- /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 "embeddedcryptopp"
+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/move_testvectors_outside_site-packages.patch b/debian/patches/move_testvectors_outside_site-packages.patch
new file mode 100644
index 0000000..7055927
--- /dev/null
+++ b/debian/patches/move_testvectors_outside_site-packages.patch
@@ -0,0 +1,38 @@
+Index: pycryptopp/src/pycryptopp/test/__init__.py
+===================================================================
+--- /dev/null 1970-01-01 00:00:00.000000000 +0000
++++ pycryptopp/src/pycryptopp/test/__init__.py 2013-08-22 16:45:30.747903892 -0400
+@@ -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/src/pycryptopp/test/test_aes.py
+===================================================================
+--- pycryptopp.orig/src/pycryptopp/test/test_aes.py 2013-08-22 16:39:52.488938601 -0400
++++ pycryptopp/src/pycryptopp/test/test_aes.py 2013-08-22 16:46:22.438522135 -0400
+@@ -11,7 +11,7 @@
+
+ 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/src/pycryptopp/test/test_sha256.py
+===================================================================
+--- pycryptopp.orig/src/pycryptopp/test/test_sha256.py 2013-08-22 16:39:52.488938601 -0400
++++ pycryptopp/src/pycryptopp/test/test_sha256.py 2013-08-22 16:46:40.282045087 -0400
+@@ -11,7 +11,7 @@
+
+ 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/noextraversion.patch b/debian/patches/noextraversion.patch
new file mode 100644
index 0000000..f88c476
--- /dev/null
+++ b/debian/patches/noextraversion.patch
@@ -0,0 +1,34 @@
+Index: pycryptopp/setup.py
+===================================================================
+--- pycryptopp.orig/setup.py 2013-08-22 16:56:10.818783603 -0400
++++ pycryptopp/setup.py 2013-08-22 16:56:44.165896373 -0400
+@@ -304,7 +304,7 @@
+ if mo:
+ return mo.group(1)
+
+-EXTRAVERSION_H_FNAME = os.path.join(EMBEDDED_CRYPTOPP_DIR, 'extraversion.h')
++#EXTRAVERSION_H_FNAME = os.path.join(EMBEDDED_CRYPTOPP_DIR, 'extraversion.h')
+
+ VERSION_BODY = '''
+ # This is the version of this tree, as created by %(versiontool)s from the
+@@ -335,13 +335,13 @@
+ # Let's avoid touching the change time (ctime) on the files unless
+ # they actually need to be updated.
+
+- if self.read_extraversion_h(EXTRAVERSION_H_FNAME) != version:
+- self.write_extraversion_h(
+- PKG,
+- version,
+- EXTRAVERSION_H_FNAME,
+- CPP_GIT_VERSION_BODY
+- )
++# if self.read_extraversion_h(EXTRAVERSION_H_FNAME) != version:
++# self.write_extraversion_h(
++# PKG,
++# version,
++# EXTRAVERSION_H_FNAME,
++# CPP_GIT_VERSION_BODY
++# )
+
+ if read_version_py(VERSION_PY_FNAME) != version:
+ self.write_version_py(
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..37f33e6
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1,2 @@
+move_testvectors_outside_site-packages.patch
+noextraversion.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..5a6d857
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,2 @@
+version=3
+https://pypi.python.org/packages/source/p/pycryptopp/ pycryptopp-(.*)\.tar\.gz debian uupdate