]>
Commit | Line | Data |
---|---|---|
26695f24 | 1 | %define kdeappsver 20.12.3 |
acc2f2a8 | 2 | %define kframever 5.56.0 |
11483851 WF |
3 | %define qtver 5.9.0 |
4 | %define kaname kfind | |
5 | Summary: kfind | |
6 | Name: ka5-%{kaname} | |
26695f24 | 7 | Version: 20.12.3 |
11483851 WF |
8 | Release: 1 |
9 | License: GPL v2+/LGPL v2.1+ | |
10 | Group: X11/Applications | |
26695f24 WF |
11 | Source0: http://download.kde.org/stable/release-service/%{kdeappsver}/src/%{kaname}-%{version}.tar.xz |
12 | # Source0-md5: 410bca2b7ab4f61502361622217c2f85 | |
11483851 WF |
13 | URL: http://www.kde.org/ |
14 | BuildRequires: Qt5Concurrent-devel | |
15 | BuildRequires: Qt5Core-devel >= %{qtver} | |
16 | BuildRequires: Qt5Gui-devel >= 5.11.1 | |
17 | BuildRequires: Qt5Widgets-devel | |
18 | BuildRequires: cmake >= 2.8.12 | |
19 | BuildRequires: gettext-devel | |
acc2f2a8 WF |
20 | BuildRequires: kf5-extra-cmake-modules >= %{kframever} |
21 | BuildRequires: kf5-karchive-devel >= %{kframever} | |
22 | BuildRequires: kf5-kcoreaddons-devel >= %{kframever} | |
23 | BuildRequires: kf5-kdoctools-devel >= %{kframever} | |
24 | BuildRequires: kf5-kfilemetadata-devel >= %{kframever} | |
25 | BuildRequires: kf5-ki18n-devel >= %{kframever} | |
26 | BuildRequires: kf5-kio-devel >= %{kframever} | |
27 | BuildRequires: kf5-ktextwidgets-devel >= %{kframever} | |
28 | BuildRequires: kf5-kwidgetsaddons-devel >= %{kframever} | |
12465aa0 | 29 | BuildRequires: ninja |
11483851 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 | |
38 | KFind can be used as a standalone search tool, launched by KRunner or | |
39 | from your menu. It is also integrated into Konqueror as "Find File" in | |
40 | the "Tools" menu. It allows you to find files by name, type or | |
41 | content. | |
42 | ||
43 | %prep | |
44 | %setup -q -n %{kaname}-%{version} | |
45 | ||
46 | %build | |
47 | install -d build | |
48 | cd build | |
49 | %cmake \ | |
12465aa0 | 50 | -G Ninja \ |
acc2f2a8 | 51 | -DHTML_INSTALL_DIR=%{_kdedocdir} \ |
11483851 WF |
52 | -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \ |
53 | .. | |
12465aa0 | 54 | %ninja_build |
11483851 WF |
55 | |
56 | %install | |
57 | rm -rf $RPM_BUILD_ROOT | |
12465aa0 | 58 | %ninja_install -C build |
11483851 | 59 | |
acc2f2a8 | 60 | rm -rf $RPM_BUILD_ROOT%{_kdedocdir}/{lt,sr} |
11483851 WF |
61 | %find_lang %{kaname} --all-name --with-kde |
62 | ||
63 | %clean | |
64 | rm -rf $RPM_BUILD_ROOT | |
65 | ||
66 | %files -f %{kaname}.lang | |
67 | %defattr(644,root,root,755) | |
11483851 WF |
68 | %attr(755,root,root) %{_bindir}/kfind |
69 | %{_desktopdir}/org.kde.kfind.desktop | |
70 | %{_iconsdir}/hicolor/128x128/apps/kfind.png | |
71 | %{_iconsdir}/hicolor/16x16/apps/kfind.png | |
72 | %{_iconsdir}/hicolor/22x22/apps/kfind.png | |
73 | %{_iconsdir}/hicolor/32x32/apps/kfind.png | |
74 | %{_iconsdir}/hicolor/48x48/apps/kfind.png | |
75 | %{_iconsdir}/hicolor/64x64/apps/kfind.png | |
76 | %{_iconsdir}/hicolor/scalable/apps/kfind.svgz | |
77 | %lang(ca) %{_mandir}/ca/man1/kfind.1* | |
78 | %lang(de) %{_mandir}/de/man1/kfind.1* | |
79 | %lang(es) %{_mandir}/es/man1/kfind.1* | |
80 | %lang(fr) %{_mandir}/fr/man1/kfind.1* | |
81 | %lang(it) %{_mandir}/it/man1/kfind.1* | |
82 | %lang(lt) %{_mandir}/lt/man1/kfind.1* | |
83 | %lang(C) %{_mandir}/man1/kfind.1* | |
84 | %lang(nb) %{_mandir}/nb/man1/kfind.1* | |
85 | %lang(nl) %{_mandir}/nl/man1/kfind.1* | |
86 | %lang(pl) %{_mandir}/pl/man1/kfind.1* | |
87 | %lang(pt) %{_mandir}/pt/man1/kfind.1* | |
88 | %lang(pt_BR) %{_mandir}/pt_BR/man1/kfind.1* | |
89 | %lang(ru) %{_mandir}/ru/man1/kfind.1* | |
90 | %lang(sr) %{_mandir}/sr/man1/kfind.1* | |
91 | %lang(sv) %{_mandir}/sv/man1/kfind.1* | |
92 | %lang(uk) %{_mandir}/uk/man1/kfind.1* | |
93 | %{_datadir}/metainfo/org.kde.kfind.appdata.xml | |
26695f24 | 94 | %{_datadir}/qlogging-categories5/kfind.categories |