Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package kpkpass for openSUSE:Factory checked in at 2025-06-06 22:33:50 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/kpkpass (Old) and /work/SRC/openSUSE:Factory/.kpkpass.new.19631 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "kpkpass" Fri Jun 6 22:33:50 2025 rev:82 rq:1283213 version:25.04.2 Changes: -------- --- /work/SRC/openSUSE:Factory/kpkpass/kpkpass.changes 2025-05-09 18:44:58.085068759 +0200 +++ /work/SRC/openSUSE:Factory/.kpkpass.new.19631/kpkpass.changes 2025-06-06 22:34:03.858478261 +0200 @@ -1,0 +2,10 @@ +Tue Jun 3 21:12:40 UTC 2025 - Christophe Marin <christo...@krop.fr> + +- Update to 25.04.2 + * New bugfix release + * For more details please see: + * https://kde.org/announcements/gear/25.04.2/ +- Changes since 25.04.1: + * Improve displaying (large) numbers + +------------------------------------------------------------------- Old: ---- kpkpass-25.04.1.tar.xz kpkpass-25.04.1.tar.xz.sig New: ---- kpkpass-25.04.2.tar.xz kpkpass-25.04.2.tar.xz.sig ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ kpkpass.spec ++++++ --- /var/tmp/diff_new_pack.HBcWLo/_old 2025-06-06 22:34:04.286495911 +0200 +++ /var/tmp/diff_new_pack.HBcWLo/_new 2025-06-06 22:34:04.286495911 +0200 @@ -21,7 +21,7 @@ %bcond_without released Name: kpkpass -Version: 25.04.1 +Version: 25.04.2 Release: 0 Summary: Library to parse Passbook files License: LGPL-2.1-or-later ++++++ kpkpass-25.04.1.tar.xz -> kpkpass-25.04.2.tar.xz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kpkpass-25.04.1/CMakeLists.txt new/kpkpass-25.04.2/CMakeLists.txt --- old/kpkpass-25.04.1/CMakeLists.txt 2025-04-18 06:52:05.000000000 +0200 +++ new/kpkpass-25.04.2/CMakeLists.txt 2025-05-14 18:22:14.000000000 +0200 @@ -3,7 +3,7 @@ # SPDX-License-Identifier: BSD-3-Clause cmake_minimum_required(VERSION 3.16 FATAL_ERROR) -set(PIM_VERSION "6.4.1") +set(PIM_VERSION "6.4.2") project(KPkPass VERSION ${PIM_VERSION}) set(KF_MIN_VERSION "6.9.0") diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kpkpass-25.04.1/autotests/fieldtest.cpp new/kpkpass-25.04.2/autotests/fieldtest.cpp --- old/kpkpass-25.04.1/autotests/fieldtest.cpp 2025-04-18 06:52:05.000000000 +0200 +++ new/kpkpass-25.04.2/autotests/fieldtest.cpp 2025-05-14 18:22:14.000000000 +0200 @@ -22,6 +22,8 @@ Q_CONSTRUCTOR_FUNCTION(initLocale) +using namespace Qt::Literals; + namespace KPkPass { class FieldTest : public QObject @@ -57,6 +59,11 @@ QCOMPARE(f.value().userType(), QMetaType::QString); QCOMPARE(f.value(), QLatin1StringView("Freibad Killesberg\n")); QCOMPARE(f.valueDisplayString(), QLatin1StringView("Freibad Killesberg")); + + obj = QJsonDocument::fromJson(R"({"key":"booking-number","label":"Buchungsnummer","value":1234567894})").object(); + f = KPkPass::Field(obj, pass.get()); + QCOMPARE(f.value().userType(), QMetaType::Double); + QCOMPARE(f.valueDisplayString(), "1234567894"_L1); } }; } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kpkpass-25.04.1/src/field.cpp new/kpkpass-25.04.2/src/field.cpp --- old/kpkpass-25.04.1/src/field.cpp 2025-04-18 06:52:05.000000000 +0200 +++ new/kpkpass-25.04.2/src/field.cpp 2025-05-14 18:22:14.000000000 +0200 @@ -101,12 +101,16 @@ return QLocale().toString(dt, fmt); } if (v.typeId() == QMetaType::Double) { + const auto f = v.toDouble(); if (const auto currency = currencyCode(); !currency.isEmpty()) { - return QLocale().toCurrencyString(v.toDouble(), currency); + return QLocale().toCurrencyString(f, currency); } // TODO respect number formatting options - return QString::number(v.toDouble()); + if (double i; std::modf(f, &i) == 0) { + return QString::number(static_cast<qint64>(f)); + } + return QString::number(v.toDouble(), 'f'); } return v.toString().trimmed();