--- pycryptopp-0.5.14.orig/debian/python-pycryptopp.docs +++ pycryptopp-0.5.14/debian/python-pycryptopp.docs @@ -0,0 +1 @@ +README.txt --- pycryptopp-0.5.14.orig/debian/copyright +++ pycryptopp-0.5.14/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 + +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 - 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'. --- pycryptopp-0.5.14.orig/debian/compat +++ pycryptopp-0.5.14/debian/compat @@ -0,0 +1 @@ +5 --- pycryptopp-0.5.14.orig/debian/watch +++ pycryptopp-0.5.14/debian/watch @@ -0,0 +1,2 @@ +version=3 +http://pypi.python.org/packages/source/p/pycryptopp pycryptopp-(.*)\.tar\.gz debian uupdate --- pycryptopp-0.5.14.orig/debian/changelog +++ pycryptopp-0.5.14/debian/changelog @@ -0,0 +1,5 @@ +pycryptopp (0.5.14-1) unstable; urgency=low + + * Initial release (Closes: #503977). + + -- Zooko O'Whielacronx Mon, 22 Jun 2009 22:20:50 +0200 --- pycryptopp-0.5.14.orig/debian/python-pycryptopp.dirs +++ pycryptopp-0.5.14/debian/python-pycryptopp.dirs @@ -0,0 +1 @@ +/usr/share/python-pycryptopp/ --- pycryptopp-0.5.14.orig/debian/rules +++ pycryptopp-0.5.14/debian/rules @@ -0,0 +1,82 @@ +#!/usr/bin/make -f + +#export DH_VERBOSE=1 + +include /usr/share/quilt/quilt.make +-include /usr/share/python/python.mk +ifeq (,$(py_libdir)) + py_libdir = /usr/lib/python$(subst python,,$(1))/site-packages +endif + +PYVERS=$(shell pyversions -vr) +PKGDIR=$(CURDIR)/debian/python-pycryptopp + +clean: unpatch + 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: patch build-stamp + +build-stamp: $(PYVERS:%=build-python%) $(PYVERS:%=build-debug-python%) + touch $@ + +build-python%: patch + python$* setup.py build --disable-embedded-cryptopp + touch $@ + +build-debug-python%: patch + python$*-dbg setup.py build --disable-embedded-cryptopp + touch $@ + +install: patch $(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 \ + --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 \ + --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_pysupport + 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 --- pycryptopp-0.5.14.orig/debian/control +++ pycryptopp-0.5.14/debian/control @@ -0,0 +1,34 @@ +Source: pycryptopp +Section: python +Priority: optional +Maintainer: Zooko O'Whielacronx +Uploaders: Debian Python Modules Team +Build-Depends: debhelper (>= 5), python-all-dev, python-all-dbg, python-support (>= 0.6.4), python-setuptools (>= 0.6b3), libcrypto++-dev, quilt (>= 0.40) +Standards-Version: 3.8.2 +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 +XS-Python-Version: all + +Package: python-pycryptopp +Architecture: any +Depends: ${python:Depends}, ${shlibs:Depends} +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} +Provides: ${python:Provides} +XB-Python-Version: ${python:Versions} +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. --- pycryptopp-0.5.14.orig/debian/patches/move_testvectors_outside_site-packages.patch +++ pycryptopp-0.5.14/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.14/pycryptopp/test/__init__.py +=================================================================== +--- /dev/null ++++ pycryptopp-0.5.14/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.14/pycryptopp/test/test_aes.py +=================================================================== +--- pycryptopp-0.5.14.orig/pycryptopp/test/test_aes.py ++++ pycryptopp-0.5.14/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.14/pycryptopp/test/test_sha256.py +=================================================================== +--- pycryptopp-0.5.14.orig/pycryptopp/test/test_sha256.py ++++ pycryptopp-0.5.14/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)) --- pycryptopp-0.5.14.orig/debian/patches/series +++ pycryptopp-0.5.14/debian/patches/series @@ -0,0 +1,2 @@ +move_testvectors_outside_site-packages.patch +do_not_regenerate_darcs_stuff.patch --- pycryptopp-0.5.14.orig/debian/patches/do_not_regenerate_darcs_stuff.patch +++ pycryptopp-0.5.14/debian/patches/do_not_regenerate_darcs_stuff.patch @@ -0,0 +1,40 @@ +# upstream tarball already has all .py files generated by darcs / setuptools_darcs +# no need to regenerate them +Index: pycryptopp-0.5.14/setup.cfg +=================================================================== +--- pycryptopp-0.5.14.orig/setup.cfg ++++ pycryptopp-0.5.14/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 + +Index: pycryptopp-0.5.14/setup.py +=================================================================== +--- pycryptopp-0.5.14.orig/setup.py ++++ pycryptopp-0.5.14/setup.py +@@ -218,7 +218,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.2.0') ++#setup_requires.append('darcsver >= 1.2.0') + + # setuptools_pyflakes is needed only if you want "./setup.py flakes" to run + # pyflakes on all the pycryptopp modules. +@@ -230,7 +230,7 @@ if 'flakes' in sys.argv[1:]: + # pycryptopp.egg-info/SOURCES.txt file present which contains a complete list + # of needed files. + # http://pypi.python.org/pypi/setuptools_darcs +-setup_requires.append('setuptools_darcs >= 1.0.5') ++#setup_requires.append('setuptools_darcs >= 1.0.5') + + data_fnames=['COPYING.GPL', 'COPYING.TGPPL.html', 'README.txt'] +