diff --git a/97-kde-baloo-filewatch-inotify.conf b/97-kde-baloo-filewatch-inotify.conf new file mode 100644 index 0000000000000000000000000000000000000000..57c955a7057a437e9799b188831f5b16e4c57348 --- /dev/null +++ b/97-kde-baloo-filewatch-inotify.conf @@ -0,0 +1 @@ +fs.inotify.max_user_watches = 524288 diff --git a/README.en.md b/README.en.md deleted file mode 100644 index 6c83e2549952ff10bed5f3f53c9834fde900823f..0000000000000000000000000000000000000000 --- a/README.en.md +++ /dev/null @@ -1,36 +0,0 @@ -# kf5-baloo - -#### Description -{**When you're done, you can delete the content in this README and update the file with details for others getting started with your repository**} - -#### Software Architecture -Software architecture description - -#### Installation - -1. xxxx -2. xxxx -3. xxxx - -#### Instructions - -1. xxxx -2. xxxx -3. xxxx - -#### Contribution - -1. Fork the repository -2. Create Feat_xxx branch -3. Commit your code -4. Create Pull Request - - -#### Gitee Feature - -1. You can use Readme\_XXX.md to support different languages, such as Readme\_en.md, Readme\_zh.md -2. Gitee blog [blog.gitee.com](https://blog.gitee.com) -3. Explore open source project [https://gitee.com/explore](https://gitee.com/explore) -4. The most valuable open source project [GVP](https://gitee.com/gvp) -5. The manual of Gitee [https://gitee.com/help](https://gitee.com/help) -6. The most popular members [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/) diff --git a/README.md b/README.md deleted file mode 100644 index b75d428167fba9a1573455c201e733dc0332e9c4..0000000000000000000000000000000000000000 --- a/README.md +++ /dev/null @@ -1,39 +0,0 @@ -# kf5-baloo - -#### 介绍 -{**以下是 Gitee 平台说明,您可以替换此简介** -Gitee 是 OSCHINA 推出的基于 Git 的代码托管平台(同时支持 SVN)。专为开发者提供稳定、高效、安全的云端软件开发协作平台 -无论是个人、团队、或是企业,都能够用 Gitee 实现代码托管、项目管理、协作开发。企业项目请看 [https://gitee.com/enterprises](https://gitee.com/enterprises)} - -#### 软件架构 -软件架构说明 - - -#### 安装教程 - -1. xxxx -2. xxxx -3. xxxx - -#### 使用说明 - -1. xxxx -2. xxxx -3. xxxx - -#### 参与贡献 - -1. Fork 本仓库 -2. 新建 Feat_xxx 分支 -3. 提交代码 -4. 新建 Pull Request - - -#### 特技 - -1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md -2. Gitee 官方博客 [blog.gitee.com](https://blog.gitee.com) -3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解 Gitee 上的优秀开源项目 -4. [GVP](https://gitee.com/gvp) 全称是 Gitee 最有价值开源项目,是综合评定出的优秀开源项目 -5. Gitee 官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help) -6. Gitee 封面人物是一档用来展示 Gitee 会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/) diff --git a/baloo-5.113.0.tar.xz b/baloo-5.113.0.tar.xz new file mode 100644 index 0000000000000000000000000000000000000000..ade681da9d256bd4ade5f4a867e834bf6ed05e1e Binary files /dev/null and b/baloo-5.113.0.tar.xz differ diff --git a/baloo_file_shutdown.sh b/baloo_file_shutdown.sh new file mode 100644 index 0000000000000000000000000000000000000000..6aadda957756203b820c2f27c7a367431d3c062e --- /dev/null +++ b/baloo_file_shutdown.sh @@ -0,0 +1,7 @@ +#!/bin/sh +# workaround for baloo_file processes persisting +# after logout, parent bug: +# https://bugzilla.redhat.com/show_bug.cgi?id=1861700 + +qdbus-qt5 org.kde.baloo >& /dev/null && \ +qdbus-qt5 org.kde.baloo / org.kde.baloo.quit ||: diff --git a/kf5-baloo.spec b/kf5-baloo.spec new file mode 100644 index 0000000000000000000000000000000000000000..13f4ef25b5a7c429e40204f3ca09e7af97368a36 --- /dev/null +++ b/kf5-baloo.spec @@ -0,0 +1,174 @@ +%global framework baloo +%define anolis_release 1 +# bootstrap mode +#%global bootstrap 1 + +%if !0%{?bootstrap} +%global tests 1 +%endif + +Name: kf5-%{framework} +Summary: A Tier 3 KDE Frameworks 5 module that provides indexing and search functionality +Version: 5.113.0 +Release: %{anolis_release}%{?dist} +License: (LGPLv2 or LGPLv3) and (GPLv2 or GPLv3) +URL: https://community.kde.org/Baloo + +%global majmin %majmin_ver_kf5 +%global stable %stable_kf5 +Source0: http://download.kde.org/%{stable}/frameworks/%{majmin}/%{framework}-%{version}.tar.xz + +Source1: 97-kde-baloo-filewatch-inotify.conf +Source2: baloo_file_shutdown.sh + + +BuildRequires: extra-cmake-modules >= %{majmin} +BuildRequires: kf5-kconfig-devel >= %{majmin} +BuildRequires: kf5-kcoreaddons-devel >= %{majmin} +BuildRequires: kf5-kcrash-devel >= %{majmin} +BuildRequires: kf5-kdbusaddons-devel >= %{majmin} +BuildRequires: kf5-kfilemetadata-devel >= %{majmin} +BuildRequires: kf5-ki18n-devel >= %{majmin} +BuildRequires: kf5-kidletime-devel >= %{majmin} +BuildRequires: kf5-kio-devel >= %{majmin} +BuildRequires: kf5-rpm-macros >= %{majmin} +BuildRequires: kf5-solid-devel >= %{majmin} + +BuildRequires: lmdb-devel +BuildRequires: qt5-qtbase-devel +BuildRequires: qt5-qtdeclarative-devel + +# for systemd-related macros +BuildRequires: systemd + +%if 0%{?tests} +BuildRequires: dbus-x11 +BuildRequires: time +BuildRequires: xorg-x11-server-Xvfb +%endif + +Obsoletes: kf5-baloo-tools < 5.5.95-1 +Provides: kf5-baloo-tools = %{version}-%{release} +Conflicts: baloo < 5 +Obsoletes: kf5-baloo < 5.21.0-4 + +%description +%{summary}. + +%package devel +Summary: Development files for %{name} +License: LGPLv2 or LGPLv3 +Requires: %{name}-libs%{?_isa} = %{version}-%{release} +Requires: kf5-kcoreaddons-devel >= %{majmin} +Requires: kf5-kfilemetadata-devel >= %{majmin} +Requires: qt5-qtbase-devel + +%description devel +The %{name}-devel package contains libraries and header files for +developing applications that use %{name}. + +%package file +Summary: File indexing and search for Baloo +License: LGPLv2 or LGPLv3 +Conflicts: baloo-file < 5 +Requires: %{name}-libs%{?_isa} = %{version}-%{release} +%description file +%{summary}. + +%package libs +Summary: Runtime libraries for %{name} +License: LGPLv2 or LGPLv3 +%description libs +%{summary}. + + +%prep +%autosetup -n %{framework}-%{version} -p1 + + +%build +%{cmake_kf5} +%{cmake_build} + + +%install +%{cmake_install} + +%if 0%{?flatpak:1} +rm -fv %{buildroot}%{_userunitdir}/kde-baloo.service +%endif + +# baloodb not installed unless BUILD_EXPERIMENTAL is enabled, so omit translations +rm -fv %{buildroot}%{_datadir}/locale/*/LC_MESSAGES/baloodb5.* + +install -p -m644 -D %{SOURCE1} %{buildroot}%{_prefix}/lib/sysctl.d/97-kde-baloo-filewatch-inotify.conf +install -p -m755 -D %{SOURCE2} %{buildroot}%{_sysconfdir}/xdg/plasma-workspace/shutdown/baloo_file.sh + +%find_lang kio5_baloosearch +%find_lang kio5_tags +%find_lang kio5_timeline +%find_lang balooctl5 +%find_lang balooengine5 +%find_lang baloosearch5 +%find_lang balooshow5 +%find_lang baloo_file5 +%find_lang baloo_file_extractor5 + +cat kio5_tags.lang kio5_baloosearch.lang kio5_timeline.lang \ + balooctl5.lang balooengine5.lang baloosearch5.lang \ + balooshow5.lang \ + > %{name}.lang + +cat baloo_file5.lang baloo_file_extractor5.lang \ + > %{name}-file.lang + + +%check +%{ctest} + + +%files -f %{name}.lang +%license LICENSES/*.txt +%{_kf5_bindir}/baloosearch +%{_kf5_bindir}/balooshow +%{_kf5_bindir}/balooctl +%{_kf5_datadir}/qlogging-categories5/%{framework}* + +%files file -f %{name}-file.lang +%{_prefix}/lib/sysctl.d/97-kde-baloo-filewatch-inotify.conf +%config(noreplace) %{_sysconfdir}/xdg/plasma-workspace/shutdown/baloo_file.sh +%{_kf5_bindir}/baloo_file +%{_kf5_bindir}/baloo_file_extractor +%config(noreplace) %{_kf5_sysconfdir}/xdg/autostart/baloo_file.desktop +%if ! 0%{?flatpak:1} +%{_userunitdir}/kde-baloo.service +%endif +%{_libexecdir}/baloo_file +%{_libexecdir}/baloo_file_extractor + +%ldconfig_scriptlets libs + +%files libs +%license LICENSES/*.txt +%{_kf5_libdir}/libKF5Baloo.so.* +%{_kf5_libdir}/libKF5BalooEngine.so.* +# multilib'd plugins and friends +%{_kf5_plugindir}/kio/baloosearch.so +%{_kf5_plugindir}/kio/tags.so +%{_kf5_plugindir}/kio/timeline.so +%{_kf5_plugindir}/kded/baloosearchmodule.so +%{_kf5_qmldir}/org/kde/baloo + +%files devel +%{_kf5_libdir}/libKF5Baloo.so +%{_kf5_libdir}/cmake/KF5Baloo/ +%{_kf5_libdir}/pkgconfig/Baloo.pc +%{_kf5_includedir}/Baloo/ +%{_kf5_archdatadir}/mkspecs/modules/qt_Baloo.pri +%{_kf5_datadir}/dbus-1/interfaces/org.kde.baloo.*.xml +%{_kf5_datadir}/dbus-1/interfaces/org.kde.Baloo*.xml + + +%changelog +* Fri Jul 25 2025 NewStart - 5.113.0-1 +- First release.