01b5d59
%global modname cryptography-vectors
01b5d59
%global pymodname cryptography_vectors
01b5d59
01b5d59
Name:               python-%{modname}
585d207
Version:            1.5.3
585d207
Release:            1%{?dist}
01b5d59
Summary:            Test vectors for the cryptography package
01b5d59
01b5d59
Group:              Development/Libraries
7e46043
License:            ASL 2.0 or BSD
01b5d59
URL:                http://pypi.python.org/pypi/cryptography-vectors
585d207
Source0:            https://pypi.io/packages/source/c/%{modname}/cryptography_vectors-%{version}.tar.gz
01b5d59
01b5d59
BuildArch:          noarch
01b5d59
BuildRequires:      python2-devel python-setuptools
4b59615
%if 0%{?fedora}
186750b
BuildRequires:      python3-devel python3-setuptools
186750b
%endif
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
95c7f06
%package -n  python2-%{modname}
95c7f06
Group:          Development/Libraries
95c7f06
Summary:        Test vectors for the cryptography package
95c7f06
Obsoletes:      python-cryptography-vectors <= %{version}-%{release}
95c7f06
4b59615
%if 0%{?fedora}
4b59615
%{?python_provide:%python_provide python2-%{modname}}
4b59615
%else
4b59615
Provides:       python-%{modname}
4b59615
%endif
4b59615
95c7f06
%description -n python2-%{modname}
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.
95c7f06
4b59615
%if 0%{?fedora}
186750b
%package -n  python3-%{modname}
186750b
Group:          Development/Libraries
186750b
Summary:        Test vectors for the cryptography package
186750b
4b59615
%{?python_provide:%python_provide python3-%{modname}}
4b59615
186750b
%description -n python3-%{modname}
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
01b5d59
%setup -q -n %{pymodname}-%{version}
01b5d59
01b5d59
# Remove bundled egg-info in case it exists
01b5d59
rm -rf %{modname}.egg-info
01b5d59
01b5d59
01b5d59
%build
01b5d59
CFLAGS="$RPM_OPT_FLAGS" %{__python2} setup.py build
4b59615
%if 0%{?fedora}
186750b
CFLAGS="$RPM_OPT_FLAGS" %{__python3} setup.py build
186750b
%endif
01b5d59
01b5d59
%install
01b5d59
%{__python2} setup.py install -O1 --skip-build --root=%{buildroot}
4b59615
%if 0%{?fedora}
186750b
%{__python3} setup.py install -O1 --skip-build --root=%{buildroot}
186750b
%endif
01b5d59
01b5d59
%check
01b5d59
%{__python2} setup.py test
4b59615
%if 0%{?fedora}
186750b
%{__python3} setup.py test
186750b
%endif
01b5d59
95c7f06
%files -n python2-%{modname}
01b5d59
%doc LICENSE
01b5d59
%{python2_sitelib}/%{pymodname}/
01b5d59
%{python2_sitelib}/%{pymodname}-%{version}*
01b5d59
4b59615
%if 0%{?fedora}
186750b
%files -n python3-%{modname}
186750b
%doc LICENSE
186750b
%{python3_sitelib}/%{pymodname}/
186750b
%{python3_sitelib}/%{pymodname}-%{version}*
186750b
%endif
01b5d59
01b5d59
01b5d59
%changelog
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