Accepting request 721979 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/721979 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Sphinx?expand=0&rev=57
This commit is contained in:
commit
c65b026a5c
4
python-Sphinx-rpmlintrc
Normal file
4
python-Sphinx-rpmlintrc
Normal file
@ -0,0 +1,4 @@
|
||||
# false positive due to the name of the package ending with "theme"
|
||||
addFilter("W: suse-branding-unversioned-requires python3-sphinx_rtd_theme")
|
||||
# false positive as the -latex package only ships latex files and no actual python code
|
||||
addFilter("python3-Sphinx-latex.noarch: W: no-dependency-on python-base 3.7")
|
@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Aug 9 08:32:42 UTC 2019 - Dan Čermák <dcermak@suse.com>
|
||||
|
||||
- Add Sphinx translation files via %find_lang
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Jul 2 14:44:28 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user