File peruse.spec of Package peruse

#
# spec file for package peruse
#
# Copyright (c) 2023 SUSE LLC
# Copyright (c) 2016 Dan Leinir Turthra Jensen <admin@leinir.dk>
#
# 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/
#


%define kf6_version 6.12
%define qt6_version 6.8.0

%bcond_without released
Name:           peruse
Version:        1.0
Release:        0
Summary:        Comic book reader
License:        LGPL-2.1-or-later
URL:            https://apps.kde.org/peruse
Source0:        https://download.kde.org/stable/peruse/%{name}-%{version}.tar.xz
%if %{with released}
Source1:        https://download.kde.org/stable/peruse/%{name}-%{version}.tar.xz.sig
Source2:        peruse.keyring
%endif
BuildRequires:  doxygen
BuildRequires:  kf6-extra-cmake-modules >= %{kf6_version}
BuildRequires:  pkgconfig
BuildRequires:  cmake(KF6Archive) >= %{kf6_version}
BuildRequires:  cmake(KF6Attica) >= %{kf6_version}
BuildRequires:  cmake(KF6Auth) >= %{kf6_version}
BuildRequires:  cmake(KF6Baloo) >= %{kf6_version}
BuildRequires:  cmake(KF6Codecs) >= %{kf6_version}
BuildRequires:  cmake(KF6Completion) >= %{kf6_version}
BuildRequires:  cmake(KF6Config) >= %{kf6_version}
BuildRequires:  cmake(KF6CoreAddons) >= %{kf6_version}
BuildRequires:  cmake(KF6Crash) >= %{kf6_version}
BuildRequires:  cmake(KF6Declarative) >= %{kf6_version}
BuildRequires:  cmake(KF6FileMetaData) >= %{kf6_version}
BuildRequires:  cmake(KF6GuiAddons) >= %{kf6_version}
BuildRequires:  cmake(KF6I18n) >= %{kf6_version}
BuildRequires:  cmake(KF6IconThemes) >= %{kf6_version}
BuildRequires:  cmake(KF6ItemViews) >= %{kf6_version}
BuildRequires:  cmake(KF6JobWidgets) >= %{kf6_version}
BuildRequires:  cmake(KF6KIO) >= %{kf6_version}
BuildRequires:  cmake(KF6KirigamiAddons)
BuildRequires:  cmake(KF6NewStuffCore) >= %{kf6_version}
BuildRequires:  cmake(KF6Package) >= %{kf6_version}
BuildRequires:  cmake(KF6Service) >= %{kf6_version}
BuildRequires:  cmake(KF6Solid) >= %{kf6_version}
BuildRequires:  cmake(KF6WidgetsAddons) >= %{kf6_version}
BuildRequires:  cmake(KF6WindowSystem) >= %{kf6_version}
BuildRequires:  cmake(Qt6Gui) >= %{qt6_version}
BuildRequires:  cmake(Qt6OpenGL) >= %{qt6_version}
BuildRequires:  cmake(Qt6Qml) >= %{qt6_version}
BuildRequires:  cmake(Qt6Quick) >= %{qt6_version}
BuildRequires:  cmake(Qt6QuickPrivate) >= %{qt6_version}
BuildRequires:  cmake(Qt6Sql) >= %{qt6_version}
BuildRequires:  cmake(Qt6ToolsTools) >= %{qt6_version}
BuildRequires:  cmake(Qt6Widgets) >= %{qt6_version}
BuildRequires:  pkgconfig(zlib)
Requires:       kf6-kcmutils-imports >= %{kf6_version}
Requires:       kf6-kirigami-imports >= %{kf6_version}
Requires:       kf6-kitemmodels-imports >= %{kf6_version}
Requires:       qt6-declarative-imports >= %{qt6_version}
Requires:       kio-extras6
Requires:       kirigami-addons6 >= 0.11
Requires:       okular

%description
An application for reading comic books on both traditional desktops
and touch enabled devices.

%package devel
Summary:        Development files for Peruse, a comic book reader
Requires:       peruse = %{version}

%description devel
This package contains development headers to develop applications using Peruse.

%lang_package

%prep
%autosetup -p1

%build
%cmake_kf6 \
  -DBUILD_WITH_QT6:BOOL=TRUE \
  -DBUILD_QCH:BOOL=TRUE

%kf6_build

%install
%kf6_install

rm %{buildroot}%{_kf6_libdir}/libacbf.so

%find_lang %{name} --all-name

%ldconfig_scriptlets

%files
%license LICENSES/*
%doc README.md PLAN.md
%{_kf6_applicationsdir}/org.kde.peruse.desktop
%{_kf6_applicationsdir}/org.kde.perusecreator.desktop
%{_kf6_appstreamdir}/org.kde.peruse.appdata.xml
%{_kf6_appstreamdir}/org.kde.perusecreator.appdata.xml
%{_kf6_bindir}/peruse
%{_kf6_bindir}/perusecreator
%{_kf6_debugdir}/AdvancedComicBookFormat.categories
%{_kf6_iconsdir}/hicolor/*/*/peruse*
%{_kf6_knsrcfilesdir}/peruse.knsrc
%{_kf6_libdir}/libacbf.so.*
%{_kf6_qmldir}/org/kde/peruse/

%files devel
%doc %{_kf6_qchdir}/*
%{_includedir}/AdvancedComicBookFormat/
%{_kf6_cmakedir}/AdvancedComicBookFormat/

%files lang -f %{name}.lang

%changelog
openSUSE Build Service is sponsored by