Set with_docs to 1 to build docs.

This commit is contained in:
Slavek Kabrda 2014-05-13 12:29:41 +02:00
parent dbe2bd34f4
commit a5633ae836

View File

@ -6,7 +6,7 @@
%global name3 python3-pillow %global name3 python3-pillow
# bootstrap building docs (pillow is required by docutils, docutils are # bootstrap building docs (pillow is required by docutils, docutils are
# required by sphinx; pillow build-requires sphinx) # required by sphinx; pillow build-requires sphinx)
%global with_docs 0 %global with_docs 1
# RHEL-7 doesn't have python 3 # RHEL-7 doesn't have python 3
%if 0%{?rhel} == 7 %if 0%{?rhel} == 7
@ -28,7 +28,7 @@
Name: python-pillow Name: python-pillow
Version: 2.4.0 Version: 2.4.0
Release: 5%{?snap}%{?dist} Release: 6%{?snap}%{?dist}
Summary: Python image processing library Summary: Python image processing library
# License: see http://www.pythonware.com/products/pil/license.htm # License: see http://www.pythonware.com/products/pil/license.htm
@ -332,7 +332,7 @@ popd
%files doc %files doc
%doc Scripts Images %doc Scripts Images
%if 0%{?with_docs} %if 0%{?with_docs}
docs/_build/html %doc docs/_build/html
%endif # with_docs %endif # with_docs
%files sane %files sane
@ -382,6 +382,9 @@ docs/_build/html
%endif %endif
%changelog %changelog
* Tue May 13 2014 Bohuslav Kabrda <bkabrda@redhat.com> - 2.4.0-6
- Set with_docs to 1 to build docs.
* Tue May 13 2014 Bohuslav Kabrda <bkabrda@redhat.com> - 2.4.0-5 * Tue May 13 2014 Bohuslav Kabrda <bkabrda@redhat.com> - 2.4.0-5
- Bootstrap building sphinx docs because of circular dependency with sphinx. - Bootstrap building sphinx docs because of circular dependency with sphinx.