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
c9dab4a
%if 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}
32e239c
Version:        2.6.1
0a07f2d
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
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
d62a78f
99848a2
* Thu Nov 23 2017 Haïkel Guémar <hguemar@fedoraproject.org> - 2.1.3-1
99848a2
- Upstream 2.1.3
99848a2
1af731c
* Tue Oct 17 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 2.1-2
1af731c
- Cleanups in packaging
1af731c
c78fdd2
* Thu Oct 12 2017 Christian Heimes <cheimes@redhat.com> - 2.1-1
c78fdd2
- New upstream release 2.1
c78fdd2
fc685ed
* Tue Sep 05 2017 Troy Dawson <tdawson@redhat.com> - 2.0.2-2
fc685ed
- Cleanup spec file conditionals
fc685ed
d376ec4
* Thu Aug 03 2017 Christian Heimes <cheimes@redhat.com> - 2.0.2-1
d376ec4
- New upstream release 2.0.2
d376ec4
- Modernize spec
d376ec4
ce62e0a
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.9-3
ce62e0a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
ce62e0a
b942616
* Wed Jul 05 2017 Randy Barlow <bowlofeggs@fedoraproject.org> - 1.9-2
b942616
- BuildRequire python2-setuptools instead of python-setuptools.
b942616
- Use the license macro.
b942616
Christian Heimes 694ef3c
* Tue Jun 27 2017 Christian Heimes <cheimes@redhat.com> - 1.9-1
Christian Heimes 694ef3c
- Upstream release 1.9
Christian Heimes 694ef3c
Christian Heimes 5df9f87
* Wed Feb 15 2017 Christian Heimes <cheimes@redhat.com> - 1.7.2-1
Christian Heimes 5df9f87
- Update to latest upstream
Christian Heimes 5df9f87
92e44b4
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.1-2
92e44b4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
92e44b4
04eba2a
* Thu Jan 05 2017 Matěj Cepl <mcepl@redhat.com> - 1.7.1-1
04eba2a
- Update to v1.7.1
04eba2a
1231912
* Mon Dec 12 2016 Charalampos Stratakis <cstratak@redhat.com> - 1.5.3-2
1231912
- Rebuild for Python 3.6
1231912
585d207
* Mon Nov 07 2016 Nathaniel McCallum <npmccallum@redhat.com> - 1.5.3-1
585d207
- Update to v1.5.3
585d207
- Update source URL
585d207
e08f82a
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.1-3
e08f82a
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
e08f82a
6338c7e
* Tue May 10 2016 Nathaniel McCallum <npmccallum@redhat.com> - 1.3.1-2
6338c7e
- Clean up distro macros
6338c7e
d99895a
* Tue May 03 2016 Nathaniel McCallum <npmccallum@redhat.com> - 1.3.1-1
d99895a
- Update to v1.3.1
d99895a
42373f8
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.1-3
42373f8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
42373f8
95c7f06
* Mon Jan 11 2016 Nathaniel McCallum <npmccallum@redhat.com> - 1.2.1-2
95c7f06
- Migrate python-cryptography-vectors => python2-cryptography-vectors
95c7f06
c1f4551
* Sat Jan 09 2016 Nathaniel McCallum <npmccallum@redhat.com> - 1.2.1-1
c1f4551
- Update to v1.2.1
c1f4551
Robert Kuska 3218089
* Wed Nov 11 2015 Robert Kuska <rkuska@redhat.com> - 1.1-1
Robert Kuska 3218089
- Update to v1.1
Robert Kuska 3218089
Robert Kuska 3840f9c
* Wed Nov 04 2015 Robert Kuska <rkuska@redhat.com> - 1.0.2-2
Robert Kuska 3840f9c
- Rebuilt for Python3.5 rebuild
Robert Kuska 3840f9c
6302b86
* Wed Sep 30 2015 Matěj Cepl <mcepl@redhat.com> - 1.0.2-1
6302b86
- New upstream release (fix #1267548)
6302b86
66cc8cd
* Wed Aug 12 2015 Nathaniel McCallum <npmccallum@redhat.com> - 1.0-1
66cc8cd
- New upstream release
66cc8cd
e093ab6
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9-2
e093ab6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
e093ab6
6e4ff46
* Thu May 14 2015 Nathaniel McCallum <npmccallum@redhat.com> - 0.9-1
6e4ff46
- New upstream release
6e4ff46
c60c96a
* Fri Apr 17 2015 Nathaniel McCallum <npmccallum@redhat.com> - 0.8.2-1
c60c96a
- New upstream release
c60c96a
1283b48
* Fri Mar 13 2015 Nathaniel McCallum <npmccallum@redhat.com> - 0.8-1
1283b48
- New upstream release
1283b48
186750b
* Wed Mar 04 2015 Nathaniel McCallum <npmccallum@redhat.com> - 0.7.2-2
186750b
- Add python3 subpackage
186750b
7e46043
* Wed Mar 04 2015 Nathaniel McCallum <npmccallum@redhat.com> - 0.7.2-1
7e46043
- New upstream release
7e46043
- Now licensed under Apache 2.0 or BSD
7e46043
5f7b548
* Thu Oct 16 2014 Matej Cepl <mcepl@redhat.com> - 0.6.1-1
5f7b548
- New upstream release (fixes among others #1153501)
5f7b548
01b5d59
* Wed Oct 01 2014 Matej Cepl <mcepl@redhat.com> - 0.5.4-3
01b5d59
- Add LICENSE file from the upstream repo.
01b5d59
01b5d59
* Mon Sep 29 2014 Matej Cepl <mcepl@redhat.com> - 0.5.4-2
01b5d59
- initial package for Fedora