]>
Commit | Line | Data |
---|---|---|
eec56702 WF |
1 | # |
2 | # Conditional build: | |
3 | %bcond_with tests # build with tests | |
5dec406f | 4 | %define kdeappsver 22.08.0 |
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} |
5dec406f | 10 | Version: 22.08.0 |
88fa9475 WF |
11 | Release: 1 |
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 |
5dec406f | 15 | # Source0-md5: c15721f1dffe1facc69945bbb3e1a67a |
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 | |
88fa9475 | 21 | BuildRequires: cmake >= 2.8.12 |
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 | |
59 | install -d build | |
60 | cd build | |
61 | %cmake \ | |
59305f40 | 62 | -G Ninja \ |
eec56702 | 63 | %{!?with_tests:-DBUILD_TESTING=OFF} \ |
ab461cd6 | 64 | -DHTML_INSTALL_DIR=%{_kdedocdir} \ |
88fa9475 WF |
65 | -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \ |
66 | .. | |
59305f40 | 67 | %ninja_build |
88fa9475 | 68 | |
eec56702 WF |
69 | %if %{with tests} |
70 | ctest | |
71 | %endif | |
72 | ||
73 | ||
88fa9475 WF |
74 | %install |
75 | rm -rf $RPM_BUILD_ROOT | |
59305f40 | 76 | %ninja_install -C build |
88fa9475 WF |
77 | |
78 | %find_lang %{kaname} --all-name --with-kde | |
79 | ||
80 | %clean | |
81 | rm -rf $RPM_BUILD_ROOT | |
82 | ||
83 | %post -p /sbin/ldconfig | |
84 | %postun -p /sbin/ldconfig | |
85 | ||
86 | %files -f %{kaname}.lang | |
87 | %defattr(644,root,root,755) | |
88 | %attr(755,root,root) %{_bindir}/baloo_filemetadata_temp_extractor | |
ad33337d | 89 | %ghost %{_libdir}/libKF5BalooWidgets.so.5 |
88fa9475 | 90 | %attr(755,root,root) %{_libdir}/libKF5BalooWidgets.so.*.*.* |
ab461cd6 | 91 | %attr(755,root,root) %{_libdir}/qt5/plugins/kf5/kfileitemaction/tagsfileitemaction.so |
0d35576f | 92 | %attr(755,root,root) %{_libdir}/qt5/plugins/kf5/propertiesdialog/baloofilepropertiesplugin.so |
a8176581 | 93 | %{_datadir}/qlogging-categories5/baloo-widgets.categories |
88fa9475 WF |
94 | |
95 | %files devel | |
96 | %defattr(644,root,root,755) | |
97 | %{_includedir}/KF5/BalooWidgets | |
98 | %{_libdir}/cmake/KF5BalooWidgets | |
ad33337d | 99 | %{_libdir}/libKF5BalooWidgets.so |