Add the forgotten bootstrapping conditionals
This commit is contained in:
parent
f7208e4fc8
commit
bed79dff85
@ -3,6 +3,9 @@
|
||||
%global with_python3 1
|
||||
%endif
|
||||
|
||||
# For bootstrapping sphinxcontrib-websupport
|
||||
%bcond_without docs
|
||||
|
||||
%global mod_name Whoosh
|
||||
|
||||
Name: python-whoosh
|
||||
@ -18,7 +21,10 @@ BuildArch: noarch
|
||||
BuildRequires: python2-devel
|
||||
BuildRequires: python2-setuptools
|
||||
BuildRequires: python2-pytest
|
||||
|
||||
%if %{with docs}
|
||||
BuildRequires: python2-sphinx
|
||||
%endif
|
||||
|
||||
%if 0%{?with_python3}
|
||||
BuildRequires: python%{python3_pkgversion}-devel
|
||||
@ -59,9 +65,12 @@ works can be extended or replaced to meet your needs exactly.
|
||||
|
||||
%build
|
||||
%py2_build
|
||||
|
||||
%if %{with docs}
|
||||
sphinx-build docs/source docs/html
|
||||
rm -f docs/html/.buildinfo
|
||||
rm -rf docs/html/.doctrees
|
||||
%endif
|
||||
|
||||
%if 0%{?with_python3}
|
||||
%py3_build
|
||||
@ -85,14 +94,20 @@ rm -rf docs/html/.doctrees
|
||||
|
||||
%files -n python2-whoosh
|
||||
%license LICENSE.txt
|
||||
%doc docs/html/ README.txt
|
||||
%doc README.txt
|
||||
%if %{with docs}
|
||||
%doc docs/html/
|
||||
%endif
|
||||
%{python2_sitelib}/*.egg-info/
|
||||
%{python2_sitelib}/whoosh
|
||||
|
||||
%if 0%{?with_python3}
|
||||
%files -n python%{python3_pkgversion}-whoosh
|
||||
%license LICENSE.txt
|
||||
%doc README.txt docs/html/
|
||||
%doc README.txt
|
||||
%if %{with docs}
|
||||
%doc docs/html/
|
||||
%endif
|
||||
%{python3_sitelib}/whoosh
|
||||
%{python3_sitelib}/*.egg-info/
|
||||
%endif
|
||||
|
Loading…
Reference in New Issue
Block a user