pyOpenSSL/pyOpenSSL.spec
zhengxiaoxiao e7d4671f7a fix obsoletes in spec
Signed-off-by: zhengxiaoxiao <zhengxiaoxiao2@huawei.com>
(cherry picked from commit 77bac8cb2bce1d5a9c3c3d5bde62c952d3841348)
2022-10-24 10:44:43 +08:00

114 lines
3.0 KiB
RPMSpec

Name: pyOpenSSL
Version: 21.0.0
Release: 2
Summary: A rather thin wrapper around (a subset of) the OpenSSL library.
License: ASL 2.0
URL: https://www.pyopenssl.org/en/stable/
Source0: https://github.com/pyca/pyopenssl/archive/%{version}.tar.gz
BuildArch: noarch
BuildRequires: python3-devel python3-cryptography
BuildRequires: python3-setuptools python3-sphinx python3-sphinx_rtd_theme
%description
pyOpenSSL is a rather thin wrapper around (a subset of) the OpenSSL library.
With thin wrapper we mean that a lot of the object methods do nothing more
than calling a corresponding function in the OpenSSL library.
%package -n python3-%{name}
Summary: A rather thin wrapper around (a subset of) the OpenSSL library.
Requires: python3-six >= 1.5.2 python3-cryptography
%{?python_provide:%python_provide python3-pyOpenSSL}
%description -n python3-%{name}
pyOpenSSL is a rather thin wrapper around (a subset of) the OpenSSL library.
With thin wrapper we mean that a lot of the object methods do nothing more
than calling a corresponding function in the OpenSSL library.
%package help
Summary: Documents for %{name}
Buildarch: noarch
Requires: man info
Provides: %{name}-doc
Obsoletes: %{name}-doc < %{version}-%{release}
%description help
Man pages and other related documents for %{name}.
%prep
%autosetup -n pyopenssl-%{version} -p1
%build
%py3_build
make -C doc html SPHINXBUILD=sphinx-build-3
%install
%py3_install
%files -n python3-%{name}
%license LICENSE
%{python3_sitelib}/OpenSSL/
%{python3_sitelib}/pyOpenSSL-*.egg-info
%files help
%license LICENSE
%doc CHANGELOG.rst doc/_build/html
%changelog
* Mon Oct 24 2022 zhengxiaoxiao<zhengxiaoxiao2@huawei.com> - 21.0.0-2
- fix obsoletes in spec
* Sat Dec 25 2021 tianwei <tianwei12@huawei.com> - 21.0.0-1
- Upgrade version to 21.0.0
* Tue Feb 02 2021 wuchaochao <wuchaochao4@huawei.com> - 20.0.1-1
- Update package version
* Fri Oct 30 2020 wangjie<wangjie294@huawei.com> -19.1.0-3
- Type:NA
- ID:NA
- SUG:NA
- DESC:remove python2
* Mon Sep 14 2020 shixuantong <shixuantong@huawei.com> - 19.1.0-2
- Type:NA
- ID:NA
- SUG:NA
- DESC:update source0
* Sun May 12 2019 openEuler Buildteam <buildteam@openeuler.org> - 19.1.0-1
- Type:enhancement
- ID:NA
- SUG:NA
- DESC:Update pyOpenSSL to 19.1.0
* Sat Aug 31 2019 openEuler Buildteam <buildteam@openeuler.org> - 19.0.0-1
- Type:enhancement
- ID:NA
- SUG:NA
- DESC:Update to 19.0.0
* Sun Apr 28 2019 luochunsheng<luochunsheng@huawei.com> - 18.0.0-3.h3
- Type:enhancement
- ID:NA
- SUG:NA
- DESC:fix tests
* Sat Apr 13 2019 luochunsheng<luochunsheng@huawei.com> - 18.0.0-3.h2
- Type:enhancement
- ID:NA
- SUG:NA
- DESC:pyOpenSSL package quality enhance
* Wed Mar 13 2019 wanghongzhe<wanghongzhe@huawei.com> - 18.0.0-3.h1
- Type:enhancement
- ID:NA
- SUG:restart
- DESC:solve the mirror-yum installation dependency
* Mon Aug 13 2018 openEuler Buildteam <buildteam@openeuler.org> - 18.0.0-3
- Package Init