Use modern build conditionals

i10ce
Benjamin A. Beasley 1 year ago
parent a19cfe0763
commit 96cffb0230

@ -1,6 +1,4 @@
%if 0%{?fedora} || 0%{?rhel} >= 8
%global with_docs 1
%endif
%bcond docs 1
Name: python-wrapt
Version: 1.13.3
@ -23,7 +21,7 @@ function wrappers and decorator functions.
%description %_description
%if 0%{?with_docs}
%if %{with docs}
%package doc
Summary: Documentation for the wrapt module
@ -51,7 +49,7 @@ rm -rf wrapt.egg-info
%build
%py3_build
%if 0%{?with_docs}
%if %{with docs}
# for docs
pushd docs
sphinx-build -b html -d build/doctrees . build/html
@ -61,7 +59,7 @@ popd
%install
%py3_install
%if 0%{?with_docs}
%if %{with docs}
%files doc
%doc docs/build/html
%endif

Loading…
Cancel
Save