!6 Update package service-identity of version 18.1.0

From: @A_L_I_E_Z 
Reviewed-by: @shinwell_hu 
Signed-off-by: @shinwell_hu
This commit is contained in:
openeuler-ci-bot 2022-07-15 01:05:10 +00:00 committed by Gitee
commit 0d61b316f6
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
4 changed files with 83 additions and 25 deletions

View File

@ -1,9 +0,0 @@
diff -urN service-identity-16.0.0/setup.cfg service-identity-16.0.0-new/setup.cfg
--- service-identity-16.0.0/setup.cfg 2016-02-18 19:26:33.000000000 +0800
+++ service-identity-16.0.0-new/setup.cfg 2021-07-22 18:08:01.670140214 +0800
@@ -1,4 +1,4 @@
-[pytest]
+[tool:pytest]
minversion = 2.8.2
strict = true
addopts = -ra

View File

@ -1,13 +1,12 @@
%global _empty_manifest_terminate_build 0
Name: python-service-identity
Version: 16.0.0
Release: 13
Summary: Service Identity Verification for pyOpenSSL & cryptography
Version: 18.1.0
Release: 1
Summary: Service identity verification for pyOpenSSL & cryptography.
License: MIT
URL: https://github.com/pyca/service_identity
Source0: https://github.com/pyca/service_identity/archive/%{version}/service-identity-%{version}.tar.gz
Patch0: fix-pytest-error-py3.patch
BuildArch: noarch
%description
Service_identity aspires to give you all the tools you need for
verifying whether a certificate is valid for the intended purposes.
@ -17,13 +16,44 @@ service_identity implements RFC 6125 fully and plans to add other
relevant RFCs too.
%package -n python3-service-identity
Summary: Service Identity Verification for pyOpenSSL & cryptography
%{?python_provide:%python_provide python3-service-identity}
BuildRequires: python3-devel python3-setuptools python3-pytest python3-attrs
BuildRequires: python3-pyasn1 python3-pyasn1-modules python3-pyOpenSSL python3-idna
Requires: python3-attrs python3-pyasn1 python3-pyasn1-modules python3-pyOpenSSL
Recommends: python3-idna
Summary: Service identity verification for pyOpenSSL & cryptography.
Provides: python-service-identity
# Base build requires
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-pbr
BuildRequires: python3-pip
BuildRequires: python3-wheel
# General requires
BuildRequires: python3-attrs
BuildRequires: python3-pyasn1-modules
BuildRequires: python3-pyasn1
BuildRequires: python3-cryptography
BuildRequires: python3-coverage
BuildRequires: python3-pytest
BuildRequires: python3-sphinx
BuildRequires: python3-idna
BuildRequires: python3-pyOpenSSL
BuildRequires: python3-sphinx
BuildRequires: python3-idna
# Tests running requires
BuildRequires: python3-coverage
BuildRequires: python3-pytest
# General requires
Requires: python3-attrs
Requires: python3-pyasn1-modules
Requires: python3-pyasn1
Requires: python3-cryptography
Requires: python3-coverage
Requires: python3-pytest
Requires: python3-sphinx
Requires: python3-idna
Requires: python3-pyOpenSSL
Requires: python3-sphinx
Requires: python3-idna
# Tests running requires
Requires: python3-coverage
Requires: python3-pytest
%description -n python3-service-identity
Service_identity aspires to give you all the tools you need for
verifying whether a certificate is valid for the intended purposes.
@ -33,6 +63,12 @@ service_identity implements RFC 6125 fully and plans to add other
relevant RFCs too.
Python 3 version.
%package help
Summary: Service identity verification for pyOpenSSL & cryptography.
Provides: python3-service-identity-doc
%description help
Service Identity Verification.
%prep
%autosetup -n service-identity-%{version}
@ -42,16 +78,47 @@ Python 3 version.
%install
%py3_install
install -d -m755 %{buildroot}/%{_pkgdocdir}
if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
pushd %{buildroot}
if [ -d usr/lib ]; then
find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst
fi
if [ -d usr/lib64 ]; then
find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst
fi
if [ -d usr/bin ]; then
find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
fi
if [ -d usr/sbin ]; then
find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst
fi
touch doclist.lst
if [ -d usr/share/man ]; then
find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst
fi
popd
mv %{buildroot}/filelist.lst .
mv %{buildroot}/doclist.lst .
%check
PYTHONPATH=%{buildroot}%{python3_sitelib} py.test-%{python3_version} -v
%files -n python3-service-identity
%license LICENSE
%doc README.rst
%{python3_sitelib}/{service_identity-*.egg-info/,service_identity/}
%files -n python3-service-identity -f filelist.lst
%dir %{python3_sitelib}/*
%files help -f doclist.lst
%{_docdir}/*
%changelog
* Fri Jul 01 2022 OpenStack_SIG <openstack@openeuler.org> - 18.1.0-1
- Upgrade package python3-service-identity to version 18.1.0
* Thu Jul 22 2021 wangxiyuan <wangxiyuan1007@gmail.com> - 16.0.0-13
- Drop python2 support
* Thu Feb 27 2020 duyeyu <duyeyu@huawei.com> - 16.0.0-12
- Initial package.

Binary file not shown.

Binary file not shown.