diff --git a/cryptography_vectors-2.3.tar.gz b/cryptography_vectors-2.6.1.tar.gz similarity index 75% rename from cryptography_vectors-2.3.tar.gz rename to cryptography_vectors-2.6.1.tar.gz index 067ad6349288f6bbfd6ade9782582ee85098753d..f721d1acfebabd2ed4ef7e8dc29b77e9e1eb6df8 100644 Binary files a/cryptography_vectors-2.3.tar.gz and b/cryptography_vectors-2.6.1.tar.gz differ diff --git a/python-cryptography-vectors.spec b/python-cryptography-vectors.spec index 92cde866e4a2e4e885247f9a3a7aff4425cb559b..08e5766825421bca53ca44d2717d55c40e5c5b66 100644 --- a/python-cryptography-vectors.spec +++ b/python-cryptography-vectors.spec @@ -1,6 +1,8 @@ +%bcond_with python2 + Name: python-cryptography-vectors -Version: 2.3 -Release: 2 +Version: 2.6.1 +Release: 1 License: ASL 2.0 or BSD Summary: This module is a test vectors for the cryptography package URL: https://pypi.python.org/pypi/cryptography-vectors @@ -10,15 +12,17 @@ BuildArch: noarch %description This package is a test vectors for the python-cryptography. -%package -n python2-cryptography-vectors +%if %{with python2} +%package -n python2-cryptography-vectors Summary: This module is a test vectors for the cryptography package BuildRequires: python2-devel python2-setuptools %{?python_provide:%python_provide python2-cryptography-vectors} %description -n python2-cryptography-vectors 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 BuildRequires: python3-devel python3-setuptools %{?python_provide:%python_provide python3-cryptography-vectors} @@ -29,26 +33,45 @@ This package is a test vectors for the python-cryptography. %prep %autosetup -n cryptography_vectors-%{version} rm -vrf cryptography_vectors.egg-info + %build +%if %{with python2} %py2_build +%endif + %py3_build + %check +%if %{with python2} %{__python2} setup.py test +%endif + %{__python3} setup.py test + %install +%if %{with python2} %py2_install +%endif + %py3_install +%if %{with python2} %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-%{version}-py*.egg-info +%endif %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-%{version}-py*.egg-info %changelog +* Fri Feb 14 2020 openEuler Buildteam - 2.6.1-1 +- Update to 2.6.1 + * Mon Nov 25 2019 Ling Yang - 2.3-2 - Package init