]>
Commit | Line | Data |
---|---|---|
0f69b6a3 AM |
1 | # |
2 | # Conditional build: | |
3 | %bcond_with tests # build without tests | |
4 | ||
5 | # TODO: | |
6 | # - runtime Requires if any | |
7 | ||
77846854 | 8 | %define kdeframever 5.249.0 |
858b4730 | 9 | %define qtver 5.15.2 |
0f69b6a3 AM |
10 | %define kfname baloo |
11 | Summary: A file indexing and file search framework | |
12 | Name: kf5-%{kfname} | |
77846854 WF |
13 | Version: 5.249.0 |
14 | Release: 0.1 | |
0f69b6a3 AM |
15 | License: GPL v2+/LGPL v2.1+ |
16 | Group: X11/Libraries | |
77846854 WF |
17 | Source0: https://download.kde.org/unstable/frameworks/%{kdeframever}/%{kfname}-%{version}.tar.xz |
18 | # Source0-md5: 3124e8de2e4e8e5e80cab566306f971d | |
10bd6647 | 19 | Patch0: kf5-baloo-absolute-path.patch |
0f69b6a3 | 20 | URL: http://www.kde.org/ |
77846854 WF |
21 | BuildRequires: Qt6Core-devel >= %{qtver} |
22 | BuildRequires: Qt6Gui-devel >= %{qtver} | |
23 | BuildRequires: Qt6Network-devel >= %{qtver} | |
24 | BuildRequires: Qt6Test-devel >= %{qtver} | |
0f69b6a3 | 25 | %if %{with tests} |
77846854 WF |
26 | BuildRequires: Qt6Gui-devel >= %{qtver} |
27 | BuildRequires: Qt6Widgets-devel >= %{qtver} | |
0f69b6a3 | 28 | %endif |
36f9089a | 29 | BuildRequires: cmake >= 3.16 |
0f69b6a3 AM |
30 | BuildRequires: kf5-extra-cmake-modules >= 1.4.0 |
31 | BuildRequires: kf5-kfilemetadata-devel >= %{version} | |
22592898 | 32 | BuildRequires: kf5-kidletime-devel >= %{version} |
741b2c93 | 33 | BuildRequires: kf5-kio-devel >= %{version} |
0f69b6a3 | 34 | BuildRequires: lmdb-devel |
75bb7533 | 35 | BuildRequires: ninja |
77846854 | 36 | BuildRequires: qt6-build >= %{qtver} |
0f69b6a3 AM |
37 | BuildRequires: rpmbuild(macros) >= 1.164 |
38 | BuildRequires: tar >= 1:1.22 | |
39 | BuildRequires: xz | |
7390c83f | 40 | Requires: kf5-dirs |
741b2c93 | 41 | Conflicts: kde4-baloo |
0f69b6a3 AM |
42 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
43 | ||
44 | %description | |
45 | Baloo is the file indexing and file search framework for KDE. | |
46 | ||
47 | Baloo focuses on providing a very small memory footprint along with | |
48 | with extremely fast searching. It internally uses a mixture of sqlite | |
49 | along with Xapian to store the file index. | |
50 | ||
51 | %package devel | |
52 | Summary: Header files for %{kfname} development | |
53 | Summary(pl.UTF-8): Pliki nagłówkowe dla programistów używających %{kfname} | |
54 | Group: X11/Development/Libraries | |
55 | Requires: %{name} = %{version}-%{release} | |
b416ca88 | 56 | Requires: kf5-kfilemetadata-devel >= %{version} |
0f69b6a3 AM |
57 | |
58 | %description devel | |
59 | Header files for %{kfname} development. | |
60 | ||
61 | %description devel -l pl.UTF-8 | |
62 | Pliki nagłówkowe dla programistów używających %{kfname}. | |
63 | ||
64 | %prep | |
65 | %setup -q -n %{kfname}-%{version} | |
66 | ||
67 | %build | |
36f9089a WF |
68 | %cmake -B build \ |
69 | -G Ninja \ | |
2f8a28d1 | 70 | %{!?with_tests:-DBUILD_TESTING=OFF} \ |
36f9089a | 71 | -DKDE_INSTALL_USE_QT_SYS_PATHS=ON |
0f69b6a3 | 72 | |
36f9089a WF |
73 | %ninja_build -C build |
74 | ||
75 | %{?with_tests:%ninja_build -C build test} | |
0f69b6a3 | 76 | |
2f8a28d1 | 77 | |
0f69b6a3 AM |
78 | %install |
79 | rm -rf $RPM_BUILD_ROOT | |
75bb7533 | 80 | %ninja_install -C build |
0f69b6a3 | 81 | |
77846854 | 82 | %find_lang %{kfname}6 --all-name --with-kde |
521dc08f | 83 | |
0f69b6a3 AM |
84 | %clean |
85 | rm -rf $RPM_BUILD_ROOT | |
86 | ||
87 | %post -p /sbin/ldconfig | |
88 | %postun -p /sbin/ldconfig | |
89 | ||
77846854 | 90 | %files -f %{kfname}6.lang |
0f69b6a3 | 91 | %defattr(644,root,root,755) |
0f69b6a3 | 92 | /etc/xdg/autostart/baloo_file.desktop |
77846854 | 93 | %{_datadir}/qlogging-categories6/baloo.categories |
0f69b6a3 | 94 | %{_datadir}/dbus-1/interfaces/org.kde.baloo.file.indexer.xml |
521dc08f WF |
95 | %{_datadir}/dbus-1/interfaces/org.kde.baloo.fileindexer.xml |
96 | %{_datadir}/dbus-1/interfaces/org.kde.baloo.main.xml | |
97 | %{_datadir}/dbus-1/interfaces/org.kde.baloo.scheduler.xml | |
77846854 WF |
98 | %attr(755,root,root) %{_libdir}/libKF6Baloo.so.*.*.* |
99 | %ghost %{_libdir}/libKF6Baloo.so.6 | |
100 | %attr(755,root,root) %{_libdir}/libKF6BalooEngine.so.*.*.* | |
101 | %ghost %{_libdir}/libKF6BalooEngine.so.6 | |
102 | %attr(755,root,root) %{_libdir}/qt6/plugins/kf6/kded/baloosearchmodule.so | |
103 | %attr(755,root,root) %{_libdir}/qt6/plugins/kf6/kio/baloosearch.so | |
104 | %attr(755,root,root) %{_libdir}/qt6/plugins/kf6/kio/tags.so | |
105 | %attr(755,root,root) %{_libdir}/qt6/plugins/kf6/kio/timeline.so | |
106 | %dir %{_libdir}/qt6/qml/org/kde/baloo | |
107 | %dir %{_libdir}/qt6/qml/org/kde/baloo/experimental | |
108 | %{_libdir}/qt6/qml/org/kde/baloo/qmldir | |
109 | %{_libdir}/qt6/qml/org/kde/baloo/experimental/qmldir | |
110 | %attr(755,root,root) %{_libdir}/qt6/qml/org/kde/baloo/libbalooplugin.so | |
111 | %attr(755,root,root) %{_libdir}/qt6/qml/org/kde/baloo/experimental/libbaloomonitorplugin.so | |
741b2c93 | 112 | %{_datadir}/dbus-1/interfaces/org.kde.BalooWatcherApplication.xml |
77846854 | 113 | %{_datadir}/qlogging-categories6/baloo.renamecategories |
0142a4ed | 114 | %{systemduserunitdir}/kde-baloo.service |
77846854 WF |
115 | %attr(755,root,root) %{_bindir}/balooctl6 |
116 | %attr(755,root,root) %{_bindir}/baloosearch6 | |
117 | %attr(755,root,root) %{_bindir}/balooshow6 | |
118 | %attr(755,root,root) %{_prefix}/libexec/kf6/baloo_file | |
119 | %attr(755,root,root) %{_prefix}/libexec/kf6/baloo_file_extractor | |
0f69b6a3 AM |
120 | |
121 | %files devel | |
122 | %defattr(644,root,root,755) | |
77846854 WF |
123 | %{_libdir}/libKF6Baloo.so |
124 | %{_includedir}/KF6/Baloo | |
125 | %{_libdir}/cmake/KF6Baloo | |
126 | %{_pkgconfigdir}/KF6Baloo.pc |