File uchmviewer.spec of Package uchmviewer

#
# spec file for package uchmviewer
#
# Copyright (c) 2023 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 https://bugs.opensuse.org/
#


Name:           uchmviewer
Version:        @SERVICE@
Release:        0
Summary:        A fork of Kchmviewer
License:        GPL-3.0-or-later
Group:          Productivity/Other
URL:            https://github.com/eBookProjects/uChmViewer
Source:         %{name}-%{version}.tar.xz
BuildRequires:  chmlib-devel
BuildRequires:  cmake >= 3.13
BuildRequires:  extra-cmake-modules
BuildRequires:  gcc-c++
BuildRequires:  pkgconfig
BuildRequires:  cmake(Qt6Core)
BuildRequires:  cmake(Qt6DBus)
BuildRequires:  cmake(Qt6Network)
BuildRequires:  cmake(Qt6PrintSupport)
BuildRequires:  cmake(Qt6WebEngineWidgets)
BuildRequires:  cmake(Qt6Widgets)
BuildRequires:  cmake(Qt6Xml)
BuildRequires:  cmake(Qt6Core5Compat)
BuildRequires:  pkgconfig(libzip)
BuildRequires:  update-desktop-files
Recommends:     %{name}-lang = %{version}-%{release}

%description
This is a fork of the kchmviewer with some improvements. KchmViewer is a
chm (MS HTML help file format) and epub viewer, written in C++.

%lang_package

%prep
%autosetup

%build
%cmake_qt6 \
    -DUSE_KF5=OFF \
    -DUSE_WEBENGINE=ON \
    -DUSE_STATIC_CHMLIB=OFF \
    -DUSE_DEPLOY_RUNTIME=OFF \
    -DUSE_GETTEXT=ON \
    -DUSE_MACOS_BUNDLE=OFF
%qt6_build

%install
%qt6_install

%find_lang %{name}

%files
%doc AUTHORS.md ChangeLog NEWS.md README.md
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/*/apps/%{name}.??g
%license COPYING

%files lang -f %{name}.lang

%changelog
openSUSE Build Service is sponsored by