use python3-sphinx, python3-breathe for building documentation

This commit is contained in:
Nils Philippsen 2019-03-09 02:02:47 +01:00
parent 5800cb8d15
commit 44c31c6055
2 changed files with 19 additions and 7 deletions

View File

@ -0,0 +1,12 @@
diff -up libmypaint-1.3.0/doc/source/conf.py.sphinx18 libmypaint-1.3.0/doc/source/conf.py
--- libmypaint-1.3.0/doc/source/conf.py.sphinx18 2016-11-09 19:03:36.000000000 +0100
+++ libmypaint-1.3.0/doc/source/conf.py 2019-03-09 01:07:52.632220351 +0100
@@ -27,7 +27,7 @@ import os
# Add any Sphinx extension module names here, as strings. They can be extensions
# coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
-extensions = ['sphinx.ext.autodoc', 'sphinx.ext.doctest', 'sphinx.ext.intersphinx', 'sphinx.ext.todo', 'sphinx.ext.coverage', 'sphinx.ext.pngmath', 'sphinx.ext.ifconfig', 'sphinx.ext.viewcode']
+extensions = ['sphinx.ext.autodoc', 'sphinx.ext.doctest', 'sphinx.ext.intersphinx', 'sphinx.ext.todo', 'sphinx.ext.coverage', 'sphinx.ext.imgmath', 'sphinx.ext.ifconfig', 'sphinx.ext.viewcode']
# Breathe setup, for integrating doxygen content
extensions.append('breathe')

View File

@ -1,6 +1,6 @@
Name: libmypaint
Version: 1.3.0
Release: 10%{?dist}
Release: 11%{?dist}
Summary: Library for making brush strokes
# Compute some version related macros.
@ -13,9 +13,9 @@ License: ISC
URL: https://github.com/mypaint/libmypaint
Source0: https://github.com/mypaint/libmypaint/releases/download/v%{version}/libmypaint-%{version}.tar.xz
Patch0: libmypaint-1.3.0-gegl04.patch
Patch1: libmypaint-1.3.0-sphinx18.patch
BuildRequires: babl-devel
BuildRequires: breathe
BuildRequires: gcc
BuildRequires: doxygen
BuildRequires: gegl04-devel
@ -23,11 +23,8 @@ BuildRequires: glib2-devel
BuildRequires: gobject-introspection-devel
BuildRequires: intltool
BuildRequires: json-c-devel
%if 0%{?fedora} >= 24
BuildRequires: python2-sphinx
%else
BuildRequires: python-sphinx
%endif
BuildRequires: python3-breathe
BuildRequires: python3-sphinx
Conflicts: mypaint < 1.3.0
@ -77,6 +74,9 @@ find %{buildroot}%{_libdir} -name '*.la' -delete -print
%{_datadir}/gir-1.0/MyPaintGegl-%{major}.%{minor}.gir
%changelog
* Sat Mar 09 2019 Nils Philippsen <nils@tiptoe.de> - 1.3.0-11
- use python3-sphinx, python3-breathe for building documentation
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.0-10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild