Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| b92d893701 | |||
| d78b82c210 | |||
| 832315ea1b | |||
| 0fa81e247c |
@@ -0,0 +1 @@
|
|||||||
|
Sphinx-0.6.5.tar.gz
|
||||||
-11
@@ -1,11 +0,0 @@
|
|||||||
/Sphinx-1.2.3.tar.gz
|
|
||||||
/Sphinx-1.3.1.tar.gz
|
|
||||||
/Sphinx-1.4.4.tar.gz
|
|
||||||
/Sphinx-1.4.5.tar.gz
|
|
||||||
/Sphinx-1.4.6.tar.gz
|
|
||||||
/Sphinx-1.4.8.tar.gz
|
|
||||||
/Sphinx-1.4.9.tar.gz
|
|
||||||
/Sphinx-1.5.1.tar.gz
|
|
||||||
/Sphinx-1.5.2.tar.gz
|
|
||||||
/Sphinx-1.5.5.tar.gz
|
|
||||||
/Sphinx-1.5.6.tar.gz
|
|
||||||
@@ -0,0 +1,21 @@
|
|||||||
|
# Makefile for source rpm: python-sphinx
|
||||||
|
# $Id$
|
||||||
|
NAME := python-sphinx
|
||||||
|
SPECFILE = $(firstword $(wildcard *.spec))
|
||||||
|
|
||||||
|
define find-makefile-common
|
||||||
|
for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$d/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done
|
||||||
|
endef
|
||||||
|
|
||||||
|
MAKEFILE_COMMON := $(shell $(find-makefile-common))
|
||||||
|
|
||||||
|
ifeq ($(MAKEFILE_COMMON),)
|
||||||
|
# attept a checkout
|
||||||
|
define checkout-makefile-common
|
||||||
|
test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2
|
||||||
|
endef
|
||||||
|
|
||||||
|
MAKEFILE_COMMON := $(shell $(checkout-makefile-common))
|
||||||
|
endif
|
||||||
|
|
||||||
|
include $(MAKEFILE_COMMON)
|
||||||
@@ -1,27 +0,0 @@
|
|||||||
Sphinx with autodoc is sensitive to whether it is run via Python2 or Python3
|
|
||||||
as it uses the Python version that it is invoked with to parse the source
|
|
||||||
files for docstrings. Unfortunately, there's no logic to detect this within
|
|
||||||
the sphinx commands and the standard Makefiles generated by sphinx-quickstart
|
|
||||||
don't give the user any hint that it might be a problem.
|
|
||||||
|
|
||||||
The Fedora package tries to mitigate this problem by allowing the user to
|
|
||||||
switch between the Python2 and Python3 versions using environment-modules. To
|
|
||||||
switch to the Python3 commands, use::
|
|
||||||
|
|
||||||
module swap python-sphinx/python3-sphinx
|
|
||||||
|
|
||||||
To switch to the Python2 version, use::
|
|
||||||
|
|
||||||
module swap python-sphinx/python2-sphinx
|
|
||||||
|
|
||||||
The default install uses the python2 version of the modules.
|
|
||||||
If the system administrator wishes to change the default, edit the
|
|
||||||
/etc/profile.d/zz-modules-python-sphinx.sh and
|
|
||||||
/etc/profile.d/zz-modules-python-sphinx.csh files to specify a specific
|
|
||||||
alternative to use. For instance, to make the python3 version the default,
|
|
||||||
modify it like so::
|
|
||||||
|
|
||||||
@@ -1,2 +1,2 @@
|
|
||||||
# Add path to the default python-sphinx scripts on this version of Fedora
|
|
||||||
-module load python-sphinx
|
|
||||||
+module load python-sphinx/python3-sphinx
|
|
||||||
@@ -1,15 +0,0 @@
|
|||||||
--- sphinx/doc/Makefile.mantarget 2014-02-13 23:28:58.604797750 +0700
|
|
||||||
+++ sphinx/doc/Makefile 2014-02-14 00:00:45.794658764 +0700
|
|
||||||
@@ -12,6 +12,12 @@
|
|
||||||
help:
|
|
||||||
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
|
|
||||||
|
|
||||||
+# Likewise for man, since a man directory exist and make will assume
|
|
||||||
+# the target is up to date
|
|
||||||
+.PHONY: man
|
|
||||||
+man:
|
|
||||||
+ @$(SPHINXBUILD) -M man "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
|
|
||||||
+
|
|
||||||
# Catch-all target: route all unknown targets to Sphinx using the new
|
|
||||||
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
|
|
||||||
%:
|
|
||||||
@@ -1,2 +0,0 @@
|
|||||||
#%Module1.0
|
|
||||||
set ModuleVersion "python@PYTHONVER@-sphinx"
|
|
||||||
@@ -1,12 +0,0 @@
|
|||||||
diff --git a/sphinx/util/parallel.py b/sphinx/util/parallel.py
|
|
||||||
index ce51ac0..64f9bc1 100644
|
|
||||||
--- a/sphinx/util/parallel.py
|
|
||||||
+++ b/sphinx/util/parallel.py
|
|
||||||
@@ -100,6 +100,7 @@ class ParallelTasks(object):
|
|
||||||
raise SphinxParallelError(*result)
|
|
||||||
self._result_funcs.pop(tid)(self._args.pop(tid), result)
|
|
||||||
self._procs[tid].join()
|
|
||||||
+ self._precvs.pop(tid)
|
|
||||||
self._pworking -= 1
|
|
||||||
break
|
|
||||||
else:
|
|
||||||
@@ -1,21 +0,0 @@
|
|||||||
diff --git Sphinx-1.3.1/sphinx/builders/linkcheck.py~ Sphinx-1.3.1/sphinx/builders/linkcheck.py
|
|
||||||
index 9f5c2131c2..71bec0262d 100644
|
|
||||||
--- Sphinx-1.3.1/sphinx/builders/linkcheck.py~
|
|
||||||
+++ Sphinx-1.3.1/sphinx/builders/linkcheck.py
|
|
||||||
@@ -19,9 +19,15 @@ from six.moves import queue
|
|
||||||
from six.moves.urllib.request import build_opener, Request, HTTPRedirectHandler
|
|
||||||
from six.moves.urllib.parse import unquote, urlsplit, quote
|
|
||||||
from six.moves.urllib.error import HTTPError
|
|
||||||
-from six.moves.html_parser import HTMLParser, HTMLParseError
|
|
||||||
+from six.moves.html_parser import HTMLParser
|
|
||||||
from docutils import nodes
|
|
||||||
|
|
||||||
+try:
|
|
||||||
+ from HTMLParser import HTMLParseError
|
|
||||||
+except ImportError:
|
|
||||||
+ class HTMLParseError(Exception):
|
|
||||||
+ pass
|
|
||||||
+
|
|
||||||
from sphinx.builders import Builder
|
|
||||||
from sphinx.util.console import purple, red, darkgreen, darkgray, \
|
|
||||||
darkred, turquoise
|
|
||||||
@@ -0,0 +1,56 @@
|
|||||||
|
# HG changeset patch
|
||||||
|
# Parent 552e51b26229a9a918c76a401f2f487bf81f2ee6
|
||||||
|
|
||||||
|
Index: Sphinx-0.6.5/sphinx/builders/html.py
|
||||||
|
===================================================================
|
||||||
|
--- Sphinx-0.6.5.orig/sphinx/builders/html.py
|
||||||
|
+++ Sphinx-0.6.5/sphinx/builders/html.py
|
||||||
|
@@ -10,6 +10,7 @@
|
||||||
|
"""
|
||||||
|
|
||||||
|
import os
|
||||||
|
+import sys
|
||||||
|
import codecs
|
||||||
|
import posixpath
|
||||||
|
import cPickle as pickle
|
||||||
|
@@ -91,10 +92,15 @@ class StandaloneHTMLBuilder(Builder):
|
||||||
|
self.link_suffix = self.out_suffix
|
||||||
|
|
||||||
|
if self.config.language is not None:
|
||||||
|
- jsfile = path.join(package_dir, 'locale', self.config.language,
|
||||||
|
- 'LC_MESSAGES', 'sphinx.js')
|
||||||
|
- if path.isfile(jsfile):
|
||||||
|
- self.script_files.append('_static/translations.js')
|
||||||
|
+ jsfile_list = [path.join(package_dir, 'locale',
|
||||||
|
+ self.config.language, 'LC_MESSAGES', 'sphinx.js'),
|
||||||
|
+ path.join(sys.prefix, 'share/sphinx/locale',
|
||||||
|
+ self.config.language, 'sphinx.js')]
|
||||||
|
+
|
||||||
|
+ for jsfile in jsfile_list:
|
||||||
|
+ if path.isfile(jsfile):
|
||||||
|
+ self.script_files.append('_static/translations.js')
|
||||||
|
+ break
|
||||||
|
|
||||||
|
def init_templates(self):
|
||||||
|
Theme.init_themes(self)
|
||||||
|
@@ -528,11 +534,15 @@ class StandaloneHTMLBuilder(Builder):
|
||||||
|
f.close()
|
||||||
|
# then, copy translations JavaScript file
|
||||||
|
if self.config.language is not None:
|
||||||
|
- jsfile = path.join(package_dir, 'locale', self.config.language,
|
||||||
|
- 'LC_MESSAGES', 'sphinx.js')
|
||||||
|
- if path.isfile(jsfile):
|
||||||
|
- copyfile(jsfile, path.join(self.outdir, '_static',
|
||||||
|
- 'translations.js'))
|
||||||
|
+ jsfile_list = [path.join(package_dir, 'locale',
|
||||||
|
+ self.config.language, 'LC_MESSAGES', 'sphinx.js'),
|
||||||
|
+ path.join(sys.prefix, 'share/sphinx/locale',
|
||||||
|
+ self.config.language, 'sphinx.js')]
|
||||||
|
+ for jsfile in jsfile_list:
|
||||||
|
+ if path.isfile(jsfile):
|
||||||
|
+ copyfile(jsfile, path.join(self.outdir, '_static',
|
||||||
|
+ 'translations.js'))
|
||||||
|
+ break
|
||||||
|
# then, copy over all user-supplied static files
|
||||||
|
if self.theme:
|
||||||
|
staticdirnames = [path.join(themepath, 'static')
|
||||||
@@ -0,0 +1,24 @@
|
|||||||
|
# HG changeset patch
|
||||||
|
# Parent 5da6d572bd088b04711b3bf70991c976d8f9c605
|
||||||
|
|
||||||
|
Index: Sphinx-0.6.5/setup.py
|
||||||
|
===================================================================
|
||||||
|
--- Sphinx-0.6.5.orig/setup.py
|
||||||
|
+++ Sphinx-0.6.5/setup.py
|
||||||
|
@@ -1,10 +1,13 @@
|
||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
-import ez_setup
|
||||||
|
-ez_setup.use_setuptools()
|
||||||
|
+try:
|
||||||
|
+ from setuptools import setup, find_packages
|
||||||
|
+except ImportError:
|
||||||
|
+ import ez_setup
|
||||||
|
+ ez_setup.use_setuptools()
|
||||||
|
+ from setuptools import setup, find_packages
|
||||||
|
|
||||||
|
import os
|
||||||
|
import sys
|
||||||
|
-from setuptools import setup, find_packages
|
||||||
|
from distutils import log
|
||||||
|
|
||||||
|
import sphinx
|
||||||
@@ -1,34 +0,0 @@
|
|||||||
From cf795894b9290c5ab2035ae21535f0a7f4b7107a Mon Sep 17 00:00:00 2001
|
|
||||||
From: Takeshi KOMIYA <i.tkomiya@gmail.com>
|
|
||||||
Date: Fri, 16 Dec 2016 19:44:27 +0900
|
|
||||||
Subject: [PATCH] Fix #3246: xapian search adapter crashes
|
|
||||||
|
|
||||||
---
|
|
||||||
CHANGES | 2 ++
|
|
||||||
sphinx/websupport/search/xapiansearch.py | 6 +++---
|
|
||||||
2 files changed, 5 insertions(+), 3 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/sphinx/websupport/search/xapiansearch.py b/sphinx/websupport/search/xapiansearch.py
|
|
||||||
index 1e43dcb..aa7cff8 100644
|
|
||||||
--- a/sphinx/websupport/search/xapiansearch.py
|
|
||||||
+++ b/sphinx/websupport/search/xapiansearch.py
|
|
||||||
@@ -39,16 +39,16 @@ def finish_indexing(self):
|
|
||||||
# Ensure the db lock is removed.
|
|
||||||
del self.database
|
|
||||||
|
|
||||||
- def add_document(self, path, title, text):
|
|
||||||
+ def add_document(self, pagename, filename, title, text):
|
|
||||||
self.database.begin_transaction()
|
|
||||||
# sphinx_page_path is used to easily retrieve documents by path.
|
|
||||||
- sphinx_page_path = '"sphinxpagepath%s"' % path.replace('/', '_')
|
|
||||||
+ sphinx_page_path = '"sphinxpagepath%s"' % pagename.replace('/', '_')
|
|
||||||
# Delete the old document if it exists.
|
|
||||||
self.database.delete_document(sphinx_page_path)
|
|
||||||
|
|
||||||
doc = xapian.Document()
|
|
||||||
doc.set_data(text)
|
|
||||||
- doc.add_value(self.DOC_PATH, path)
|
|
||||||
+ doc.add_value(self.DOC_PATH, pagename)
|
|
||||||
doc.add_value(self.DOC_TITLE, title)
|
|
||||||
self.indexer.set_document(doc)
|
|
||||||
self.indexer.index_text(text)
|
|
||||||
+42
-721
@@ -1,138 +1,31 @@
|
|||||||
%if 0%{?fedora}
|
%if ! (0%{?fedora} > 12 || 0%{?rhel} > 5)
|
||||||
%global with_python3 1
|
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
|
||||||
%else
|
|
||||||
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print (get_python_lib())")}
|
|
||||||
%endif
|
|
||||||
|
|
||||||
# Currently, python2 version is always the default: https://fedoraproject.org/wiki/Packaging:Python#Naming
|
|
||||||
%if 1
|
|
||||||
%global py3_default 0
|
|
||||||
%else
|
|
||||||
%global py3_default 1
|
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%global upstream_name Sphinx
|
%global upstream_name Sphinx
|
||||||
|
|
||||||
Name: python-sphinx
|
Name: python-sphinx
|
||||||
Version: 1.5.6
|
Version: 0.6.5
|
||||||
Release: 1%{?dist}
|
Release: 2%{?dist}
|
||||||
Epoch: 1
|
|
||||||
Summary: Python documentation generator
|
Summary: Python documentation generator
|
||||||
|
|
||||||
Group: Development/Tools
|
Group: Development/Tools
|
||||||
|
License: BSD
|
||||||
|
URL: http://sphinx.pocoo.org/
|
||||||
|
Source0: http://pypi.python.org/packages/source/S/%{upstream_name}/%{upstream_name}-%{version}.tar.gz
|
||||||
|
Patch0: %{name}-0.6.5_setuptools.patch
|
||||||
|
Patch1: %{name}-0.6.5_move_locale_files_outside_sitelib.patch
|
||||||
|
|
||||||
# Unless otherwise noted, the license for code is BSD
|
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
|
||||||
# sphinx/util/stemmer.py Public Domain
|
|
||||||
# sphinx/pycode/pgen2 Python
|
|
||||||
# jquery (MIT or GPLv2)
|
|
||||||
License: BSD and Public Domain and Python and (MIT or GPLv2)
|
|
||||||
URL: http://sphinx-doc.org/
|
|
||||||
Source0: https://files.pythonhosted.org/packages/source/S/%{upstream_name}/%{upstream_name}-%{version}.tar.gz
|
|
||||||
Source1: python2-sphinx
|
|
||||||
Source2: python3-sphinx
|
|
||||||
Source3: zz-modules-python-sphinx.sh
|
|
||||||
Source4: zz-modules-python-sphinx.csh
|
|
||||||
Source5: README.fedora
|
|
||||||
# environment-modules file to select whether the py2 or py3 version of
|
|
||||||
# python-sphinx execuitables is default
|
|
||||||
Source6: default-sphinx-command.in
|
|
||||||
|
|
||||||
# Backport of a bugfix from the 1.6 upstream branch of sphinx
|
|
||||||
# to address a crash with parallel building.
|
|
||||||
# https://bugzilla.redhat.com/show_bug.cgi?id=1494276
|
|
||||||
# Upstream commit:
|
|
||||||
# https://github.com/sphinx-doc/sphinx/pull/4039/commits/0cb57f19a099be2809a8fb5dc9274f7411e1caac
|
|
||||||
Patch0: fix-crash-on-parallel-build.patch
|
|
||||||
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
BuildRequires: python2-devel >= 2.4
|
BuildRequires: python2-devel >= 2.4
|
||||||
BuildRequires: python2-babel
|
BuildRequires: python-setuptools
|
||||||
BuildRequires: python2-setuptools
|
|
||||||
BuildRequires: python-docutils
|
BuildRequires: python-docutils
|
||||||
BuildRequires: python-jinja2
|
BuildRequires: python-jinja2
|
||||||
BuildRequires: python-pygments >= 2.0
|
|
||||||
BuildRequires: python-six
|
|
||||||
BuildRequires: python2-sphinx_rtd_theme
|
|
||||||
BuildRequires: python2-sphinx-theme-alabaster
|
|
||||||
BuildRequires: python2-imagesize
|
|
||||||
BuildRequires: python2-requests
|
|
||||||
BuildRequires: environment(modules)
|
|
||||||
|
|
||||||
# for fixes
|
|
||||||
BuildRequires: dos2unix
|
|
||||||
|
|
||||||
# for testing
|
|
||||||
BuildRequires: python-nose
|
BuildRequires: python-nose
|
||||||
BuildRequires: python2-pytest
|
Requires: python-docutils
|
||||||
BuildRequires: python-pytest-cov
|
Requires: python-jinja2
|
||||||
BuildRequires: gettext
|
Requires: python-pygments
|
||||||
BuildRequires: texinfo
|
|
||||||
BuildRequires: graphviz
|
|
||||||
BuildRequires: python-sqlalchemy
|
|
||||||
BuildRequires: python2-mock
|
|
||||||
BuildRequires: python2-simplejson
|
|
||||||
BuildRequires: python-html5lib
|
|
||||||
BuildRequires: python-whoosh
|
|
||||||
BuildRequires: python2-snowballstemmer
|
|
||||||
BuildRequires: python-enum34
|
|
||||||
# note: no Python3 xapian binding yet
|
|
||||||
BuildRequires: xapian-bindings-python
|
|
||||||
BuildRequires: texlive-collection-fontsrecommended
|
|
||||||
BuildRequires: texlive-collection-latex
|
|
||||||
BuildRequires: texlive-dvipng
|
|
||||||
BuildRequires: texlive-dvisvgm
|
|
||||||
BuildRequires: texlive-ucs
|
|
||||||
BuildRequires: tex(cmap.sty)
|
|
||||||
BuildRequires: tex(ecrm1000.tfm)
|
|
||||||
BuildRequires: tex(footnote.sty)
|
|
||||||
BuildRequires: tex(framed.sty)
|
|
||||||
BuildRequires: tex(multirow.sty)
|
|
||||||
BuildRequires: tex(parskip.sty)
|
|
||||||
BuildRequires: tex(titlesec.sty)
|
|
||||||
BuildRequires: tex(threeparttable.sty)
|
|
||||||
BuildRequires: tex(upquote.sty)
|
|
||||||
BuildRequires: tex(wrapfig.sty)
|
|
||||||
BuildRequires: tex(capt-of.sty)
|
|
||||||
BuildRequires: tex(needspace.sty)
|
|
||||||
BuildRequires: tex(eqparbox.sty)
|
|
||||||
BuildRequires: tex(amsmath.sty)
|
|
||||||
BuildRequires: tex(amsthm.sty)
|
|
||||||
BuildRequires: tex(amssymb.sty)
|
|
||||||
BuildRequires: tex(amsfonts.sty)
|
|
||||||
BuildRequires: tex(bm.sty)
|
|
||||||
BuildRequires: tex(palatino.sty)
|
|
||||||
BuildRequires: tex(multirow.sty)
|
|
||||||
BuildRequires: tex(eqparbox.sty)
|
|
||||||
BuildRequires: tex(atbegshi.sty)
|
|
||||||
BuildRequires: tex(anyfontsize.sty)
|
|
||||||
BuildRequires: tex(luatex85.sty)
|
|
||||||
BuildRequires: tex(fncychap.sty)
|
|
||||||
BuildRequires: tex(tabulary.sty)
|
|
||||||
BuildRequires: tex(polyglossia.sty)
|
|
||||||
BuildRequires: tex(eu1enc.def)
|
|
||||||
|
|
||||||
%if 0%{?with_python3}
|
|
||||||
BuildRequires: python3-devel
|
|
||||||
BuildRequires: python3-babel
|
|
||||||
BuildRequires: python3-setuptools
|
|
||||||
BuildRequires: python3-docutils
|
|
||||||
BuildRequires: python3-jinja2
|
|
||||||
BuildRequires: python3-pygments
|
|
||||||
BuildRequires: python3-nose
|
|
||||||
BuildRequires: python3-pytest
|
|
||||||
BuildRequires: python3-pytest-cov
|
|
||||||
BuildRequires: python3-sqlalchemy
|
|
||||||
BuildRequires: python3-mock
|
|
||||||
BuildRequires: python3-simplejson
|
|
||||||
BuildRequires: python3-html5lib
|
|
||||||
BuildRequires: python3-whoosh
|
|
||||||
BuildRequires: python3-snowballstemmer
|
|
||||||
BuildRequires: python3-six
|
|
||||||
BuildRequires: python3-sphinx_rtd_theme
|
|
||||||
BuildRequires: python3-sphinx-theme-alabaster
|
|
||||||
BuildRequires: python3-imagesize
|
|
||||||
BuildRequires: python3-requests
|
|
||||||
%endif # with_python3
|
|
||||||
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@@ -164,175 +57,12 @@ the Python docs:
|
|||||||
snippets and inclusion of appropriately formatted docstrings.
|
snippets and inclusion of appropriately formatted docstrings.
|
||||||
|
|
||||||
|
|
||||||
%package -n python2-sphinx
|
|
||||||
Summary: Python documentation generator
|
|
||||||
Requires: python-sphinx-locale = %{?epoch}:%{version}-%{release}
|
|
||||||
Requires: python2-babel
|
|
||||||
Requires: python-docutils
|
|
||||||
Requires: python-jinja2
|
|
||||||
Requires: python-pygments
|
|
||||||
Requires: python2-mock
|
|
||||||
Requires: python2-snowballstemmer
|
|
||||||
Requires: python2-sphinx_rtd_theme
|
|
||||||
Requires: python2-six
|
|
||||||
Requires: python2-sphinx-theme-alabaster
|
|
||||||
Requires: python2-imagesize
|
|
||||||
Requires: python2-requests
|
|
||||||
Requires: environment(modules)
|
|
||||||
# Needed to get rid of the alternatives config installed in f24 and f25
|
|
||||||
# versions of the package
|
|
||||||
Requires(pre): /usr/sbin/alternatives
|
|
||||||
Recommends: graphviz
|
|
||||||
Obsoletes: python-sphinx <= 1.2.3
|
|
||||||
Obsoletes: python-sphinxcontrib-napoleon < 0.5
|
|
||||||
Provides: python-sphinxcontrib-napoleon = %{?epoch}:%{version}-%{release}
|
|
||||||
Obsoletes: python2-Sphinx <= 1.3.1-4
|
|
||||||
Provides: python2-Sphinx = %{?epoch}:%{version}-%{release}
|
|
||||||
Provides: python(Sphinx) = %{?epoch}:%{version}-%{release}
|
|
||||||
%{?python_provide:%python_provide python2-sphinx}
|
|
||||||
Conflicts: python3-sphinx < %{?epoch}:%{version}-%{release}
|
|
||||||
|
|
||||||
%description -n python2-sphinx
|
|
||||||
Sphinx is a tool that makes it easy to create intelligent and
|
|
||||||
beautiful documentation for Python projects (or other documents
|
|
||||||
consisting of multiple reStructuredText sources), written by Georg
|
|
||||||
Brandl. It was originally created to translate the new Python
|
|
||||||
documentation, but has now been cleaned up in the hope that it will be
|
|
||||||
useful to many other projects.
|
|
||||||
|
|
||||||
Sphinx uses reStructuredText as its markup language, and many of its
|
|
||||||
strengths come from the power and straightforwardness of
|
|
||||||
reStructuredText and its parsing and translating suite, the Docutils.
|
|
||||||
|
|
||||||
Although it is still under constant development, the following
|
|
||||||
features are already present, work fine and can be seen "in action" in
|
|
||||||
the Python docs:
|
|
||||||
|
|
||||||
* Output formats: HTML (including Windows HTML Help) and LaTeX,
|
|
||||||
for printable PDF versions
|
|
||||||
* Extensive cross-references: semantic markup and automatic links
|
|
||||||
for functions, classes, glossary terms and similar pieces of
|
|
||||||
information
|
|
||||||
* Hierarchical structure: easy definition of a document tree, with
|
|
||||||
automatic links to siblings, parents and children
|
|
||||||
* Automatic indices: general index as well as a module index
|
|
||||||
* Code handling: automatic highlighting using the Pygments highlighter
|
|
||||||
* Various extensions are available, e.g. for automatic testing of
|
|
||||||
snippets and inclusion of appropriately formatted docstrings.
|
|
||||||
|
|
||||||
|
|
||||||
%package latex
|
|
||||||
Summary: LaTeX builder dependencies for %{name}
|
|
||||||
Requires: python(Sphinx) = %{?epoch}:%{version}-%{release}
|
|
||||||
Requires: texlive-collection-fontsrecommended
|
|
||||||
Requires: texlive-collection-latex
|
|
||||||
Requires: texlive-dvipng
|
|
||||||
Requires: texlive-dvisvgm
|
|
||||||
Requires: texlive-ucs
|
|
||||||
Requires: tex(cmap.sty)
|
|
||||||
Requires: tex(ecrm1000.tfm)
|
|
||||||
Requires: tex(footnote.sty)
|
|
||||||
Requires: tex(framed.sty)
|
|
||||||
Requires: tex(multirow.sty)
|
|
||||||
Requires: tex(parskip.sty)
|
|
||||||
Requires: tex(titlesec.sty)
|
|
||||||
Requires: tex(threeparttable.sty)
|
|
||||||
Requires: tex(upquote.sty)
|
|
||||||
Requires: tex(wrapfig.sty)
|
|
||||||
Requires: tex(capt-of.sty)
|
|
||||||
Requires: tex(needspace.sty)
|
|
||||||
Requires: tex(eqparbox.sty)
|
|
||||||
Requires: tex(amsmath.sty)
|
|
||||||
Requires: tex(amsthm.sty)
|
|
||||||
Requires: tex(amssymb.sty)
|
|
||||||
Requires: tex(amsfonts.sty)
|
|
||||||
Requires: tex(bm.sty)
|
|
||||||
Requires: tex(palatino.sty)
|
|
||||||
Requires: tex(multirow.sty)
|
|
||||||
Requires: tex(eqparbox.sty)
|
|
||||||
Requires: tex(atbegshi.sty)
|
|
||||||
Requires: tex(anyfontsize.sty)
|
|
||||||
Requires: tex(luatex85.sty)
|
|
||||||
Requires: tex(fncychap.sty)
|
|
||||||
Requires: tex(tabulary.sty)
|
|
||||||
Requires: tex(polyglossia.sty)
|
|
||||||
Requires: tex(eu1enc.def)
|
|
||||||
Obsoletes: python3-sphinx-latex < 1.4.4-2
|
|
||||||
|
|
||||||
%description latex
|
|
||||||
Sphinx is a tool that makes it easy to create intelligent and
|
|
||||||
beautiful documentation for Python projects (or other documents
|
|
||||||
consisting of multiple reStructuredText sources), written by Georg
|
|
||||||
Brandl. It was originally created to translate the new Python
|
|
||||||
documentation, but has now been cleaned up in the hope that it will be
|
|
||||||
useful to many other projects.
|
|
||||||
|
|
||||||
This package pulls in the TeX dependencies needed by Sphinx's LaTeX
|
|
||||||
builder.
|
|
||||||
|
|
||||||
|
|
||||||
%if 0%{?with_python3}
|
|
||||||
%package -n python3-sphinx
|
|
||||||
Summary: Python documentation generator
|
|
||||||
Group: Development/Tools
|
|
||||||
Requires: python-sphinx-locale = %{?epoch}:%{version}-%{release}
|
|
||||||
Requires: python3-babel
|
|
||||||
Requires: python3-docutils
|
|
||||||
Requires: python3-jinja2
|
|
||||||
Requires: python3-pygments
|
|
||||||
Requires: python3-mock
|
|
||||||
Requires: python3-snowballstemmer
|
|
||||||
Requires: python3-sphinx_rtd_theme
|
|
||||||
Requires: python3-sphinx-theme-alabaster
|
|
||||||
Requires: python3-imagesize
|
|
||||||
Requires: python3-requests
|
|
||||||
Requires: python3-six
|
|
||||||
Recommends: graphviz
|
|
||||||
Requires: environment(modules)
|
|
||||||
# Needed to get rid of the alternatives config installed in f24 and f25
|
|
||||||
# versions of the package
|
|
||||||
Requires(pre): /usr/sbin/alternatives
|
|
||||||
Obsoletes: python3-sphinxcontrib-napoleon < 0.3.0
|
|
||||||
Provides: python3-sphinxcontrib-napoleon = %{?epoch}:%{version}-%{release}
|
|
||||||
Provides: python(Sphinx) = %{?epoch}:%{version}-%{release}
|
|
||||||
%{?python_provide:%python_provide python3-sphinx}
|
|
||||||
Conflicts: python2-Sphinx < %{?epoch}:%{version}-%{release}
|
|
||||||
|
|
||||||
%description -n python3-sphinx
|
|
||||||
Sphinx is a tool that makes it easy to create intelligent and
|
|
||||||
beautiful documentation for Python projects (or other documents
|
|
||||||
consisting of multiple reStructuredText sources), written by Georg
|
|
||||||
Brandl. It was originally created to translate the new Python
|
|
||||||
documentation, but has now been cleaned up in the hope that it will be
|
|
||||||
useful to many other projects.
|
|
||||||
|
|
||||||
Sphinx uses reStructuredText as its markup language, and many of its
|
|
||||||
strengths come from the power and straightforwardness of
|
|
||||||
reStructuredText and its parsing and translating suite, the Docutils.
|
|
||||||
|
|
||||||
Although it is still under constant development, the following
|
|
||||||
features are already present, work fine and can be seen "in action" in
|
|
||||||
the Python docs:
|
|
||||||
|
|
||||||
* Output formats: HTML (including Windows HTML Help) and LaTeX,
|
|
||||||
for printable PDF versions
|
|
||||||
* Extensive cross-references: semantic markup and automatic links
|
|
||||||
for functions, classes, glossary terms and similar pieces of
|
|
||||||
information
|
|
||||||
* Hierarchical structure: easy definition of a document tree, with
|
|
||||||
automatic links to siblings, parents and children
|
|
||||||
* Automatic indices: general index as well as a module index
|
|
||||||
* Code handling: automatic highlighting using the Pygments highlighter
|
|
||||||
* Various extensions are available, e.g. for automatic testing of
|
|
||||||
snippets and inclusion of appropriately formatted docstrings.
|
|
||||||
%endif # with_python3
|
|
||||||
|
|
||||||
|
|
||||||
%package doc
|
%package doc
|
||||||
Summary: Documentation for %{name}
|
Summary: Documentation for %{name}
|
||||||
Group: Documentation
|
Group: Documentation
|
||||||
License: BSD
|
License: BSD
|
||||||
Requires: python(Sphinx) = %{?epoch}:%{version}-%{release}
|
Requires: %{name} = %{version}-%{release}
|
||||||
|
|
||||||
|
|
||||||
%description doc
|
%description doc
|
||||||
Sphinx is a tool that makes it easy to create intelligent and
|
Sphinx is a tool that makes it easy to create intelligent and
|
||||||
@@ -345,115 +75,42 @@ useful to many other projects.
|
|||||||
This package contains documentation in reST and HTML formats.
|
This package contains documentation in reST and HTML formats.
|
||||||
|
|
||||||
|
|
||||||
%package locale
|
|
||||||
Summary: Locale files for %{name}
|
|
||||||
Group: Development/Tools
|
|
||||||
License: BSD
|
|
||||||
|
|
||||||
%description locale
|
|
||||||
Sphinx is a tool that makes it easy to create intelligent and
|
|
||||||
beautiful documentation for Python projects (or other documents
|
|
||||||
consisting of multiple reStructuredText sources), written by Georg
|
|
||||||
Brandl. It was originally created to translate the new Python
|
|
||||||
documentation, but has now been cleaned up in the hope that it will be
|
|
||||||
useful to many other projects.
|
|
||||||
|
|
||||||
This package contains locale files for Sphinx
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -n %{upstream_name}-%{version}%{?prerel} -p1
|
%setup -q -n %{upstream_name}-%{version}
|
||||||
|
%patch0 -p1 -b .setuptools
|
||||||
cp %{SOURCE5} .
|
%patch1 -p1 -b .language_files
|
||||||
|
|
||||||
sed '1d' -i sphinx/pycode/pgen2/token.py
|
sed '1d' -i sphinx/pycode/pgen2/token.py
|
||||||
|
|
||||||
# fix line encoding of bundled jquery.js
|
|
||||||
dos2unix -k ./sphinx/themes/basic/static/jquery.js
|
|
||||||
|
|
||||||
%if 0%{?with_python3}
|
|
||||||
rm -rf %{py3dir}
|
|
||||||
cp -a . %{py3dir}
|
|
||||||
%endif # with_python3
|
|
||||||
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%py2_build
|
%{__python} setup.py build
|
||||||
%if 0%{?with_python3}
|
|
||||||
%py3_build
|
|
||||||
%endif # with_python3
|
|
||||||
|
|
||||||
pushd doc
|
pushd doc
|
||||||
make html
|
make html
|
||||||
make man
|
|
||||||
rm -rf _build/html/.buildinfo
|
rm -rf _build/html/.buildinfo
|
||||||
mv _build/html ..
|
mv _build/html ..
|
||||||
|
rm -rf _*
|
||||||
popd
|
popd
|
||||||
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%if 0%{?with_python3}
|
rm -rf %{buildroot}
|
||||||
%py3_install
|
|
||||||
install -d %{buildroot}%{_libexecdir}/python3-sphinx
|
|
||||||
for i in sphinx-{apidoc,autogen,build,quickstart}; do
|
|
||||||
mv %{buildroot}%{_bindir}/$i %{buildroot}%{_bindir}/$i-%{python3_version}
|
|
||||||
ln -s $i-%{python3_version} %{buildroot}%{_bindir}/$i-3
|
|
||||||
ln -s %{_bindir}/$i-3 %{buildroot}%{_libexecdir}/python3-sphinx/$i
|
|
||||||
done
|
|
||||||
|
|
||||||
# These appear to be incomplete C extensions to speed up parsing. They are not
|
%{__python} setup.py install --skip-build --root %{buildroot}
|
||||||
# built by setup.py yet. Removing them in %%install so that if sphinx does
|
|
||||||
# make use of them, and we don't notice, we only remove these source files
|
|
||||||
# after the build has created the .so's
|
|
||||||
rm %{buildroot}%{python3_sitelib}/sphinx/pycode/pgen2/parse.{pyx,c}
|
|
||||||
%endif # with_python3
|
|
||||||
|
|
||||||
%py2_install
|
|
||||||
install -d %{buildroot}%{_libexecdir}/python2-sphinx
|
|
||||||
for i in sphinx-{apidoc,autogen,build,quickstart}; do
|
|
||||||
mv %{buildroot}%{_bindir}/$i %{buildroot}%{_bindir}/$i-%{python2_version}
|
|
||||||
ln -s $i-%{python2_version} %{buildroot}%{_bindir}/$i-2
|
|
||||||
ln -s %{_bindir}/$i-2 %{buildroot}%{_libexecdir}/python2-sphinx/$i
|
|
||||||
done
|
|
||||||
|
|
||||||
# These appear to be incomplete C extensions to speed up parsing. They are not
|
|
||||||
# built by setup.py yet. Removing them in %%install so that if sphinx does
|
|
||||||
# make use of them, and we don't notice, we only remove these source files
|
|
||||||
# after the build has created the .so's
|
|
||||||
rm %{buildroot}%{python2_sitelib}/sphinx/pycode/pgen2/parse.{pyx,c}
|
|
||||||
|
|
||||||
pushd doc
|
pushd doc
|
||||||
# Deliver man pages
|
# Deliver man pages
|
||||||
install -d %{buildroot}%{_mandir}/man1
|
install -d %{buildroot}%{_mandir}/man1
|
||||||
for f in _build/man/sphinx-*.1;
|
mv sphinx-*.1 %{buildroot}%{_mandir}/man1/
|
||||||
do
|
|
||||||
### TODO: these are all the same. Do we really need to ship them three
|
|
||||||
### times or is it fine to just ship them as e.g. sphinx-build.1
|
|
||||||
cp -p $f %{buildroot}%{_mandir}/man1/$(basename $f)
|
|
||||||
cp -p $f %{buildroot}%{_mandir}/man1/$(basename $f | sed -e "s|.1$|-%{python2_version}.1|")
|
|
||||||
cp -p $f %{buildroot}%{_mandir}/man1/$(basename $f | sed -e "s|.1$|-%{python3_version}.1|")
|
|
||||||
done
|
|
||||||
|
|
||||||
# Remove language files, they're identical to the ones from the
|
|
||||||
# Python 2 build that will be moved to /usr/share below
|
|
||||||
find %{buildroot}%{python3_sitelib}/sphinx/locale -maxdepth 1 -mindepth 1 -type d -not -path '*/\.*' -exec rm -rf '{}' \;
|
|
||||||
popd
|
popd
|
||||||
|
|
||||||
# Clean up non-python files
|
|
||||||
rm -f %{buildroot}%{python2_sitelib}/sphinx/locale/.DS_Store
|
|
||||||
rm -rf %{buildroot}%{python2_sitelib}/sphinx/locale/.tx
|
|
||||||
rm -f %{buildroot}%{python3_sitelib}/sphinx/locale/.DS_Store
|
|
||||||
rm -rf %{buildroot}%{python3_sitelib}/sphinx/locale/.tx
|
|
||||||
|
|
||||||
# Deliver rst files
|
# Deliver rst files
|
||||||
rm -rf doc/_build
|
|
||||||
sed -i 's|python ../sphinx-build.py|/usr/bin/sphinx-build|' doc/Makefile
|
|
||||||
mv doc reST
|
mv doc reST
|
||||||
|
|
||||||
# Move language files to /usr/share;
|
# Move language files to /usr/share in association with %patch1
|
||||||
# patch to support this incorporated in 0.6.6
|
|
||||||
pushd %{buildroot}%{python_sitelib}
|
pushd %{buildroot}%{python_sitelib}
|
||||||
|
|
||||||
for lang in `find sphinx/locale -maxdepth 1 -mindepth 1 -type d -not -path '*/\.*' -printf "%f "`;
|
for lang in `find sphinx/locale -maxdepth 1 -mindepth 1 -type d -printf "%f "`;
|
||||||
do
|
do
|
||||||
install -d %{buildroot}%{_datadir}/sphinx/locale/$lang
|
install -d %{buildroot}%{_datadir}/sphinx/locale/$lang
|
||||||
install -d %{buildroot}%{_datadir}/locale/$lang/LC_MESSAGES
|
install -d %{buildroot}%{_datadir}/locale/$lang/LC_MESSAGES
|
||||||
@@ -464,38 +121,6 @@ do
|
|||||||
rm -rf sphinx/locale/$lang
|
rm -rf sphinx/locale/$lang
|
||||||
done
|
done
|
||||||
popd
|
popd
|
||||||
|
|
||||||
install -d %{buildroot}%{_modulesdir}/python-sphinx
|
|
||||||
install -m 0644 %{SOURCE1} %{buildroot}%{_modulesdir}/python-sphinx/
|
|
||||||
sed -i 's|@python2_sphinx_dir@|%{_libexecdir}/python2-sphinx|' %{buildroot}%{_modulesdir}/python-sphinx/python2-sphinx
|
|
||||||
install -m 0644 %{SOURCE2} %{buildroot}%{_modulesdir}/python-sphinx/
|
|
||||||
sed -i 's|@python3_sphinx_dir@|%{_libexecdir}/python3-sphinx|' %{buildroot}%{_modulesdir}/python-sphinx/python3-sphinx
|
|
||||||
install -d %{buildroot}%{_sysconfdir}/profile.d
|
|
||||||
install -m 0644 %{SOURCE3} %{buildroot}%{_sysconfdir}/profile.d/zz-modules-python-sphinx.sh
|
|
||||||
install -m 0644 %{SOURCE4} %{buildroot}%{_sysconfdir}/profile.d/zz-modules-python-sphinx.csh
|
|
||||||
|
|
||||||
%if %{py3_default}
|
|
||||||
sed 's/@PYTHONVER@/3/' < %{SOURCE6} > %{buildroot}%{_modulesdir}/python-sphinx/.version
|
|
||||||
|
|
||||||
# These symlinks establish a default for when a package is first installed (and
|
|
||||||
# therefore, environment modules is not loaded). The user can immediately
|
|
||||||
# switch them by using module swap python-sphinx/python2-sphinx
|
|
||||||
for filename in sphinx-{build,apidoc,autogen,quickstart} ; do
|
|
||||||
ln -s %{_libexecdir}/python3-sphinx/$filename %{buildroot}%{_bindir}/$filename
|
|
||||||
done
|
|
||||||
|
|
||||||
%else
|
|
||||||
sed 's/@PYTHONVER@/2/' < %{SOURCE6} > %{buildroot}%{_modulesdir}/python-sphinx/.version
|
|
||||||
|
|
||||||
# These symlinks establish a default for when a package is first installed (and
|
|
||||||
# therefore, environment modules is not loaded). The user can immediately
|
|
||||||
# switch them by using module swap python-sphinx/python3-sphinx
|
|
||||||
for filename in sphinx-{build,apidoc,autogen,quickstart} ; do
|
|
||||||
ln -s %{_libexecdir}/python2-sphinx/$filename %{buildroot}%{_bindir}/$filename
|
|
||||||
done
|
|
||||||
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%find_lang sphinx
|
%find_lang sphinx
|
||||||
|
|
||||||
# Language files; Since these are javascript, it's not immediately obvious to
|
# Language files; Since these are javascript, it's not immediately obvious to
|
||||||
@@ -505,333 +130,29 @@ done
|
|||||||
>> sphinx.lang
|
>> sphinx.lang
|
||||||
|
|
||||||
|
|
||||||
|
%clean
|
||||||
|
rm -rf %{buildroot}
|
||||||
|
|
||||||
|
|
||||||
%check
|
%check
|
||||||
# Currently, all linkcheck tests hit external websites. Since network access
|
make test
|
||||||
# is disabled in koji, we have to disable these.
|
|
||||||
rm tests/test_build_linkcheck.py
|
|
||||||
LANG=en_US.UTF-8 make test
|
|
||||||
%if 0%{?with_python3}
|
|
||||||
pushd %{py3dir}
|
|
||||||
# Currently, all linkcheck tests hit external websites. Since network access
|
|
||||||
# is disabled in koji, we have to disable these.
|
|
||||||
rm tests/test_build_linkcheck.py
|
|
||||||
LANG=en_US.UTF-8 PYTHON=python3 make test
|
|
||||||
popd
|
|
||||||
%endif # with_python3
|
|
||||||
|
|
||||||
|
|
||||||
%pre -n python2-sphinx
|
%files -f sphinx.lang
|
||||||
# python-sphinx as shipped in an update to f24 and f25 used alternatives. So
|
%defattr(-,root,root,-)
|
||||||
# we need to clean up the alternatives configuration until at least f27
|
%doc AUTHORS CHANGES EXAMPLES LICENSE README TODO
|
||||||
%{_sbindir}/update-alternatives --remove sphinx-build %{_bindir}/sphinx-build-%{python2_version} || :
|
%{_bindir}/sphinx-*
|
||||||
|
%{python_sitelib}/*
|
||||||
%if 0%{?with_python3}
|
%{_datadir}/sphinx/
|
||||||
%pre -n python3-sphinx
|
%exclude %{_datadir}/sphinx/locale/*/sphinx.js
|
||||||
# python-sphinx as shipped in an update to f24 and f25 used alternatives. So
|
|
||||||
# we need to clean up the alternatives configuration until at least f27
|
|
||||||
%{_sbindir}/update-alternatives --remove sphinx-build %{_bindir}/sphinx-build-%{python3_version} || :
|
|
||||||
%endif # with_python3
|
|
||||||
|
|
||||||
|
|
||||||
%files latex
|
|
||||||
%license LICENSE
|
|
||||||
|
|
||||||
%files locale -f sphinx.lang
|
|
||||||
%license LICENSE
|
|
||||||
%dir %{_datadir}/sphinx/
|
|
||||||
%dir %{_datadir}/sphinx/locale
|
|
||||||
%dir %{_datadir}/sphinx/locale/*
|
|
||||||
|
|
||||||
%files -n python2-sphinx
|
|
||||||
%license LICENSE
|
|
||||||
%doc AUTHORS CHANGES EXAMPLES README.rst README.fedora
|
|
||||||
%{_bindir}/sphinx-*-2*
|
|
||||||
%{_bindir}/sphinx-build
|
|
||||||
%{_bindir}/sphinx-apidoc
|
|
||||||
%{_bindir}/sphinx-autogen
|
|
||||||
%{_bindir}/sphinx-quickstart
|
|
||||||
%{python2_sitelib}/sphinx/
|
|
||||||
%{python2_sitelib}/Sphinx-%{version}-py%{python2_version}.egg-info/
|
|
||||||
%exclude %{_mandir}/man1/sphinx-*-%{python3_version}.1*
|
|
||||||
%{_mandir}/man1/*
|
%{_mandir}/man1/*
|
||||||
%{_libexecdir}/python2-sphinx/
|
|
||||||
%{_modulesdir}/python-sphinx/python2-sphinx
|
|
||||||
%if !%{py3_default}
|
|
||||||
%{_modulesdir}/python-sphinx/.version
|
|
||||||
%endif
|
|
||||||
%config(noreplace) %{_sysconfdir}/profile.d/zz-modules-python-sphinx.sh
|
|
||||||
%config(noreplace) %{_sysconfdir}/profile.d/zz-modules-python-sphinx.csh
|
|
||||||
|
|
||||||
%if 0%{?with_python3}
|
|
||||||
|
|
||||||
%files -n python3-sphinx
|
|
||||||
%license LICENSE
|
|
||||||
%doc AUTHORS CHANGES EXAMPLES README.rst README.fedora
|
|
||||||
%{_bindir}/sphinx-*-3*
|
|
||||||
%{python3_sitelib}/sphinx/
|
|
||||||
%{python3_sitelib}/Sphinx-%{version}-py%{python3_version}.egg-info/
|
|
||||||
%{_mandir}/man1/sphinx-*-%{python3_version}.1*
|
|
||||||
%{_libexecdir}/python3-sphinx/
|
|
||||||
%{_modulesdir}/python-sphinx/python3-sphinx
|
|
||||||
%if %{py3_default}
|
|
||||||
%{_modulesdir}/python-sphinx/.version
|
|
||||||
%endif
|
|
||||||
%config(noreplace) %{_sysconfdir}/profile.d/zz-modules-python-sphinx.sh
|
|
||||||
%config(noreplace) %{_sysconfdir}/profile.d/zz-modules-python-sphinx.csh
|
|
||||||
|
|
||||||
%endif # with_python3
|
|
||||||
|
|
||||||
%files doc
|
%files doc
|
||||||
|
%defattr(-,root,root,-)
|
||||||
%doc html reST
|
%doc html reST
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Tue Jan 09 2018 Charalampos Stratakis <cstratak@redhat.com> - 1:1.5.6-1
|
|
||||||
- Update to 1.5.6
|
|
||||||
|
|
||||||
* Mon Nov 06 2017 Charalampos Stratakis <cstratak@redhat.com> - 1:1.5.5-1
|
|
||||||
- Update to 1.5.5
|
|
||||||
|
|
||||||
* Fri Sep 22 2017 Charalampos Stratakis <cstratak@redhat.com> - 1:1.5.2-4
|
|
||||||
- Fix a crash on parallel build.
|
|
||||||
|
|
||||||
* Wed Sep 20 2017 Charalampos Stratakis <cstratak@redhat.com> - 1:1.5.2-3
|
|
||||||
- Provide the epoch tag in order to downgrade at Fedora 26
|
|
||||||
|
|
||||||
* Sat Feb 18 2017 Toshio Kuratomi <toshio@fedoraproject.org> - - 1.5.2-2
|
|
||||||
- Cleanup source files that should not be installed
|
|
||||||
- Fix the __init__.pyc that was byte compiled for the wrong python
|
|
||||||
|
|
||||||
* Fri Feb 17 2017 Toshio Kuratomi <toshio@fedoraproject.org> - - 1.5.2-1
|
|
||||||
- Update to 1.5.2
|
|
||||||
- Remove a few latex dependencies that are no longer needed
|
|
||||||
- Remove xapian patch; now in upstream tarball
|
|
||||||
|
|
||||||
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.1-6
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
||||||
|
|
||||||
* Tue Jan 31 2017 Toshio Kuratomi <toshio@fedoraproject.org> - - 1.5.1-5
|
|
||||||
- environment-modules is less featureful than Lmod.
|
|
||||||
- Select the default version in a different way since environment-modules
|
|
||||||
didn't understand the symlink
|
|
||||||
- Ignore error messsages in the shell startup script as environment-modules
|
|
||||||
prints an error message if a module has already been loaded. The command
|
|
||||||
is doing the right thing for this case except that it's also printing an
|
|
||||||
error message.
|
|
||||||
|
|
||||||
* Thu Jan 26 2017 Toshio Kuratomi <toshio@fedoraproject.org> - - 1.5.1-4
|
|
||||||
- Add recipe for setting the system default to the README.fedora
|
|
||||||
|
|
||||||
* Wed Jan 18 2017 Toshio Kuratomi <toshio@fedoraproject.org> - - 1.5.1-3
|
|
||||||
- Move the unversioned executables into the python2 package as they are now
|
|
||||||
using python2 to run
|
|
||||||
|
|
||||||
* Wed Jan 18 2017 Toshio Kuratomi <toshio@fedoraproject.org> - - 1.5.1-2
|
|
||||||
- Add README.fedora so people know how to use environment-modules to switch.
|
|
||||||
- Change the default to be the python2 version to match with the guidelines
|
|
||||||
- Switch to generic environment(modules) instead of Lmod specifically.
|
|
||||||
|
|
||||||
* Fri Dec 30 2016 Orion Poplawski <orion@cora.nwra.com> - 1.5.1-1
|
|
||||||
- Update to 1.5.1
|
|
||||||
|
|
||||||
* Fri Dec 30 2016 Toshio Kuratomi <toshio@fedoraproject.org> - 1.4.9-2
|
|
||||||
- Remove alternatives. Alternatives should only be used for a very small
|
|
||||||
number of packages (system daemons which also have a compatible command line
|
|
||||||
interface).
|
|
||||||
- Use environment-modules to switch between the python2 and python3 packages
|
|
||||||
*but* be aware that no amount of manual switching can get this 100% right.
|
|
||||||
The code has to be fixed upstream, not in packaging.
|
|
||||||
|
|
||||||
* Tue Dec 13 2016 Charalampos Stratakis <cstratak@redhat.com> - 1.4.9-1
|
|
||||||
- Update to 1.4.9
|
|
||||||
- Enable python3 tests
|
|
||||||
|
|
||||||
* Mon Dec 12 2016 Charalampos Stratakis <cstratak@redhat.com> - 1.4.8-3
|
|
||||||
- Rebuild for Python 3.6
|
|
||||||
- Disable python3 tests for now
|
|
||||||
|
|
||||||
* Thu Oct 6 2016 Avram Lubkin <aviso@fedoraproject.org> - 1.4.8-2
|
|
||||||
- Added tex(luatex85.sty) dependency to support TexLive 2016
|
|
||||||
|
|
||||||
* Thu Oct 6 2016 Avram Lubkin <aviso@fedoraproject.org> - 1.4.8-1
|
|
||||||
- Update to 1.4.8
|
|
||||||
- Alternatives fails for scripts sometimes (bz#1382405)
|
|
||||||
|
|
||||||
* Sun Sep 4 2016 Avram Lubkin <aviso@fedoraproject.org> - 1.4.6-2
|
|
||||||
- Alternatives fails for man pages due to existing files
|
|
||||||
|
|
||||||
* Fri Sep 2 2016 Avram Lubkin <aviso@fedoraproject.org> - 1.4.6-1
|
|
||||||
- Update to 1.4.6 (bz#1370810)
|
|
||||||
- Fix unversioned Obsoletes
|
|
||||||
- Add alternatives slaves for man pages
|
|
||||||
|
|
||||||
* Fri Aug 12 2016 Avram Lubkin <aviso@fedoraproject.org> - 1.4.5-1
|
|
||||||
- Update to 1.4.5 (bz#1356336)
|
|
||||||
- Remove Recommends for latex, locale, and doc subpackages (bz#1366624)
|
|
||||||
- Remove Requires from locale subpackage (bz#1366624)
|
|
||||||
- Set executable scripts via alternatives (bz#1321413)
|
|
||||||
- Change graphviz Requires to Recommends (bz#1366706)
|
|
||||||
|
|
||||||
* Sun Jul 03 2016 Avram Lubkin <aviso@fedoraproject.org> - 1.4.4-2
|
|
||||||
- doc and locale no longer specifically require python2-sphinx
|
|
||||||
- Colapsed python3-sphinx-latex into python-latex
|
|
||||||
|
|
||||||
* Sun Jun 12 2016 Avram Lubkin <aviso@fedoraproject.org> - 1.4.4-1
|
|
||||||
- Updated to 1.4.4
|
|
||||||
- Added python-sphinx-locale for common locale files
|
|
||||||
|
|
||||||
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.1-5
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
||||||
|
|
||||||
* Fri Nov 27 2015 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 1.3.1-4
|
|
||||||
- Obsolete napoleon extension, it is now packaged with sphinx (#1286275)
|
|
||||||
- Rename python2-Sphinx to python2-sphinx
|
|
||||||
- Add conflicts to disallow parallel installation of different versions,
|
|
||||||
which causes file conflicts because of the shared documentation files.
|
|
||||||
|
|
||||||
* Wed Nov 25 2015 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 1.3.1-3
|
|
||||||
- Restore using python2 scripts by default (#1285535)
|
|
||||||
|
|
||||||
* Wed Nov 25 2015 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 1.3.1-2
|
|
||||||
- Fix requirements of python2- subpackage
|
|
||||||
- Provide sphinx-*-{3.5,3} symlinks for each script
|
|
||||||
|
|
||||||
* Tue Nov 24 2015 Julien Enselme <jujens@jujens.eu> - 1.3.1-1
|
|
||||||
- Update to 1.3.1 (#1136284)
|
|
||||||
- Update to new guidelines
|
|
||||||
- Make the default executable use python3
|
|
||||||
|
|
||||||
* Tue Oct 13 2015 Robert Kuska <rkuska@redhat.com> - 1.2.3-5
|
|
||||||
- Rebuilt for Python3.5 rebuild
|
|
||||||
- add patch to reflect that Python3.5 dropped HTMLParserError
|
|
||||||
|
|
||||||
* Mon Jul 20 2015 Michel Alexandre Salim <salimma@fedoraproject.org> - 1.2.3-4
|
|
||||||
- Fix line encoding of bundled jquery.js
|
|
||||||
|
|
||||||
* Mon Jul 20 2015 Michel Alexandre Salim <salimma@fedoraproject.org> - 1.2.3-3
|
|
||||||
- Re-introduce LaTeX subpackage, solely for pulling in LaTeX dependencies
|
|
||||||
|
|
||||||
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.3-2
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
||||||
|
|
||||||
* Thu Feb 5 2015 Michel Alexandre Salim <salimma@fedoraproject.org> - 1.2.3-1
|
|
||||||
- Update to 1.2.3
|
|
||||||
- Mark license file with %%license instead of %%doc
|
|
||||||
|
|
||||||
* Thu Feb 5 2015 Michel Alexandre Salim <salimma@fedoraproject.org> - 1.2.2-10
|
|
||||||
- Complete LaTeX builder deps (fixes bz#882166)
|
|
||||||
- Make test output verbose
|
|
||||||
- Add BRs needed to enable all tests
|
|
||||||
|
|
||||||
* Tue Feb 3 2015 Michel Alexandre Salim <salimma@fedoraproject.org> - 1.2.2-9
|
|
||||||
- python3-sphinx package also Provides: python3-sphinx-latex
|
|
||||||
|
|
||||||
* Tue Feb 3 2015 Michel Alexandre Salim <salimma@fedoraproject.org> - 1.2.2-8
|
|
||||||
- If a separate LaTeX subpackage is not generated, the main package should have
|
|
||||||
a virtual Provides: for it (bz#1187989)
|
|
||||||
|
|
||||||
* Tue Jan 27 2015 Michel Alexandre Salim <salimma@fedoraproject.org> - 1.2.2-7
|
|
||||||
- Disable separate LaTeX builder for now (bz#1185574)
|
|
||||||
|
|
||||||
* Thu Jan 22 2015 Michel Alexandre Salim <salimma@fedoraproject.org> - 1.2.2-6
|
|
||||||
- Split off LaTeX builder into its own subpackages, to remove TeXLive
|
|
||||||
dependencies from the main package.
|
|
||||||
Thanks to Robert Kuska <rkuska@redhat.com> for feedback
|
|
||||||
- Clean up python3-sphinx's locale files, they ended up in the python2 package.
|
|
||||||
Share the locale files in /usr/share instead
|
|
||||||
|
|
||||||
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.2-5
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
||||||
|
|
||||||
* Tue May 27 2014 Bohuslav Kabrda <bkabrda@redhat.com> - 1.2.2-4
|
|
||||||
- Don't own the -3 scripts by python 2 package
|
|
||||||
|
|
||||||
* Thu May 22 2014 Bohuslav Kabrda <bkabrda@redhat.com> - 1.2.2-3
|
|
||||||
- Add sphinx-*-3 links to scripts
|
|
||||||
Resolves: #1098109
|
|
||||||
|
|
||||||
* Fri May 9 2014 Orion Poplawski <orion@cora.nwra.com> - 1.2.2-2
|
|
||||||
- Rebuild for Python 3.4
|
|
||||||
|
|
||||||
* Fri May 9 2014 Orion Poplawski <orion@cora.nwra.com> - 1.2.2-1
|
|
||||||
- Update to 1.2.2
|
|
||||||
|
|
||||||
* Thu Feb 13 2014 Michel Salim <salimma@fedoraproject.org> - 1.2.1-1
|
|
||||||
- Update to 1.2.1
|
|
||||||
|
|
||||||
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.3-8
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
||||||
|
|
||||||
* Sat Mar 9 2013 Michel Salim <salimma@fedoraproject.org> - 1.1.3-7
|
|
||||||
- Fix inheritance_diagram quoting bug, exposed by the newer, stricter dot
|
|
||||||
|
|
||||||
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.3-6
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
||||||
|
|
||||||
* Tue Aug 21 2012 Toshio Kuratomi <toshio@fedoraproject.org> - 1.1.3-5
|
|
||||||
- Fix for use of sphinx's manpage writer with docutils-0.10
|
|
||||||
|
|
||||||
* Mon Aug 6 2012 Michel Salim <salimma@fedoraproject.org> - 1.1.3-4
|
|
||||||
- Rebuild for Python 3.3
|
|
||||||
|
|
||||||
* Fri Aug 3 2012 David Malcolm <dmalcolm@redhat.com> - 1.1.3-3
|
|
||||||
- remove rhel logic from with_python3 conditional
|
|
||||||
|
|
||||||
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.3-2
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
||||||
|
|
||||||
* Thu Apr 5 2012 Michel Salim <salimma@fedoraproject.org> - 1.1.3-1
|
|
||||||
- Update to 1.1.3
|
|
||||||
|
|
||||||
* Sun Feb 5 2012 Michel Salim <salimma@fedoraproject.org> - 1.1.2-5
|
|
||||||
- Move python3 runtime dependencies to the right subpackage
|
|
||||||
- Properly exclude python3 binaries
|
|
||||||
|
|
||||||
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.2-4
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
||||||
|
|
||||||
* Sat Dec 17 2011 Michel Salim <salimma@fedoraproject.org> - 1.1.2-3
|
|
||||||
- BR on texlive-latex for LaTeX tests
|
|
||||||
|
|
||||||
* Thu Dec 8 2011 Michel Salim <salimma@fedoraproject.org> - 1.1.2-2
|
|
||||||
- Enable python3 subpackage
|
|
||||||
|
|
||||||
* Mon Nov 28 2011 Toshio Kuratomi <toshio@fedoraproject.org> - 1.1.2-1
|
|
||||||
- Update to upstream 1.1.2
|
|
||||||
|
|
||||||
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.7-2
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
||||||
|
|
||||||
* Tue Jan 18 2011 Toshio Kuratomi <toshio@fedoraproject.org> - 1.0.7-1
|
|
||||||
- Update to upstream 1.0.7
|
|
||||||
|
|
||||||
* Mon Jan 17 2011 Toshio Kuratomi <toshio@fedoraproject.org> - 1.0.6-1
|
|
||||||
- Update to upstream 1.0.6
|
|
||||||
|
|
||||||
* Mon Nov 1 2010 Michel Salim <salimma@fedoraproject.org> - 1.0.4-3
|
|
||||||
- Fix -doc Makefile to allow regeneration of .rst files
|
|
||||||
|
|
||||||
* Mon Nov 1 2010 Michel Salim <salimma@fedoraproject.org> - 1.0.4-2
|
|
||||||
- Actually include *.js locale files
|
|
||||||
- Generate manpages
|
|
||||||
|
|
||||||
* Fri Sep 17 2010 Michel Salim <salimma@fedoraproject.org> - 1.0.4-1
|
|
||||||
- Update to 1.0.4
|
|
||||||
- Remove BuildRoot and %%clean declarations
|
|
||||||
|
|
||||||
* Thu Jul 22 2010 David Malcolm <dmalcolm@redhat.com> - 1.0-0.1.b2.1
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
|
|
||||||
|
|
||||||
* Mon May 31 2010 Toshio Kuratomi <toshio@fedoraproject.org> - 1.0-0.2.b2
|
|
||||||
- Update to 1.0 beta 2
|
|
||||||
- Fixes problem building html documentation in non-English locales
|
|
||||||
|
|
||||||
* Wed May 26 2010 Michel Salim <salimma@fedoraproject.org> - 1.0-0.1.b1
|
|
||||||
- Update to 1.0 beta 1
|
|
||||||
|
|
||||||
* Tue May 25 2010 Michel Salim <salimma@fedoraproject.org> - 0.6.6-1
|
|
||||||
- Update to 0.6.6
|
|
||||||
|
|
||||||
* Fri May 21 2010 Toshio Kuratomi <toshio@fedoraproject.org> - 0.6.5-2
|
* Fri May 21 2010 Toshio Kuratomi <toshio@fedoraproject.org> - 0.6.5-2
|
||||||
- Few minor tweaks to Gareth's spec file update
|
- Few minor tweaks to Gareth's spec file update
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +0,0 @@
|
|||||||
#%Module 1.0
|
|
||||||
#
|
|
||||||
# python2-sphinx module for use with 'environment modules' package
|
|
||||||
#
|
|
||||||
conflict python-sphinx
|
|
||||||
prepend-path PATH @python2_sphinx_dir@
|
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
#%Module 1.0
|
|
||||||
#
|
|
||||||
# python2-sphinx module for use with 'environment modules' package
|
|
||||||
#
|
|
||||||
conflict python-sphinx
|
|
||||||
prepend-path PATH @python3_sphinx_dir@
|
|
||||||
@@ -1 +1 @@
|
|||||||
SHA512 (Sphinx-1.5.6.tar.gz) = 4190124d093fca3633a40187731d4284fa041c5d1159af1087ceec507eb398f693dcc655cbce779b63c25e4c925a07dfbfaae5f27c36e42df97226d335be951f
|
86dd5dbd55cb44d1f8091a4a1c3743b2 Sphinx-0.6.5.tar.gz
|
||||||
|
|||||||
@@ -1,2 +0,0 @@
|
|||||||
# Add path to the default python-sphinx scripts on this version of Fedora
|
|
||||||
module load python-sphinx >& /dev/null
|
|
||||||
@@ -1,2 +0,0 @@
|
|||||||
# Add path to the default python-sphinx scripts on this version of Fedora
|
|
||||||
module load python-sphinx 2> /dev/null
|
|
||||||
Reference in New Issue
Block a user