diff --git a/extra-cmake-modules.changes b/extra-cmake-modules.changes index 8167e8c..5a736c6 100644 --- a/extra-cmake-modules.changes +++ b/extra-cmake-modules.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Jan 8 08:41:54 UTC 2018 - tchvatal@suse.com + +- Use python3 sphinx to generate the documentation module + ------------------------------------------------------------------- Sun Dec 17 09:43:47 CET 2017 - lbeltrame@kde.org diff --git a/extra-cmake-modules.spec b/extra-cmake-modules.spec index badf20f..be1d793 100644 --- a/extra-cmake-modules.spec +++ b/extra-cmake-modules.spec @@ -1,7 +1,7 @@ # # spec file for package extra-cmake-modules # -# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -21,29 +21,33 @@ %{!?_kf5_version: %global _kf5_version %{version}} # Last major and minor KF5 version (e.g. 5.33) %{!?_kf5_bugfix_version: %global _kf5_bugfix_version %(echo %{_kf5_version} | awk -F. '{print $1"."$2}')} +%if 0%{?suse_version} >= 1330 +%bcond_without doc +%else +%bcond_with doc +%endif Name: extra-cmake-modules +Version: 5.41.0 +Release: 0 Summary: CMake modules License: BSD-3-Clause Group: Development/Tools/Other Url: https://projects.kde.org/projects/kdesupport/extra-cmake-modules -Version: 5.41.0 -Release: 0 Source: http://download.kde.org/stable/frameworks/%{_tar_path}/%{name}-%{version}.tar.xz # PATCH-FIX-OPENSUSE Patch0: bundle-lang.patch -BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: cmake >= 3.0 BuildRequires: gcc-c++ BuildRequires: kf5-filesystem >= 5.6.0 -%if %suse_version != 1315 -BuildRequires: python-Sphinx -%endif Requires: cmake >= 3.0 Requires: gcc-c++ Requires: kf5-filesystem +Recommends: %{name}-doc Provides: kf5umbrella = 4.99.0 Obsoletes: kf5umbrella < 4.99.0 -Recommends: %{name}-doc +%if %{with doc} +BuildRequires: python3-Sphinx +%endif %description Extra modules and scripts for CMake. @@ -74,12 +78,10 @@ This package provides documentation for extra-cmake-modules %kf5_makeinstall -C build %files -%defattr(-,root,root,-) %{_datadir}/ECM/ -%if %suse_version != 1315 +%if %{with doc} %files doc -%defattr(-,root,root,-) %doc %{_datadir}/doc/ECM/ %doc %lang(en) %{_mandir}/man7/ecm*.7* %endif