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