From a7ba29fe9d85b4e321a0faf62d90f5e030cb450b Mon Sep 17 00:00:00 2001 From: David Tardon Date: Sun, 30 Apr 2017 14:51:46 +0200 Subject: [PATCH] split help off of langpacks --- libreoffice.spec | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/libreoffice.spec b/libreoffice.spec index c5dc897..3dd6e6a 100644 --- a/libreoffice.spec +++ b/libreoffice.spec @@ -801,23 +801,33 @@ Requires: %{name}-core%{?_isa} = %{epoch}:%{version}-%{release} \ %if 0%{?weak_deps} \ %{-p:Supplements: (%{name}-core%{?_isa} = %{epoch}:%{version}-%{release} and langpacks-%{-p*})} \ %{!-p:Supplements: (%{name}-core%{?_isa} = %{epoch}:%{version}-%{release} and langpacks-%{lang})} \ +%{-T:Recommends: %{name}-help-%{lang}} \ %endif \ \ %description %{pkgname} \ Provides additional %{langname} translations and resources for LibreOffice. \ \ -%files %{pkgname} \ -%{!-E: \ -%{expand:%%_langpack_common %{_langpack_lang}} \ -%{-x:%{baseinstdir}/share/autotext/%{-x*}}%{!-x:%{-X:%{baseinstdir}/share/autotext/%{_langpack_lang}}} \ -%{-c:%{baseinstdir}/share/registry/%{-c*}.xcd} \ -%{-s:%{baseinstdir}/share/registry/%{-s*}_%{_langpack_lang}.xcd} \ %{-T: \ +%package help-%{lang} \ +Summary: %{langname} help for LibreOffice \ +Requires: %{name}-core%{?_isa} = %{epoch}:%{version}-%{release} \ +\ +%description help-%{lang} \ +Provides %{langname} help for LibreOffice. \ +\ +%files help-%{lang} \ %docdir %{baseinstdir}/help/%{_langpack_lang} \ %if !0%{?armhack} %{baseinstdir}/help/%{_langpack_lang} \ %endif } \ +\ +%files %{pkgname} \ +%{!-E: \ +%{expand:%%_langpack_common %{_langpack_lang}} \ +%{-x:%{baseinstdir}/share/autotext/%{-x*}}%{!-x:%{-X:%{baseinstdir}/share/autotext/%{_langpack_lang}}} \ +%{-c:%{baseinstdir}/share/registry/%{-c*}.xcd} \ +%{-s:%{baseinstdir}/share/registry/%{-s*}_%{_langpack_lang}.xcd} \ %{-i:%{expand:%%_langpack_common %{-i*}}} \ } \ %{nil}