From 649c55631c981d6db5ad2f4318e8c2b3fa8b6013 Mon Sep 17 00:00:00 2001 From: David Tardon Date: Mon, 22 Feb 2016 16:34:11 +0100 Subject: [PATCH] enable/disable weak+rich deps globally --- libreoffice.spec | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/libreoffice.spec b/libreoffice.spec index 4297163..818f82c 100644 --- a/libreoffice.spec +++ b/libreoffice.spec @@ -31,6 +31,7 @@ %if 0%{?fedora} # default for f23 onwards %global _hardened_build 1 +%global weak_deps 1 %endif %global girapiversion 0.1 @@ -285,7 +286,7 @@ formats, including Microsoft Office File Formats. Summary: All import / export filters Requires: %{name}-core%{?_isa} = %{epoch}:%{version}-%{release} Requires: %{name}-ure%{?_isa} = %{epoch}:%{version}-%{release} -%if 0%{?fedora} || 0%{?rhel} > 7 +%if %{?weak_deps} Recommends: %{name}-calc%{?_isa} = %{epoch}:%{version}-%{release} Recommends: %{name}-draw%{?_isa} = %{epoch}:%{version}-%{release} Recommends: %{name}-graphicfilter%{?_isa} = %{epoch}:%{version}-%{release} @@ -504,7 +505,7 @@ Summary: LibreOffice Presentation Application Requires: %{name}-core%{?_isa} = %{epoch}:%{version}-%{release} Requires: %{name}-pyuno%{?_isa} = %{epoch}:%{version}-%{release} Requires: %{name}-ure%{?_isa} = %{epoch}:%{version}-%{release} -%if 0%{?fedora} || 0%{?rhel} > 7 +%if %{?weak_deps} Recommends: %{name}-ogltrans%{?_isa} = %{epoch}:%{version}-%{release} %endif Obsoletes: %{name}-presentation-minimizer < 2:4.2.0.0-1.alpha1 @@ -667,7 +668,7 @@ Summary: Additional support for debugging with gdb Requires: gdb%{?_isa} Requires: %{libo_python}-six Requires: libreoffice-core%{?_isa} = %{epoch}:%{version}-%{release} -%if 0%{?fedora} || 0%{?rhel} > 7 +%if %{?weak_deps} Supplements: libreoffice-debuginfo%{?_isa} = %{epoch}:%{version}-%{release} %endif @@ -757,7 +758,7 @@ Requires: %{name}-core%{?_isa} = %{epoch}:%{version}-%{release} \ %{-v:Obsoletes: openoffice.org-langpack-%{-v*} < 1:2.0.3}%{!-v:%{-V:Obsoletes: openoffice.org-langpack-%{lang} < 1:2.0.3}} \ %{-p:Provides: %{name}-langpack-%{-p*} = %{epoch}:%{version}-%{release}} \ %{-p:Provides: %{name}-langpack-%{-p*}%{?_isa} = %{epoch}:%{version}-%{release}} \ -%if 0%{?fedora} \ +%if %{?weak_deps} \ %{-p:Supplements: (%{name}-core%{?_isa} = %{epoch}:%{version}-%{release} and langpacks-%{-p*})} \ %{!-p:Supplements: (%{name}-core%{?_isa} = %{epoch}:%{version}-%{release} and langpacks-%{lang})} \ %endif \