|
|
|
@ -1,22 +1,8 @@
|
|
|
|
|
%if 0%{?fedora} || 0%{?rhel} > 7
|
|
|
|
|
# Enable python3 build by default
|
|
|
|
|
%bcond_without python3
|
|
|
|
|
%else
|
|
|
|
|
%bcond_with python3
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%if 0%{?rhel} > 7
|
|
|
|
|
# Disable python2 build by default
|
|
|
|
|
%bcond_with python2
|
|
|
|
|
%else
|
|
|
|
|
%bcond_without python2
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%global srcname cryptography-vectors
|
|
|
|
|
%global pysrcname cryptography_vectors
|
|
|
|
|
|
|
|
|
|
Name: python-%{srcname}
|
|
|
|
|
Version: 2.3
|
|
|
|
|
Version: 3.2.1
|
|
|
|
|
Release: 1%{?dist}
|
|
|
|
|
License: ASL 2.0 or BSD
|
|
|
|
|
Summary: Test vectors for the cryptography package
|
|
|
|
@ -32,22 +18,6 @@ The only purpose of this package is to be a building requirement for
|
|
|
|
|
python-cryptography, otherwise it has no use. Don’t install it unless
|
|
|
|
|
you really know what you are doing.
|
|
|
|
|
|
|
|
|
|
%if 0%{?with_python2}
|
|
|
|
|
%package -n python2-%{srcname}
|
|
|
|
|
Summary: Test vectors for the cryptography package
|
|
|
|
|
BuildRequires: python2-devel
|
|
|
|
|
BuildRequires: python2-setuptools
|
|
|
|
|
%{?python_provide:%python_provide python2-%{srcname}}
|
|
|
|
|
|
|
|
|
|
%description -n python2-%{srcname}
|
|
|
|
|
Test vectors for the cryptography package.
|
|
|
|
|
|
|
|
|
|
The only purpose of this package is to be a building requirement for
|
|
|
|
|
python-cryptography, otherwise it has no use. Don’t install it unless
|
|
|
|
|
you really know what you are doing.
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%if 0%{?with_python3}
|
|
|
|
|
%package -n python%{python3_pkgversion}-%{srcname}
|
|
|
|
|
Summary: Test vectors for the cryptography package
|
|
|
|
|
BuildRequires: python%{python3_pkgversion}-devel
|
|
|
|
@ -60,51 +30,30 @@ Test vectors for the cryptography package.
|
|
|
|
|
The only purpose of this package is to be a building requirement for
|
|
|
|
|
python-cryptography, otherwise it has no use. Don’t install it unless
|
|
|
|
|
you really know what you are doing.
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q -n %{pysrcname}-%{version}
|
|
|
|
|
rm -vrf %{pysrcname}.egg-info
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%if 0%{?with_python2}
|
|
|
|
|
%py2_build
|
|
|
|
|
%endif
|
|
|
|
|
%if 0%{?with_python3}
|
|
|
|
|
%py3_build
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
%if 0%{?with_python2}
|
|
|
|
|
%{__python2} setup.py test
|
|
|
|
|
%endif
|
|
|
|
|
%if 0%{?with_python3}
|
|
|
|
|
%{__python3} setup.py test
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%if 0%{?with_python2}
|
|
|
|
|
%py2_install
|
|
|
|
|
%endif
|
|
|
|
|
%if 0%{?with_python3}
|
|
|
|
|
%py3_install
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%if 0%{?with_python2}
|
|
|
|
|
%files -n python2-%{srcname}
|
|
|
|
|
%license LICENSE LICENSE.APACHE LICENSE.BSD
|
|
|
|
|
%{python2_sitelib}/%{pysrcname}/
|
|
|
|
|
%{python2_sitelib}/%{pysrcname}-%{version}-py*.egg-info
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%if 0%{?with_python3}
|
|
|
|
|
%files -n python%{python3_pkgversion}-%{srcname}
|
|
|
|
|
%license LICENSE LICENSE.APACHE LICENSE.BSD
|
|
|
|
|
%{python3_sitelib}/%{pysrcname}/
|
|
|
|
|
%{python3_sitelib}/%{pysrcname}-%{version}-py*.egg-info
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Wed Oct 28 2020 Christian Heimes <cheimes@redhat.com> - 3.2.1-1
|
|
|
|
|
- Rebase to upstream release 3.2.1
|
|
|
|
|
- Resolves: rhbz#1873581
|
|
|
|
|
|
|
|
|
|
* Wed Jul 18 2018 Christian Heimes <cheimes@redhat.com> - 2.3-1
|
|
|
|
|
- New upstream release 2.3
|
|
|
|
|
- Fix AEAD tag truncation bug, RHBZ#1602755
|
|
|
|
|