]>
Commit | Line | Data |
---|---|---|
f242360b WF |
1 | %define kdeappsver 19.04.1 |
2 | %define kframever 5.56 | |
7bf854d5 WF |
3 | %define qtver 5.9.0 |
4 | %define kaname kamoso | |
5 | Summary: Kamoso | |
6 | Name: ka5-%{kaname} | |
f242360b | 7 | Version: 19.04.1 |
7bf854d5 WF |
8 | Release: 1 |
9 | License: GPL v2+/LGPL v2.1+ | |
10 | Group: X11/Libraries | |
11 | Source0: http://download.kde.org/stable/applications/%{kdeappsver}/src/%{kaname}-%{version}.tar.xz | |
f242360b | 12 | # Source0-md5: 09188d54cc0f3589ab3d7b4d9f8f08cc |
7bf854d5 WF |
13 | URL: http://www.kde.org/ |
14 | BuildRequires: Qt5Core-devel >= %{qtver} | |
15 | BuildRequires: Qt5Gui-devel | |
16 | BuildRequires: Qt5Network-devel >= 5.11.1 | |
17 | BuildRequires: Qt5OpenGL-devel | |
18 | BuildRequires: Qt5Qml-devel >= 5.11.1 | |
19 | BuildRequires: Qt5Quick-devel | |
20 | BuildRequires: Qt5Test-devel | |
21 | BuildRequires: Qt5Widgets-devel | |
22 | BuildRequires: cmake >= 2.8.12 | |
23 | BuildRequires: gettext-devel | |
24 | BuildRequires: glib2-devel | |
25 | BuildRequires: gobject-introspection-devel | |
26 | BuildRequires: gstreamer-devel >= 1.1.90 | |
f242360b WF |
27 | BuildRequires: kf5-extra-cmake-modules >= %{kframever} |
28 | BuildRequires: kf5-kconfig-devel >= %{kframever} | |
29 | BuildRequires: kf5-kdoctools-devel >= %{kframever} | |
30 | BuildRequires: kf5-ki18n-devel >= %{kframever} | |
31 | BuildRequires: kf5-kio-devel >= %{kframever} | |
32 | BuildRequires: kf5-purpose-devel >= %{kframever} | |
47709c30 | 33 | BuildRequires: ninja |
7bf854d5 WF |
34 | BuildRequires: qt5-build >= %{qtver} |
35 | BuildRequires: rpmbuild(macros) >= 1.164 | |
36 | BuildRequires: shared-mime-info | |
37 | BuildRequires: tar >= 1:1.22 | |
38 | BuildRequires: xz | |
39 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
40 | ||
41 | %description | |
42 | Kamoso is an application to take pictures and videos out of your | |
43 | webcam. | |
44 | ||
45 | %prep | |
46 | %setup -q -n %{kaname}-%{version} | |
47 | ||
48 | %build | |
49 | install -d build | |
50 | cd build | |
51 | %cmake \ | |
47709c30 | 52 | -G Ninja \ |
f242360b | 53 | -DHTML_INSTALL_DIR=%{_kdedocdir} \ |
7bf854d5 WF |
54 | -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \ |
55 | .. | |
47709c30 | 56 | %ninja_build |
7bf854d5 WF |
57 | |
58 | %install | |
59 | rm -rf $RPM_BUILD_ROOT | |
47709c30 | 60 | %ninja_install -C build |
7bf854d5 WF |
61 | |
62 | %find_lang %{kaname} --all-name --with-kde | |
63 | ||
64 | %clean | |
65 | rm -rf $RPM_BUILD_ROOT | |
66 | ||
67 | %files -f %{kaname}.lang | |
68 | %defattr(644,root,root,755) | |
69 | %attr(755,root,root) %{_bindir}/kamoso | |
70 | %attr(755,root,root) %{_libdir}/gstreamer-1.0/gstkamosoqt5videosink.so | |
71 | %{_iconsdir}/hicolor/16x16/apps/kamoso.png | |
72 | %{_iconsdir}/hicolor/22x22/apps/kamoso.png | |
73 | %{_iconsdir}/hicolor/32x32/apps/kamoso.png | |
74 | %{_iconsdir}/hicolor/48x48/apps/kamoso.png | |
75 | %{_iconsdir}/hicolor/64x64/apps/kamoso.png | |
76 | %{_iconsdir}/hicolor/scalable/actions/burst.svgz | |
7bf854d5 WF |
77 | %{_iconsdir}/hicolor/scalable/apps/kamoso.svgz |
78 | %{_datadir}/metainfo/org.kde.kamoso.appdata.xml | |
47709c30 | 79 | %{_desktopdir}/org.kde.kamoso.desktop |
f242360b WF |
80 | %{_datadir}/knotifications5/kamoso.notifyrc |
81 | %{_datadir}/sounds/kamoso-shutter.wav |