]>
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 | ||
741b2c93 WF |
8 | %define kdeframever 5.53 |
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} | |
741b2c93 WF |
13 | Version: 5.53.0 |
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 | |
741b2c93 | 18 | # Source0-md5: deed1d430e5c9b73008ca45c78df9ee3 |
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 AM |
34 | BuildRequires: lmdb-devel |
35 | BuildRequires: qt5-build >= %{qtver} | |
36 | BuildRequires: rpmbuild(macros) >= 1.164 | |
37 | BuildRequires: tar >= 1:1.22 | |
38 | BuildRequires: xz | |
7390c83f | 39 | Requires: kf5-dirs |
741b2c93 | 40 | Conflicts: kde4-baloo |
0f69b6a3 AM |
41 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
42 | ||
43 | %description | |
44 | Baloo is the file indexing and file search framework for KDE. | |
45 | ||
46 | Baloo focuses on providing a very small memory footprint along with | |
47 | with extremely fast searching. It internally uses a mixture of sqlite | |
48 | along with Xapian to store the file index. | |
49 | ||
50 | %package devel | |
51 | Summary: Header files for %{kfname} development | |
52 | Summary(pl.UTF-8): Pliki nagłówkowe dla programistów używających %{kfname} | |
53 | Group: X11/Development/Libraries | |
54 | Requires: %{name} = %{version}-%{release} | |
b416ca88 | 55 | Requires: kf5-kfilemetadata-devel >= %{version} |
0f69b6a3 AM |
56 | |
57 | %description devel | |
58 | Header files for %{kfname} development. | |
59 | ||
60 | %description devel -l pl.UTF-8 | |
61 | Pliki nagłówkowe dla programistów używających %{kfname}. | |
62 | ||
63 | %prep | |
64 | %setup -q -n %{kfname}-%{version} | |
65 | ||
66 | %build | |
67 | install -d build | |
68 | cd build | |
69 | %cmake \ | |
70 | -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \ | |
71 | .. | |
72 | %{__make} | |
73 | ||
74 | %{?with_tests:%{__make} test} | |
75 | ||
76 | %install | |
77 | rm -rf $RPM_BUILD_ROOT | |
78 | %{__make} -C build install \ | |
79 | DESTDIR=$RPM_BUILD_ROOT | |
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) |
521dc08f | 91 | #%%attr(755,root,root) %{_bindir}/baloo-monitor |
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 | |
521dc08f WF |
97 | #%%attr(755,root,root) %{_libdir}/kauth/kde_baloo_filewatch_raiselimit |
98 | #/etc/dbus-1/system.d/org.kde.baloo.filewatch.conf | |
0f69b6a3 | 99 | /etc/xdg/autostart/baloo_file.desktop |
741b2c93 | 100 | /etc/xdg/baloo.categories |
0f69b6a3 | 101 | %{_datadir}/dbus-1/interfaces/org.kde.baloo.file.indexer.xml |
521dc08f WF |
102 | %{_datadir}/dbus-1/interfaces/org.kde.baloo.fileindexer.xml |
103 | %{_datadir}/dbus-1/interfaces/org.kde.baloo.main.xml | |
104 | %{_datadir}/dbus-1/interfaces/org.kde.baloo.scheduler.xml | |
105 | #%%{_datadir}/dbus-1/system-services/org.kde.baloo.filewatch.service | |
0f69b6a3 AM |
106 | %attr(755,root,root) %{_libdir}/libKF5Baloo.so.*.*.* |
107 | %attr(755,root,root) %ghost %{_libdir}/libKF5Baloo.so.5 | |
108 | %attr(755,root,root) %{_libdir}/libKF5BalooEngine.so.*.*.* | |
109 | %attr(755,root,root) %ghost %{_libdir}/libKF5BalooEngine.so.5 | |
521dc08f | 110 | %attr(755,root,root) %{_libdir}/qt5/plugins/kf5/kded/baloosearchmodule.so |
0f69b6a3 AM |
111 | %attr(755,root,root) %{_libdir}/qt5/plugins/kf5/kio/baloosearch.so |
112 | %attr(755,root,root) %{_libdir}/qt5/plugins/kf5/kio/tags.so | |
113 | %attr(755,root,root) %{_libdir}/qt5/plugins/kf5/kio/timeline.so | |
114 | %dir %{_libdir}/qt5/qml/org/kde/baloo | |
521dc08f | 115 | %dir %{_libdir}/qt5/qml/org/kde/baloo/experimental |
22592898 | 116 | %{_libdir}/qt5/qml/org/kde/baloo/qmldir |
521dc08f | 117 | %{_libdir}/qt5/qml/org/kde/baloo/experimental/qmldir |
0f69b6a3 | 118 | %attr(755,root,root) %{_libdir}/qt5/qml/org/kde/baloo/libbalooplugin.so |
521dc08f | 119 | %attr(755,root,root) %{_libdir}/qt5/qml/org/kde/baloo/experimental/libbaloomonitorplugin.so |
0f69b6a3 AM |
120 | %{_iconsdir}/hicolor/128x128/apps/baloo.png |
121 | %{_datadir}/kservices5/baloosearch.protocol | |
521dc08f | 122 | #%%{_datadir}/kservices5/kded/baloosearchfolderupdater.desktop |
0f69b6a3 AM |
123 | %{_datadir}/kservices5/tags.protocol |
124 | %{_datadir}/kservices5/timeline.protocol | |
521dc08f | 125 | #%%{_datadir}/polkit-1/actions/org.kde.baloo.filewatch.policy |
741b2c93 | 126 | %{_datadir}/dbus-1/interfaces/org.kde.BalooWatcherApplication.xml |
0f69b6a3 AM |
127 | |
128 | %files devel | |
129 | %defattr(644,root,root,755) | |
130 | %attr(755,root,root) %{_libdir}/libKF5Baloo.so | |
521dc08f | 131 | #%%attr(755,root,root) %{_libdir}/libKF5BalooEngine.so |
0f69b6a3 AM |
132 | %{_includedir}/KF5/Baloo |
133 | %{_includedir}/KF5/baloo_version.h | |
134 | %{_libdir}/cmake/KF5Baloo | |
135 | %{_pkgconfigdir}/Baloo.pc | |
741b2c93 | 136 | %{_libdir}/qt5/mkspecs/modules/qt_Baloo.pri |