From 05db27bb8bac7df0397c1023307307490606f462 Mon Sep 17 00:00:00 2001 From: Elliott Sales de Andrade Date: Dec 13 2020 01:32:36 +0000 Subject: Disable docs on F32. --- diff --git a/python-mplcursors.spec b/python-mplcursors.spec index 5afd606..0313882 100644 --- a/python-mplcursors.spec +++ b/python-mplcursors.spec @@ -1,4 +1,9 @@ %global srcname mplcursors +%if %{fedora} > 32 +%bcond_without doc +%else +%bcond_with doc +%endif Name: python-%{srcname} Version: 0.4 @@ -31,6 +36,7 @@ Requires: python3dist(matplotlib) >= 2.1 mplcursors – Interactive data selection cursors for Matplotlib +%if %{with doc} %package -n python-%{srcname}-doc Summary: mplcursors documentation @@ -40,6 +46,7 @@ BuildRequires: python3dist(pandas) %description -n python-%{srcname}-doc Documentation for mplcursors +%endif %prep @@ -52,10 +59,12 @@ rm -rf %{srcname}.egg-info vendor %build %py3_build +%if %{with doc} # generate html docs PYTHONPATH=${PWD}/build/lib sphinx-build-3 doc/source html # remove the sphinx-build leftovers rm -rf html/.{doctrees,buildinfo} +%endif %install @@ -74,9 +83,11 @@ rm -rf html/.{doctrees,buildinfo} %{python3_sitelib}/%{srcname}-%{version}-py%{python3_version}.egg-info/ +%if %{with doc} %files -n python-%{srcname}-doc %doc html %license LICENSE.txt +%endif %changelog