forked from pool/ktimetracker
Compare commits
10 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| 5bdee804c0 | |||
|
|
681d146aab | ||
|
|
f0aeee36d9 | ||
|
|
50b98647c7 | ||
|
|
3932531525 | ||
| 319f1bdca2 | |||
|
|
abfac74314 | ||
| 1497c7c472 | |||
| 6a25e2f545 | |||
| 928d5ecb46 |
79
0001-Fix-icons-installation.patch
Normal file
79
0001-Fix-icons-installation.patch
Normal file
@@ -0,0 +1,79 @@
|
||||
From 96fc1da370667018a74edb01bfa6b533cbd87b9c Mon Sep 17 00:00:00 2001
|
||||
From: Christophe Marin <christophe@krop.fr>
|
||||
Date: Sun, 22 Jun 2025 14:23:25 +0200
|
||||
Subject: [PATCH] Fix icons installation
|
||||
|
||||
---
|
||||
icons/CMakeLists.txt | 19 +++++--------------
|
||||
icons/icons.qrc | 20 +++++++++-----------
|
||||
2 files changed, 14 insertions(+), 25 deletions(-)
|
||||
|
||||
diff --git a/icons/CMakeLists.txt b/icons/CMakeLists.txt
|
||||
index 1fc9f09d..f90c72f2 100644
|
||||
--- a/icons/CMakeLists.txt
|
||||
+++ b/icons/CMakeLists.txt
|
||||
@@ -5,23 +5,14 @@ qt_add_resources(icons_SRCS icons.qrc)
|
||||
add_library(icons OBJECT ${icons_SRCS})
|
||||
|
||||
set(APP_ICONS_BREEZE
|
||||
- ${CMAKE_CURRENT_SOURCE_DIR}/breeze/22-apps-ktimetracker.svg
|
||||
- ${CMAKE_CURRENT_SOURCE_DIR}/breeze/32-apps-ktimetracker.svg
|
||||
- ${CMAKE_CURRENT_SOURCE_DIR}/breeze/48-apps-ktimetracker.svg
|
||||
+ ${CMAKE_CURRENT_SOURCE_DIR}/breeze-app-icon-png/22-apps-ktimetracker.png
|
||||
+ ${CMAKE_CURRENT_SOURCE_DIR}/breeze-app-icon-png/32-apps-ktimetracker.png
|
||||
+ ${CMAKE_CURRENT_SOURCE_DIR}/breeze-app-icon-png/48-apps-ktimetracker.png
|
||||
+ ${CMAKE_CURRENT_SOURCE_DIR}/breeze-app-icon-png/64-apps-ktimetracker.png
|
||||
+ ${CMAKE_CURRENT_SOURCE_DIR}/breeze-app-icon-png/128-apps-ktimetracker.png
|
||||
)
|
||||
ecm_install_icons(
|
||||
ICONS ${APP_ICONS_BREEZE}
|
||||
DESTINATION ${KDE_INSTALL_ICONDIR}
|
||||
THEME hicolor
|
||||
)
|
||||
-
|
||||
-set(APP_ICONS_BREEZE_DARK
|
||||
- ${CMAKE_CURRENT_SOURCE_DIR}/breeze-dark/22-apps-ktimetracker.svg
|
||||
- ${CMAKE_CURRENT_SOURCE_DIR}/breeze-dark/32-apps-ktimetracker.svg
|
||||
- ${CMAKE_CURRENT_SOURCE_DIR}/breeze-dark/48-apps-ktimetracker.svg
|
||||
-)
|
||||
-ecm_install_icons(
|
||||
- ICONS ${APP_ICONS_BREEZE_DARK}
|
||||
- DESTINATION ${KDE_INSTALL_ICONDIR}
|
||||
- THEME breeze-dark
|
||||
-)
|
||||
diff --git a/icons/icons.qrc b/icons/icons.qrc
|
||||
index 91d6c6e7..6d5e1585 100644
|
||||
--- a/icons/icons.qrc
|
||||
+++ b/icons/icons.qrc
|
||||
@@ -1,19 +1,17 @@
|
||||
+<?xml version="1.0"?>
|
||||
<!--
|
||||
SPDX-FileCopyrightText: 2019, 2021 Alexander Potashev <aspotashev@gmail.com>
|
||||
SPDX-FileCopyrightText: 2022 Jens Küspert <jens.kuespert@gmx.de>
|
||||
|
||||
SPDX-License-Identifier: GPL-2.0-or-later
|
||||
-->
|
||||
-
|
||||
-<!DOCTYPE RCC><RCC version="1.0">
|
||||
- <qresource prefix="/icons/breeze">
|
||||
- <file alias="22x22/apps/ktimetracker.svg">breeze/22-apps-ktimetracker.svg</file>
|
||||
- <file alias="32x32/apps/ktimetracker.svg">breeze/32-apps-ktimetracker.svg</file>
|
||||
- <file alias="48x48/apps/ktimetracker.svg">breeze/48-apps-ktimetracker.svg</file>
|
||||
- </qresource>
|
||||
- <qresource prefix="/icons/breeze-dark">
|
||||
- <file alias="22x22/apps/ktimetracker.svg">breeze-dark/22-apps-ktimetracker.svg</file>
|
||||
- <file alias="32x32/apps/ktimetracker.svg">breeze-dark/32-apps-ktimetracker.svg</file>
|
||||
- <file alias="48x48/apps/ktimetracker.svg">breeze-dark/48-apps-ktimetracker.svg</file>
|
||||
+<!DOCTYPE RCC>
|
||||
+<RCC version="1.0">
|
||||
+ <qresource prefix="/icons/breeze-app-icon-png">
|
||||
+ <file alias="22x22/apps/ktimetracker.png">breeze-app-icon-png/22-apps-ktimetracker.png</file>
|
||||
+ <file alias="32x32/apps/ktimetracker.png">breeze-app-icon-png/32-apps-ktimetracker.png</file>
|
||||
+ <file alias="48x48/apps/ktimetracker.png">breeze-app-icon-png/48-apps-ktimetracker.png</file>
|
||||
+ <file alias="64x64/apps/ktimetracker.png">breeze-app-icon-png/64-apps-ktimetracker.png</file>
|
||||
+ <file alias="128x128/apps/ktimetracker.png">breeze-app-icon-png/128-apps-ktimetracker.png</file>
|
||||
</qresource>
|
||||
</RCC>
|
||||
--
|
||||
2.49.0
|
||||
|
||||
23
0001-Install-docs-translations.patch
Normal file
23
0001-Install-docs-translations.patch
Normal file
@@ -0,0 +1,23 @@
|
||||
From 236dadab0ad1d9f0ba94cac9887ce681be2fd45d Mon Sep 17 00:00:00 2001
|
||||
From: Christophe Marin <christophe@krop.fr>
|
||||
Date: Sun, 22 Jun 2025 14:27:48 +0200
|
||||
Subject: [PATCH] Install docs translations
|
||||
|
||||
---
|
||||
CMakeLists.txt | 1 +
|
||||
1 file changed, 1 insertion(+)
|
||||
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index fd16304a..aea56260 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -83,5 +83,6 @@ kde_configure_git_pre_commit_hook(CHECKS CLANG_FORMAT)
|
||||
install(FILES org.kde.ktimetracker.appdata.xml DESTINATION ${KDE_INSTALL_METAINFODIR})
|
||||
|
||||
ki18n_install(po)
|
||||
+kdoctools_install(po)
|
||||
|
||||
feature_summary(WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES)
|
||||
--
|
||||
2.49.0
|
||||
|
||||
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:02e8620164357e594e135e20d8efd3987cc9c31a817c25e5555914e0971be64a
|
||||
size 422820
|
||||
3
ktimetracker-6.0.0.tar.xz
Normal file
3
ktimetracker-6.0.0.tar.xz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:50597e689f08efdaa79439a0aa9886ce47aaddb5a6018a57ffeea6cb7f666e69
|
||||
size 539852
|
||||
11
ktimetracker-6.0.0.tar.xz.sig
Normal file
11
ktimetracker-6.0.0.tar.xz.sig
Normal file
@@ -0,0 +1,11 @@
|
||||
-----BEGIN PGP SIGNATURE-----
|
||||
|
||||
iQEzBAABCgAdFiEElCK5V24mrwE+3r9gv3zrZL1TN/AFAmhRii0ACgkQv3zrZL1T
|
||||
N/Apkwf+PhusrJxmeYcm7n6p5sj+JY+AQQd2yfQKc4zErBKCZjvOqPWs2rBKT2rD
|
||||
KF7hfuBBjbBmtxoNug+O8I9Y/DbJ8YKWYzCwNS0BS4h2ro242E7DPj4k4kUf44yp
|
||||
UWDLav+F+Pautb+bevbe4XtoQmzb4myUPIu3FJppArYCpL3+1fLEwB4jUf48gfSU
|
||||
J8IKauzLB3dZcseoOxBgVRUhP73C3m96AHoo2WznzLDEl3FesyIXdFBqp/pmjB7k
|
||||
VaSlU135Y/jZHFfjmnp9q09JJSfsAfdhm9OYY6UEh3/wNYQBUkAaLz9F1ssmaNHE
|
||||
EE5IvJvPzSdOfUEcAPKgvZPrqd5Bog==
|
||||
=fda5
|
||||
-----END PGP SIGNATURE-----
|
||||
@@ -1,3 +1,27 @@
|
||||
-------------------------------------------------------------------
|
||||
Sun Jun 22 11:45:47 UTC 2025 - Christophe Marin <christophe@krop.fr>
|
||||
|
||||
- Update to 6.0.0
|
||||
https://rabbitictranslator.com/ktimetracker-6.0.0
|
||||
- Add patches:
|
||||
* 0001-Fix-icons-installation.patch
|
||||
* 0001-Install-docs-translations.patch
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Nov 20 16:06:36 UTC 2024 - Christophe Marin <christophe@krop.fr>
|
||||
|
||||
- Stop using the %suse_update_desktop_file macro
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Apr 17 17:17:22 UTC 2021 - Christophe Giboudeaux <christophe@krop.fr>
|
||||
|
||||
- Update URL.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Aug 27 13:15:29 UTC 2020 - Christophe Giboudeaux <christophe@krop.fr>
|
||||
|
||||
- Use %cmake_build instead of %make_jobs
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Dec 21 11:05:00 UTC 2019 - Wolfgang Bauer <wbauer@tmo.at>
|
||||
|
||||
|
||||
BIN
ktimetracker.keyring
Normal file
BIN
ktimetracker.keyring
Normal file
Binary file not shown.
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package ktimetracker
|
||||
#
|
||||
# Copyright (c) 2019 SUSE LLC
|
||||
# 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
|
||||
@@ -16,34 +16,50 @@
|
||||
#
|
||||
|
||||
|
||||
%bcond_without lang
|
||||
%define kf6_version 6.14.0
|
||||
%define qt6_version 6.4.0
|
||||
|
||||
%bcond_without released
|
||||
Name: ktimetracker
|
||||
Version: 5.0.1
|
||||
Version: 6.0.0
|
||||
Release: 0
|
||||
Summary: Personal Time Tracker
|
||||
License: GPL-2.0-or-later
|
||||
Group: Productivity/Other
|
||||
URL: https://userbase.kde.org/KTimeTracker
|
||||
Source0: https://download.kde.org/stable/%{name}/%{version}/src/%{name}-%{version}.tar.xz
|
||||
BuildRequires: extra-cmake-modules
|
||||
BuildRequires: update-desktop-files
|
||||
BuildRequires: cmake(KF5CalendarCore)
|
||||
BuildRequires: cmake(KF5Config)
|
||||
BuildRequires: cmake(KF5ConfigWidgets)
|
||||
BuildRequires: cmake(KF5DBusAddons)
|
||||
BuildRequires: cmake(KF5DocTools)
|
||||
BuildRequires: cmake(KF5I18n)
|
||||
BuildRequires: cmake(KF5IdleTime)
|
||||
BuildRequires: cmake(KF5JobWidgets)
|
||||
BuildRequires: cmake(KF5KIO)
|
||||
BuildRequires: cmake(KF5Notifications)
|
||||
BuildRequires: cmake(KF5TextWidgets)
|
||||
BuildRequires: cmake(KF5WindowSystem)
|
||||
BuildRequires: cmake(KF5XmlGui)
|
||||
BuildRequires: cmake(Qt5DBus) >= 5.10.0
|
||||
BuildRequires: cmake(Qt5Gui) >= 5.10.0
|
||||
BuildRequires: cmake(Qt5Widgets) >= 5.10.0
|
||||
BuildRequires: cmake(Qt5Xml) >= 5.10.0
|
||||
URL: https://apps.kde.org/ktimetracker
|
||||
Source0: https://download.kde.org/unstable/ktimetracker/%{name}-%{version}.tar.xz
|
||||
%if %{with released}
|
||||
Source1: https://download.kde.org/unstable/ktimetracker/%{name}-%{version}.tar.xz.sig
|
||||
# https://invent.kde.org/sysadmin/release-keyring/-/blob/master/keys/thiagosueto@key1.asc
|
||||
Source2: ktimetracker.keyring
|
||||
%endif
|
||||
# PATCH-FIX-UPSTREAM
|
||||
Patch0: 0001-Fix-icons-installation.patch
|
||||
# PATCH-FIX-UPSTREAM
|
||||
Patch1: 0001-Install-docs-translations.patch
|
||||
BuildRequires: kf6-extra-cmake-modules >= %{kf6_version}
|
||||
BuildRequires: cmake(KF6CalendarCore) >= %{kf6_version}
|
||||
BuildRequires: cmake(KF6Config) >= %{kf6_version}
|
||||
BuildRequires: cmake(KF6ConfigWidgets) >= %{kf6_version}
|
||||
BuildRequires: cmake(KF6CoreAddons) >= %{kf6_version}
|
||||
BuildRequires: cmake(KF6Crash) >= %{kf6_version}
|
||||
BuildRequires: cmake(KF6DBusAddons) >= %{kf6_version}
|
||||
BuildRequires: cmake(KF6DocTools) >= %{kf6_version}
|
||||
BuildRequires: cmake(KF6I18n) >= %{kf6_version}
|
||||
BuildRequires: cmake(KF6IconThemes) >= %{kf6_version}
|
||||
BuildRequires: cmake(KF6IdleTime) >= %{kf6_version}
|
||||
BuildRequires: cmake(KF6JobWidgets) >= %{kf6_version}
|
||||
BuildRequires: cmake(KF6KCMUtils) >= %{kf6_version}
|
||||
BuildRequires: cmake(KF6KIO) >= %{kf6_version}
|
||||
BuildRequires: cmake(KF6Notifications) >= %{kf6_version}
|
||||
BuildRequires: cmake(KF6StatusNotifierItem) >= %{kf6_version}
|
||||
BuildRequires: cmake(KF6TextWidgets) >= %{kf6_version}
|
||||
BuildRequires: cmake(KF6WindowSystem) >= %{kf6_version}
|
||||
BuildRequires: cmake(KF6XmlGui) >= %{kf6_version}
|
||||
BuildRequires: cmake(Qt6Core5Compat) >= %{qt6_version}
|
||||
BuildRequires: cmake(Qt6DBus) >= %{qt6_version}
|
||||
BuildRequires: cmake(Qt6Gui) >= %{qt6_version}
|
||||
BuildRequires: cmake(Qt6Widgets) >= %{qt6_version}
|
||||
BuildRequires: cmake(Qt6Xml) >= %{qt6_version}
|
||||
|
||||
%description
|
||||
KTimeTracker tracks time spent on various tasks.
|
||||
@@ -51,34 +67,29 @@ KTimeTracker tracks time spent on various tasks.
|
||||
%lang_package
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
%autosetup -p1
|
||||
|
||||
%build
|
||||
%cmake_kf5 -d build
|
||||
%make_jobs
|
||||
%cmake_kf6
|
||||
|
||||
%kf6_build
|
||||
|
||||
%install
|
||||
%kf5_makeinstall -C build
|
||||
%suse_update_desktop_file -r org.kde.ktimetracker Qt KDE Utility X-KDE-Utilities-PIM TimeUtility
|
||||
%kf6_install
|
||||
|
||||
%if %{with lang}
|
||||
%find_lang %{name}
|
||||
%{kf5_find_htmldocs}
|
||||
%endif
|
||||
%find_lang %{name} --with-html
|
||||
|
||||
%files
|
||||
%license COPYING COPYING.DOC
|
||||
%doc README ChangeLog.md
|
||||
%doc %lang(en) %{_kf5_htmldir}/en/ktimetracker/
|
||||
%{_kf5_applicationsdir}/org.kde.ktimetracker.desktop
|
||||
%{_kf5_appstreamdir}/org.kde.ktimetracker.appdata.xml
|
||||
%{_kf5_bindir}/ktimetracker
|
||||
%{_kf5_dbusinterfacesdir}/org.kde.ktimetracker.ktimetracker.xml
|
||||
%{_kf5_iconsdir}/hicolor/*/apps/ktimetracker.png
|
||||
%license LICENSES/*
|
||||
%doc README.md ChangeLog.md
|
||||
%doc %lang(en) %{_kf6_htmldir}/en/ktimetracker/
|
||||
%{_kf6_applicationsdir}/org.kde.ktimetracker.desktop
|
||||
%{_kf6_appstreamdir}/org.kde.ktimetracker.appdata.xml
|
||||
%{_kf6_bindir}/ktimetracker
|
||||
%{_kf6_dbusinterfacesdir}/org.kde.ktimetracker.ktimetracker.xml
|
||||
%{_kf6_iconsdir}/hicolor/*/apps/ktimetracker.png
|
||||
|
||||
%if %{with lang}
|
||||
%files lang -f %{name}.lang
|
||||
%license COPYING COPYING.DOC
|
||||
%endif
|
||||
%exclude %{_kf6_htmldir}/en/ktimetracker/
|
||||
|
||||
%changelog
|
||||
|
||||
Reference in New Issue
Block a user