File khelpcenter5.spec of Package khelpcenter5

# spec file for package khelpcenter5
# Copyright (c) 2020 SUSE LLC
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via

%define rname khelpcenter
%define kf5_version 5.60.0
# Latest stable Applications (e.g. 17.08 in KA, but 17.11.80 in KUA)
%{!?_kapp_version: %define _kapp_version %(echo %{version}| awk -F. '{print $1"."$2}')}
%bcond_without lang
Name:           khelpcenter5
Version:        20.04.2
Release:        0
Summary:        KDE Documentation Application
License:        GPL-2.0-or-later
Group:          Productivity/Other
BuildRequires:  extra-cmake-modules >= 1.3.0
BuildRequires:  kf5-filesystem
BuildRequires:  libxapian-devel
BuildRequires:  update-desktop-files
BuildRequires:  cmake(Grantlee5)
BuildRequires:  cmake(KF5Archive)
BuildRequires:  cmake(KF5Bookmarks)
BuildRequires:  cmake(KF5Config)
BuildRequires:  cmake(KF5CoreAddons)
BuildRequires:  cmake(KF5DBusAddons)
BuildRequires:  cmake(KF5DocTools)
BuildRequires:  cmake(KF5I18n)
BuildRequires:  cmake(KF5Init)
BuildRequires:  cmake(KF5KHtml)
BuildRequires:  cmake(KF5Service)
BuildRequires:  cmake(KF5WindowSystem)
BuildRequires:  cmake(Qt5DBus) >= 5.9.0
BuildRequires:  cmake(Qt5Widgets)
BuildRequires:  cmake(Qt5Xml)
# khelpcenter uses some images and stylesheets from kdoctools (boo#1011094)
Requires:       kdoctools
Recommends:     %{name}-lang
Conflicts:      kdebase4-runtime < 17.04.1
Provides:       suse_help_viewer
%if %{with lang}
Source2:        applications.keyring

Application to show KDE Applications' documentation.


%setup -q -n %{rname}-%{version}

  %cmake_kf5 -d build -- -DCMAKE_INSTALL_LOCALEDIR=share/locale/kf5

  %kf5_makeinstall -C build
  %if %{with lang}
  %suse_update_desktop_file    org.kde.Help          Documentation Viewer

%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig

%license COPYING*
%doc README*
%doc %lang(en) %{_kf5_htmldir}/en/*/

%if %{with lang}
%files lang -f %{name}.lang

openSUSE Build Service is sponsored by