From 8a342464dc14d254ddd609b8bab370cf1fa0788b Mon Sep 17 00:00:00 2001 From: "biao716.wang" Date: Mon, 25 May 2020 18:45:33 +0900 Subject: [PATCH] add debian for python-M2Crypto Change-Id: Ib75b84fe9e28825869773df6e7f09dd15698a245 Signed-off-by: biao716.wang --- debian/changelog | 5 +++++ debian/compat | 1 + debian/control | 38 ++++++++++++++++++++++++++++++++++ debian/python-m2crypto.install | 1 + debian/rules | 47 ++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 92 insertions(+) create mode 100755 debian/changelog create mode 100755 debian/compat create mode 100755 debian/control create mode 100644 debian/python-m2crypto.install create mode 100755 debian/rules diff --git a/debian/changelog b/debian/changelog new file mode 100755 index 0000000..706b0a9 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +python-m2crypto (0.35.1.1) unstable; urgency=medium + + * Add Debian + + -- Biao Wang Tue, 26 May 2020 09:42:32 +0200 diff --git a/debian/compat b/debian/compat new file mode 100755 index 0000000..7f8f011 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +7 diff --git a/debian/control b/debian/control new file mode 100755 index 0000000..ae6f694 --- /dev/null +++ b/debian/control @@ -0,0 +1,38 @@ +Source: python-m2crypto +Section: python +Priority: optional +Maintainer: Daniel Stender +Build-Depends: + debhelper (>= 11), + python-dev, + dh-python, + libssl-dev, + python-all-dev, + python-setuptools, + swig (>= 1.3.40), + openssl +Standards-Version: 4.2.1 +Homepage: http://www.tizen.org + +Package: python-m2crypto +Architecture: any +Depends: + ${misc:Depends}, + ${python:Depends}, + ${shlibs:Depends} +Provides: + m2crypto, + ${python:Provides} +Description: Python wrapper for the OpenSSL library (Python 2 modules) + m2crypto features the following: + * RSA, DSA, DH, HMACs, message digests, symmetric ciphers (including AES). + * SSL functionality to implement clients and servers. + * HTTPS extensions to Python's httplib, urllib, and xmlrpclib. + * Unforgeable HMAC'ing AuthCookies for web session management. + * FTP/TLS client and server. + * S/MIME. + * ZServerSSL: A HTTPS server for Zope. + * ZSmime: An S/MIME messenger for Zope. + . + This package contains the modules for the Python 2 interpreter. + diff --git a/debian/python-m2crypto.install b/debian/python-m2crypto.install new file mode 100644 index 0000000..41589af --- /dev/null +++ b/debian/python-m2crypto.install @@ -0,0 +1 @@ +debian/tmp/usr/lib/* /usr/lib diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..0fa0995 --- /dev/null +++ b/debian/rules @@ -0,0 +1,47 @@ +#!/usr/bin/make -f + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +build: build-stamp +build-stamp: + dh_testdir + python setup.py build +clean: + dh_testdir + dh_testroot + rm -f build-stamp + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + # Installing package + mkdir -p $(CURDIR)/debian/tmp + python setup.py install --prefix=/usr --root=$(CURDIR)/debian/tmp +binary-indep: build install + dh_testdir + dh_testroot + dh_installchangelogs + dh_installdocs + dh_install + dh_installman + dh_link + dh_strip + dh_compress + dh_fixperms + dh_python2 + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary-arch: build install + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install -- 2.7.4