From 171c157beed1ec8fb5b318b68303e0c061cda164 Mon Sep 17 00:00:00 2001 From: Onuralp SEZER Date: Sat, 20 Mar 2021 17:40:46 +0300 Subject: [PATCH] disabling docs for flatpak packages --- kf5-kconfig.spec | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/kf5-kconfig.spec b/kf5-kconfig.spec index 55b30dd..ac5fbdc 100644 --- a/kf5-kconfig.spec +++ b/kf5-kconfig.spec @@ -1,4 +1,5 @@ %global framework kconfig +%{!?docs: %global docs 1} # uncomment to enable bootstrap mode #global bootstrap 1 @@ -13,7 +14,9 @@ %endif %endif #endif -%global docs 1 +%if 0%{?flatpak} +%global docs 0 +%endif %global tests 1 %endif @@ -22,7 +25,7 @@ Name: kf5-%{framework} Version: 5.80.0 -Release: 1%{?dist} +Release: 2%{?dist} Summary: KDE Frameworks 5 Tier 1 addon with advanced configuration system License: GPLv2+ and LGPLv2+ and MIT @@ -153,7 +156,11 @@ export PYTHONPATH %endif %cmake_kf5 \ + %if 0%{?flatpak} + %{?docs:-DBUILD_QCH:BOOL=OFF} \ + %else %{?docs:-DBUILD_QCH:BOOL=ON} \ + %endif %{?ninja:-G Ninja} \ %{?tests:-DBUILD_TESTING:BOOL=ON} @@ -228,6 +235,9 @@ make test %{?_smp_mflags} -C %{_target_platform} ARGS="--output-on-failure --tim %changelog +* Sat Mar 20 2021 Onuralp SEZER - 5.80.0-2 +- disabling docs for flatpak packages + * Tue Mar 09 2021 Rex Dieter - 5.80.0-1 - 5.80.0