diff --git a/python-Sphinx-rpmlintrc b/python-Sphinx-rpmlintrc new file mode 100644 index 0000000..3866700 --- /dev/null +++ b/python-Sphinx-rpmlintrc @@ -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") diff --git a/python-Sphinx.changes b/python-Sphinx.changes index 136d19e..d83f5f0 100644 --- a/python-Sphinx.changes +++ b/python-Sphinx.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Aug 9 08:32:42 UTC 2019 - Dan Čermák + +- Add Sphinx translation files via %find_lang + ------------------------------------------------------------------- Tue Jul 2 14:44:28 UTC 2019 - Tomáš Chvátal diff --git a/python-Sphinx.spec b/python-Sphinx.spec index 07b4c27..a151dc9 100644 --- a/python-Sphinx.spec +++ b/python-Sphinx.spec @@ -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