]>
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 | ||
8 | %define kdeframever 5.13 | |
9 | %define qtver 5.3.2 | |
10 | %define kfname baloo | |
11 | Summary: A file indexing and file search framework | |
12 | Name: kf5-%{kfname} | |
13 | Version: 5.13.0 | |
14 | Release: 1 | |
15 | License: GPL v2+/LGPL v2.1+ | |
16 | Group: X11/Libraries | |
17 | Source0: http://download.kde.org/stable/frameworks/%{kdeframever}/%{kfname}-%{version}.tar.xz | |
18 | # Source0-md5: 67bceaf70f9da493161c0eb94a214099 | |
19 | URL: http://www.kde.org/ | |
20 | BuildRequires: Qt5Core-devel >= %{qtver} | |
21 | BuildRequires: Qt5Gui-devel >= %{qtver} | |
22 | BuildRequires: Qt5Network-devel >= %{qtver} | |
23 | BuildRequires: Qt5Test-devel >= %{qtver} | |
24 | %if %{with tests} | |
25 | BuildRequires: Qt5Gui-devel >= %{qtver} | |
26 | BuildRequires: Qt5Widgets-devel >= %{qtver} | |
27 | %endif | |
28 | BuildRequires: cmake >= 2.8.12 | |
29 | BuildRequires: kf5-extra-cmake-modules >= 1.4.0 | |
57ba8118 | 30 | BuildRequires: kf5-kidletime-devel >= %{version} |
0f69b6a3 AM |
31 | BuildRequires: kf5-kfilemetadata-devel >= %{version} |
32 | BuildRequires: lmdb-devel | |
33 | BuildRequires: qt5-build >= %{qtver} | |
34 | BuildRequires: rpmbuild(macros) >= 1.164 | |
35 | BuildRequires: tar >= 1:1.22 | |
36 | BuildRequires: xz | |
37 | Conflicts: kde4-baloo | |
38 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
39 | ||
40 | %description | |
41 | Baloo is the file indexing and file search framework for KDE. | |
42 | ||
43 | Baloo focuses on providing a very small memory footprint along with | |
44 | with extremely fast searching. It internally uses a mixture of sqlite | |
45 | along with Xapian to store the file index. | |
46 | ||
47 | %package devel | |
48 | Summary: Header files for %{kfname} development | |
49 | Summary(pl.UTF-8): Pliki nagłówkowe dla programistów używających %{kfname} | |
50 | Group: X11/Development/Libraries | |
51 | Requires: %{name} = %{version}-%{release} | |
52 | ||
53 | %description devel | |
54 | Header files for %{kfname} development. | |
55 | ||
56 | %description devel -l pl.UTF-8 | |
57 | Pliki nagłówkowe dla programistów używających %{kfname}. | |
58 | ||
59 | %prep | |
60 | %setup -q -n %{kfname}-%{version} | |
61 | ||
62 | %build | |
63 | install -d build | |
64 | cd build | |
65 | %cmake \ | |
66 | -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \ | |
67 | .. | |
68 | %{__make} | |
69 | ||
70 | %{?with_tests:%{__make} test} | |
71 | ||
72 | %install | |
73 | rm -rf $RPM_BUILD_ROOT | |
74 | %{__make} -C build install \ | |
75 | DESTDIR=$RPM_BUILD_ROOT | |
76 | ||
77 | %clean | |
78 | rm -rf $RPM_BUILD_ROOT | |
79 | ||
80 | %post -p /sbin/ldconfig | |
81 | %postun -p /sbin/ldconfig | |
82 | ||
83 | %files | |
84 | %defattr(644,root,root,755) | |
85 | %attr(755,root,root) %{_bindir}/baloo-monitor | |
86 | %attr(755,root,root) %{_bindir}/baloo_file | |
87 | %attr(755,root,root) %{_bindir}/baloo_file_extractor | |
88 | %attr(755,root,root) %{_bindir}/balooctl | |
89 | %attr(755,root,root) %{_bindir}/baloosearch | |
90 | %attr(755,root,root) %{_bindir}/balooshow | |
91 | %attr(755,root,root) %{_libdir}/kauth/kde_baloo_filewatch_raiselimit | |
92 | /etc/dbus-1/system.d/org.kde.baloo.filewatch.conf | |
93 | /etc/xdg/autostart/baloo_file.desktop | |
94 | %{_datadir}/dbus-1/interfaces/org.kde.baloo.file.indexer.xml | |
95 | %{_datadir}/dbus-1/system-services/org.kde.baloo.filewatch.service | |
96 | %attr(755,root,root) %{_libdir}/libKF5Baloo.so.*.*.* | |
97 | %attr(755,root,root) %ghost %{_libdir}/libKF5Baloo.so.5 | |
98 | %attr(755,root,root) %{_libdir}/libKF5BalooEngine.so.*.*.* | |
99 | %attr(755,root,root) %ghost %{_libdir}/libKF5BalooEngine.so.5 | |
100 | %attr(755,root,root) %{_libdir}/qt5/plugins/kded_baloosearch_kio.so | |
101 | %attr(755,root,root) %{_libdir}/qt5/plugins/kf5/kio/baloosearch.so | |
102 | %attr(755,root,root) %{_libdir}/qt5/plugins/kf5/kio/tags.so | |
103 | %attr(755,root,root) %{_libdir}/qt5/plugins/kf5/kio/timeline.so | |
104 | %dir %{_libdir}/qt5/qml/org/kde/baloo | |
105 | %attr(755,root,root) %{_libdir}/qt5/qml/org/kde/baloo/libbalooplugin.so | |
106 | %{_iconsdir}/hicolor/128x128/apps/baloo.png | |
107 | %{_datadir}/kservices5/baloosearch.protocol | |
108 | %{_datadir}/kservices5/kded/baloosearchfolderupdater.desktop | |
109 | %{_datadir}/kservices5/tags.protocol | |
110 | %{_datadir}/kservices5/timeline.protocol | |
111 | %{_datadir}/polkit-1/actions/org.kde.baloo.filewatch.policy | |
112 | ||
113 | %files devel | |
114 | %defattr(644,root,root,755) | |
115 | %attr(755,root,root) %{_libdir}/libKF5Baloo.so | |
116 | %attr(755,root,root) %{_libdir}/libKF5BalooEngine.so | |
117 | %{_includedir}/KF5/Baloo | |
118 | %{_includedir}/KF5/baloo_version.h | |
119 | %{_libdir}/cmake/KF5Baloo | |
120 | %{_pkgconfigdir}/Baloo.pc | |
121 | #%{_libdir}/qt5/mkspecs/modules/qt_Attica.pri |