From 314a66487b1d31052aa2d4942261f51afb64a1f86b4473161fa815ef93b67341 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Fri, 9 Aug 2019 09:09:08 +0000 Subject: [PATCH] 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 --- python-Sphinx-rpmlintrc | 4 ++++ python-Sphinx.changes | 5 +++++ python-Sphinx.spec | 5 ++++- 3 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 python-Sphinx-rpmlintrc 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