File sioyek.spec of Package sioyek
#
# spec file for package sioyek
#
# Copyright (c) 2021 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: sioyek
Version: 1.0.0
Release: 0
Summary: PDF viewer for reading research papers and technical books
### check
License: GPL-3.0-only AND BSL-1.0
URL: https://sioyek.info/
Source0: %{name}-%{version}.tar.xz
# PATCH-FIX-OPENSUSE sioyek-use_system_libraries.patch
Patch0: sioyek-use_system_libraries.patch
BuildRequires: gcc-c++
BuildRequires: mupdf-devel-static
BuildRequires: utfcpp-devel
BuildRequires: pkgconfig
BuildRequires: pkgconfig(Qt53DAnimation)
BuildRequires: pkgconfig(Qt53DCore)
BuildRequires: pkgconfig(Qt53DExtras)
BuildRequires: pkgconfig(Qt53DInput)
BuildRequires: pkgconfig(Qt53DLogic)
BuildRequires: pkgconfig(Qt53DRender)
BuildRequires: pkgconfig(Qt5Core)
BuildRequires: pkgconfig(Qt5Gui)
BuildRequires: pkgconfig(Qt5OpenGL)
BuildRequires: pkgconfig(Qt5OpenGLExtensions)
BuildRequires: pkgconfig(Qt5QuickWidgets)
BuildRequires: pkgconfig(Qt5Sql)
BuildRequires: pkgconfig(Qt5Widgets)
BuildRequires: pkgconfig(gumbo)
BuildRequires: pkgconfig(harfbuzz)
BuildRequires: pkgconfig(jbig2dec)
BuildRequires: pkgconfig(libjpeg)
BuildRequires: pkgconfig(libopenjp2)
BuildRequires: pkgconfig(sqlite3)
%description
Sioyek is a PDF viewer designed for reading research papers and technical
books.
%prep
%autosetup -p1
chmod -x tutorial.pdf
%build
%qmake5
%make_build
%install
%qmake5_install
#cp sioyek build/sioyek
#cp pdf_viewer/prefs.config build/prefs.config
#cp pdf_viewer/prefs_user.config build/prefs_user.config
#cp pdf_viewer/keys.config build/keys.config
#cp pdf_viewer/keys_user.config build/keys_user.config
#cp -r pdf_viewer/shaders build/shaders
#cp tutorial.pdf build/tutorial.pdf
%files
%license LICENSE
%doc README.md tutorial.pdf
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}-icon-linux.png
%changelog