Init package
This commit is contained in:
parent
9f807f2f30
commit
f5369ca4b1
1
97-kde-baloo-filewatch-inotify.conf
Normal file
1
97-kde-baloo-filewatch-inotify.conf
Normal file
@ -0,0 +1 @@
|
|||||||
|
fs.inotify.max_user_watches = 524288
|
||||||
21
baloo-5.67.0-baloofile_config.patch
Normal file
21
baloo-5.67.0-baloofile_config.patch
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
diff -ur baloo-5.67.0/src/lib/baloosettings.kcfg baloo-5.67.0-baloofile_config/src/lib/baloosettings.kcfg
|
||||||
|
--- baloo-5.67.0/src/lib/baloosettings.kcfg 2020-02-02 13:42:43.000000000 +0100
|
||||||
|
+++ baloo-5.67.0-baloofile_config/src/lib/baloosettings.kcfg 2020-02-03 22:19:59.824381582 +0100
|
||||||
|
@@ -31,11 +31,15 @@
|
||||||
|
</entry>
|
||||||
|
<entry name="excludedFolders" key="exclude folders" type="PathList">
|
||||||
|
<label>exclude folders</label>
|
||||||
|
- <default code="true">QStringList()</default>
|
||||||
|
+ <default code="true">QStringList() << QDir::homePath()</default>
|
||||||
|
</entry>
|
||||||
|
<entry name="folders" type="PathList">
|
||||||
|
<label>folders</label>
|
||||||
|
- <default code="true">QStringList() << QDir::homePath()</default>
|
||||||
|
+ <default code="true">QStringList() <<
|
||||||
|
+ QStandardPaths::standardLocations(QStandardPaths::DocumentsLocation) <<
|
||||||
|
+ QStandardPaths::standardLocations(QStandardPaths::MusicLocation) <<
|
||||||
|
+ QStandardPaths::standardLocations(QStandardPaths::MoviesLocation) <<
|
||||||
|
+ QStandardPaths::standardLocations(QStandardPaths::PicturesLocation)</default>
|
||||||
|
</entry>
|
||||||
|
<entry name="excludedMimetypes" key="exclude mimetypes" type="StringList">
|
||||||
|
<label>exclude mimetypes</label>
|
||||||
BIN
baloo-5.97.0.tar.xz
Normal file
BIN
baloo-5.97.0.tar.xz
Normal file
Binary file not shown.
7
baloo_file_shutdown.sh
Normal file
7
baloo_file_shutdown.sh
Normal file
@ -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 ||:
|
||||||
190
kf5-baloo.spec
Normal file
190
kf5-baloo.spec
Normal file
@ -0,0 +1,190 @@
|
|||||||
|
%global framework baloo
|
||||||
|
|
||||||
|
# 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.97.0
|
||||||
|
Release: 1
|
||||||
|
License: (LGPLv2 or LGPLv3) and (GPLv2 or GPLv3)
|
||||||
|
URL: https://community.kde.org/Baloo
|
||||||
|
|
||||||
|
%global majmin %(echo %{version} | cut -d. -f1-2)
|
||||||
|
%global revision %(echo %{version} | cut -d. -f3)
|
||||||
|
%if %{revision} >= 50
|
||||||
|
%global stable unstable
|
||||||
|
%else
|
||||||
|
%global stable stable
|
||||||
|
%endif
|
||||||
|
Source0: http://download.kde.org/%{stable}/frameworks/%{majmin}/%{framework}-%{version}.tar.xz
|
||||||
|
|
||||||
|
Source1: 97-kde-baloo-filewatch-inotify.conf
|
||||||
|
Source2: baloo_file_shutdown.sh
|
||||||
|
|
||||||
|
Patch100: baloo-5.67.0-baloofile_config.patch
|
||||||
|
|
||||||
|
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
|
||||||
|
%if 0%{?fedora}
|
||||||
|
Obsoletes: baloo-file < 5.0.1-2
|
||||||
|
Provides: baloo-file = %{version}-%{release}
|
||||||
|
%else
|
||||||
|
Conflicts: baloo-file < 5
|
||||||
|
%endif
|
||||||
|
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
|
||||||
|
mkdir %{_target_platform}
|
||||||
|
pushd %{_target_platform}
|
||||||
|
%{cmake_kf5} .. \
|
||||||
|
-DBUILD_TESTING:BOOL=%{?tests:ON}%{!?tests:OFF}
|
||||||
|
popd
|
||||||
|
%make_build -C %{_target_platform}
|
||||||
|
|
||||||
|
|
||||||
|
%install
|
||||||
|
make install/fast DESTDIR=%{buildroot} -C %{_target_platform}
|
||||||
|
|
||||||
|
%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
|
||||||
|
|
||||||
|
cat kio5_tags.lang kio5_baloosearch.lang kio5_timeline.lang \
|
||||||
|
balooctl5.lang balooengine5.lang baloosearch5.lang \
|
||||||
|
balooshow5.lang \
|
||||||
|
> %{name}.lang
|
||||||
|
|
||||||
|
|
||||||
|
%check
|
||||||
|
%if 0%{?tests}
|
||||||
|
export CTEST_OUTPUT_ON_FAILURE=1
|
||||||
|
xvfb-run -a \
|
||||||
|
dbus-launch --exit-with-session \
|
||||||
|
time \
|
||||||
|
make test ARGS="--output-on-failure --timeout 300" -C %{_target_platform} ||:
|
||||||
|
%endif
|
||||||
|
|
||||||
|
|
||||||
|
%files -f %{name}.lang
|
||||||
|
%license LICENSES/*.txt
|
||||||
|
%{_kf5_bindir}/baloosearch
|
||||||
|
%{_kf5_bindir}/balooshow
|
||||||
|
%{_kf5_bindir}/balooctl
|
||||||
|
%{_kf5_datadir}/qlogging-categories5/%{framework}*
|
||||||
|
|
||||||
|
%files file
|
||||||
|
%{_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
|
||||||
|
* Wed Jul 13 2022 misaka00251 <misaka00251@misakanet.cn> - 5.97.0-1
|
||||||
|
- Init package
|
||||||
4
kf5-baloo.yaml
Normal file
4
kf5-baloo.yaml
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
version_control: github
|
||||||
|
src_repo: KDE/baloo
|
||||||
|
tag_prefix: "^v"
|
||||||
|
separator: "."
|
||||||
Loading…
x
Reference in New Issue
Block a user