From fdaf164829294cccb417d55de3b8261acd11d00bb68063030bccc127f4bf0ee0 Mon Sep 17 00:00:00 2001 From: Sascha Peilicke Date: Mon, 16 Sep 2013 09:26:51 +0000 Subject: [PATCH] - Make sure %python_sitelib/sphinxcontrib is an importable module. Some 3rd-party extensions assume this OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Sphinx?expand=0&rev=35 --- python-Sphinx.changes | 6 ++++++ python-Sphinx.spec | 9 ++++++++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/python-Sphinx.changes b/python-Sphinx.changes index 68b6e48..e420123 100644 --- a/python-Sphinx.changes +++ b/python-Sphinx.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Mon Sep 16 09:26:11 UTC 2013 - speilicke@suse.com + +- Make sure %python_sitelib/sphinxcontrib is an importable module. + Some 3rd-party extensions assume this + ------------------------------------------------------------------- Thu Jul 18 09:15:10 UTC 2013 - speilicke@suse.com diff --git a/python-Sphinx.spec b/python-Sphinx.spec index 7cc8dc2..054ff8b 100644 --- a/python-Sphinx.spec +++ b/python-Sphinx.spec @@ -101,6 +101,12 @@ for M in all apidoc build quickstart ; do ln -s %{_mandir}/man1/sphinx-$M-%{py_ver}.1 %{buildroot}%{_mandir}/man1/sphinx-$M.1 done %find_lang sphinx +# Create extensions module. Extensions usually create subdirectories with an +# __init__.py file there (and hence are importable python modules). But some +# install a single *.py file into that dir and assume it's already a Python +# module. +install -d %{buildroot}%{python_sitelib}/sphinxcontrib +touch %{buildroot}%{python_sitelib}/sphinxcontrib/__init__.py %check nosetests @@ -153,7 +159,8 @@ fi %{_mandir}/man1/sphinx-build-%{py_ver}.1.gz %ghost %{_mandir}/man1/sphinx-quickstart.1.gz %{_mandir}/man1/sphinx-quickstart-%{py_ver}.1.gz -%{python_sitelib}/sphinx +%{python_sitelib}/sphinx/ +%{python_sitelib}/sphinxcontrib/ %{python_sitelib}/Sphinx-%{version}-py%{py_ver}.egg-info %files doc