!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:
commit
0d61b316f6
@ -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
|
|
||||||
@ -1,13 +1,12 @@
|
|||||||
|
%global _empty_manifest_terminate_build 0
|
||||||
Name: python-service-identity
|
Name: python-service-identity
|
||||||
Version: 16.0.0
|
Version: 18.1.0
|
||||||
Release: 13
|
Release: 1
|
||||||
Summary: Service Identity Verification for pyOpenSSL & cryptography
|
Summary: Service identity verification for pyOpenSSL & cryptography.
|
||||||
License: MIT
|
License: MIT
|
||||||
URL: https://github.com/pyca/service_identity
|
URL: https://github.com/pyca/service_identity
|
||||||
Source0: https://github.com/pyca/service_identity/archive/%{version}/service-identity-%{version}.tar.gz
|
Source0: https://github.com/pyca/service_identity/archive/%{version}/service-identity-%{version}.tar.gz
|
||||||
Patch0: fix-pytest-error-py3.patch
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Service_identity aspires to give you all the tools you need for
|
Service_identity aspires to give you all the tools you need for
|
||||||
verifying whether a certificate is valid for the intended purposes.
|
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.
|
relevant RFCs too.
|
||||||
|
|
||||||
%package -n python3-service-identity
|
%package -n python3-service-identity
|
||||||
Summary: Service Identity Verification for pyOpenSSL & cryptography
|
Summary: Service identity verification for pyOpenSSL & cryptography.
|
||||||
%{?python_provide:%python_provide python3-service-identity}
|
Provides: python-service-identity
|
||||||
BuildRequires: python3-devel python3-setuptools python3-pytest python3-attrs
|
# Base build requires
|
||||||
BuildRequires: python3-pyasn1 python3-pyasn1-modules python3-pyOpenSSL python3-idna
|
BuildRequires: python3-devel
|
||||||
Requires: python3-attrs python3-pyasn1 python3-pyasn1-modules python3-pyOpenSSL
|
BuildRequires: python3-setuptools
|
||||||
Recommends: python3-idna
|
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
|
%description -n python3-service-identity
|
||||||
Service_identity aspires to give you all the tools you need for
|
Service_identity aspires to give you all the tools you need for
|
||||||
verifying whether a certificate is valid for the intended purposes.
|
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.
|
relevant RFCs too.
|
||||||
Python 3 version.
|
Python 3 version.
|
||||||
|
|
||||||
|
%package help
|
||||||
|
Summary: Service identity verification for pyOpenSSL & cryptography.
|
||||||
|
Provides: python3-service-identity-doc
|
||||||
|
%description help
|
||||||
|
Service Identity Verification.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -n service-identity-%{version}
|
%autosetup -n service-identity-%{version}
|
||||||
|
|
||||||
@ -42,16 +78,47 @@ Python 3 version.
|
|||||||
%install
|
%install
|
||||||
%py3_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
|
%check
|
||||||
PYTHONPATH=%{buildroot}%{python3_sitelib} py.test-%{python3_version} -v
|
PYTHONPATH=%{buildroot}%{python3_sitelib} py.test-%{python3_version} -v
|
||||||
|
|
||||||
%files -n python3-service-identity
|
%files -n python3-service-identity -f filelist.lst
|
||||||
%license LICENSE
|
%dir %{python3_sitelib}/*
|
||||||
%doc README.rst
|
|
||||||
%{python3_sitelib}/{service_identity-*.egg-info/,service_identity/}
|
%files help -f doclist.lst
|
||||||
|
%{_docdir}/*
|
||||||
|
|
||||||
%changelog
|
%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
|
* Thu Jul 22 2021 wangxiyuan <wangxiyuan1007@gmail.com> - 16.0.0-13
|
||||||
- Drop python2 support
|
- Drop python2 support
|
||||||
|
|
||||||
* Thu Feb 27 2020 duyeyu <duyeyu@huawei.com> - 16.0.0-12
|
* Thu Feb 27 2020 duyeyu <duyeyu@huawei.com> - 16.0.0-12
|
||||||
- Initial package.
|
- Initial package.
|
||||||
|
|||||||
Binary file not shown.
BIN
service-identity-18.1.0.tar.gz
Normal file
BIN
service-identity-18.1.0.tar.gz
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user