2023-02-20 09:27:15 +01:00
|
|
|
|
#
|
|
|
|
|
# spec file for package kjournald
|
|
|
|
|
#
|
2024-02-23 21:08:21 +01:00
|
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2023-02-20 09:27:15 +01:00
|
|
|
|
#
|
|
|
|
|
# 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/
|
|
|
|
|
#
|
|
|
|
|
|
2023-03-20 09:51:56 +01:00
|
|
|
|
|
2023-02-20 09:27:15 +01:00
|
|
|
|
%define soname 0
|
2024-02-23 21:08:21 +01:00
|
|
|
|
%define kf6_version 5.246.0
|
|
|
|
|
%define qt6_version 6.6.0
|
|
|
|
|
|
2023-02-20 09:33:41 +01:00
|
|
|
|
%bcond_without released
|
2023-02-20 09:27:15 +01:00
|
|
|
|
Name: kjournald
|
2024-03-21 14:54:48 +01:00
|
|
|
|
Version: 24.02.1
|
2023-02-20 09:27:15 +01:00
|
|
|
|
Release: 0
|
2023-02-20 09:33:41 +01:00
|
|
|
|
Summary: Qt browser for journald database
|
2023-02-20 09:27:15 +01:00
|
|
|
|
License: LGPL-2.1-or-later
|
|
|
|
|
URL: https://invent.kde.org/system/kjournald
|
2024-02-26 11:28:52 +01:00
|
|
|
|
Source0: %{name}-%{version}.tar.xz
|
2023-02-20 09:33:41 +01:00
|
|
|
|
%if %{with released}
|
2024-02-26 11:28:52 +01:00
|
|
|
|
Source1: %{name}-%{version}.tar.xz.sig
|
2023-03-20 09:51:56 +01:00
|
|
|
|
Source2: applications.keyring
|
2023-02-20 09:33:41 +01:00
|
|
|
|
%endif
|
2024-02-23 21:08:21 +01:00
|
|
|
|
BuildRequires: kf6-extra-cmake-modules >= %{kf6_version}
|
2023-02-20 09:27:15 +01:00
|
|
|
|
BuildRequires: fdupes
|
|
|
|
|
BuildRequires: pkgconfig
|
2024-02-23 21:08:21 +01:00
|
|
|
|
BuildRequires: cmake(KF6CoreAddons) >= %{kf6_version}
|
|
|
|
|
BuildRequires: cmake(KF6I18n) >= %{kf6_version}
|
|
|
|
|
BuildRequires: cmake(Qt6Core) >= %{qt6_version}
|
|
|
|
|
BuildRequires: cmake(Qt6Quick) >= %{qt6_version}
|
|
|
|
|
BuildRequires: cmake(Qt6QuickControls2) >= %{qt6_version}
|
|
|
|
|
BuildRequires: cmake(Qt6Test) >= %{qt6_version}
|
|
|
|
|
BuildRequires: cmake(Qt6Widgets) >= %{qt6_version}
|
2023-02-20 09:27:15 +01:00
|
|
|
|
BuildRequires: pkgconfig(libsystemd)
|
2024-02-23 21:08:21 +01:00
|
|
|
|
Requires: qt6-declarative-imports >= %{qt6_version}
|
2023-02-20 09:27:15 +01:00
|
|
|
|
|
|
|
|
|
%description
|
2023-02-20 09:33:41 +01:00
|
|
|
|
This project aims to provide an abstraction of the systemd’s journald API in
|
|
|
|
|
terms of QAbstractItemModel classes. The main purpose is to ease the
|
|
|
|
|
integration of journald into Qt based applications (both QML and QtWidget).
|
|
|
|
|
Additional to the library, the project provides a reference implementation of
|
|
|
|
|
the API, called kjournaldbrowser. Even though that application provides a
|
2023-03-20 09:51:56 +01:00
|
|
|
|
powerful journal database reader, we aim to do a clear split between
|
2023-02-20 09:33:41 +01:00
|
|
|
|
reuseable library and application logic.
|
2023-02-20 09:27:15 +01:00
|
|
|
|
|
|
|
|
|
%lang_package
|
|
|
|
|
|
|
|
|
|
%prep
|
2023-03-20 09:51:56 +01:00
|
|
|
|
%autosetup -p1
|
2023-02-20 09:27:15 +01:00
|
|
|
|
|
|
|
|
|
%build
|
2024-02-23 21:08:21 +01:00
|
|
|
|
%cmake_kf6
|
2023-02-20 09:33:41 +01:00
|
|
|
|
|
2024-02-23 21:08:21 +01:00
|
|
|
|
%kf6_build
|
2023-02-20 09:27:15 +01:00
|
|
|
|
|
|
|
|
|
%install
|
2024-02-23 21:08:21 +01:00
|
|
|
|
%kf6_install
|
2023-02-20 09:27:15 +01:00
|
|
|
|
|
2024-02-23 21:08:21 +01:00
|
|
|
|
rm %{buildroot}%{_libdir}/libkjournald.so
|
2023-02-20 09:27:15 +01:00
|
|
|
|
|
|
|
|
|
%find_lang %{name} --all-name
|
|
|
|
|
|
|
|
|
|
%fdupes %{buildroot}
|
|
|
|
|
|
|
|
|
|
%ldconfig_scriptlets
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%license LICENSES/*
|
2024-02-23 21:08:21 +01:00
|
|
|
|
%{_kf6_applicationsdir}/org.kde.kjournaldbrowser.desktop
|
|
|
|
|
%{_kf6_appstreamdir}/org.kde.kjournaldbrowser.appdata.xml
|
|
|
|
|
%{_kf6_bindir}/kjournaldbrowser
|
|
|
|
|
%{_kf6_debugdir}/kjournald.categories
|
|
|
|
|
%{_kf6_libdir}/libkjournald.so.*
|
2023-02-20 09:27:15 +01:00
|
|
|
|
|
|
|
|
|
%files lang -f %{name}.lang
|
|
|
|
|
|
|
|
|
|
%changelog
|