debian/0000755000000000000000000000000012205476653007200 5ustar debian/compat0000644000000000000000000000000212205476653010376 0ustar 7 debian/source/0000755000000000000000000000000012205476653010500 5ustar debian/source/format0000644000000000000000000000001412205476653011706 0ustar 3.0 (quilt) debian/patches/0000755000000000000000000000000012205476653010627 5ustar debian/patches/move_testvectors_outside_site-packages.patch0000644000000000000000000000316312205476653021622 0ustar 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)) debian/patches/series0000644000000000000000000000010212205476653012035 0ustar move_testvectors_outside_site-packages.patch noextraversion.patch debian/patches/noextraversion.patch0000644000000000000000000000242712205476653014743 0ustar 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( debian/python-pycryptopp.dirs0000644000000000000000000000003612205476653013632 0ustar /usr/share/python-pycryptopp/ debian/watch0000644000000000000000000000015012205476653010225 0ustar version=3 https://pypi.python.org/packages/source/p/pycryptopp/ pycryptopp-(.*)\.tar\.gz debian uupdate debian/python-pycryptopp.docs0000644000000000000000000000001312205476653013614 0ustar README.rst debian/changelog0000644000000000000000000000342412205476653011055 0ustar pycryptopp (0.6.0.20120313-1) unstable; urgency=low * Update debian/watch * Refresh patches * Import new upstream version * Fix installation of README, renamed to README.rst -- Micah Anderson 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 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 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 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 Thu, 27 Aug 2009 00:13:48 +0200 pycryptopp (0.5.14-1) unstable; urgency=low * Initial release (Closes: #503977). -- Zooko O'Whielacronx Mon, 22 Jun 2009 22:20:50 +0200 debian/control0000644000000000000000000000267212205476653010612 0ustar Source: pycryptopp Section: python Priority: optional Maintainer: Bert Agaz Uploaders: Micah Anderson 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. debian/copyright0000644000000000000000000001056512205476653011142 0ustar 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 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 - 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'. debian/rules0000755000000000000000000000444512205476653010267 0ustar #!/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