From 96cffb0230507361c540964a1689ea156a975032 Mon Sep 17 00:00:00 2001 From: "Benjamin A. Beasley" Date: Fri, 29 Dec 2023 11:45:52 -0500 Subject: [PATCH] Use modern build conditionals --- python-wrapt.spec | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/python-wrapt.spec b/python-wrapt.spec index 6a83247..629a2b1 100644 --- a/python-wrapt.spec +++ b/python-wrapt.spec @@ -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