Update to 2.6.1

This commit is contained in:
h00465007 2020-02-14 10:24:09 +08:00
parent b9c7d79cc8
commit b121025fba
2 changed files with 29 additions and 6 deletions

View File

@ -1,6 +1,8 @@
%bcond_with python2
Name: python-cryptography-vectors Name: python-cryptography-vectors
Version: 2.3 Version: 2.6.1
Release: 2 Release: 1
License: ASL 2.0 or BSD License: ASL 2.0 or BSD
Summary: This module is a test vectors for the cryptography package Summary: This module is a test vectors for the cryptography package
URL: https://pypi.python.org/pypi/cryptography-vectors URL: https://pypi.python.org/pypi/cryptography-vectors
@ -10,6 +12,7 @@ BuildArch: noarch
%description %description
This package is a test vectors for the python-cryptography. This package is a test vectors for the python-cryptography.
%if %{with python2}
%package -n python2-cryptography-vectors %package -n python2-cryptography-vectors
Summary: This module is a test vectors for the cryptography package Summary: This module is a test vectors for the cryptography package
BuildRequires: python2-devel python2-setuptools BuildRequires: python2-devel python2-setuptools
@ -17,6 +20,7 @@ BuildRequires: python2-devel python2-setuptools
%description -n python2-cryptography-vectors %description -n python2-cryptography-vectors
This package is a test vectors for the python-cryptography. This package is a test vectors for the python-cryptography.
%endif
%package -n python3-cryptography-vectors %package -n python3-cryptography-vectors
Summary: This module is a test vectors for the cryptography package Summary: This module is a test vectors for the cryptography package
@ -29,26 +33,45 @@ This package is a test vectors for the python-cryptography.
%prep %prep
%autosetup -n cryptography_vectors-%{version} %autosetup -n cryptography_vectors-%{version}
rm -vrf cryptography_vectors.egg-info rm -vrf cryptography_vectors.egg-info
%build %build
%if %{with python2}
%py2_build %py2_build
%endif
%py3_build %py3_build
%check %check
%if %{with python2}
%{__python2} setup.py test %{__python2} setup.py test
%endif
%{__python3} setup.py test %{__python3} setup.py test
%install %install
%if %{with python2}
%py2_install %py2_install
%endif
%py3_install %py3_install
%if %{with python2}
%files -n python2-cryptography-vectors %files -n python2-cryptography-vectors
%doc LICENSE LICENSE.APACHE LICENSE.BSD %defattr(-,root,root)
%license LICENSE LICENSE.APACHE LICENSE.BSD
%{python2_sitelib}/cryptography_vectors/ %{python2_sitelib}/cryptography_vectors/
%{python2_sitelib}/cryptography_vectors-%{version}-py*.egg-info %{python2_sitelib}/cryptography_vectors-%{version}-py*.egg-info
%endif
%files -n python3-cryptography-vectors %files -n python3-cryptography-vectors
%doc LICENSE LICENSE.APACHE LICENSE.BSD %defattr(-,root,root)
%license LICENSE LICENSE.APACHE LICENSE.BSD
%{python3_sitelib}/cryptography_vectors/ %{python3_sitelib}/cryptography_vectors/
%{python3_sitelib}/cryptography_vectors-%{version}-py*.egg-info %{python3_sitelib}/cryptography_vectors-%{version}-py*.egg-info
%changelog %changelog
* Fri Feb 14 2020 openEuler Buildteam <buildteam@openeuler.org> - 2.6.1-1
- Update to 2.6.1
* Mon Nov 25 2019 Ling Yang <lingyang2@huawei.com> - 2.3-2 * Mon Nov 25 2019 Ling Yang <lingyang2@huawei.com> - 2.3-2
- Package init - Package init