|
@@ -5,7 +5,7 @@
|
|
|
|
|
|
Summary: PyCA's cryptography library
|
|
Summary: PyCA's cryptography library
|
|
Name: python-%{srcname}
|
|
Name: python-%{srcname}
|
|
-Version: 3.0
|
|
|
|
|
|
+Version: 38.0.1
|
|
Release: 1%{?_dist_release}
|
|
Release: 1%{?_dist_release}
|
|
Group: programming
|
|
Group: programming
|
|
Vendor: Project Vine
|
|
Vendor: Project Vine
|
|
@@ -14,34 +14,21 @@ Distribution: Vine Linux
|
|
License: ASL 2.0 or BSD
|
|
License: ASL 2.0 or BSD
|
|
URL: https://cryptography.io/en/latest/
|
|
URL: https://cryptography.io/en/latest/
|
|
Source0: https://pypi.io/packages/source/c/%{srcname}/%{srcname}-%{version}.tar.gz
|
|
Source0: https://pypi.io/packages/source/c/%{srcname}/%{srcname}-%{version}.tar.gz
|
|
-
|
|
|
|
-Requires: openssl
|
|
|
|
-Requires: python-idna >= 2.1
|
|
|
|
-Requires: python-asn1crypto >= 0.21
|
|
|
|
-Requires: python-six >= 1.4.1
|
|
|
|
-Requires: python-cffi >= 1.7
|
|
|
|
-Requires: python-enum34
|
|
|
|
-Requires: python-ipaddress
|
|
|
|
|
|
+Source1: cryptography-%{version}-vendor.tar.bz2
|
|
|
|
+Source2: conftest-skipper.py
|
|
|
|
+Source3: vendor_rust.py
|
|
|
|
|
|
BuildRequires: openssl-devel
|
|
BuildRequires: openssl-devel
|
|
BuildRequires: gcc
|
|
BuildRequires: gcc
|
|
|
|
|
|
BuildRequires: python-rpm-macros
|
|
BuildRequires: python-rpm-macros
|
|
-BuildRequires: python2-rpm-macros
|
|
|
|
-BuildRequires: python-devel
|
|
|
|
-BuildRequires: python-setuptools
|
|
|
|
-BuildRequires: python-asn1crypto >= 0.21
|
|
|
|
-
|
|
|
|
-BuildRequires: python-idna >= 2.1
|
|
|
|
-BuildRequires: python-six >= 1.4.1
|
|
|
|
-BuildRequires: python-cffi >= 1.7
|
|
|
|
-BuildRequires: python-enum34
|
|
|
|
-BuildRequires: python-ipaddress
|
|
|
|
|
|
|
|
%if 0%{?with_python3}
|
|
%if 0%{?with_python3}
|
|
BuildRequires: python%{python3_pkgversion}-rpm-macros
|
|
BuildRequires: python%{python3_pkgversion}-rpm-macros
|
|
BuildRequires: python%{python3_pkgversion}-devel
|
|
BuildRequires: python%{python3_pkgversion}-devel
|
|
BuildRequires: python%{python3_pkgversion}-setuptools
|
|
BuildRequires: python%{python3_pkgversion}-setuptools
|
|
|
|
+BuildRequires: python%{python3_pkgversion}-setuptools-rust
|
|
|
|
+BuildRequires: python%{python3_pkgversion}-pip
|
|
BuildRequires: python%{python3_pkgversion}-asn1crypto >= 0.21
|
|
BuildRequires: python%{python3_pkgversion}-asn1crypto >= 0.21
|
|
|
|
|
|
BuildRequires: python%{python3_pkgversion}-idna >= 2.1
|
|
BuildRequires: python%{python3_pkgversion}-idna >= 2.1
|
|
@@ -59,6 +46,7 @@ recipes to Python developers.
|
|
Provides: python-%{srcname}
|
|
Provides: python-%{srcname}
|
|
%endif
|
|
%endif
|
|
|
|
|
|
|
|
+
|
|
%if 0%{?with_python3}
|
|
%if 0%{?with_python3}
|
|
%package -n python%{python3_pkgversion}-%{srcname}
|
|
%package -n python%{python3_pkgversion}-%{srcname}
|
|
Group: programming
|
|
Group: programming
|
|
@@ -76,6 +64,10 @@ cryptography is a package designed to expose cryptographic primitives and
|
|
recipes to Python developers.
|
|
recipes to Python developers.
|
|
%endif
|
|
%endif
|
|
|
|
|
|
|
|
+
|
|
|
|
+%debug_package
|
|
|
|
+
|
|
|
|
+
|
|
%prep
|
|
%prep
|
|
%autosetup -p1 -n %{srcname}-%{version}
|
|
%autosetup -p1 -n %{srcname}-%{version}
|
|
|
|
|
|
@@ -87,12 +79,8 @@ find %{py3dir} -name '*.py' | xargs sed -i '1s|^#!/usr/bin/python|#!%{__python3}
|
|
|
|
|
|
%build
|
|
%build
|
|
%if 0%{?with_python3}
|
|
%if 0%{?with_python3}
|
|
-%py_build
|
|
|
|
pushd %{py3dir}
|
|
pushd %{py3dir}
|
|
-%py3_build
|
|
|
|
-popd
|
|
|
|
-%else
|
|
|
|
-%{__python} setup.py build
|
|
|
|
|
|
+%pip3_build_wheel
|
|
%endif # with_python3
|
|
%endif # with_python3
|
|
|
|
|
|
%install
|
|
%install
|
|
@@ -101,20 +89,13 @@ popd
|
|
find . -name .keep -print -delete
|
|
find . -name .keep -print -delete
|
|
|
|
|
|
%if 0%{?with_python3}
|
|
%if 0%{?with_python3}
|
|
-%py_install
|
|
|
|
pushd %{py3dir}
|
|
pushd %{py3dir}
|
|
-%py3_install
|
|
|
|
|
|
+%pip3_install_wheel
|
|
popd
|
|
popd
|
|
-%else
|
|
|
|
-%{__python} setup.py install --skip-build --prefix=%{_prefix} --root %{buildroot}
|
|
|
|
%endif # with_python3
|
|
%endif # with_python3
|
|
|
|
|
|
|
|
|
|
%check
|
|
%check
|
|
-# workaround for pytest 3.2.0 bug https://github.com/pytest-dev/pytest/issues/2644
|
|
|
|
-rm -f tests/hazmat/primitives/test_padding.py
|
|
|
|
-#%{__python} setup.py test
|
|
|
|
-
|
|
|
|
%if 0%{?with_python3}
|
|
%if 0%{?with_python3}
|
|
pushd %{py3dir}
|
|
pushd %{py3dir}
|
|
# workaround for pytest 3.2.0 bug https://github.com/pytest-dev/pytest/issues/2644
|
|
# workaround for pytest 3.2.0 bug https://github.com/pytest-dev/pytest/issues/2644
|
|
@@ -124,23 +105,23 @@ popd
|
|
%endif
|
|
%endif
|
|
|
|
|
|
|
|
|
|
-%files
|
|
|
|
-%license LICENSE*
|
|
|
|
-%doc README.rst docs
|
|
|
|
-%{python2_sitearch}/%{srcname}
|
|
|
|
-%{python2_sitearch}/%{srcname}-%{version}-py*.egg-info
|
|
|
|
-
|
|
|
|
-
|
|
|
|
%if 0%{?with_python3}
|
|
%if 0%{?with_python3}
|
|
%files -n python%{python3_pkgversion}-%{srcname}
|
|
%files -n python%{python3_pkgversion}-%{srcname}
|
|
%license LICENSE*
|
|
%license LICENSE*
|
|
%doc README.rst docs
|
|
%doc README.rst docs
|
|
%{python3_sitearch}/*
|
|
%{python3_sitearch}/*
|
|
-%{python3_sitearch}/%{srcname}-%{version}-py*.egg-info
|
|
|
|
|
|
+%{python3_sitearch}/%{srcname}-*-info
|
|
%endif
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
%changelog
|
|
|
|
+* Fri Oct 28 2022 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 38.0.1-1
|
|
|
|
+- new upstream release.
|
|
|
|
+
|
|
|
|
+* Tue Jan 25 2022 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 36.0.1-1
|
|
|
|
+- new upstream release.
|
|
|
|
+- dropped python2 support.
|
|
|
|
+
|
|
* Sat Aug 15 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 3.0-1
|
|
* Sat Aug 15 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 3.0-1
|
|
- new upstream release.
|
|
- new upstream release.
|
|
|
|
|