]>
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 | ||
44467a62 | 8 | %define kdeframever 5.39 |
0f69b6a3 AM |
9 | %define qtver 5.3.2 |
10 | %define kfname baloo | |
11 | Summary: A file indexing and file search framework | |
12 | Name: kf5-%{kfname} | |
44467a62 | 13 | Version: 5.39.0 |
521dc08f | 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 | |
44467a62 | 18 | # Source0-md5: 77f987703e1d82b2ae3cfaf40105794a |
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 | |
7390c83f | 31 | BuildRequires: kf5-kio-devel >= %{version} |
0f69b6a3 | 32 | BuildRequires: kf5-kfilemetadata-devel >= %{version} |
22592898 | 33 | BuildRequires: kf5-kidletime-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 | |
39 | Conflicts: kde4-baloo | |
7390c83f | 40 | Requires: kf5-dirs |
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} | |
55 | ||
56 | %description devel | |
57 | Header files for %{kfname} development. | |
58 | ||
59 | %description devel -l pl.UTF-8 | |
60 | Pliki nagłówkowe dla programistów używających %{kfname}. | |
61 | ||
62 | %prep | |
63 | %setup -q -n %{kfname}-%{version} | |
64 | ||
65 | %build | |
66 | install -d build | |
67 | cd build | |
68 | %cmake \ | |
69 | -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \ | |
70 | .. | |
71 | %{__make} | |
72 | ||
73 | %{?with_tests:%{__make} test} | |
74 | ||
75 | %install | |
76 | rm -rf $RPM_BUILD_ROOT | |
77 | %{__make} -C build install \ | |
78 | DESTDIR=$RPM_BUILD_ROOT | |
79 | ||
521dc08f WF |
80 | %find_lang %{kfname}5 --all-name --with-kde |
81 | ||
0f69b6a3 AM |
82 | %clean |
83 | rm -rf $RPM_BUILD_ROOT | |
84 | ||
85 | %post -p /sbin/ldconfig | |
86 | %postun -p /sbin/ldconfig | |
87 | ||
521dc08f | 88 | %files -f %{kfname}5.lang |
0f69b6a3 | 89 | %defattr(644,root,root,755) |
521dc08f | 90 | #%%attr(755,root,root) %{_bindir}/baloo-monitor |
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 | |
521dc08f WF |
96 | #%%attr(755,root,root) %{_libdir}/kauth/kde_baloo_filewatch_raiselimit |
97 | #/etc/dbus-1/system.d/org.kde.baloo.filewatch.conf | |
0f69b6a3 AM |
98 | /etc/xdg/autostart/baloo_file.desktop |
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 | |
103 | #%%{_datadir}/dbus-1/system-services/org.kde.baloo.filewatch.service | |
0f69b6a3 AM |
104 | %attr(755,root,root) %{_libdir}/libKF5Baloo.so.*.*.* |
105 | %attr(755,root,root) %ghost %{_libdir}/libKF5Baloo.so.5 | |
106 | %attr(755,root,root) %{_libdir}/libKF5BalooEngine.so.*.*.* | |
107 | %attr(755,root,root) %ghost %{_libdir}/libKF5BalooEngine.so.5 | |
521dc08f | 108 | %attr(755,root,root) %{_libdir}/qt5/plugins/kf5/kded/baloosearchmodule.so |
0f69b6a3 AM |
109 | %attr(755,root,root) %{_libdir}/qt5/plugins/kf5/kio/baloosearch.so |
110 | %attr(755,root,root) %{_libdir}/qt5/plugins/kf5/kio/tags.so | |
111 | %attr(755,root,root) %{_libdir}/qt5/plugins/kf5/kio/timeline.so | |
112 | %dir %{_libdir}/qt5/qml/org/kde/baloo | |
521dc08f | 113 | %dir %{_libdir}/qt5/qml/org/kde/baloo/experimental |
22592898 | 114 | %{_libdir}/qt5/qml/org/kde/baloo/qmldir |
521dc08f | 115 | %{_libdir}/qt5/qml/org/kde/baloo/experimental/qmldir |
0f69b6a3 | 116 | %attr(755,root,root) %{_libdir}/qt5/qml/org/kde/baloo/libbalooplugin.so |
521dc08f | 117 | %attr(755,root,root) %{_libdir}/qt5/qml/org/kde/baloo/experimental/libbaloomonitorplugin.so |
0f69b6a3 AM |
118 | %{_iconsdir}/hicolor/128x128/apps/baloo.png |
119 | %{_datadir}/kservices5/baloosearch.protocol | |
521dc08f | 120 | #%%{_datadir}/kservices5/kded/baloosearchfolderupdater.desktop |
0f69b6a3 AM |
121 | %{_datadir}/kservices5/tags.protocol |
122 | %{_datadir}/kservices5/timeline.protocol | |
521dc08f | 123 | #%%{_datadir}/polkit-1/actions/org.kde.baloo.filewatch.policy |
0f69b6a3 AM |
124 | |
125 | %files devel | |
126 | %defattr(644,root,root,755) | |
127 | %attr(755,root,root) %{_libdir}/libKF5Baloo.so | |
521dc08f | 128 | #%%attr(755,root,root) %{_libdir}/libKF5BalooEngine.so |
0f69b6a3 AM |
129 | %{_includedir}/KF5/Baloo |
130 | %{_includedir}/KF5/baloo_version.h | |
131 | %{_libdir}/cmake/KF5Baloo | |
132 | %{_pkgconfigdir}/Baloo.pc |