From 26e06ed1c528833c91140b356d89d65d43d96ff28b5ebbbb518065af85bec300 Mon Sep 17 00:00:00 2001 From: Dominique Leuenberger Date: Mon, 28 Feb 2022 18:43:21 +0000 Subject: [PATCH] Accepting request 957899 from KDE:Extra New package OBS-URL: https://build.opensuse.org/request/show/957899 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/kalendar?expand=0&rev=1 --- .gitattributes | 23 ++++ .gitignore | 1 + ...rized-logging-in-the-reminder-daemon.patch | 126 ++++++++++++++++++ kalendar-1.0.0.tar.xz | 3 + kalendar-1.0.0.tar.xz.sig | 11 ++ kalendar.changes | 11 ++ kalendar.keyring | Bin 0 -> 1237 bytes kalendar.spec | 106 +++++++++++++++ 8 files changed, 281 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 0001-Use-categorized-logging-in-the-reminder-daemon.patch create mode 100644 kalendar-1.0.0.tar.xz create mode 100644 kalendar-1.0.0.tar.xz.sig create mode 100644 kalendar.changes create mode 100644 kalendar.keyring create mode 100644 kalendar.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/0001-Use-categorized-logging-in-the-reminder-daemon.patch b/0001-Use-categorized-logging-in-the-reminder-daemon.patch new file mode 100644 index 0000000..475b08b --- /dev/null +++ b/0001-Use-categorized-logging-in-the-reminder-daemon.patch @@ -0,0 +1,126 @@ +From f72b4c6fa652d2735cd81b942d58d05955ff49ba Mon Sep 17 00:00:00 2001 +From: Volker Krause +Date: Sun, 13 Feb 2022 11:53:32 +0100 +Subject: [PATCH] Use categorized logging in the reminder daemon + +This silences the rather verbose debug output by default. +--- + kalendarac/CMakeLists.txt | 14 +++++++++++++- + kalendarac/kalendaralarmclient.cpp | 17 +++++++++-------- + 2 files changed, 22 insertions(+), 9 deletions(-) + +diff --git a/kalendarac/CMakeLists.txt b/kalendarac/CMakeLists.txt +index 8a0d960..f2bbcb6 100644 +--- a/kalendarac/CMakeLists.txt ++++ b/kalendarac/CMakeLists.txt +@@ -30,6 +30,14 @@ target_link_libraries(kalendarac + Qt5::DBus + ) + ++ecm_qt_declare_logging_category(kalendarac ++ HEADER logging.h ++ IDENTIFIER Log ++ CATEGORY_NAME org.kde.kalendarac ++ DESCRIPTION "Reminder daemon" ++ EXPORT REMINDER_DAEMON ++) ++ + if (COMPILE_WITH_UNITY_CMAKE_SUPPORT) + set_target_properties(kalendarac PROPERTIES UNITY_BUILD ON) + endif() +@@ -48,4 +56,8 @@ install(FILES kalendarac.notifyrc DESTINATION ${KNOTIFYRC_INSTALL_DIR}) + set(SERV_EXEC ${KDE_INSTALL_FULL_BINDIR}/kalendarac) + configure_file(org.kde.kalendarac.service.in ${CMAKE_CURRENT_BINARY_DIR}/org.kde.kalendarac.service) + install(FILES ${CMAKE_CURRENT_BINARY_DIR}/org.kde.kalendarac.service DESTINATION ${KDE_INSTALL_FULL_DBUSSERVICEDIR}) +- ++ecm_qt_install_logging_categories( ++ EXPORT REMINDER_DAEMON ++ FILE org_kde_kalendarac.categories ++ DESTINATION ${KDE_INSTALL_LOGGINGCATEGORIESDIR} ++) +diff --git a/kalendarac/kalendaralarmclient.cpp b/kalendarac/kalendaralarmclient.cpp +index 58ba6ae..4aae6ee 100644 +--- a/kalendarac/kalendaralarmclient.cpp ++++ b/kalendarac/kalendaralarmclient.cpp +@@ -4,6 +4,7 @@ + #include "kalendaralarmclient.h" + #include "alarmnotification.h" + #include "calendarinterface.h" ++#include "logging.h" + + #include + +@@ -82,7 +83,7 @@ void KalendarAlarmClient::deferredInit() + return; + } + +- qDebug() << "Performing delayed initialization."; ++ qCDebug(Log) << "Performing delayed initialization."; + + KCheckableProxyModel *checkableModel = mCalendar->checkableProxyModel(); + checkAllItems(checkableModel); +@@ -93,7 +94,7 @@ void KalendarAlarmClient::deferredInit() + + void KalendarAlarmClient::restoreSuspendedFromConfig() + { +- qDebug() << "\nrestoreSuspendedFromConfig: Restore suspended alarms from config"; ++ qCDebug(Log) << "Restore suspended alarms from config"; + KConfigGroup suspendedGroup(KSharedConfig::openConfig(), "Suspended"); + const auto suspendedAlarms = suspendedGroup.groupList(); + +@@ -103,7 +104,7 @@ void KalendarAlarmClient::restoreSuspendedFromConfig() + QString txt = suspendedAlarm.readEntry("Text"); + QDateTime occurrence = suspendedAlarm.readEntry("Occurrence", QDateTime()); + QDateTime remindAt = suspendedAlarm.readEntry("RemindAt", QDateTime()); +- qDebug() << "restoreSuspendedFromConfig: Restoring alarm" << uid << "," << txt << "," << remindAt; ++ qCDebug(Log) << "restoreSuspendedFromConfig: Restoring alarm" << uid << "," << txt << "," << remindAt; + + if (!uid.isEmpty() && remindAt.isValid()) { + addNotification(uid, txt, occurrence, remindAt); +@@ -113,7 +114,7 @@ void KalendarAlarmClient::restoreSuspendedFromConfig() + + void KalendarAlarmClient::dismiss(AlarmNotification *notification) + { +- qDebug() << "Alarm" << notification->uid() << "dismissed"; ++ qCDebug(Log) << "Alarm" << notification->uid() << "dismissed"; + removeNotification(notification); + m_notifications.remove(notification->uid()); + delete notification; +@@ -121,7 +122,7 @@ void KalendarAlarmClient::dismiss(AlarmNotification *notification) + + void KalendarAlarmClient::suspend(AlarmNotification *notification) + { +- qDebug() << "Alarm " << notification->uid() << "suspended"; ++ qCDebug(Log) << "Alarm " << notification->uid() << "suspended"; + notification->setRemindAt(QDateTime(QDateTime::currentDateTime()).addSecs(5 * 60)); // 5 minutes is hardcoded in the suspend action text + storeNotification(notification); + } +@@ -196,7 +197,7 @@ void KalendarAlarmClient::addNotification(const QString &uid, const QString &tex + } + + // we either have no notification for this event yet, or one that is scheduled for later and that should be replaced +- qDebug() << "Adding notification, uid:" << uid << "text:" << text << "remindTime:" << remindTime; ++ qCDebug(Log) << "Adding notification, uid:" << uid << "text:" << text << "remindTime:" << remindTime; + notification->setText(text); + notification->setOccurrence(occurrence); + notification->setRemindAt(remindTime); +@@ -230,14 +231,14 @@ void KalendarAlarmClient::checkAlarms() + // We do not want to miss any reminders, so don't perform check unless + // the collections are available and populated. + if (!collectionsAvailable()) { +- qDebug() << "Collections are not available; aborting check."; ++ qCDebug(Log) << "Collections are not available; aborting check."; + return; + } + + const QDateTime from = mLastChecked.addSecs(1); + mLastChecked = QDateTime::currentDateTime(); + +- qDebug() << "Check:" << from.toString() << " -" << mLastChecked.toString(); ++ qCDebug(Log) << "Check:" << from.toString() << " -" << mLastChecked.toString(); + + // look for new alarms + const Alarm::List alarms = mCalendar->alarms(from, mLastChecked, true /* exclude blocked alarms */); +-- +2.33.1 + diff --git a/kalendar-1.0.0.tar.xz b/kalendar-1.0.0.tar.xz new file mode 100644 index 0000000..bf1c063 --- /dev/null +++ b/kalendar-1.0.0.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ca4e840dc17a4e39111f5fb16bfcab29e34a10b9c840d22b81c52890f0c9fae0 +size 242448 diff --git a/kalendar-1.0.0.tar.xz.sig b/kalendar-1.0.0.tar.xz.sig new file mode 100644 index 0000000..82cd00e --- /dev/null +++ b/kalendar-1.0.0.tar.xz.sig @@ -0,0 +1,11 @@ +-----BEGIN PGP SIGNATURE----- + +iQEzBAABCAAdFiEE7aztfffHzUK5s6qcxDiQie5tsK8FAmIHyF0ACgkQxDiQie5t +sK+VlggAr3NFPnTeNGrwKETv+8BRmVIKOpFXNyiCDH+qgLwPTvqNCc9GRq3FkT4y +rEJTJXSoHDC1n8ov2kqXzway9UzqBUx3aoHIhKGB0x3wsHKdZURYxaDS0FgdpcS/ +OqKLusoPOM1kBn2W5roSuylTF6e5YDsUYUh5xlip+JonRSCD37bGLOwJ8OgLF2gw +3ARJN572FhpW8GPH5hKfByRx0u179IqkYiX6aw1GMvyCTrd40cuQ1WGNOYY5BDx8 +oxbqLBiYJLj+Y5EaApdB16zZ2VvZQnchMxiVL7V1jCGZGghzP6qNPwgrXKnP/EKk +CD9xyaaI7Mqwu8HIzadw3Ji3KKtz5A== +=VJF2 +-----END PGP SIGNATURE----- diff --git a/kalendar.changes b/kalendar.changes new file mode 100644 index 0000000..8de7b18 --- /dev/null +++ b/kalendar.changes @@ -0,0 +1,11 @@ +------------------------------------------------------------------- +Sat Feb 26 18:06:39 UTC 2022 - Fabian Vogt + +- Update to 1.0.0 +- Add patch to avoid excessive logging: + * 0001-Use-categorized-logging-in-the-reminder-daemon.patch + +------------------------------------------------------------------- +Sat Oct 16 14:29:05 UTC 2021 - Fabian Vogt + +- Initial packaging diff --git a/kalendar.keyring b/kalendar.keyring new file mode 100644 index 0000000000000000000000000000000000000000000000000000000000000000..98c62684c364bd2f164fd6a2e8a30eb9f97850aefa567f448273cdaaac18fc20 GIT binary patch literal 1237 zcmbQq$jg#AL2oT12gBChXT}pg^-kU{X@5TK*u0KoCO??ZFLSuGoP)=n zhc~}hKm9h%`a|Q<8ILC3nDuR2b=tc!-)n!q@u_MDUgMu~N9HQaBKBq6E4Tcdoyo;4 zzJJe_CF>Uc`E}}@f;Qe3YmAznm0`2+TzK`l$J@VX z|JoHf@u`^Mo5LsS#H25}8T!3h)8|n=+n+&@k%4iGrgKhWX-a0kf^%YSQc%~0x3%AopLN=~dDWaF785$(Ni4v5;hmT##TyhRe&jBhyY~ERt&CFK?8 zZ>{HX5Bz-GcEu~HPolRj=ZEsgmmYlj$ud7JucqGf{l)k-mpux-Z*|0H$IVPgRXnq4 zUj369#_pdZ`zLf7PB_KGyrpiY*k0+2;jdy&-Py#gciD!|Ok@b_OqcxRKLZVDjwmxs$^Guo?4S zx$Ep8QrlX!oAIBmjc)&;ZjY79@=gv0OPx;4{JWDm#5H8iu8sDW{x6-M!980{J(`VW z%eCV0YpJJKWf{Atd<~l=?6}wO*ayzJ$8+vZE_h=VzT(YUokx0p=LuZfn+D^!s0(6{)*Q-r2Oiy zIW&J_J@X){OvL%#^s7%y&dfjd{ejnxj}q= %{kf5_version} +BuildRequires: cmake(KF5Akonadi) >= 5.19.0 +BuildRequires: cmake(KF5AkonadiContact) >= 5.19.0 +BuildRequires: cmake(KF5CalendarCore) +BuildRequires: cmake(KF5CalendarSupport) >= 5.18 +BuildRequires: cmake(KF5ConfigWidgets) +BuildRequires: cmake(KF5Contacts) +BuildRequires: cmake(KF5CoreAddons) +BuildRequires: cmake(KF5DBusAddons) +BuildRequires: cmake(KF5EventViews) >= 5.18.0 +BuildRequires: cmake(KF5I18n) +BuildRequires: cmake(KF5IconThemes) +BuildRequires: cmake(KF5ItemModels) +BuildRequires: cmake(KF5Kirigami2) +BuildRequires: cmake(KF5Notifications) +BuildRequires: cmake(KF5QQC2DesktopStyle) +BuildRequires: cmake(KF5Service) +BuildRequires: cmake(KF5WindowSystem) +BuildRequires: cmake(KF5XmlGui) +BuildRequires: cmake(Qt5Core) >= 5.15.2 +BuildRequires: cmake(Qt5DBus) +BuildRequires: cmake(Qt5Gui) +BuildRequires: cmake(Qt5Location) +BuildRequires: cmake(Qt5Qml) +BuildRequires: cmake(Qt5QuickControls2) +BuildRequires: cmake(Qt5Svg) +Requires: kdepim-addons +Requires: kdepim-runtime +# No automatic qmlimport requires for embedded resources :-/ +Requires: kirigami2 >= %{kf5_version} +Requires: qt5qmlimport(QtGraphicalEffects.1) +Requires: qt5qmlimport(QtLocation.5) +Requires: qt5qmlimport(QtQuick.Dialogs.1) +Requires: qt5qmlimport(org.kde.kitemmodels.1) +# Got vendored for now +#Requires: qt5qmlimport(org.kde.kirigamiaddons.treeview.1) + +%description +Calendar application using Akonadi to sync with external services (NextCloud, GMail, ...). + +%lang_package + +%prep +%autosetup -p1 + +%build +%cmake_kf5 -d build +%cmake_build + +%install +%kf5_makeinstall -C build +%if %{with released} + %find_lang %{name} --with-man --all-name +%endif + +%files +%license LICENSES/* +%{_kf5_applicationsdir}/org.kde.kalendar.desktop +%{_kf5_appstreamdir}/org.kde.kalendar.appdata.xml +%{_kf5_bindir}/kalendar +%{_kf5_bindir}/kalendarac +%{_kf5_configdir}/autostart/org.kde.kalendarac.desktop +%{_kf5_debugdir}/kalendar.categories +%{_kf5_debugdir}/org_kde_kalendarac.categories +%{_kf5_iconsdir}/hicolor/scalable/apps/org.kde.kalendar.svg +%{_kf5_notifydir}/kalendarac.notifyrc +%{_kf5_sharedir}/dbus-1/services/org.kde.kalendarac.service + +%if %{with released} +%files lang -f %{name}.lang +%endif + +%changelog