From c51b12a59f343fcc09730246d7bf2ee900697c25 Mon Sep 17 00:00:00 2001 From: "Benjamin A. Beasley" Date: Wed, 16 Nov 2022 07:50:14 -0500 Subject: [PATCH] =?UTF-8?q?Drop=20some=20doc=20BR=E2=80=99s=20when=20PDF?= =?UTF-8?q?=20docs=20are=20disabled?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- python-OWSLib.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-OWSLib.spec b/python-OWSLib.spec index be0e11b..5c545e4 100644 --- a/python-OWSLib.spec +++ b/python-OWSLib.spec @@ -65,7 +65,10 @@ sed -r -i 's/[-]-cov[^[:blank:]]*[[:blank:]][^[[:blank:]]+//g' tox.ini # # Don’t generate twine dependency, which is just for the upstream maintainer # uploading to PyPI. -sed -r '/^(flake8|pytest-cov|pandoc|coverage|coveralls|twine)\b/d' \ +sed -r -e '/^(flake8|pytest-cov|pandoc|coverage|coveralls|twine)\b/d' \ +%if %{without doc_pdf} + -e '/^(ipykernel|nbconvert|.*sphinx)/d' \ +%endif requirements-dev.txt | tee requirements-dev-filtered.txt # We don’t need shebangs in the examples. The pattern of selecting files