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