Compare commits

...

No commits in common. "c8s" and "c8" have entirely different histories.
c8s ... c8

3 changed files with 58 additions and 7 deletions

2
.gitignore vendored
View File

@ -1 +1 @@
SOURCES/cryptography_vectors-3.2.1.tar.gz
SOURCES/cryptography_vectors-2.3.tar.gz

View File

@ -1 +1 @@
9af06241b094022e67fe94c4581d6fc17afdb7ab SOURCES/cryptography_vectors-3.2.1.tar.gz
275e55bc76d74134c7e3e8ed733f2ca31c19286b SOURCES/cryptography_vectors-2.3.tar.gz

View File

@ -1,8 +1,22 @@
%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: 3.2.1
Version: 2.3
Release: 1%{?dist}
License: ASL 2.0 or BSD
Summary: Test vectors for the cryptography package
@ -18,6 +32,22 @@ The only purpose of this package is to be a building requirement for
python-cryptography, otherwise it has no use. Dont 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. Dont 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
@ -30,30 +60,51 @@ 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. Dont 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