Hello community, here is the log from the commit of package kunitconversion for openSUSE:Factory checked in at 2016-08-29 15:10:55 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/kunitconversion (Old) and /work/SRC/openSUSE:Factory/.kunitconversion.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "kunitconversion" Changes: -------- --- /work/SRC/openSUSE:Factory/kunitconversion/kunitconversion.changes 2016-07-15 12:40:06.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.kunitconversion.new/kunitconversion.changes 2016-08-29 15:10:59.000000000 +0200 @@ -1,0 +2,8 @@ +Sun Aug 7 21:57:12 UTC 2016 - hrvoje.sen...@gmail.com + +- Update to 5.25.0 + * Qt >= 5.5 is now required + * For more details please see: + https://www.kde.org/announcements/kde-frameworks-5.25.0.php + +------------------------------------------------------------------- Old: ---- kunitconversion-5.24.0.tar.xz New: ---- kunitconversion-5.25.0.tar.xz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ kunitconversion.spec ++++++ --- /var/tmp/diff_new_pack.eED7Pm/_old 2016-08-29 15:11:00.000000000 +0200 +++ /var/tmp/diff_new_pack.eED7Pm/_new 2016-08-29 15:11:00.000000000 +0200 @@ -18,9 +18,9 @@ %bcond_without lang %define lname libKF5UnitConversion5 -%define _tar_path 5.24 +%define _tar_path 5.25 Name: kunitconversion -Version: 5.24.0 +Version: 5.25.0 Release: 0 %define kf5_version %{version} BuildRequires: cmake >= 2.8.12 @@ -29,10 +29,10 @@ BuildRequires: kconfig-devel >= %{_tar_path} BuildRequires: kf5-filesystem BuildRequires: ki18n-devel >= %{_tar_path} -BuildRequires: cmake(Qt5Core) >= 5.4.0 -BuildRequires: cmake(Qt5Network) >= 5.4.0 -BuildRequires: cmake(Qt5Test) >= 5.4.0 -BuildRequires: cmake(Qt5Xml) >= 5.4.0 +BuildRequires: cmake(Qt5Core) >= 5.5.0 +BuildRequires: cmake(Qt5Network) >= 5.5.0 +BuildRequires: cmake(Qt5Test) >= 5.5.0 +BuildRequires: cmake(Qt5Xml) >= 5.5.0 Summary: Converting physical units License: LGPL-2.1+ Group: System/GUI/KDE @@ -63,7 +63,7 @@ Group: Development/Libraries/KDE Requires: %lname = %{version} Requires: extra-cmake-modules -Requires: cmake(Qt5Core) >= 5.4.0 +Requires: cmake(Qt5Core) >= 5.5.0 %description devel KUnitConversion provides functions to convert values in different physical ++++++ kunitconversion-5.24.0.tar.xz -> kunitconversion-5.25.0.tar.xz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kunitconversion-5.24.0/CMakeLists.txt new/kunitconversion-5.25.0/CMakeLists.txt --- old/kunitconversion-5.24.0/CMakeLists.txt 2016-07-03 11:25:44.000000000 +0200 +++ new/kunitconversion-5.25.0/CMakeLists.txt 2016-08-07 15:59:17.000000000 +0200 @@ -3,14 +3,14 @@ project(KUnitConversion) include(FeatureSummary) -find_package(ECM 5.24.0 NO_MODULE) +find_package(ECM 5.25.0 NO_MODULE) set_package_properties(ECM PROPERTIES TYPE REQUIRED DESCRIPTION "Extra CMake Modules." URL "https://projects.kde.org/projects/kdesupport/extra-cmake-modules") feature_summary(WHAT REQUIRED_PACKAGES_NOT_FOUND FATAL_ON_MISSING_REQUIRED_PACKAGES) set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH} ${ECM_KDE_MODULE_DIR}) -set(REQUIRED_QT_VERSION 5.4.0) +set(REQUIRED_QT_VERSION 5.5.0) find_package(Qt5 ${REQUIRED_QT_VERSION} CONFIG REQUIRED Core Xml Network) include(KDEInstallDirs) include(KDEFrameworkCompilerSettings NO_POLICY_SCOPE) @@ -22,8 +22,8 @@ include(ECMSetupVersion) include(ECMGenerateHeaders) -set(KF5_VERSION "5.24.0") # handled by release scripts -set(KF5_DEP_VERSION "5.24.0") # handled by release scripts +set(KF5_VERSION "5.25.0") # handled by release scripts +set(KF5_DEP_VERSION "5.25.0") # handled by release scripts ecm_setup_version(${KF5_VERSION} VARIABLE_PREFIX KUNITCONVERSION VERSION_HEADER "${CMAKE_CURRENT_BINARY_DIR}/kunitconversion_version.h" PACKAGE_VERSION_FILE "${CMAKE_CURRENT_BINARY_DIR}/KF5UnitConversionConfigVersion.cmake" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kunitconversion-5.24.0/README.md new/kunitconversion-5.25.0/README.md --- old/kunitconversion-5.24.0/README.md 2016-07-03 11:25:44.000000000 +0200 +++ new/kunitconversion-5.25.0/README.md 2016-08-07 15:59:17.000000000 +0200 @@ -27,3 +27,11 @@ * Velocity * Volume +## Usage + +To convert 100 GBP into EUR, you can write: + + using namespace KUnitConversion; + Value pounds(100, Gbp); + Value eur = pounds.convertTo(Eur); + diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kunitconversion-5.24.0/po/ca/kunitconversion5.po new/kunitconversion-5.25.0/po/ca/kunitconversion5.po --- old/kunitconversion-5.24.0/po/ca/kunitconversion5.po 2016-07-03 11:25:44.000000000 +0200 +++ new/kunitconversion-5.25.0/po/ca/kunitconversion5.po 2016-08-07 15:59:17.000000000 +0200 @@ -10,7 +10,7 @@ "Project-Id-Version: kunitconversion5\n" "Report-Msgid-Bugs-To: http://bugs.kde.org\n" "POT-Creation-Date: 2016-05-13 07:42+0000\n" -"PO-Revision-Date: 2016-04-29 21:06+0200\n" +"PO-Revision-Date: 2016-07-28 18:59+0200\n" "Last-Translator: Josep Ma. Ferrer <txe...@gmail.com>\n" "Language-Team: Catalan <kde-i18n...@kde.org>\n" "Language: ca\n" @@ -1116,7 +1116,7 @@ #: currency.cpp:102 currency.cpp:106 msgctxt "currency name" msgid "Netherlands Guilder" -msgstr "Florí dels Països Baixos" +msgstr "Florí neerlandès" #: currency.cpp:103 msgctxt "NLG Netherlands Guilder - unit synonyms for matching user input" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kunitconversion-5.24.0/po/ca@valencia/kunitconversion5.po new/kunitconversion-5.25.0/po/ca@valencia/kunitconversion5.po --- old/kunitconversion-5.24.0/po/ca@valencia/kunitconversion5.po 2016-07-03 11:25:44.000000000 +0200 +++ new/kunitconversion-5.25.0/po/ca@valencia/kunitconversion5.po 2016-08-07 15:59:17.000000000 +0200 @@ -10,7 +10,7 @@ "Project-Id-Version: kunitconversion5\n" "Report-Msgid-Bugs-To: http://bugs.kde.org\n" "POT-Creation-Date: 2016-05-13 07:42+0000\n" -"PO-Revision-Date: 2016-04-29 21:06+0200\n" +"PO-Revision-Date: 2016-07-28 18:59+0200\n" "Last-Translator: Josep Ma. Ferrer <txe...@gmail.com>\n" "Language-Team: Catalan <kde-i18n...@kde.org>\n" "Language: ca@valencia\n" @@ -1116,7 +1116,7 @@ #: currency.cpp:102 currency.cpp:106 msgctxt "currency name" msgid "Netherlands Guilder" -msgstr "Florí dels Països Baixos" +msgstr "Florí neerlandés" #: currency.cpp:103 msgctxt "NLG Netherlands Guilder - unit synonyms for matching user input" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kunitconversion-5.24.0/src/converter.h new/kunitconversion-5.25.0/src/converter.h --- old/kunitconversion-5.24.0/src/converter.h 2016-07-03 11:25:44.000000000 +0200 +++ new/kunitconversion-5.25.0/src/converter.h 2016-08-07 15:59:17.000000000 +0200 @@ -53,12 +53,22 @@ class KUNITCONVERSION_EXPORT Converter { public: + /** + * Creates a Converter instance. + */ Converter(); + /** + * Destroys this Converter instance. + */ ~Converter(); + /** + * Copy constructor. + * @param other existing Converter instance. + */ Converter(const Converter &other); /** - * Assignment operator, assign @param other to this. + * Assignment operator, assign @p other to this. **/ Converter &operator=(const Converter &other); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kunitconversion-5.24.0/src/value.h new/kunitconversion-5.25.0/src/value.h --- old/kunitconversion-5.24.0/src/value.h 2016-07-03 11:25:44.000000000 +0200 +++ new/kunitconversion-5.25.0/src/value.h 2016-08-07 15:59:17.000000000 +0200 @@ -53,21 +53,39 @@ class KUNITCONVERSION_EXPORT Value { public: + /** + * Creates a null value. + */ Value(); + /** + * Creates a value with a unit instance + */ Value(qreal number, const Unit &unit); + /** + * Creates a value with a unit (as a string). + */ Value(qreal number, const QString &unitString); + /** + * Creates a value with a unit (as a enum value). + */ Value(qreal number, UnitId unitId); + /** + * Creates a value based on a QVariant (calling toReal() on it) with a unit (as a string). + */ Value(const QVariant &number, const QString &unitString); /** - * Copy constructor, copy @param other to this. + * Copy constructor, copy @p other to this. **/ Value(const Value &other); + /** + * Destroys this Value instance + */ ~Value(); /** - * Assignment operator, assign @param other to this. + * Assignment operator, assign @p other to this. **/ Value &operator=(const Value &other);