]>
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 | ||
c66337d6 | 8 | %define kdeframever 5.111 |
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} | |
c66337d6 | 13 | Version: 5.111.0 |
36f9089a | 14 | Release: 1 |
0f69b6a3 AM |
15 | License: GPL v2+/LGPL v2.1+ |
16 | Group: X11/Libraries | |
b022626f | 17 | Source0: https://download.kde.org/stable/frameworks/%{kdeframever}/%{kfname}-%{version}.tar.xz |
c66337d6 | 18 | # Source0-md5: 8b0c0f8a7b0bff5e7049fd3fdaddddea |
10bd6647 | 19 | Patch0: kf5-baloo-absolute-path.patch |
0f69b6a3 AM |
20 | URL: http://www.kde.org/ |
21 | BuildRequires: Qt5Core-devel >= %{qtver} | |
22 | BuildRequires: Qt5Gui-devel >= %{qtver} | |
23 | BuildRequires: Qt5Network-devel >= %{qtver} | |
24 | BuildRequires: Qt5Test-devel >= %{qtver} | |
25 | %if %{with tests} | |
26 | BuildRequires: Qt5Gui-devel >= %{qtver} | |
27 | BuildRequires: Qt5Widgets-devel >= %{qtver} | |
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 |
0f69b6a3 AM |
36 | BuildRequires: qt5-build >= %{qtver} |
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 | |
521dc08f WF |
82 | %find_lang %{kfname}5 --all-name --with-kde |
83 | ||
0f69b6a3 AM |
84 | %clean |
85 | rm -rf $RPM_BUILD_ROOT | |
86 | ||
87 | %post -p /sbin/ldconfig | |
88 | %postun -p /sbin/ldconfig | |
89 | ||
521dc08f | 90 | %files -f %{kfname}5.lang |
0f69b6a3 | 91 | %defattr(644,root,root,755) |
0f69b6a3 AM |
92 | %attr(755,root,root) %{_bindir}/baloo_file |
93 | %attr(755,root,root) %{_bindir}/baloo_file_extractor | |
94 | %attr(755,root,root) %{_bindir}/balooctl | |
95 | %attr(755,root,root) %{_bindir}/baloosearch | |
96 | %attr(755,root,root) %{_bindir}/balooshow | |
0f69b6a3 | 97 | /etc/xdg/autostart/baloo_file.desktop |
57a91848 | 98 | %{_datadir}/qlogging-categories5/baloo.categories |
0f69b6a3 | 99 | %{_datadir}/dbus-1/interfaces/org.kde.baloo.file.indexer.xml |
521dc08f WF |
100 | %{_datadir}/dbus-1/interfaces/org.kde.baloo.fileindexer.xml |
101 | %{_datadir}/dbus-1/interfaces/org.kde.baloo.main.xml | |
102 | %{_datadir}/dbus-1/interfaces/org.kde.baloo.scheduler.xml | |
0f69b6a3 | 103 | %attr(755,root,root) %{_libdir}/libKF5Baloo.so.*.*.* |
5502c7d9 | 104 | %ghost %{_libdir}/libKF5Baloo.so.5 |
0f69b6a3 | 105 | %attr(755,root,root) %{_libdir}/libKF5BalooEngine.so.*.*.* |
5502c7d9 | 106 | %ghost %{_libdir}/libKF5BalooEngine.so.5 |
521dc08f | 107 | %attr(755,root,root) %{_libdir}/qt5/plugins/kf5/kded/baloosearchmodule.so |
0f69b6a3 AM |
108 | %attr(755,root,root) %{_libdir}/qt5/plugins/kf5/kio/baloosearch.so |
109 | %attr(755,root,root) %{_libdir}/qt5/plugins/kf5/kio/tags.so | |
110 | %attr(755,root,root) %{_libdir}/qt5/plugins/kf5/kio/timeline.so | |
111 | %dir %{_libdir}/qt5/qml/org/kde/baloo | |
521dc08f | 112 | %dir %{_libdir}/qt5/qml/org/kde/baloo/experimental |
22592898 | 113 | %{_libdir}/qt5/qml/org/kde/baloo/qmldir |
521dc08f | 114 | %{_libdir}/qt5/qml/org/kde/baloo/experimental/qmldir |
0f69b6a3 | 115 | %attr(755,root,root) %{_libdir}/qt5/qml/org/kde/baloo/libbalooplugin.so |
521dc08f | 116 | %attr(755,root,root) %{_libdir}/qt5/qml/org/kde/baloo/experimental/libbaloomonitorplugin.so |
741b2c93 | 117 | %{_datadir}/dbus-1/interfaces/org.kde.BalooWatcherApplication.xml |
ee2cd397 | 118 | %{_datadir}/qlogging-categories5/baloo.renamecategories |
0142a4ed WF |
119 | %{systemduserunitdir}/kde-baloo.service |
120 | %attr(755,root,root) %{_prefix}/libexec/baloo_file | |
121 | %attr(755,root,root) %{_prefix}/libexec/baloo_file_extractor | |
0f69b6a3 AM |
122 | |
123 | %files devel | |
124 | %defattr(644,root,root,755) | |
5502c7d9 | 125 | %{_libdir}/libKF5Baloo.so |
0f69b6a3 | 126 | %{_includedir}/KF5/Baloo |
0f69b6a3 AM |
127 | %{_libdir}/cmake/KF5Baloo |
128 | %{_pkgconfigdir}/Baloo.pc | |
741b2c93 | 129 | %{_libdir}/qt5/mkspecs/modules/qt_Baloo.pri |