14
0

Accepting request 680621 from home:frispete:python

- remove everything to build docs:
  - local-intersphinx-inventories.patch
  - fetch-intersphinx-inventories.sh
  - python3.inv
  - crypto.inv

OBS-URL: https://build.opensuse.org/request/show/680621
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyOpenSSL?expand=0&rev=57
This commit is contained in:
Tomáš Chvátal
2019-03-01 19:38:20 +00:00
committed by Git OBS Bridge
parent ef709a81f0
commit 673132b30c
7 changed files with 9 additions and 48 deletions

View File

@@ -26,14 +26,10 @@ License: Apache-2.0
Group: Development/Languages/Python
URL: https://github.com/pyca/pyopenssl
Source: https://files.pythonhosted.org/packages/source/p/pyOpenSSL/pyOpenSSL-%{version}.tar.gz
Source1: python3.inv
Source2: crypto.inv
Source3: fetch-intersphinx-inventories.sh
Patch1: skip-networked-test.patch
Patch2: openssl-1.1.0i.patch
Patch3: openssl-1.1.1.patch
Patch4: tls13-renegotiation.patch
Patch5: local-intersphinx-inventories.patch
BuildRequires: %{python_module cffi}
BuildRequires: %{python_module cryptography >= 2.3.0}
BuildRequires: %{python_module flaky}
@@ -42,7 +38,6 @@ BuildRequires: %{python_module pytest >= 3.0.1}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildRequires: python3-Sphinx
Requires: python-cffi
Requires: python-cryptography >= 2.3.0
Requires: python-six >= 1.5.2
@@ -63,28 +58,16 @@ pyOpenSSL is now a pure-Python project with a dependency on a new project,
cryptography (<https://github.com/pyca/cryptography>), which provides (among
other things) a cffi-based interface to OpenSSL.
%package -n %{name}-doc
Summary: Documentation for %{name}
Group: Documentation/HTML
%description -n %{name}-doc
Provides documentation for %{name}.
%prep
%setup -q -n pyOpenSSL-%{version}
%autopatch -p1
# prepare local intersphinx inventories, fetch with fetch-intersphinx-inventories.sh
cp -v %{S:1} doc/
cp -v %{S:2} doc/
%build
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
PYTHONPATH="%{buildroot}%{python3_sitelib}" python3 setup.py build_sphinx && rm build/sphinx/html/.buildinfo
%check
export LC_ALL=en_US.UTF-8
@@ -98,8 +81,4 @@ py.test-%{$python_bin_suffix} -m "not network" -k "not test_export_text"
%{python_sitelib}/OpenSSL/
%{python_sitelib}/pyOpenSSL-%{version}-py*.egg-info
%files -n %{name}-doc
%doc build/sphinx/html/
%doc examples/
%changelog