CBL-Mariner/SPECS/pyOpenSSL/pyOpenSSL.spec

108 строки
3.1 KiB
Plaintext
Исходник Обычный вид История

2020-08-07 06:17:52 +03:00
Summary: Python wrapper module around the OpenSSL library
Name: pyOpenSSL
Version: 18.0.0
Release: 7%{?dist}
2020-08-07 06:17:52 +03:00
License: ASL 2.0
Vendor: Microsoft Corporation
Distribution: Mariner
Group: Development/Languages/Python
URL: https://github.com/pyca/pyopenssl
2020-08-07 06:17:52 +03:00
Source0: https://files.pythonhosted.org/packages/source/p/pyOpenSSL/%{name}-%{version}.tar.gz
BuildArch: noarch
%description
High-level wrapper around a subset of the OpenSSL library.
%package -n python3-pyOpenSSL
Summary: Python wrapper module around the OpenSSL library
2020-08-07 06:17:52 +03:00
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-xml
Requires: python3
Requires: python3-cryptography
Requires: python3-six
2020-08-07 06:17:52 +03:00
%if %{with_check}
BuildRequires: curl-devel
BuildRequires: openssl-devel
BuildRequires: python3-asn1crypto
2020-08-07 06:17:52 +03:00
BuildRequires: python3-cffi
BuildRequires: python3-cryptography
2020-08-07 06:17:52 +03:00
BuildRequires: python3-idna
BuildRequires: python3-packaging
2020-08-07 06:17:52 +03:00
BuildRequires: python3-pyasn1
BuildRequires: python3-pycparser
2020-08-07 06:17:52 +03:00
BuildRequires: python3-six
%endif
%description -n python3-pyOpenSSL
High-level wrapper around a subset of the OpenSSL library.
2020-08-07 06:17:52 +03:00
%prep
%autosetup
2020-08-07 06:17:52 +03:00
%build
%py3_build
2020-08-07 06:17:52 +03:00
%install
%py3_install
2020-08-07 06:17:52 +03:00
%check
easy_install_3=$(ls %{_bindir} |grep easy_install |grep 3)
2020-08-07 06:17:52 +03:00
$easy_install_3 pretend
$easy_install_3 flaky
$easy_install_3 pytest
PATH=%{buildroot}%{_bindir}:${PATH} \
LANG=en_US.UTF-8 PYTHONPATH=%{buildroot}%{python3_sitelib} \
pytest
%files -n python3-pyOpenSSL
%defattr(-,root,root,-)
%license LICENSE
2020-08-07 06:17:52 +03:00
%{python3_sitelib}/*
%changelog
* Wed Oct 20 2021 Thomas Crain <thcrain@microsoft.com> - 18.0.0-7
- Add license to python3 package
- Remove python2 package
- Lint spec
- License verified
* Sat May 09 2020 Nick Samson <nisamson@microsoft.com> - 18.0.0-6
2020-08-07 06:17:52 +03:00
- Added %%license line automatically
* Wed Apr 29 2020 Emre Girgin <mrgirgin@microsoft.com> 18.0.0-5
- Renaming python-pyOpenSSL to pyOpenSSL
* Tue Apr 07 2020 Nicolas Ontiveros <niontive@microsoft.com> 18.0.0-4
- Remove python-enum from build requires.
* Tue Sep 03 2019 Mateusz Malisz <mamalisz@microsoft.com> 18.0.0-3
- Initial CBL-Mariner import from Photon (license: Apache2).
* Fri Jan 11 2019 Tapas Kundu <tkundu@vmware.com> 18.0.0-2
- Fix makecheck
* Sun Sep 09 2018 Tapas Kundu <tkundu@vmware.com> 18.0.0-1
- Update to version 18.0.0
* Thu Jun 14 2018 Tapas Kundu <tkundu@vmware.com> 17.2.0-2
- Added memory fix for X509StoreContext Class.
* Mon Aug 14 2017 Xiaolin Li <xiaolinl@vmware.com> 17.2.0-1
- Updated to version 17.2.0 and fixed make check.
* Fri Jul 21 2017 Divya Thaluru <dthaluru@vmware.com> 16.2.0-5
- Fixed runtime dependencies
* Wed Jun 07 2017 Xiaolin Li <xiaolinl@vmware.com> 16.2.0-4
- Add python3-setuptools and python3-xml to python3 sub package Buildrequires.
* Thu Jun 01 2017 Dheeraj Shetty <dheerajs@vmware.com> 16.2.0-3
- Use python2 explicitly
* Tue Feb 21 2017 Xiaolin Li <xiaolinl@vmware.com> 16.2.0-2
- Add Requires for python-enum and python-ipaddress
* Tue Feb 14 2017 Xiaolin Li <xiaolinl@vmware.com> 16.2.0-1
- Initial packaging for Photon