]>
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 | ||
5ba1b413 | 8 | %define kdeframever 5.81 |
741b2c93 | 9 | %define qtver 5.9.0 |
0f69b6a3 AM |
10 | %define kfname baloo |
11 | Summary: A file indexing and file search framework | |
12 | Name: kf5-%{kfname} | |
5ba1b413 | 13 | Version: 5.81.0 |
741b2c93 | 14 | Release: 1 |
0f69b6a3 AM |
15 | License: GPL v2+/LGPL v2.1+ |
16 | Group: X11/Libraries | |
17 | Source0: http://download.kde.org/stable/frameworks/%{kdeframever}/%{kfname}-%{version}.tar.xz | |
5ba1b413 | 18 | # Source0-md5: f32e2e6c72763f311901cf081b96b045 |
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 | |
29 | BuildRequires: cmake >= 2.8.12 | |
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 | |
68 | install -d build | |
69 | cd build | |
75bb7533 | 70 | %cmake -G Ninja \ |
0f69b6a3 AM |
71 | -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \ |
72 | .. | |
75bb7533 | 73 | %ninja_build |
0f69b6a3 | 74 | |
75bb7533 | 75 | %{?with_tests:%ninja_build test} |
0f69b6a3 AM |
76 | |
77 | %install | |
78 | rm -rf $RPM_BUILD_ROOT | |
75bb7533 | 79 | %ninja_install -C build |
0f69b6a3 | 80 | |
521dc08f WF |
81 | %find_lang %{kfname}5 --all-name --with-kde |
82 | ||
0f69b6a3 AM |
83 | %clean |
84 | rm -rf $RPM_BUILD_ROOT | |
85 | ||
86 | %post -p /sbin/ldconfig | |
87 | %postun -p /sbin/ldconfig | |
88 | ||
521dc08f | 89 | %files -f %{kfname}5.lang |
0f69b6a3 | 90 | %defattr(644,root,root,755) |
0f69b6a3 AM |
91 | %attr(755,root,root) %{_bindir}/baloo_file |
92 | %attr(755,root,root) %{_bindir}/baloo_file_extractor | |
93 | %attr(755,root,root) %{_bindir}/balooctl | |
94 | %attr(755,root,root) %{_bindir}/baloosearch | |
95 | %attr(755,root,root) %{_bindir}/balooshow | |
0f69b6a3 | 96 | /etc/xdg/autostart/baloo_file.desktop |
57a91848 | 97 | %{_datadir}/qlogging-categories5/baloo.categories |
0f69b6a3 | 98 | %{_datadir}/dbus-1/interfaces/org.kde.baloo.file.indexer.xml |
521dc08f WF |
99 | %{_datadir}/dbus-1/interfaces/org.kde.baloo.fileindexer.xml |
100 | %{_datadir}/dbus-1/interfaces/org.kde.baloo.main.xml | |
101 | %{_datadir}/dbus-1/interfaces/org.kde.baloo.scheduler.xml | |
0f69b6a3 | 102 | %attr(755,root,root) %{_libdir}/libKF5Baloo.so.*.*.* |
5502c7d9 | 103 | %ghost %{_libdir}/libKF5Baloo.so.5 |
0f69b6a3 | 104 | %attr(755,root,root) %{_libdir}/libKF5BalooEngine.so.*.*.* |
5502c7d9 | 105 | %ghost %{_libdir}/libKF5BalooEngine.so.5 |
521dc08f | 106 | %attr(755,root,root) %{_libdir}/qt5/plugins/kf5/kded/baloosearchmodule.so |
0f69b6a3 AM |
107 | %attr(755,root,root) %{_libdir}/qt5/plugins/kf5/kio/baloosearch.so |
108 | %attr(755,root,root) %{_libdir}/qt5/plugins/kf5/kio/tags.so | |
109 | %attr(755,root,root) %{_libdir}/qt5/plugins/kf5/kio/timeline.so | |
110 | %dir %{_libdir}/qt5/qml/org/kde/baloo | |
521dc08f | 111 | %dir %{_libdir}/qt5/qml/org/kde/baloo/experimental |
22592898 | 112 | %{_libdir}/qt5/qml/org/kde/baloo/qmldir |
521dc08f | 113 | %{_libdir}/qt5/qml/org/kde/baloo/experimental/qmldir |
0f69b6a3 | 114 | %attr(755,root,root) %{_libdir}/qt5/qml/org/kde/baloo/libbalooplugin.so |
521dc08f | 115 | %attr(755,root,root) %{_libdir}/qt5/qml/org/kde/baloo/experimental/libbaloomonitorplugin.so |
0f69b6a3 | 116 | %{_datadir}/kservices5/baloosearch.protocol |
0f69b6a3 AM |
117 | %{_datadir}/kservices5/tags.protocol |
118 | %{_datadir}/kservices5/timeline.protocol | |
741b2c93 | 119 | %{_datadir}/dbus-1/interfaces/org.kde.BalooWatcherApplication.xml |
ee2cd397 | 120 | %{_datadir}/qlogging-categories5/baloo.renamecategories |
0f69b6a3 AM |
121 | |
122 | %files devel | |
123 | %defattr(644,root,root,755) | |
5502c7d9 | 124 | %{_libdir}/libKF5Baloo.so |
0f69b6a3 AM |
125 | %{_includedir}/KF5/Baloo |
126 | %{_includedir}/KF5/baloo_version.h | |
127 | %{_libdir}/cmake/KF5Baloo | |
128 | %{_pkgconfigdir}/Baloo.pc | |
741b2c93 | 129 | %{_libdir}/qt5/mkspecs/modules/qt_Baloo.pri |