From 4224fc20b6708b27c15cb69bb6ce33fc9ddc79977138c339c67df583222afe4c Mon Sep 17 00:00:00 2001 From: Christophe Marin Date: Thu, 9 Mar 2023 12:17:54 +0000 Subject: [PATCH] Accepting request 1070347 from home:iDesmI:Wayland Warns when apps are using all inotify watches and prompts the user to raise it; this can help users understand why Baloo in particular isn't working properly, and offers them a way to fix it. https://community.kde.org/Distributions/Packaging_Recommendations Audited: https://bugzilla.opensuse.org/show_bug.cgi?id=1208689 https://build.opensuse.org/request/show/1069931 https://build.opensuse.org/request/show/1069937 Includes install-i18n.patch to build a lang package. OBS-URL: https://build.opensuse.org/request/show/1070347 OBS-URL: https://build.opensuse.org/package/show/KDE:Applications/kde-inotify-survey?expand=0&rev=1 --- .gitattributes | 23 ++++++++ .gitignore | 1 + install-i18n.patch | 25 +++++++++ kde-inotify-survey-1.0.0.tar.zst | 3 ++ kde-inotify-survey-1.0.0.tar.zst.sig | 16 ++++++ kde-inotify-survey.changes | 9 ++++ kde-inotify-survey.keyring | Bin 0 -> 3972 bytes kde-inotify-survey.spec | 77 +++++++++++++++++++++++++++ 8 files changed, 154 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 install-i18n.patch create mode 100644 kde-inotify-survey-1.0.0.tar.zst create mode 100644 kde-inotify-survey-1.0.0.tar.zst.sig create mode 100644 kde-inotify-survey.changes create mode 100644 kde-inotify-survey.keyring create mode 100644 kde-inotify-survey.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/install-i18n.patch b/install-i18n.patch new file mode 100644 index 0000000..1b295b5 --- /dev/null +++ b/install-i18n.patch @@ -0,0 +1,25 @@ +From: Harald Sitter +Date: Fri, 24 Feb 2023 13:30:50 +0100 +Subject: [PATCH] install i18n + +BUG: 466322 +--- + CMakeLists.txt | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 4967e07..180b317 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -40,6 +40,8 @@ find_package(KF5 ${KF5_MIN_VERSION} REQUIRED + add_subdirectory(src) + add_subdirectory(autotests) + ++ki18n_install(po) ++ + install(FILES org.kde.inotify-survey.metainfo.xml DESTINATION ${KDE_INSTALL_METAINFODIR}) + + file(GLOB_RECURSE ALL_CLANG_FORMAT_SOURCE_FILES *.cpp *.h) +-- +GitLab + diff --git a/kde-inotify-survey-1.0.0.tar.zst b/kde-inotify-survey-1.0.0.tar.zst new file mode 100644 index 0000000..31eb193 --- /dev/null +++ b/kde-inotify-survey-1.0.0.tar.zst @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:952cf4a12b50a679bcad215b2dd2fc78c5f4b2fc38aa38465ea392a106d0a7a2 +size 231279 diff --git a/kde-inotify-survey-1.0.0.tar.zst.sig b/kde-inotify-survey-1.0.0.tar.zst.sig new file mode 100644 index 0000000..0e85454 --- /dev/null +++ b/kde-inotify-survey-1.0.0.tar.zst.sig @@ -0,0 +1,16 @@ +-----BEGIN PGP SIGNATURE----- + +iQIzBAABCgAdFiEEmUvOVl9TGc6jhe6fuSpfBOyUkSEFAmN8uy8ACgkQuSpfBOyU +kSGZGg//aFRJqSU7/vTgW3v9/1ELT30sONpVzfkxROhT5wlwBAlQBR/hgxZwGZZM +VW6i4cX/X36cu+0CJ93Ce+5jBHv1q+P7CAdKBMIr/XjpUJ9o2m2U14acnrty97rd +7J3MbwjqInG8Cw5djezF1qZDu09b33etTcgYY7g0Tcf3iIFN0PueGb6KJhSfBdhP +/QW3KN0c70aAakNGob/oUSaMQIFBt+Ke7pk/OqfjWWqH5OgQxjQtxSNZXa3Ge3m+ +gpR3zXq0BXSgn+TAsDKBJOvzqzDbcSpwclFAA9V7o1cUfGW0zCwDCJOMR6HD0ofN +zRzVC3cgfGXmSkXCIr/8Nr9hqx04n5EfnkOVLVRP9Iz8m7qeiaHnLXUBaoWSegcZ +hLaNsgNS1M6EAYYbou7dE9wE9MXbQlLuQeVn4BHTQ+/lSB1JlP1P90IwPQTHo+Oe +BteNPUalueYPo181dqMsU7mCiJZx0gU2TH7HaI7V/DeEoxhOwdFUpFRSfLtzBs2g +eiW8UoU4IC/hrrJaZ95SPXhDdjyGj9sDW6B4KaSrJuMB8xIwTKOpDrt+SBaUydDG +tV+NcT9o5THF72f5M3pLyFYMuGpfLK58X5HgxcCdntwGfiDR9BrZuMX+b0EPvlp5 +RkCY5N6xJgK9na4pSJStOYmJNrEDv0xiM/gY4+XCLAV8jViAWp0= +=BJy+ +-----END PGP SIGNATURE----- diff --git a/kde-inotify-survey.changes b/kde-inotify-survey.changes new file mode 100644 index 0000000..1147861 --- /dev/null +++ b/kde-inotify-survey.changes @@ -0,0 +1,9 @@ +------------------------------------------------------------------- +Sat Feb 25 21:59:04 UTC 2023 - Enrico Belleri + +- Add patch install-i18n.patch to correctly build a lang package + +------------------------------------------------------------------- +Sat Feb 25 20:58:04 UTC 2023 - Enrico Belleri + +- initial package diff --git a/kde-inotify-survey.keyring b/kde-inotify-survey.keyring new file mode 100644 index 0000000000000000000000000000000000000000000000000000000000000000..0ab67d3bd70746106efbdeb41417c7a2a7a4dabd98b324e3f4288e31ee9a72ef GIT binary patch literal 3972 zcma*pXE+-Sy9e-yQ4y^W)Tq5zBKE4$suH9K+SqEwie00v)heo}QCp*CQ4L~`8bx@N zq^hdgSgl!m)hOqApZCK#*E#1p*ZFjRxWC=k@A}{WT;N5z+ZfyHG!Q`hwV_-0)>rlW zbfZ&@c(n02!CDW?Kl0(qYZI#O&w(C0N=bZ^l8=BxAl=%r{8sK+;SMjBZ6l?p5@Bn) z5w)BCzKbf*D1rjEy%e`k5KotBk9y+*iM%f6^n7uSzYN>izmv zO3T=Jdlo7(%jYU}+KwL07RrS%-~1DO7GvQoCkd3jknadHtKqZ?Q}Qub$*}p0shOD* z5Fhy1&%{pB=k0uw#O)FW(%V7N8=6neQ?g4Hd1v7Fa82R+>A1{`fe@vGMJcVt@sJnYsH|sEGw0)juyG{cUf{wGzVqSIn^f0^2T0avX>beWuKMqNiM)Jqx zAsm@opBQ@gJv@dCOMph1b|OsDn<}&tAFWr$1?+JgF|~k@n3`j)Ock}^@xgiL`J0wU z*E4(?=AN`(AlTSpd9+~G1^3cI5<-goW@CKB0!;kM#!(MgWhSjcUxR&bnXWw#nvl=G znwK-vSGr~VD1s;uS^@qhPGi*^G)90+Uww;$?XX)TJbED3JT7YU5)93eND)jf#e$>r zjqiX)oA_3-cm|?(MDp(1KEY~H4k=-zKe$pq=IVxZ>-=kfD*z2au z`#V1m1_bR8!WB||B9h2(CGi<6KbDb6T^N*>I=34Q5{rAoCeP0RkwpXt0 zU}WVI2DLa?rYtP~O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v<`8$Vsj? zL-!-ua_J;=g?f~-`nTUXIRvm16znP6*KgqOV$S9HBsIc?9rr~cc`vV|~SdO^6kMH0Hn y6TmKe*{@&~O86WYzxRu8STC7XPV|ajm9jOz!#kUT8@>@;?9_aa9xm literal 0 HcmV?d00001 diff --git a/kde-inotify-survey.spec b/kde-inotify-survey.spec new file mode 100644 index 0000000..42cee30 --- /dev/null +++ b/kde-inotify-survey.spec @@ -0,0 +1,77 @@ +# +# spec file for package kde-inotify-survey +# +# Copyright (c) 2023 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +%define kf5_version 5.93.0 +Name: kde-inotify-survey +Version: 1.0.0 +Release: 0 +Summary: Monitor inotify limits and inform the user when they are reached +License: GPL-2.0-or-later +URL: https://www.kde.org +Source: https://download.kde.org/stable/%{name}/%{name}-%{version}.tar.zst +Source1: https://download.kde.org/stable/%{name}/%{name}-%{version}.tar.zst.sig +Source2: kde-inotify-survey.keyring +# PATCH-FIX-UPSTREAM +Patch: install-i18n.patch + +BuildRequires: cmake >= 3.22 +BuildRequires: extra-cmake-modules >= %{kf5_version} +BuildRequires: zstd +BuildRequires: cmake(KF5Auth) +BuildRequires: cmake(KF5CoreAddons) +BuildRequires: cmake(KF5DBusAddons) +BuildRequires: cmake(KF5I18n) +BuildRequires: cmake(KF5KIO) +BuildRequires: cmake(KF5Notifications) +BuildRequires: cmake(Qt5Core) >= 5.15.2 +BuildRequires: cmake(Qt5DBus) +BuildRequires: cmake(Qt5Qml) +BuildRequires: cmake(Qt5Quick) + +%description +Tooling for monitoring inotify limits and informing the user +when they have been or are about to be reached. + +%lang_package + +%prep +%autosetup -p1 -n %{name}-v%{version} + +%build +%cmake_kf5 -d build +%cmake_build + +%install +%kf5_makeinstall -C build + +%find_lang %{name} --with-qt --with-man --all-name + +%files +%license LICENSES/* +%{_kf5_bindir}/kde-inotify-survey +%{_libexecdir}/kauth/kded-inotify-helper +%{_kf5_plugindir}/kf5/kded/inotify.so +%{_datadir}/dbus-1/system-services/org.kde.kded.inotify.service +%{_kf5_dbuspolicydir}/org.kde.kded.inotify.conf +%{_kf5_notifydir}/org.kde.kded.inotify.notifyrc +%{_kf5_appstreamdir}/org.kde.inotify-survey.metainfo.xml +%{_datadir}/polkit-1/actions/org.kde.kded.inotify.policy + +%files lang -f %{name}.lang + +%changelog