summaryrefslogtreecommitdiff
path: root/python-m2crypto.spec
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-04-10 15:13:22 +0000
committerCoprDistGit <infra@openeuler.org>2023-04-10 15:13:22 +0000
commitbd3e15a3df694fdebdd4f75f0b367bf5199d1381 (patch)
tree9d65bb8ce20437a38945335e11281dab09d16ec6 /python-m2crypto.spec
parent65d1328095adce0d5a4bf622649e9242430a9566 (diff)
automatic import of python-m2crypto
Diffstat (limited to 'python-m2crypto.spec')
-rw-r--r--python-m2crypto.spec90
1 files changed, 90 insertions, 0 deletions
diff --git a/python-m2crypto.spec b/python-m2crypto.spec
new file mode 100644
index 0000000..adf59d9
--- /dev/null
+++ b/python-m2crypto.spec
@@ -0,0 +1,90 @@
+%global _empty_manifest_terminate_build 0
+Name: python-M2Crypto
+Version: 0.38.0
+Release: 1
+Summary: M2Crypto: A Python crypto and SSL toolkit
+License: MIT
+URL: https://gitlab.com/m2crypto/m2crypto
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/2c/52/c35ec79dd97a8ecf6b2bbd651df528abb47705def774a4a15b99977274e8/M2Crypto-0.38.0.tar.gz
+BuildArch: noarch
+
+
+%description
+M2Crypto is the most complete Python wrapper for OpenSSL featuring RSA, DSA,
+DH, EC, 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; M2Crypto can also be
+used to provide SSL for Twisted. Smartcards supported through the Engine
+interface.
+
+%package -n python3-M2Crypto
+Summary: M2Crypto: A Python crypto and SSL toolkit
+Provides: python-M2Crypto
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-M2Crypto
+M2Crypto is the most complete Python wrapper for OpenSSL featuring RSA, DSA,
+DH, EC, 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; M2Crypto can also be
+used to provide SSL for Twisted. Smartcards supported through the Engine
+interface.
+
+%package help
+Summary: Development documents and examples for M2Crypto
+Provides: python3-M2Crypto-doc
+%description help
+M2Crypto is the most complete Python wrapper for OpenSSL featuring RSA, DSA,
+DH, EC, 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; M2Crypto can also be
+used to provide SSL for Twisted. Smartcards supported through the Engine
+interface.
+
+%prep
+%autosetup -n M2Crypto-0.38.0
+
+%build
+%py3_build
+
+%install
+%py3_install
+install -d -m755 %{buildroot}/%{_pkgdocdir}
+if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
+if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
+if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
+if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
+pushd %{buildroot}
+if [ -d usr/lib ]; then
+ find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/lib64 ]; then
+ find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/bin ]; then
+ find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/sbin ]; then
+ find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+touch doclist.lst
+if [ -d usr/share/man ]; then
+ find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst
+fi
+popd
+mv %{buildroot}/filelist.lst .
+mv %{buildroot}/doclist.lst .
+
+%files -n python3-M2Crypto -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Mon Apr 10 2023 Python_Bot <Python_Bot@openeuler.org> - 0.38.0-1
+- Package Spec generated