]>
Commit | Line | Data |
---|---|---|
9afd6d85 | 1 | %define kdeappsver 21.12.2 |
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} | |
9afd6d85 | 7 | Version: 21.12.2 |
11483851 WF |
8 | Release: 1 |
9 | License: GPL v2+/LGPL v2.1+ | |
10 | Group: X11/Applications | |
26695f24 | 11 | Source0: http://download.kde.org/stable/release-service/%{kdeappsver}/src/%{kaname}-%{version}.tar.xz |
9afd6d85 | 12 | # Source0-md5: edb6d470526cdf0e9a327c3ab9616e6a |
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 | ||
08892980 WF |
43 | %description -l pl.UTF-8 |
44 | KFind może używany jako samodzielny program, uruchamiany przez KRunnera | |
45 | lub z menu. Jest też zintegrowany z Konquerorem jak "Find File" w menu | |
46 | "Tools". Pozwala wyszukiwać pliki według nazwy, typu lub treści. | |
47 | ||
11483851 WF |
48 | %prep |
49 | %setup -q -n %{kaname}-%{version} | |
50 | ||
51 | %build | |
52 | install -d build | |
53 | cd build | |
54 | %cmake \ | |
12465aa0 | 55 | -G Ninja \ |
acc2f2a8 | 56 | -DHTML_INSTALL_DIR=%{_kdedocdir} \ |
11483851 WF |
57 | -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \ |
58 | .. | |
12465aa0 | 59 | %ninja_build |
11483851 WF |
60 | |
61 | %install | |
62 | rm -rf $RPM_BUILD_ROOT | |
12465aa0 | 63 | %ninja_install -C build |
11483851 | 64 | |
acc2f2a8 | 65 | rm -rf $RPM_BUILD_ROOT%{_kdedocdir}/{lt,sr} |
11483851 WF |
66 | %find_lang %{kaname} --all-name --with-kde |
67 | ||
68 | %clean | |
69 | rm -rf $RPM_BUILD_ROOT | |
70 | ||
71 | %files -f %{kaname}.lang | |
72 | %defattr(644,root,root,755) | |
11483851 WF |
73 | %attr(755,root,root) %{_bindir}/kfind |
74 | %{_desktopdir}/org.kde.kfind.desktop | |
75 | %{_iconsdir}/hicolor/128x128/apps/kfind.png | |
76 | %{_iconsdir}/hicolor/16x16/apps/kfind.png | |
77 | %{_iconsdir}/hicolor/22x22/apps/kfind.png | |
78 | %{_iconsdir}/hicolor/32x32/apps/kfind.png | |
79 | %{_iconsdir}/hicolor/48x48/apps/kfind.png | |
80 | %{_iconsdir}/hicolor/64x64/apps/kfind.png | |
81 | %{_iconsdir}/hicolor/scalable/apps/kfind.svgz | |
82 | %lang(ca) %{_mandir}/ca/man1/kfind.1* | |
83 | %lang(de) %{_mandir}/de/man1/kfind.1* | |
84 | %lang(es) %{_mandir}/es/man1/kfind.1* | |
85 | %lang(fr) %{_mandir}/fr/man1/kfind.1* | |
86 | %lang(it) %{_mandir}/it/man1/kfind.1* | |
87 | %lang(lt) %{_mandir}/lt/man1/kfind.1* | |
88 | %lang(C) %{_mandir}/man1/kfind.1* | |
89 | %lang(nb) %{_mandir}/nb/man1/kfind.1* | |
90 | %lang(nl) %{_mandir}/nl/man1/kfind.1* | |
91 | %lang(pl) %{_mandir}/pl/man1/kfind.1* | |
92 | %lang(pt) %{_mandir}/pt/man1/kfind.1* | |
93 | %lang(pt_BR) %{_mandir}/pt_BR/man1/kfind.1* | |
94 | %lang(ru) %{_mandir}/ru/man1/kfind.1* | |
95 | %lang(sr) %{_mandir}/sr/man1/kfind.1* | |
96 | %lang(sv) %{_mandir}/sv/man1/kfind.1* | |
97 | %lang(uk) %{_mandir}/uk/man1/kfind.1* | |
98 | %{_datadir}/metainfo/org.kde.kfind.appdata.xml | |
26695f24 | 99 | %{_datadir}/qlogging-categories5/kfind.categories |