fc685ed
%if 0%{?fedora} || 0%{?rhel} > 7
c9dab4a
# Enable python3 build by default
c9dab4a
%bcond_without python3
c9dab4a
%else
c9dab4a
%bcond_with python3
c9dab4a
%endif
c9dab4a
2a97dd2
%if 0%{?fedora} > 31 || 0%{?rhel} > 7
c9dab4a
# Disable python2 build by default
c9dab4a
%bcond_with python2
c9dab4a
%else
c9dab4a
%bcond_without python2
d376ec4
%endif
d376ec4
d376ec4
%global srcname cryptography-vectors
d376ec4
%global pysrcname cryptography_vectors
01b5d59
8a5566e
Name:           python-%{srcname}
3827f00
Version:        2.8
483694a
Release:        2%{?dist}
8a5566e
License:        ASL 2.0 or BSD
8a5566e
Summary:        Test vectors for the cryptography package
8a5566e
URL:            https://pypi.python.org/pypi/cryptography-vectors
8a5566e
Source0:        https://pypi.io/packages/source/c/%{srcname}/cryptography_vectors-%{version}.tar.gz
01b5d59
8a5566e
BuildArch:      noarch
01b5d59
01b5d59
%description
01b5d59
Test vectors for the cryptography package.
01b5d59
01b5d59
The only purpose of this package is to be a building requirement for
01b5d59
python-cryptography, otherwise it has no use. Don’t install it unless
01b5d59
you really know what you are doing.
01b5d59
c9dab4a
%if 0%{?with_python2}
d376ec4
%package -n  python2-%{srcname}
95c7f06
Summary:        Test vectors for the cryptography package
00a19f2
BuildRequires:  python2-devel
00a19f2
BuildRequires:  python2-setuptools
d376ec4
%{?python_provide:%python_provide python2-%{srcname}}
4b59615
d376ec4
%description -n python2-%{srcname}
95c7f06
Test vectors for the cryptography package.
95c7f06
95c7f06
The only purpose of this package is to be a building requirement for
95c7f06
python-cryptography, otherwise it has no use. Don’t install it unless
95c7f06
you really know what you are doing.
c9dab4a
%endif
95c7f06
99848a2
%if 0%{?with_python3}
d376ec4
%package -n  python%{python3_pkgversion}-%{srcname}
186750b
Summary:        Test vectors for the cryptography package
00a19f2
BuildRequires:  python%{python3_pkgversion}-devel
00a19f2
BuildRequires:  python%{python3_pkgversion}-setuptools
d376ec4
%{?python_provide:%python_provide python%{python3_pkgversion}-%{srcname}}
4b59615
d376ec4
%description -n python%{python3_pkgversion}-%{srcname}
186750b
Test vectors for the cryptography package.
186750b
186750b
The only purpose of this package is to be a building requirement for
186750b
python-cryptography, otherwise it has no use. Don’t install it unless
186750b
you really know what you are doing.
186750b
%endif
186750b
01b5d59
%prep
d376ec4
%setup -q -n %{pysrcname}-%{version}
78c7ba2
rm -vrf %{pysrcname}.egg-info
01b5d59
01b5d59
%build
c9dab4a
%if 0%{?with_python2}
d376ec4
%py2_build
c9dab4a
%endif
d376ec4
%if 0%{?with_python3}
d376ec4
%py3_build
1af731c
%endif
01b5d59
01b5d59
%check
c9dab4a
%if 0%{?with_python2}
01b5d59
%{__python2} setup.py test
c9dab4a
%endif
aaf80ef
%if 0%{?with_python3}
186750b
%{__python3} setup.py test
186750b
%endif
01b5d59
d376ec4
%install
c9dab4a
%if 0%{?with_python2}
d376ec4
%py2_install
c9dab4a
%endif
d376ec4
%if 0%{?with_python3}
d376ec4
%py3_install
1af731c
%endif
d376ec4
7b15a8f
%if 0%{?with_python2}
d376ec4
%files -n python2-%{srcname}
d376ec4
%license LICENSE LICENSE.APACHE LICENSE.BSD
d376ec4
%{python2_sitelib}/%{pysrcname}/
d376ec4
%{python2_sitelib}/%{pysrcname}-%{version}-py*.egg-info
c9dab4a
%endif
d376ec4
99848a2
%if 0%{?with_python3}
d376ec4
%files -n python%{python3_pkgversion}-%{srcname}
d376ec4
%license LICENSE LICENSE.APACHE LICENSE.BSD
d376ec4
%{python3_sitelib}/%{pysrcname}/
d376ec4
%{python3_sitelib}/%{pysrcname}-%{version}-py*.egg-info
186750b
%endif
01b5d59
01b5d59
%changelog
483694a
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.8-2
483694a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
483694a
3827f00
* Thu Oct 17 2019 Christian Heimes <cheimes@redhat.com> - 2.8-1
3827f00
- Update to 2.8
3827f00
- Resolves: rhbz#1762778
3827f00
2a97dd2
* Sat Oct 12 2019 Christian Heimes <cheimes@redhat.com> - 2.7-2
2a97dd2
- Drop Python 2 package
2a97dd2
- Resolves: rhbz#1761082
2a97dd2
18e8f32
* Tue Sep 03 2019 Randy Barlow <bowlofeggs@fedoraproject.org> - 2.7-1
18e8f32
- Update to 2.7 (#1715681).
18e8f32
a779829
* Thu Aug 15 2019 Miro Hrončok <mhroncok@redhat.com> - 2.6.1-3
a779829
- Rebuilt for Python 3.8
a779829
0a07f2d
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.6.1-2
0a07f2d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
0a07f2d
32e239c
* Thu Feb 28 2019 Christian Heimes <cheimes@redhat.com> - 2.6.1-1
32e239c
- New upstream release 2.6.1, resolves RHBZ#1683692
32e239c
d622372
* Wed Feb 13 2019 Alfredo Moralejo <amoralej@redhat.com> - 2.5-1
d622372
- Update to 2.5.
d622372
8effca6
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.3-2
8effca6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
8effca6
5aa340e
* Wed Jul 18 2018 Christian Heimes <cheimes@redhat.com> - 2.3-1
5aa340e
- New upstream release 2.3
5aa340e
120bbb3
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.1-6
120bbb3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
120bbb3
243e4ef
* Mon Jul 02 2018 Miro Hrončok <mhroncok@redhat.com> - 2.2.1-5
243e4ef
- Rebuilt for Python 3.7
243e4ef
7b15a8f
* Tue Jun 19 2018 Christian Heimes <cheimes@redhat.com> - 2.2.1-4
7b15a8f
- Fix typo
7b15a8f
c9dab4a
* Tue Jun 19 2018 Christian Heimes <cheimes@redhat.com> - 2.2.1-3
c9dab4a
- Build Python 2 package conditionally
c9dab4a
5ade9e2
* Fri Jun 15 2018 Miro Hrončok <mhroncok@redhat.com> - 2.2.1-2
5ade9e2
- Rebuilt for Python 3.7
5ade9e2
0f99f6a
* Wed Mar 21 2018 Christian Heimes <cheimes@redhat.com> - 2.2.1-1
0f99f6a
- New upstream release 2.2.1
0f99f6a
e8dcf78
* Sun Feb 18 2018 Christian Heimes <cheimes@redhat.com> - 2.1.4-1
e8dcf78
- New upstream release 2.1.4
e8dcf78
d62a78f
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.3-2
d62a78f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild