File qbr.spec of Package qbr

#
# spec file for package qbr
#
# Copyright (c) 2024 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:           qbr
Version:        @SERVICE@
Release:        0
Summary:        Simple e-Book reader
Summary(ru):    Простая читалка электронных книг
License:        LGPL-2.1-or-later
Group:          Productivity/Office/Other
URL:            https://github.com/moose-kazan/qbr
Source0:        %{name}-%{version}.tar.xz
BuildRequires:  cmake
BuildRequires:  gcc-c++
BuildRequires:  hicolor-icon-theme
BuildRequires:  pkgconfig
BuildRequires:  cmake(Qt6Core)
BuildRequires:  cmake(Qt6LinguistTools)
BuildRequires:  cmake(Qt6Network)
BuildRequires:  cmake(Qt6WebEngineWidgets)
BuildRequires:  cmake(Qt6Widgets)
BuildRequires:  cmake(Qt6Xml)
BuildRequires:  pkgconfig(libzip)
#ecommends:     %%{name}-lang

%description
Simple book reader, written on C++ with Qt6 toolkit.
For now it support the next file formats:
 * FictionBook 2.0 (fb2)
 * FictionBook 3.0 (fb3)
 * Comics Book Zip (cbz)
 * Ancient Machine Book (amb)

%description -l ru
Простая читалка электронных книг, написанная на C++ с использованием тулкита Qt6.
В настоящий момент поддерживаются следующие форматы:
 * FictionBook 2.0 (fb2)
 * FictionBook 3.0 (fb3)
 * Comics Book Zip (cbz)
 * Ancient Machine Book (amb)

#%%lang_package

%prep
%autosetup -p1
mkdir -p cmake

%build
%cmake_qt6
%qt6_build

%install
%qt6_install
rm -vf %{buildroot}%{_datadir}/icons/%{name}.??g

#%%find_lang %%{name} --with-qt

%files
%doc NEWS.md README.md TODO.ru.md
%{_bindir}/%{name}
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/style.css
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/*/apps/%{name}.??g
%license LICENSE

#%%files lang -f %%{name}.lang
#%%dir %%{_datadir}/%%{name}
#%%dir %%{_datadir}/%%{name}/translations

%changelog
openSUSE Build Service is sponsored by