diff --git a/extra-cmake-modules.spec b/extra-cmake-modules.spec index c82fc9b..df2118d 100644 --- a/extra-cmake-modules.spec +++ b/extra-cmake-modules.spec @@ -16,6 +16,10 @@ # +%if !0%{?suse_version} == 1315 +%bcond_with docs +%endif + Name: extra-cmake-modules Summary: CMake modules License: BSD-3-Clause @@ -28,7 +32,7 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: cmake >= 2.8.12 BuildRequires: gcc-c++ BuildRequires: kf5-filesystem >= 4.100.0 -%if !0%{sles_version} +%if %{with docs} BuildRequires: python-Sphinx %endif Requires: cmake >= 2.8.12 @@ -70,7 +74,7 @@ This package provides documentation for extra-cmake-modules %{_datadir}/ECM/ %{_mandir}/man7/ecm*.7* -%if !0%{sles_version} +%if %{with docs} %files doc %defattr(-,root,root,-) %doc %{_datadir}/doc/ECM/