delete python2
This commit is contained in:
parent
d8df6d37ad
commit
e03c8e24ea
@ -1,16 +1,15 @@
|
|||||||
Name: m2crypto
|
Name: m2crypto
|
||||||
Summary: A crypto and SSL toolkit for Python
|
Summary: A crypto and SSL toolkit for Python
|
||||||
Version: 0.30.1
|
Version: 0.30.1
|
||||||
Release: 3
|
Release: 4
|
||||||
License: MIT
|
License: MIT
|
||||||
URL: https://gitlab.com/m2crypto/m2crypto/
|
URL: https://gitlab.com/m2crypto/m2crypto/
|
||||||
Source0: https://files.pythonhosted.org/packages/41/50/7d85dc99b1c4f29eca83873d851ec29a8e484a66b31351e62e30be9db7d1/M2Crypto-0.30.1.tar.gz
|
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
|
Source1: https://files.pythonhosted.org/packages/41/50/7d85dc99b1c4f29eca83873d851ec29a8e484a66b31351e62e30be9db7d1/M2Crypto-0.30.1.tar.gz.asc
|
||||||
|
|
||||||
Requires: python2-typing
|
|
||||||
|
|
||||||
BuildRequires: openssl openssl-devel perl-interpreter pkgconfig python2-typing swig which
|
BuildRequires: openssl openssl-devel perl-interpreter pkgconfig swig which
|
||||||
BuildRequires: python3-devel python3-setuptools python2-devel python2-setuptools
|
BuildRequires: python3-devel python3-setuptools
|
||||||
|
|
||||||
%description
|
%description
|
||||||
M2Crypto is a crypto and SSL toolkit for Python. It allows you to call OpenSSL functions from Python2 scripts.
|
M2Crypto is a crypto and SSL toolkit for Python. It allows you to call OpenSSL functions from Python2 scripts.
|
||||||
@ -34,37 +33,28 @@ if pkg-config openssl ; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
cd M2Crypto-%{version}
|
cd M2Crypto-%{version}
|
||||||
%{__python2} setup.py build
|
|
||||||
|
|
||||||
cd ../M2Crypto-python3
|
|
||||||
%{__python3} setup.py build
|
%{__python3} setup.py build
|
||||||
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
cd M2Crypto-%{version}
|
cd M2Crypto-%{version}
|
||||||
%{__python2} setup.py install --root=$RPM_BUILD_ROOT
|
|
||||||
|
|
||||||
cd ../M2Crypto-python3
|
|
||||||
%{__python3} setup.py install --root=$RPM_BUILD_ROOT
|
%{__python3} setup.py install --root=$RPM_BUILD_ROOT
|
||||||
|
|
||||||
|
|
||||||
%check
|
%check
|
||||||
%if 0%{?_with_check}
|
%if 0%{?_with_check}
|
||||||
cd M2Crypto-%{version}
|
cd M2Crypto-%{version}
|
||||||
%{__python2} setup.py test
|
|
||||||
|
|
||||||
cd ../M2Crypto-python3
|
|
||||||
%{__python3} setup.py test
|
%{__python3} setup.py test
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%files
|
|
||||||
%doc M2Crypto-%{version}/{CHANGES,LICENCE,README.rst}
|
|
||||||
%{python2_sitearch}/M2Crypto
|
|
||||||
%{python2_sitearch}/M2Crypto-*.egg-info
|
|
||||||
|
|
||||||
%files -n python3-m2crypto
|
%files -n python3-m2crypto
|
||||||
%doc M2Crypto-python3/{CHANGES,LICENCE,README.rst}
|
%doc M2Crypto-python3/{CHANGES,LICENCE,README.rst}
|
||||||
%{python3_sitearch}/M2Crypto
|
%{python3_sitearch}/M2Crypto
|
||||||
%{python3_sitearch}/M2Crypto-*.egg-info
|
%{python3_sitearch}/M2Crypto-*.egg-info
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* 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
|
* Wed Nov 06 2019 Lijin Yang <yanglijin@huawei.com> - 0.30.1-3
|
||||||
- init package
|
- init package
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user