]>
Commit | Line | Data |
---|---|---|
eec56702 WF |
1 | # |
2 | # Conditional build: | |
3 | %bcond_with tests # build with tests | |
72cebe2a | 4 | %define kdeappsver 23.08.1 |
e1185e16 WF |
5 | %define kframever 5.94.0 |
6 | %define qtver 5.15.2 | |
88fa9475 | 7 | %define kaname baloo-widgets |
46297aeb | 8 | Summary: Baloo widgets |
88fa9475 | 9 | Name: ka5-%{kaname} |
72cebe2a | 10 | Version: 23.08.1 |
5cbe9a29 | 11 | Release: 1 |
88fa9475 WF |
12 | License: GPL v2+/LGPL v2.1+ |
13 | Group: X11/Libraries | |
d2365197 | 14 | Source0: https://download.kde.org/stable/release-service/%{kdeappsver}/src/%{kaname}-%{version}.tar.xz |
72cebe2a | 15 | # Source0-md5: 1f87c6b1e8109f96a8b1afe75ad6c4c9 |
88fa9475 WF |
16 | URL: http://www.kde.org/ |
17 | BuildRequires: Qt5Core-devel >= %{qtver} | |
46297aeb WF |
18 | BuildRequires: Qt5Gui-devel >= 5.11.1 |
19 | BuildRequires: Qt5Test-devel | |
20 | BuildRequires: Qt5Widgets-devel | |
bcb5734a | 21 | BuildRequires: cmake >= 3.20 |
46297aeb | 22 | BuildRequires: gettext-devel |
ab461cd6 WF |
23 | BuildRequires: kf5-baloo-devel >= %{kframever} |
24 | BuildRequires: kf5-extra-cmake-modules >= %{kframever} | |
25 | BuildRequires: kf5-kconfig-devel >= %{kframever} | |
26 | BuildRequires: kf5-kfilemetadata-devel >= %{kframever} | |
27 | BuildRequires: kf5-ki18n-devel >= %{kframever} | |
28 | BuildRequires: kf5-kio-devel >= %{kframever} | |
59305f40 | 29 | BuildRequires: ninja |
88fa9475 WF |
30 | BuildRequires: qt5-build >= %{qtver} |
31 | BuildRequires: rpmbuild(macros) >= 1.164 | |
32 | BuildRequires: shared-mime-info | |
33 | BuildRequires: tar >= 1:1.22 | |
34 | BuildRequires: xz | |
35 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
36 | ||
37 | %description | |
46297aeb | 38 | Widgets for Baloo. |
88fa9475 | 39 | |
6478b46b WF |
40 | %description -l pl.UTF-8 |
41 | Widżety dla Baloo. | |
42 | ||
88fa9475 WF |
43 | %package devel |
44 | Summary: Header files for %{kaname} development | |
46297aeb | 45 | Summary(pl.UTF-8): Pliki nagłówkowe dla programistów używających %{kaname} |
88fa9475 WF |
46 | Group: X11/Development/Libraries |
47 | Requires: %{name} = %{version}-%{release} | |
48 | ||
49 | %description devel | |
50 | Header files for %{kaname} development. | |
51 | ||
52 | %description devel -l pl.UTF-8 | |
53 | Pliki nagłówkowe dla programistów używających %{kaname}. | |
54 | ||
55 | %prep | |
56 | %setup -q -n %{kaname}-%{version} | |
57 | ||
58 | %build | |
88fa9475 | 59 | %cmake \ |
bcb5734a | 60 | -B build \ |
59305f40 | 61 | -G Ninja \ |
eec56702 | 62 | %{!?with_tests:-DBUILD_TESTING=OFF} \ |
ab461cd6 | 63 | -DHTML_INSTALL_DIR=%{_kdedocdir} \ |
bcb5734a WF |
64 | -DKDE_INSTALL_USE_QT_SYS_PATHS=ON |
65 | %ninja_build -C build | |
88fa9475 | 66 | |
eec56702 | 67 | %if %{with tests} |
bcb5734a | 68 | ctest --test-dir build |
eec56702 WF |
69 | %endif |
70 | ||
71 | ||
88fa9475 WF |
72 | %install |
73 | rm -rf $RPM_BUILD_ROOT | |
59305f40 | 74 | %ninja_install -C build |
88fa9475 WF |
75 | |
76 | %find_lang %{kaname} --all-name --with-kde | |
77 | ||
78 | %clean | |
79 | rm -rf $RPM_BUILD_ROOT | |
80 | ||
81 | %post -p /sbin/ldconfig | |
82 | %postun -p /sbin/ldconfig | |
83 | ||
84 | %files -f %{kaname}.lang | |
85 | %defattr(644,root,root,755) | |
86 | %attr(755,root,root) %{_bindir}/baloo_filemetadata_temp_extractor | |
ad33337d | 87 | %ghost %{_libdir}/libKF5BalooWidgets.so.5 |
88fa9475 | 88 | %attr(755,root,root) %{_libdir}/libKF5BalooWidgets.so.*.*.* |
ab461cd6 | 89 | %attr(755,root,root) %{_libdir}/qt5/plugins/kf5/kfileitemaction/tagsfileitemaction.so |
0d35576f | 90 | %attr(755,root,root) %{_libdir}/qt5/plugins/kf5/propertiesdialog/baloofilepropertiesplugin.so |
a8176581 | 91 | %{_datadir}/qlogging-categories5/baloo-widgets.categories |
88fa9475 WF |
92 | |
93 | %files devel | |
94 | %defattr(644,root,root,755) | |
95 | %{_includedir}/KF5/BalooWidgets | |
96 | %{_libdir}/cmake/KF5BalooWidgets | |
ad33337d | 97 | %{_libdir}/libKF5BalooWidgets.so |