enable/disable weak+rich deps globally

f41
David Tardon 9 years ago
parent 234400b36d
commit 649c55631c

@ -31,6 +31,7 @@
%if 0%{?fedora} %if 0%{?fedora}
# default for f23 onwards # default for f23 onwards
%global _hardened_build 1 %global _hardened_build 1
%global weak_deps 1
%endif %endif
%global girapiversion 0.1 %global girapiversion 0.1
@ -285,7 +286,7 @@ formats, including Microsoft Office File Formats.
Summary: All import / export filters Summary: All import / export filters
Requires: %{name}-core%{?_isa} = %{epoch}:%{version}-%{release} Requires: %{name}-core%{?_isa} = %{epoch}:%{version}-%{release}
Requires: %{name}-ure%{?_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}-calc%{?_isa} = %{epoch}:%{version}-%{release}
Recommends: %{name}-draw%{?_isa} = %{epoch}:%{version}-%{release} Recommends: %{name}-draw%{?_isa} = %{epoch}:%{version}-%{release}
Recommends: %{name}-graphicfilter%{?_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}-core%{?_isa} = %{epoch}:%{version}-%{release}
Requires: %{name}-pyuno%{?_isa} = %{epoch}:%{version}-%{release} Requires: %{name}-pyuno%{?_isa} = %{epoch}:%{version}-%{release}
Requires: %{name}-ure%{?_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} Recommends: %{name}-ogltrans%{?_isa} = %{epoch}:%{version}-%{release}
%endif %endif
Obsoletes: %{name}-presentation-minimizer < 2:4.2.0.0-1.alpha1 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: gdb%{?_isa}
Requires: %{libo_python}-six Requires: %{libo_python}-six
Requires: libreoffice-core%{?_isa} = %{epoch}:%{version}-%{release} Requires: libreoffice-core%{?_isa} = %{epoch}:%{version}-%{release}
%if 0%{?fedora} || 0%{?rhel} > 7 %if %{?weak_deps}
Supplements: libreoffice-debuginfo%{?_isa} = %{epoch}:%{version}-%{release} Supplements: libreoffice-debuginfo%{?_isa} = %{epoch}:%{version}-%{release}
%endif %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}} \ %{-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*} = %{epoch}:%{version}-%{release}} \
%{-p:Provides: %{name}-langpack-%{-p*}%{?_isa} = %{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-%{-p*})} \
%{!-p:Supplements: (%{name}-core%{?_isa} = %{epoch}:%{version}-%{release} and langpacks-%{lang})} \ %{!-p:Supplements: (%{name}-core%{?_isa} = %{epoch}:%{version}-%{release} and langpacks-%{lang})} \
%endif \ %endif \

Loading…
Cancel
Save