]>
Commit | Line | Data |
---|---|---|
168e47ec WF |
1 | # |
2 | # Conditional build: | |
3 | %bcond_with tests # build with tests | |
447c9c34 | 4 | %define kdeappsver 22.12.2 |
edd50e23 WF |
5 | %define kframever 5.94.0 |
6 | %define qtver 5.15.2 | |
0978d9d2 WF |
7 | %define kaname kamera |
8 | Summary: Kamera | |
9 | Name: ka5-%{kaname} | |
447c9c34 | 10 | Version: 22.12.2 |
6c0f5719 | 11 | Release: 1 |
0978d9d2 WF |
12 | License: GPL v2+/LGPL v2.1+ |
13 | Group: X11/Libraries | |
4eb06bf4 | 14 | Source0: https://download.kde.org/stable/release-service/%{kdeappsver}/src/%{kaname}-%{version}.tar.xz |
447c9c34 | 15 | # Source0-md5: e6fa621f8ece463a265bd8a64d38f628 |
0978d9d2 WF |
16 | URL: http://www.kde.org/ |
17 | BuildRequires: Qt5Core-devel >= %{qtver} | |
18 | BuildRequires: cmake >= 2.8.12 | |
19 | BuildRequires: gettext-devel | |
7d747653 WF |
20 | BuildRequires: kf5-extra-cmake-modules >= %{kframever} |
21 | BuildRequires: kf5-kconfig-devel >= %{kframever} | |
22 | BuildRequires: kf5-kconfigwidgets-devel >= %{kframever} | |
23 | BuildRequires: kf5-kdoctools-devel >= %{kframever} | |
24 | BuildRequires: kf5-ki18n-devel >= %{kframever} | |
25 | BuildRequires: kf5-kio-devel >= %{kframever} | |
26 | BuildRequires: kf5-kxmlgui-devel >= %{kframever} | |
0978d9d2 | 27 | BuildRequires: libgphoto2-devel |
f7961edd | 28 | BuildRequires: ninja |
0978d9d2 WF |
29 | BuildRequires: qt5-build >= %{qtver} |
30 | BuildRequires: rpmbuild(macros) >= 1.164 | |
31 | BuildRequires: shared-mime-info | |
32 | BuildRequires: tar >= 1:1.22 | |
33 | BuildRequires: xz | |
34 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
35 | ||
36 | %description | |
37 | Digital camera support for KDE applications. This package allows any | |
38 | KDE application to access and manipulate pictures on a digital camera. | |
39 | ||
cacace16 WF |
40 | %description -l pl.UTF-8 |
41 | Wsparcie dla cyfrowych aparatów fotograficznych. Ten pakiet pozwala | |
111ebe1a WF |
42 | dowolnej aplikacji KDE na dostęp i operowanie zdjęciami z aparatu |
43 | cyfrowego. | |
cacace16 | 44 | |
0978d9d2 WF |
45 | %prep |
46 | %setup -q -n %{kaname}-%{version} | |
47 | ||
48 | %build | |
49 | install -d build | |
50 | cd build | |
51 | %cmake \ | |
f7961edd | 52 | -G Ninja \ |
168e47ec | 53 | %{!?with_tests:-DBUILD_TESTING=OFF} \ |
7d747653 | 54 | -DHTML_INSTALL_DIR=%{_kdedocdir} \ |
0978d9d2 WF |
55 | -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \ |
56 | .. | |
f7961edd | 57 | %ninja_build |
0978d9d2 | 58 | |
168e47ec WF |
59 | %if %{with tests} |
60 | ctest | |
61 | %endif | |
62 | ||
63 | ||
0978d9d2 WF |
64 | %install |
65 | rm -rf $RPM_BUILD_ROOT | |
f7961edd | 66 | %ninja_install -C build |
0978d9d2 WF |
67 | |
68 | %find_lang %{kaname} --all-name --with-kde | |
69 | ||
70 | %clean | |
71 | rm -rf $RPM_BUILD_ROOT | |
72 | ||
73 | %files -f %{kaname}.lang | |
74 | %defattr(644,root,root,755) | |
111ebe1a | 75 | %{_libdir}/qt5/plugins/kf5/kio/kio_kamera.so |
0978d9d2 | 76 | %{_datadir}/solid/actions/solid_camera.desktop |
61839772 | 77 | %{_datadir}/metainfo/org.kde.kamera.metainfo.xml |
1a725736 WF |
78 | %attr(755,root,root) %{_libdir}/qt5/plugins/plasma/kcms/systemsettings_qwidgets/kamera.so |
79 | %{_desktopdir}/kamera.desktop |