|
|
27ec704 |
%if 0%{?fedora} > 20
|
|
|
5eac1cd |
%global with_python3 1
|
|
|
5eac1cd |
%else
|
|
|
5eac1cd |
%{!?__python2: %global __python2 /usr/bin/python2}
|
|
|
5eac1cd |
%{!?python2_sitearch: %global python2_sitearch %(%{__python2} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
|
|
|
5eac1cd |
%endif
|
|
|
5eac1cd |
|
|
|
5eac1cd |
Name: python-cryptography
|
|
|
7d1e28f |
Version: 1.2.1
|
|
|
777ef8f |
Release: 2%{?dist}
|
|
|
5eac1cd |
Summary: PyCA's cryptography library
|
|
|
5eac1cd |
|
|
|
5eac1cd |
Group: Development/Libraries
|
|
|
2b9cc15 |
License: ASL 2.0 or BSD
|
|
|
5eac1cd |
URL: https://cryptography.io/en/latest/
|
|
|
5eac1cd |
Source0: https://pypi.python.org/packages/source/c/cryptography/cryptography-%{version}.tar.gz
|
|
|
5eac1cd |
|
|
|
5eac1cd |
BuildRequires: openssl-devel
|
|
|
27ec704 |
|
|
|
27ec704 |
BuildRequires: python2-devel
|
|
|
777ef8f |
BuildRequires: python2-pytest
|
|
|
777ef8f |
BuildRequires: python2-setuptools >= 1.0
|
|
|
777ef8f |
BuildRequires: python-pretend
|
|
|
777ef8f |
BuildRequires: python2-iso8601
|
|
|
777ef8f |
BuildRequires: python2-cryptography-vectors = %{version}
|
|
|
777ef8f |
BuildRequires: python2-pyasn1-modules >= 0.1.8
|
|
|
777ef8f |
BuildRequires: python2-hypothesis
|
|
|
777ef8f |
|
|
|
777ef8f |
BuildRequires: python-idna >= 2.0
|
|
|
777ef8f |
BuildRequires: python2-pyasn1 >= 0.1.8
|
|
|
777ef8f |
BuildRequires: python2-six >= 1.4.1
|
|
|
777ef8f |
BuildRequires: python2-cffi >= 1.4.1
|
|
|
777ef8f |
BuildRequires: python-enum34
|
|
|
777ef8f |
BuildRequires: python-ipaddress
|
|
|
27ec704 |
|
|
|
5eac1cd |
%if 0%{?with_python3}
|
|
|
27ec704 |
BuildRequires: python3-devel
|
|
|
777ef8f |
BuildRequires: python3-pytest
|
|
|
777ef8f |
BuildRequires: python3-setuptools >= 1.0
|
|
|
777ef8f |
BuildRequires: python3-pretend
|
|
|
777ef8f |
BuildRequires: python3-iso8601
|
|
|
777ef8f |
BuildRequires: python3-cryptography-vectors = %{version}
|
|
|
777ef8f |
BuildRequires: python3-pyasn1-modules >= 0.1.8
|
|
|
777ef8f |
BuildRequires: python3-hypothesis
|
|
|
777ef8f |
|
|
|
777ef8f |
BuildRequires: python3-idna >= 2.0
|
|
|
777ef8f |
BuildRequires: python3-pyasn1 >= 0.1.8
|
|
|
777ef8f |
BuildRequires: python3-six >= 1.4.1
|
|
|
777ef8f |
BuildRequires: python3-cffi >= 1.4.1
|
|
|
5eac1cd |
%endif
|
|
|
5eac1cd |
|
|
|
5eac1cd |
%description
|
|
|
5eac1cd |
cryptography is a package designed to expose cryptographic primitives and
|
|
|
5eac1cd |
recipes to Python developers.
|
|
|
5eac1cd |
|
|
|
777ef8f |
%package -n python2-cryptography
|
|
|
777ef8f |
Group: Development/Libraries
|
|
|
777ef8f |
Summary: PyCA's cryptography library
|
|
|
777ef8f |
Obsoletes: python-cryptography <= 1.2.1-1
|
|
|
777ef8f |
%{?python_provide:%python_provide python2-cryptography}
|
|
|
777ef8f |
|
|
|
777ef8f |
Requires: openssl
|
|
|
777ef8f |
Requires: python-idna >= 2.0
|
|
|
777ef8f |
Requires: python2-pyasn1 >= 0.1.8
|
|
|
777ef8f |
Requires: python2-six >= 1.4.1
|
|
|
777ef8f |
Requires: python2-cffi >= 1.4.1
|
|
|
777ef8f |
Requires: python-enum34
|
|
|
777ef8f |
Requires: python-ipaddress
|
|
|
777ef8f |
|
|
|
777ef8f |
%description -n python2-cryptography
|
|
|
777ef8f |
cryptography is a package designed to expose cryptographic primitives and
|
|
|
777ef8f |
recipes to Python developers.
|
|
|
777ef8f |
|
|
|
5eac1cd |
%if 0%{?with_python3}
|
|
|
5eac1cd |
%package -n python3-cryptography
|
|
|
5eac1cd |
Group: Development/Libraries
|
|
|
5eac1cd |
Summary: PyCA's cryptography library
|
|
|
777ef8f |
%{?python_provide:%python_provide python3-cryptography}
|
|
|
5eac1cd |
|
|
|
5eac1cd |
Requires: openssl
|
|
|
777ef8f |
Requires: python3-idna >= 2.0
|
|
|
777ef8f |
Requires: python3-pyasn1 >= 0.1.8
|
|
|
777ef8f |
Requires: python3-six >= 1.4.1
|
|
|
777ef8f |
Requires: python3-cffi >= 1.4.1
|
|
|
5eac1cd |
|
|
|
5eac1cd |
%description -n python3-cryptography
|
|
|
5eac1cd |
cryptography is a package designed to expose cryptographic primitives and
|
|
|
5eac1cd |
recipes to Python developers.
|
|
|
5eac1cd |
%endif
|
|
|
5eac1cd |
|
|
|
5eac1cd |
%prep
|
|
|
5eac1cd |
%setup -q -n cryptography-%{version}
|
|
|
5eac1cd |
|
|
|
5eac1cd |
%if 0%{?with_python3}
|
|
|
5eac1cd |
rm -rf %{py3dir}
|
|
|
5eac1cd |
cp -a . %{py3dir}
|
|
|
5eac1cd |
find %{py3dir} -name '*.py' | xargs sed -i '1s|^#!/usr/bin/python|#!%{__python3}|'
|
|
|
5eac1cd |
%endif
|
|
|
5eac1cd |
|
|
|
5eac1cd |
%build
|
|
|
5eac1cd |
%{__python2} setup.py build
|
|
|
5eac1cd |
|
|
|
5eac1cd |
%if 0%{?with_python3}
|
|
|
5eac1cd |
pushd %{py3dir}
|
|
|
5eac1cd |
%{__python3} setup.py build
|
|
|
5eac1cd |
popd
|
|
|
5eac1cd |
%endif
|
|
|
5eac1cd |
|
|
|
5eac1cd |
|
|
|
5eac1cd |
%install
|
|
|
5eac1cd |
# Actually other *.c and *.h are appropriate
|
|
|
5eac1cd |
# see https://github.com/pyca/cryptography/issues/1463
|
|
|
5eac1cd |
find . -name .keep -print -delete
|
|
|
5eac1cd |
|
|
|
5eac1cd |
%{__python2} setup.py install --skip-build --prefix=%{_prefix} --root %{buildroot}
|
|
|
5eac1cd |
|
|
|
5eac1cd |
%if 0%{?with_python3}
|
|
|
5eac1cd |
pushd %{py3dir}
|
|
|
5eac1cd |
%{__python3} setup.py install --skip-build --prefix=%{_prefix} --root %{buildroot}
|
|
|
5eac1cd |
popd
|
|
|
5eac1cd |
%endif
|
|
|
5eac1cd |
|
|
|
5eac1cd |
|
|
|
5eac1cd |
%check
|
|
|
5eac1cd |
%{__python} setup.py test
|
|
|
5eac1cd |
|
|
|
5eac1cd |
%if 0%{?with_python3}
|
|
|
5eac1cd |
pushd %{py3dir}
|
|
|
d3a0b1e |
%{__python3} setup.py test
|
|
|
5eac1cd |
popd
|
|
|
5eac1cd |
%endif
|
|
|
5eac1cd |
|
|
|
5eac1cd |
|
|
|
777ef8f |
%files -n python2-cryptography
|
|
|
2b9cc15 |
%doc LICENSE LICENSE.APACHE LICENSE.BSD README.rst docs
|
|
|
5eac1cd |
%{python_sitearch}/*
|
|
|
5eac1cd |
|
|
|
5eac1cd |
|
|
|
5eac1cd |
%if 0%{?with_python3}
|
|
|
5eac1cd |
%files -n python3-cryptography
|
|
|
2b9cc15 |
%doc LICENSE LICENSE.APACHE LICENSE.BSD README.rst docs
|
|
|
5eac1cd |
%{python3_sitearch}/*
|
|
|
5eac1cd |
%endif
|
|
|
5eac1cd |
|
|
|
5eac1cd |
|
|
|
5eac1cd |
%changelog
|
|
|
777ef8f |
* Mon Jan 11 2016 Nathaniel McCallum <npmccallum@redhat.com> - 1.2.1-2
|
|
|
777ef8f |
- Move python-cryptograph => python2-cryptography
|
|
|
777ef8f |
|
|
|
7d1e28f |
* Sat Jan 09 2016 Nathaniel McCallum <npmccallum@redhat.com> - 1.2.1-1
|
|
|
7d1e28f |
- Update to v1.2.1
|
|
|
7d1e28f |
|
|
Robert Kuska |
8f91816 |
* Wed Nov 11 2015 Robert Kuska <rkuska@redhat.com> - 1.1-1
|
|
Robert Kuska |
8f91816 |
- Update to v1.1
|
|
Robert Kuska |
8f91816 |
|
|
Robert Kuska |
1326ad4 |
* Wed Nov 04 2015 Robert Kuska <rkuska@redhat.com> - 1.0.2-2
|
|
Robert Kuska |
1326ad4 |
- Rebuilt for Python3.5 rebuild
|
|
Robert Kuska |
1326ad4 |
|
|
|
4743d35 |
* Wed Sep 30 2015 Matěj Cepl <mcepl@redhat.com> - 1.0.2-1
|
|
|
4743d35 |
- New upstream release (fix #1267548)
|
|
|
4743d35 |
|
|
|
03a59bd |
* Wed Aug 12 2015 Nathaniel McCallum <npmccallum@redhat.com> - 1.0-1
|
|
|
03a59bd |
- New upstream release
|
|
|
03a59bd |
|
|
|
a4d5017 |
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9-2
|
|
|
a4d5017 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
a4d5017 |
|
|
|
3911660 |
* Thu May 14 2015 Nathaniel McCallum <npmccallum@redhat.com> - 0.9-1
|
|
|
3911660 |
- New upstream release
|
|
|
363ee21 |
- Run tests on RHEL
|
|
|
d8084b7 |
- New deps: python-idna, python-ipaddress
|
|
|
3911660 |
|
|
|
bc8535c |
* Fri Apr 17 2015 Nathaniel McCallum <npmccallum@redhat.com> - 0.8.2-1
|
|
|
bc8535c |
- New upstream release
|
|
|
bc8535c |
- Add python3-pyasn1 Requires (#1211073)
|
|
|
bc8535c |
|
|
|
86fc324 |
* Tue Apr 14 2015 Matej Cepl <mcepl@redhat.com> - 0.8-2
|
|
|
86fc324 |
- Add python-pyasn1 Requires (#1211073)
|
|
|
86fc324 |
|
|
|
bc8535c |
* Fri Mar 13 2015 Nathaniel McCallum <npmccallum@redhat.com> - 0.8-1
|
|
|
0773ac1 |
- New upstream release
|
|
|
0773ac1 |
- Remove upstreamed patch
|
|
|
0773ac1 |
|
|
|
27ec704 |
* Wed Mar 04 2015 Nathaniel McCallum <npmccallum@redhat.com> - 0.7.2-2
|
|
|
27ec704 |
- Add python3-cryptography-vectors build requires
|
|
|
27ec704 |
- Add python-enum34 requires
|
|
|
27ec704 |
|
|
|
2b9cc15 |
* Tue Feb 03 2015 Nathaniel McCallum <npmccallum@redhat.com> - 0.7.2-1
|
|
|
2b9cc15 |
- New upstream release. BSD is now an optional license.
|
|
|
d3a0b1e |
- Fix test running on python3
|
|
|
d3a0b1e |
- Add upstream patch to fix test paths
|
|
|
2b9cc15 |
|
|
|
5eac1cd |
* Fri Nov 07 2014 Matej Cepl <mcepl@redhat.com> - 0.6.1-2
|
|
|
5eac1cd |
- Fix requires, for reasons why other development files were not
|
|
|
5eac1cd |
eliminated see https://github.com/pyca/cryptography/issues/1463.
|
|
|
5eac1cd |
|
|
|
5eac1cd |
* Wed Nov 05 2014 Matej Cepl <mcepl@redhat.com> - 0.6.1-1
|
|
|
5eac1cd |
- New upstream release.
|
|
|
5eac1cd |
|
|
|
5eac1cd |
* Sun Jun 29 2014 Terry Chia <terrycwk1994@gmail.com> 0.4-1
|
|
|
5eac1cd |
- initial version
|