]> git.pld-linux.org Git - packages/ka5-kfind.git/blame - ka5-kfind.spec
- bcond_with tests
[packages/ka5-kfind.git] / ka5-kfind.spec
CommitLineData
ff47cdd6
WF
1#
2# Conditional build:
3%bcond_with tests # build with tests
5d6d8c42 4%define kdeappsver 21.12.3
acc2f2a8 5%define kframever 5.56.0
11483851
WF
6%define qtver 5.9.0
7%define kaname kfind
8Summary: kfind
9Name: ka5-%{kaname}
5d6d8c42 10Version: 21.12.3
11483851
WF
11Release: 1
12License: GPL v2+/LGPL v2.1+
13Group: X11/Applications
26695f24 14Source0: http://download.kde.org/stable/release-service/%{kdeappsver}/src/%{kaname}-%{version}.tar.xz
5d6d8c42 15# Source0-md5: c4d19e5c53ec958ba108d06a2ca3ad26
11483851
WF
16URL: http://www.kde.org/
17BuildRequires: Qt5Concurrent-devel
18BuildRequires: Qt5Core-devel >= %{qtver}
19BuildRequires: Qt5Gui-devel >= 5.11.1
20BuildRequires: Qt5Widgets-devel
21BuildRequires: cmake >= 2.8.12
22BuildRequires: gettext-devel
acc2f2a8
WF
23BuildRequires: kf5-extra-cmake-modules >= %{kframever}
24BuildRequires: kf5-karchive-devel >= %{kframever}
25BuildRequires: kf5-kcoreaddons-devel >= %{kframever}
26BuildRequires: kf5-kdoctools-devel >= %{kframever}
27BuildRequires: kf5-kfilemetadata-devel >= %{kframever}
28BuildRequires: kf5-ki18n-devel >= %{kframever}
29BuildRequires: kf5-kio-devel >= %{kframever}
30BuildRequires: kf5-ktextwidgets-devel >= %{kframever}
31BuildRequires: kf5-kwidgetsaddons-devel >= %{kframever}
12465aa0 32BuildRequires: ninja
11483851
WF
33BuildRequires: qt5-build >= %{qtver}
34BuildRequires: rpmbuild(macros) >= 1.164
35BuildRequires: shared-mime-info
36BuildRequires: tar >= 1:1.22
37BuildRequires: xz
38BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
39
40%description
41KFind can be used as a standalone search tool, launched by KRunner or
42from your menu. It is also integrated into Konqueror as "Find File" in
43the "Tools" menu. It allows you to find files by name, type or
44content.
45
08892980
WF
46%description -l pl.UTF-8
47KFind może używany jako samodzielny program, uruchamiany przez KRunnera
48lub z menu. Jest też zintegrowany z Konquerorem jak "Find File" w menu
49"Tools". Pozwala wyszukiwać pliki według nazwy, typu lub treści.
50
11483851
WF
51%prep
52%setup -q -n %{kaname}-%{version}
53
54%build
55install -d build
56cd build
57%cmake \
12465aa0 58 -G Ninja \
ff47cdd6 59 %{!?with_tests:-DBUILD_TESTING=OFF} \
acc2f2a8 60 -DHTML_INSTALL_DIR=%{_kdedocdir} \
11483851
WF
61 -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \
62 ..
12465aa0 63%ninja_build
11483851 64
ff47cdd6
WF
65%if %{with tests}
66ctest
67%endif
68
69
11483851
WF
70%install
71rm -rf $RPM_BUILD_ROOT
12465aa0 72%ninja_install -C build
11483851 73
acc2f2a8 74rm -rf $RPM_BUILD_ROOT%{_kdedocdir}/{lt,sr}
11483851
WF
75%find_lang %{kaname} --all-name --with-kde
76
77%clean
78rm -rf $RPM_BUILD_ROOT
79
80%files -f %{kaname}.lang
81%defattr(644,root,root,755)
11483851
WF
82%attr(755,root,root) %{_bindir}/kfind
83%{_desktopdir}/org.kde.kfind.desktop
84%{_iconsdir}/hicolor/128x128/apps/kfind.png
85%{_iconsdir}/hicolor/16x16/apps/kfind.png
86%{_iconsdir}/hicolor/22x22/apps/kfind.png
87%{_iconsdir}/hicolor/32x32/apps/kfind.png
88%{_iconsdir}/hicolor/48x48/apps/kfind.png
89%{_iconsdir}/hicolor/64x64/apps/kfind.png
90%{_iconsdir}/hicolor/scalable/apps/kfind.svgz
91%lang(ca) %{_mandir}/ca/man1/kfind.1*
92%lang(de) %{_mandir}/de/man1/kfind.1*
93%lang(es) %{_mandir}/es/man1/kfind.1*
94%lang(fr) %{_mandir}/fr/man1/kfind.1*
95%lang(it) %{_mandir}/it/man1/kfind.1*
96%lang(lt) %{_mandir}/lt/man1/kfind.1*
97%lang(C) %{_mandir}/man1/kfind.1*
98%lang(nb) %{_mandir}/nb/man1/kfind.1*
99%lang(nl) %{_mandir}/nl/man1/kfind.1*
100%lang(pl) %{_mandir}/pl/man1/kfind.1*
101%lang(pt) %{_mandir}/pt/man1/kfind.1*
102%lang(pt_BR) %{_mandir}/pt_BR/man1/kfind.1*
103%lang(ru) %{_mandir}/ru/man1/kfind.1*
104%lang(sr) %{_mandir}/sr/man1/kfind.1*
105%lang(sv) %{_mandir}/sv/man1/kfind.1*
106%lang(uk) %{_mandir}/uk/man1/kfind.1*
107%{_datadir}/metainfo/org.kde.kfind.appdata.xml
26695f24 108%{_datadir}/qlogging-categories5/kfind.categories
This page took 0.082906 seconds and 4 git commands to generate.