代码拉取完成,页面将自动刷新
Name: python-nss
Version: 1.0.1
Release: 16
Summary: Bindings the Python for Network Security Services(NSS)
License: MPLv2.0 or GPLv2+ or LGPLv2+
URL: https://developer.mozilla.org/en-US/docs/Mozilla/Projects/NSS/Python_binding_for_NSS
Source0: https://ftp.mozilla.org/pub/mozilla.org/security/python-nss/releases/PYNSS_RELEASE_1_0_1/src/python-nss-%{version}.tar.bz2
#https://github.com/cipherboy/python-nss/commit/079d4f65a743fb9e952ab109c1a24997c15398a7
Patch0001: Rename-DSA-RSA-PublicKey-to-Py-DSA-RSA-PublicKey.patch
BuildRequires: gcc nspr-devel nss-devel python3-devel python3-sphinx
%description
The python-nss provides Python bindings for Netscape Portable Runtime (NSPR)\
and Network Security Services (NSS)\
The NSS is a server applications and set of libraries supporting\
security-enabled client and The Applications built with NSS can support SSL v2\
and v3, TLS, PKCS #5, PKCS #7, PKCS #11, PKCS #12, S/MIME, X.509 v3\
certificates, and other security standards. Specific NSS implementations\
have been FIPS-140 certified.
%package -n python3-nss
Summary: Bindings the Python3 for Network Security Services(NSS)
BuildRequires: python3-devel python3-setuptools python3-sphinx
%{?python_provide:%python_provide python3-nss}
%description -n python3-nss
The python-nss provides Python bindings for Netscape Portable Runtime (NSPR)\
and Network Security Services (NSS)\
The NSS is a server applications and set of libraries supporting\
security-enabled client and The Applications built with NSS can support SSL v2\
and v3, TLS, PKCS #5, PKCS #7, PKCS #11, PKCS #12, S/MIME, X.509 v3\
certificates, and other security standards. Specific NSS implementations\
have been FIPS-140 certified.
%package help
Summary: The examples and API documentation
Provides: python-nss-doc = %{version}-%{release}
Obsoletes: python-nss-doc < %{version}-%{release}
%description help
The examples and API documentation
%prep
%autosetup -n python-nss-%{version} -p1
%build
%py3_build
%{__python3} setup.py build_doc
%install
%py3_install
%{__python3} setup.py install_doc --docdir %{_docdir}/%{name}-%{version} --skip-build --root $RPM_BUILD_ROOT
find $RPM_BUILD_ROOT/%{_docdir}/%{name}-%{version} -type f | xargs chmod a-x
chmod 0755 $RPM_BUILD_ROOT/%{python3_sitearch}/nss/*.so
%files -n python3-nss
%{python3_sitearch}/*
%doc %{_docdir}/%{name}-%{version}/{LICENSE.gpl,LICENSE.lgpl,LICENSE.mpl}
%files help
%doc %{_docdir}/%{name}-%{version}/{examples,test,api,ChangeLog,README}
%changelog
* Mon Jul 31 2023 yaoxin <yao_xin001@hoperun.com> - 1.0.1-16
- Fix build failure caused by python-sphinx update to 7.0.1
* Wed Mar 30 2022 yangping <yangping69@huawei.com> - 1.0.1-15
- Fix build error caused by conflicting struct names
* Mon Apr 20 2020 yaokai <yaokai13@huawei.com> - 1.0.1-14
- Package init
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。