Use python3-sphinx to build docs
This commit is contained in:
parent
a85018fe8f
commit
3c52adc095
@ -8,7 +8,7 @@
|
||||
|
||||
Name: python-pygments
|
||||
Version: 2.2.0
|
||||
Release: 16%{?dist}
|
||||
Release: 17%{?dist}
|
||||
Summary: %{sum}
|
||||
|
||||
License: BSD
|
||||
@ -38,7 +38,8 @@ need to prettify source code. Highlights are:
|
||||
|
||||
%package -n python2-%{srcname}
|
||||
BuildRequires: python%{?fedora:2}-devel >= 2.4, python%{?fedora:2}-setuptools
|
||||
BuildRequires: python%{?fedora:2}-nose, python%{?fedora:2}-sphinx
|
||||
BuildRequires: python%{?fedora:2}-nose
|
||||
BuildRequires: python%{?fedora:3}-sphinx
|
||||
Requires: python%{?fedora:2}-setuptools
|
||||
Summary: %{sum}
|
||||
%{?python_provide:%python_provide python2-%{srcname}}
|
||||
@ -98,11 +99,8 @@ need to prettify source code. Highlights are:
|
||||
# Python 2 install
|
||||
# NOTE: sphinx is built on Python2 and packages with python2 and python3
|
||||
%py2_install
|
||||
%{__python2} setup.py build_sphinx
|
||||
pushd doc
|
||||
install -d %{buildroot}%{_mandir}/man1
|
||||
mv pygmentize.1 $RPM_BUILD_ROOT%{_mandir}/man1/pygmentize.1
|
||||
popd
|
||||
%{?fedora:%{__python3}}%{?!fedora:%{__python2}} setup.py build_sphinx
|
||||
install doc/pygmentize.1 -Dt %{buildroot}%{_mandir}/man1/
|
||||
cp -r doc/docs doc/reST
|
||||
|
||||
%if 0%{?with_python3}
|
||||
@ -136,6 +134,9 @@ make test PYTHON=%{__python3}
|
||||
%endif
|
||||
|
||||
%changelog
|
||||
* Mon Mar 11 2019 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 2.2.0-17
|
||||
- Use python3-sphinx to build docs
|
||||
|
||||
* Tue Feb 26 2019 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 2.2.0-16
|
||||
- Add missing setuptools Requires
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user