From 548aa6fcc549341bf73194037f5e4924cbb49891ceff71d2c031a745cc851576 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Wed, 4 Nov 2020 19:50:22 +0000 Subject: [PATCH] Accepting request 845960 from home:bnavigator:branches:devel:languages:python - Fix the lang collection macro override. * gh#openSUSE/python-rpm-macros#66 * gh#openSUSE/python-rpm-macros#74 OBS-URL: https://build.opensuse.org/request/show/845960 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Sphinx?expand=0&rev=165 --- python-Sphinx.changes | 4 ++-- python-Sphinx.spec | 14 +++++++++----- 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/python-Sphinx.changes b/python-Sphinx.changes index efa2357..514557f 100644 --- a/python-Sphinx.changes +++ b/python-Sphinx.changes @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:4fddc88e9317d3595d943489029a5d5a6d3395260c5a15fa948229e7af42fb31 -size 107841 +oid sha256:ab71424107e7feb693e9ccbe2dddf30de5e0e554df41c6bb4e3a52e6a402f68b +size 108096 diff --git a/python-Sphinx.spec b/python-Sphinx.spec index c16d02f..f339546 100644 --- a/python-Sphinx.spec +++ b/python-Sphinx.spec @@ -251,12 +251,16 @@ mv build/sphinx/{html,man} build.doc/ %python_expand mkdir -p %{buildroot}%{$python_sitelib}/sphinxcontrib %python_expand %fdupes %{buildroot}%{$python_sitelib} -%{?python_find_lang sphinx}%{?!python_find_lang:%find_lang sphinx -%{python_expand langfile=sphinx.lang -grep -v 'python.*site-packages' ${langfile} > %{$python_prefix}-${langfile} -grep -F %{$python_sitelib} ${langfile} >> %{$python_prefix}-${langfile} -} +# gh#openSUSE/python-rpm-macros#74 +%{!?python_find_lang: %define python_find_lang() \ +%find_lang %{**} \ +langfile=%{?2}%{!?2:%1.lang} \ +%{python_expand # \ +grep -v 'python.*site-packages' ${langfile} > %{$python_prefix}-${langfile} \ +grep -F %{$python_sitelib} ${langfile} >> %{$python_prefix}-${langfile} \ +} \ } +%python_find_lang sphinx %else mkdir -p %{buildroot}%{_docdir}/python-Sphinx/