- 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
This commit is contained in:
parent
83ef806690
commit
fdaf164829
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user