Compare commits

..

No commits in common. "e30cbe805d3b45bf3f172f5f1dd839dbf56456af" and "d8df6d37ad151de61570507284160036a6a73f23" have entirely different histories.

4 changed files with 29 additions and 22 deletions

BIN
M2Crypto-0.30.1.tar.gz Normal file

Binary file not shown.

View File

@ -0,0 +1,7 @@
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (GNU/Linux)
iEYEABECAAYFAlrmE1EACgkQ4J/vJdlkhKzYywCfV3GLZgO0v0ZOUe9y/4QXjAmg
sdoAn0p72Wwr/265N/ls32MzZiILAtQi
=suDd
-----END PGP SIGNATURE-----

Binary file not shown.

View File

@ -1,13 +1,16 @@
Name: m2crypto
Summary: A crypto and SSL toolkit for Python
Version: 0.39.0
Release: 1
Version: 0.30.1
Release: 3
License: MIT
URL: https://gitlab.com/m2crypto/m2crypto/
Source0: %{pypi_source M2Crypto}
Source0: https://files.pythonhosted.org/packages/41/50/7d85dc99b1c4f29eca83873d851ec29a8e484a66b31351e62e30be9db7d1/M2Crypto-0.30.1.tar.gz
Source1: https://files.pythonhosted.org/packages/41/50/7d85dc99b1c4f29eca83873d851ec29a8e484a66b31351e62e30be9db7d1/M2Crypto-0.30.1.tar.gz.asc
BuildRequires: openssl openssl-devel perl-interpreter pkgconfig swig which
BuildRequires: python3-devel python3-setuptools gcc
Requires: python2-typing
BuildRequires: openssl openssl-devel perl-interpreter pkgconfig python2-typing swig which
BuildRequires: python3-devel python3-setuptools python2-devel python2-setuptools
%description
M2Crypto is a crypto and SSL toolkit for Python. It allows you to call OpenSSL functions from Python2 scripts.
@ -31,40 +34,37 @@ if pkg-config openssl ; then
fi
cd M2Crypto-%{version}
%{__python3} setup.py build
%{__python2} setup.py build
cd ../M2Crypto-python3
%{__python3} setup.py build
%install
cd M2Crypto-%{version}
%{__python3} setup.py install --root=$RPM_BUILD_ROOT
%{__python2} setup.py install --root=$RPM_BUILD_ROOT
cd ../M2Crypto-python3
%{__python3} setup.py install --root=$RPM_BUILD_ROOT
%check
%if 0%{?_with_check}
cd M2Crypto-%{version}
%{__python2} setup.py test
cd ../M2Crypto-python3
%{__python3} setup.py test
%endif
%files
%doc M2Crypto-%{version}/{CHANGES,LICENCE,README.rst}
%{python2_sitearch}/M2Crypto
%{python2_sitearch}/M2Crypto-*.egg-info
%files -n python3-m2crypto
%doc M2Crypto-python3/{CHANGES,LICENCE,README.rst}
%{python3_sitearch}/M2Crypto
%{python3_sitearch}/M2Crypto-*.egg-info
%changelog
* Sat Jul 22 2023 xu_ping <707078654@qq.com> - 0.39.0-1
- Upgrade to 0.39.0
* Wed Aug 17 2022 yaoxin <yaoxin30@h-partners.com> - 0.38.0-2
- Fix CVE-2020-25657
* Thu Apr 28 2022 houyingchao <houyingchao@h-partners.com> - 0.38.0-1
- Upgrade to 0.38.0
* Wed Jun 23 2021 wuchaochao <wuchaochao4@huawei.com> - 0.30.1-5
- add buildrequires:gcc
* Thu Oct 29 2020 tianwei <tianwei12@huawei.com> - 0.30.1-4
- delete python2
* Wed Nov 06 2019 Lijin Yang <yanglijin@huawei.com> - 0.30.1-3
- init package