Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package kf6-knotifications for openSUSE:Factory checked in at 2024-12-15 12:35:26 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/kf6-knotifications (Old) and /work/SRC/openSUSE:Factory/.kf6-knotifications.new.29675 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "kf6-knotifications" Sun Dec 15 12:35:26 2024 rev:10 rq:1230864 version:6.9.0 Changes: -------- --- /work/SRC/openSUSE:Factory/kf6-knotifications/kf6-knotifications.changes 2024-11-09 20:56:56.026833367 +0100 +++ /work/SRC/openSUSE:Factory/.kf6-knotifications.new.29675/kf6-knotifications.changes 2024-12-15 12:38:57.310623426 +0100 @@ -1,0 +2,15 @@ +Sun Dec 8 10:09:22 UTC 2024 - Christophe Marin <christo...@krop.fr> + +- Update to 6.9.0 + * New feature release + * For more details please see: + * https://kde.org/announcements/frameworks/6/6.9.0 +- Changes since 6.8.0: + * Update dependency version to 6.9.0 + * Add Python bindings + * It compiles fine without deprecated methods + * ci: add Alpine/musl job + * Disable Canberra check for Haiku also + * Update version to 6.9.0 + +------------------------------------------------------------------- Old: ---- knotifications-6.8.0.tar.xz knotifications-6.8.0.tar.xz.sig New: ---- knotifications-6.9.0.tar.xz knotifications-6.9.0.tar.xz.sig ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ kf6-knotifications.spec ++++++ --- /var/tmp/diff_new_pack.XNDov0/_old 2024-12-15 12:38:57.934649411 +0100 +++ /var/tmp/diff_new_pack.XNDov0/_new 2024-12-15 12:38:57.938649578 +0100 @@ -19,13 +19,13 @@ %define qt6_version 6.7.0 %define rname knotifications -# Full KF6 version (e.g. 6.8.0) +# Full KF6 version (e.g. 6.9.0) %{!?_kf6_version: %global _kf6_version %{version}} # Last major and minor KF6 version (e.g. 6.0) %{!?_kf6_bugfix_version: %define _kf6_bugfix_version %(echo %{_kf6_version} | awk -F. '{print $1"."$2}')} %bcond_without released Name: kf6-knotifications -Version: 6.8.0 +Version: 6.9.0 Release: 0 Summary: KDE Desktop notifications License: LGPL-2.1-or-later ++++++ knotifications-6.8.0.tar.xz -> knotifications-6.9.0.tar.xz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/knotifications-6.8.0/.gitlab-ci.yml new/knotifications-6.9.0/.gitlab-ci.yml --- old/knotifications-6.8.0/.gitlab-ci.yml 2024-11-02 16:48:18.000000000 +0100 +++ new/knotifications-6.9.0/.gitlab-ci.yml 2024-12-06 12:53:07.000000000 +0100 @@ -6,6 +6,7 @@ file: - /gitlab-templates/linux-qt6.yml - /gitlab-templates/linux-qt6-static.yml + - /gitlab-templates/alpine-qt6.yml - /gitlab-templates/android-qt6.yml - /gitlab-templates/freebsd-qt6.yml - /gitlab-templates/windows-qt6.yml diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/knotifications-6.8.0/CMakeLists.txt new/knotifications-6.9.0/CMakeLists.txt --- old/knotifications-6.8.0/CMakeLists.txt 2024-11-02 16:48:18.000000000 +0100 +++ new/knotifications-6.9.0/CMakeLists.txt 2024-12-06 12:53:07.000000000 +0100 @@ -1,12 +1,12 @@ cmake_minimum_required(VERSION 3.16) -set(KF_VERSION "6.8.0") # handled by release scripts -set(KF_DEP_VERSION "6.8.0") # handled by release scripts +set(KF_VERSION "6.9.0") # handled by release scripts +set(KF_DEP_VERSION "6.9.0") # handled by release scripts project(KNotifications VERSION ${KF_VERSION}) # ECM setup include(FeatureSummary) -find_package(ECM 6.8.0 NO_MODULE) +find_package(ECM 6.9.0 NO_MODULE) set_package_properties(ECM PROPERTIES TYPE REQUIRED DESCRIPTION "Extra CMake Modules." URL "https://commits.kde.org/extra-cmake-modules") feature_summary(WHAT REQUIRED_PACKAGES_NOT_FOUND FATAL_ON_MISSING_REQUIRED_PACKAGES) @@ -26,6 +26,7 @@ include(ECMGenerateExportHeader) include(ECMDeprecationSettings) include(ECMQmlModule) +include(CMakeDependentOption) set(EXCLUDE_DEPRECATED_BEFORE_AND_AT 0 CACHE STRING "Control the range of deprecated API excluded from the build [default=0].") @@ -41,7 +42,7 @@ SOVERSION 6) # Dependencies -set(REQUIRED_QT_VERSION 6.5.0) +set(REQUIRED_QT_VERSION 6.6.0) set(CMAKE_AUTORCC TRUE) find_package(Qt6 ${REQUIRED_QT_VERSION} CONFIG REQUIRED Gui) @@ -77,7 +78,7 @@ find_package(KF6Config ${KF_DEP_VERSION} REQUIRED) -if (NOT APPLE AND NOT ANDROID AND NOT WIN32 OR (WIN32 AND NOT WITH_SNORETOAST)) +if (NOT APPLE AND NOT ANDROID AND NOT WIN32 AND NOT HAIKU OR (WIN32 AND NOT WITH_SNORETOAST)) find_package(Qt6 ${REQUIRED_QT_VERSION} CONFIG REQUIRED DBus) find_package(Canberra REQUIRED) set_package_properties(Canberra PROPERTIES @@ -87,13 +88,27 @@ endif() endif() +# For the Python bindings +find_package(Python3 3.10 COMPONENTS Interpreter Development) +find_package(Shiboken6) +find_package(PySide6) + +# Python Bindings +cmake_dependent_option(BUILD_PYTHON_BINDINGS "Generate Python Bindings" ON "TARGET Shiboken6::libshiboken AND TARGET PySide6::pyside6" OFF) +add_feature_info(PYTHON_BINDINGS ${BUILD_PYTHON_BINDINGS} "Python bindings") + +# FreeBSD CI is missing required packages +if (CMAKE_SYSTEM_NAME MATCHES FreeBSD) + set(BUILD_PYTHON_BINDINGS OFF) +endif() + remove_definitions(-DQT_NO_CAST_FROM_BYTEARRAY) ecm_install_po_files_as_qm(poqm) ecm_set_disabled_deprecation_versions( - QT 6.5 - KF 5.240 + QT 6.8 + KF 6.8 ) add_subdirectory(src) @@ -103,6 +118,11 @@ add_subdirectory(examples) endif() +if (BUILD_PYTHON_BINDINGS) + include(ECMGeneratePythonBindings) + add_subdirectory(python) +endif() + # create a Config.cmake and a ConfigVersion.cmake file and install them set(CMAKECONFIG_INSTALL_DIR "${KDE_INSTALL_CMAKEPACKAGEDIR}/KF6Notifications") diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/knotifications-6.8.0/LICENSES/BSD-2-Clause.txt new/knotifications-6.9.0/LICENSES/BSD-2-Clause.txt --- old/knotifications-6.8.0/LICENSES/BSD-2-Clause.txt 1970-01-01 01:00:00.000000000 +0100 +++ new/knotifications-6.9.0/LICENSES/BSD-2-Clause.txt 2024-12-06 12:53:07.000000000 +0100 @@ -0,0 +1,9 @@ +Copyright (c) <year> <owner> + +Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. + +2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/knotifications-6.8.0/poqm/fi/knotifications6_qt.po new/knotifications-6.9.0/poqm/fi/knotifications6_qt.po --- old/knotifications-6.8.0/poqm/fi/knotifications6_qt.po 2024-11-02 16:48:18.000000000 +0100 +++ new/knotifications-6.9.0/poqm/fi/knotifications6_qt.po 2024-12-06 12:53:07.000000000 +0100 @@ -34,8 +34,6 @@ "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" -"X-Generator: Lokalize 20.04.2\n" -"X-POT-Import-Date: 2013-01-13 20:43:21+0000\n" "X-Qt-Contexts: true\n" #~ msgctxt "KNotificationJobUiDelegate|" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/knotifications-6.8.0/python/CMakeLists.txt new/knotifications-6.9.0/python/CMakeLists.txt --- old/knotifications-6.8.0/python/CMakeLists.txt 1970-01-01 01:00:00.000000000 +0100 +++ new/knotifications-6.9.0/python/CMakeLists.txt 2024-12-06 12:53:07.000000000 +0100 @@ -0,0 +1,37 @@ +# SPDX-FileCopyrightText: 2024 Manuel Alcaraz Zambrano <manuelalcaraz...@gmail.com> +# SPDX-License-Identifier: BSD-2-Clause + +set(bindings_library "KNotifications") + +set(wrapped_header ${CMAKE_CURRENT_SOURCE_DIR}/bindings.h) +set(typesystem_file ${CMAKE_CURRENT_SOURCE_DIR}/bindings.xml) + +set(generated_sources + ${CMAKE_CURRENT_BINARY_DIR}/KNotifications/knotifications_module_wrapper.cpp + ${CMAKE_CURRENT_BINARY_DIR}/KNotifications/knotification_wrapper.cpp + ${CMAKE_CURRENT_BINARY_DIR}/KNotifications/knotificationaction_wrapper.cpp + ${CMAKE_CURRENT_BINARY_DIR}/KNotifications/knotificationreplyaction_wrapper.cpp + ${CMAKE_CURRENT_BINARY_DIR}/KNotifications/knotifyconfig_wrapper.cpp) + +set(dependencies Qt6::Core Qt6::Gui KF6::Notifications) + +ecm_generate_python_bindings( + PACKAGE_NAME ${bindings_library} + VERSION ${KF_VERSION} + WRAPPED_HEADER ${wrapped_header} + TYPESYSTEM ${typesystem_file} + GENERATED_SOURCES ${generated_sources} + DEPENDENCIES ${dependencies} + QT_VERSION ${REQUIRED_QT_VERSION} + HOMEPAGE_URL "https://invent.kde.org/frameworks/knotifications" + ISSUES_URL "https://bugs.kde.org/describecomponents.cgi?product=frameworks-knotifications" + AUTHOR "The KDE Community" + README ../README.md +) + +target_link_libraries(${bindings_library} PRIVATE KF6Notifications) + +execute_process(COMMAND ${Python_EXECUTABLE} -Esc "import sysconfig; print(sysconfig.get_path('platlib', vars={'platbase': '${CMAKE_INSTALL_PREFIX}', 'base': '${CMAKE_INSTALL_PREFIX}'}))" OUTPUT_VARIABLE sysconfig_output) +string(STRIP ${sysconfig_output} PYTHON_INSTALL_DIR) + +install(TARGETS ${bindings_library} LIBRARY DESTINATION "${PYTHON_INSTALL_DIR}") diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/knotifications-6.8.0/python/bindings.h new/knotifications-6.9.0/python/bindings.h --- old/knotifications-6.8.0/python/bindings.h 1970-01-01 01:00:00.000000000 +0100 +++ new/knotifications-6.9.0/python/bindings.h 2024-12-06 12:53:07.000000000 +0100 @@ -0,0 +1,8 @@ +// SPDX-FileCopyrightText: 2024 Manuel Alcaraz Zambrano <manuelalcaraz...@gmail.com> +// SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL + +#pragma once + +#include <KNotification> +#include <KNotificationReplyAction> +#include <KNotifyConfig> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/knotifications-6.8.0/python/bindings.xml new/knotifications-6.9.0/python/bindings.xml --- old/knotifications-6.8.0/python/bindings.xml 1970-01-01 01:00:00.000000000 +0100 +++ new/knotifications-6.9.0/python/bindings.xml 2024-12-06 12:53:07.000000000 +0100 @@ -0,0 +1,21 @@ +<?xml version="1.0"?> +<typesystem package="KNotifications"> +<!-- +SPDX-FileCopyrightText: 2024 Manuel Alcaraz Zambrano <manuelalcaraz...@gmail.com> +SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL +--> + <load-typesystem name="typesystem_gui.xml" generate="no"/> + + <object-type name="KNotification"> + <enum-type name="NotificationFlag" flags="NotificationFlags" /> + <enum-type name="StandardEvent" /> + <enum-type name="Urgency" /> + </object-type> + <object-type name="KNotificationAction" /> + <namespace-type name="KNotificationPermission" /> + <object-type name="KNotificationReplyAction"> + <enum-type name="FallbackBehavior" /> + </object-type> + <object-type name="KNotifyConfig" /> + +</typesystem> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/knotifications-6.8.0/python/examples/notification.py new/knotifications-6.9.0/python/examples/notification.py --- old/knotifications-6.8.0/python/examples/notification.py 1970-01-01 01:00:00.000000000 +0100 +++ new/knotifications-6.9.0/python/examples/notification.py 2024-12-06 12:53:07.000000000 +0100 @@ -0,0 +1,37 @@ +# SPDX-FileCopyrightText: 2024 Nicolas Fella <nicolas.fe...@gmx.de> +# SPDX-License-Identifier: BSD-2-Clause + +import sys + +from PySide6 import QtCore +from PySide6 import QtWidgets + +from KNotifications import KNotification + +class KNotifcationsDemo(QtWidgets.QWidget): + def __init__(self): + super().__init__() + + self.layout = QtWidgets.QVBoxLayout(self) + + self.button = QtWidgets.QPushButton() + self.button.setText("Push me") + self.button.clicked.connect(self.magic) + + self.layout.addWidget(self.button) + + @QtCore.Slot() + def magic(self): + noti = KNotification("notification") + noti.setComponentName("plasma_workspace") + noti.setTitle("Hi") + noti.setText("Hello World") + noti.sendEvent() + +if __name__ == "__main__": + app = QtWidgets.QApplication([]) + + widget = KNotifcationsDemo() + widget.show() + + sys.exit(app.exec())