14
0
forked from pool/python-Sphinx

Accepting request 721976 from home:dancermak:branches:devel:languages:python

Add Sphinx translation files via %find_lang

OBS-URL: https://build.opensuse.org/request/show/721976
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Sphinx?expand=0&rev=133
This commit is contained in:
2019-08-09 09:09:08 +00:00
committed by Git OBS Bridge
parent 80fcd03a69
commit 314a66487b
3 changed files with 13 additions and 1 deletions

View File

@@ -35,6 +35,7 @@ License: BSD-2-Clause
Group: Development/Languages/Python
URL: http://sphinx-doc.org
Source: https://files.pythonhosted.org/packages/source/S/Sphinx/Sphinx-%{version}.tar.gz
Source99: python-Sphinx-rpmlintrc
BuildRequires: %{python_module base}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
@@ -240,6 +241,8 @@ mv build/sphinx/{html,man} build.doc/
%python_expand mkdir -p %{buildroot}%{$python_sitelib}/sphinxcontrib
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%find_lang sphinx
%else
mkdir -p %{buildroot}%{_docdir}/python-Sphinx/
mv build.doc/html %{buildroot}%{_docdir}/python-Sphinx/
@@ -269,7 +272,7 @@ export LC_ALL="C.utf8"
%endif
%if ! %{with test}
%files %{python_files}
%files %{python_files} -f sphinx.lang
%license LICENSE
%doc AUTHORS CHANGES README.rst
%python_alternative %{_bindir}/sphinx-apidoc