diff --git a/kf5-attica.spec b/kf5-attica.spec index b3adb91..ebbdda2 100644 --- a/kf5-attica.spec +++ b/kf5-attica.spec @@ -1,9 +1,11 @@ %undefine __cmake_in_source_build %global framework attica +%global docs 1 + Name: kf5-attica Version: 5.72.0 -Release: 1%{?dist} +Release: 2%{?dist} Summary: KDE Frameworks Tier 1 Addon with Open Collaboration Services API License: LGPLv2+ @@ -32,8 +34,21 @@ API version 1.4. Summary: Development files for %{name} Requires: %{name}%{?_isa} = %{version}-%{release} Requires: qt5-qtbase-devel -%description devel +%description devel +%{summary}. + +%if 0%{?docs} +%package doc +Summary: API documentation for %{name} +BuildRequires: doxygen +BuildRequires: qt5-qdoc +BuildRequires: qt5-qhelpgenerator +BuildRequires: qt5-qtbase-doc +Requires: kf5-filesystem +BuildArch: noarch +%description doc %{summary}. +%endif %prep @@ -41,7 +56,8 @@ Requires: qt5-qtbase-devel %build -%cmake_kf5 +%cmake_kf5 \ + %{?docs:-DBUILD_QCH:BOOL=ON} \ %cmake_build @@ -66,8 +82,16 @@ Requires: qt5-qtbase-devel %{_kf5_archdatadir}/mkspecs/modules/qt_Attica.pri %{_kf5_libdir}/pkgconfig/libKF5Attica.pc +%if 0%{?docs} +%{_qt5_docdir}/KF5Attica.qch +%{_qt5_docdir}/KF5Attica.tags +%endif + %changelog +* Tue Jul 21 2020 Rex Dieter - 5.72.0-2 +- -doc subpkg + * Tue Jul 07 2020 Rex Dieter - 5.72.0-1 - 5.72.0