2 Commits

5 changed files with 67 additions and 16 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:75259b80dc2a074d2a1d5d11a909a599a998b570ad0b5bf995580d95c4411a16
size 124208

BIN
kronometer-2.3.0.tar.xz LFS Normal file

Binary file not shown.

34
kronometer-cmake4.patch Normal file
View File

@@ -0,0 +1,34 @@
From 1ff7eabd10d44b13a4604b7bfde74badf2dab24b Mon Sep 17 00:00:00 2001
From: Christophe Marin <christophe@krop.fr>
Date: Thu, 20 Mar 2025 14:55:27 +0100
Subject: [PATCH] Make kronometer compatible with CMake 4
Required CMake versions older than 3.5 will throw errors.
Bump the minimum version to 3.16
---
CMakeLists.txt | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 9719e30..780f3d5 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,11 +1,11 @@
-project(kronometer)
+cmake_minimum_required(VERSION 3.16)
+
+set(PROJECT_VERSION 2.3.0)
+project(kronometer VERSION ${PROJECT_VERSION})
-cmake_minimum_required(VERSION 3.1)
set(QT_MIN_VERSION 5.15.0)
set(KF5_MIN_VERSION 5.26.0)
-set(PROJECT_VERSION 2.3.0)
-
set(CMAKE_CXX_STANDARD 17)
set(CXX_STANDARD_REQUIRED ON)
--
2.49.0

View File

@@ -1,3 +1,19 @@
-------------------------------------------------------------------
Thu Mar 20 13:44:20 UTC 2025 - Christophe Marin <christophe@krop.fr>
- Update to 2.3.0
* Introduced Qt6 support.
* Added option to start the stopwatch automatically
* Added support for HiDpi screens.
* Fixed wrong times restored from session (kde#421515)
* Fixed stopwatch restart after system sleep (kde#439998)
* Fixed deletion of sessions (kde#353077)
* Fixed wrong usage of Enter key when writing a lap note (kde#438167)
* Qt 5.15 and C++17 are now required.
* Updated translations.
- Add patch:
* kronometer-cmake4.patch
-------------------------------------------------------------------
Fri Dec 15 22:03:14 UTC 2023 - Christophe Marin <christophe@krop.fr>

View File

@@ -17,13 +17,14 @@
Name: kronometer
Version: 2.2.3
Version: 2.3.0
Release: 0
Summary: A stopwatch application by KDE
License: GPL-2.0-or-later
Group: Productivity/Other
URL: https://apps.kde.org/kronometer
Source: https://download.kde.org/stable/kronometer/%{version}/src/%{name}-%{version}.tar.xz
Source0: https://download.kde.org/stable/kronometer/%{version}/src/%{name}-%{version}.tar.xz
# PATCH-FIX-UPSTREAM
Patch0: kronometer-cmake4.patch
BuildRequires: extra-cmake-modules
BuildRequires: cmake(KF5Config)
BuildRequires: cmake(KF5Crash)
@@ -52,24 +53,24 @@ Kronometer's main features are the following:
* Lap times export: you can export the lap times on a file using the JSON or CSV format
%prep
%setup -q
%autosetup -p1
%build
%cmake_kf5 -d build
%make_jobs
%cmake_kf5 -d build
%make_jobs
%install
%kf5_makeinstall -C build
%find_lang %{name} --with-kde --with-man
%{kf5_find_htmldocs}
%kf5_makeinstall -C build
%find_lang %{name} --with-kde --with-man
%{kf5_find_htmldocs}
%files -f %{name}.lang
%license COPYING
%doc README
%license LICENSES/*
%doc README.md CHANGELOG
%doc %lang(en) %{_kf5_htmldir}/en/%{name}
%doc %lang(en) %{_kf5_mandir}/man1/%{name}.1.gz
# kf5-filesystem doesn't own this directory in 15.2
%dir %{_kf5_configkcfgdir}
%{_kf5_applicationsdir}/org.kde.kronometer.desktop
%{_kf5_appstreamdir}/org.kde.kronometer.appdata.xml
%{_kf5_bindir}/%{name}