File lektra.spec of Package lektra

#
# spec file for package lektra
#
# Copyright (c) 2026 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:           lektra
Version:        @SERVICE@
Release:        0
Summary:        Fast and unitrusive PDF reader
License:        AGPL-3.0-or-later
Group:          Productivity/Office/Other
URL:            https://github.com/dheerajshenoy/lektra
Source0:        %{name}-%{version}.tar.xz
BuildRequires:  cmake
BuildRequires:  desktop-file-utils
BuildRequires:  gcc-c++
BuildRequires:  hicolor-icon-theme
BuildRequires:  pkgconfig
BuildRequires:  cmake(Qt6Concurrent)
BuildRequires:  pkgconfig(Qt6Core) >= 6.6
BuildRequires:  cmake(Qt6Gui)
BuildRequires:  cmake(Qt6LinguistTools)
BuildRequires:  cmake(Qt6OpenGLWidgets)
BuildRequires:  cmake(Qt6Sql)
BuildRequires:  cmake(Qt6Widgets)
BuildRequires:  pkgconfig(ddjvuapi)
BuildRequires:  pkgconfig(libcurl)
BuildRequires:  pkgconfig(synctex)
Provides:       bundled(libmupdf)
Provides:       bundled(libmupdf-third)

%description
LEKTRA is a lightweight, high-performance PDF reader designed to provide a
smooth and efficient document viewing experience. Built using MuPDF and Qt,
it supports tabs, does fast rendering, annotation handling (highlights and
rects), and advanced features like SyncTeX integration for LaTeX users.
Whether you're reading academic papers, technical manuals, or everyday
documents, this reader offers a streamlined interface and robust
functionality with minimal resource usage.

%prep
%autosetup -p1

%build
%cmake_qt6
%qt6_build

%install
%qt6_install

%find_lang %{name} --all-name --with-qt --without-mo

%files -f %{name}.lang
%doc README.md
%dir %{_defaultdocdir}/../%{name}
%{_defaultdocdir}/../%{name}/tutorial.pdf
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/*/apps/%{name}.??g
%{_mandir}/man?/%{name}*.?%{?ext_man}
%license LICENSE

%changelog
openSUSE Build Service is sponsored by