]>
Commit | Line | Data |
---|---|---|
36d2aa89 WF |
1 | # |
2 | # Conditional build: | |
3 | %bcond_with tests # build with tests | |
8be1e770 | 4 | %define kdeappsver 22.08.1 |
128d0061 WF |
5 | %define kframever 5.94.0 |
6 | %define qtver 5.15.2 | |
7bf854d5 WF |
7 | %define kaname kamoso |
8 | Summary: Kamoso | |
9 | Name: ka5-%{kaname} | |
8be1e770 | 10 | Version: 22.08.1 |
92eb1bdb | 11 | Release: 2 |
7bf854d5 WF |
12 | License: GPL v2+/LGPL v2.1+ |
13 | Group: X11/Libraries | |
809d822d | 14 | Source0: https://download.kde.org/stable/release-service/%{kdeappsver}/src/%{kaname}-%{version}.tar.xz |
8be1e770 | 15 | # Source0-md5: 1b01e6c23845ca534aad6323a25c0d55 |
7bf854d5 WF |
16 | URL: http://www.kde.org/ |
17 | BuildRequires: Qt5Core-devel >= %{qtver} | |
18 | BuildRequires: Qt5Gui-devel | |
19 | BuildRequires: Qt5Network-devel >= 5.11.1 | |
20 | BuildRequires: Qt5OpenGL-devel | |
21 | BuildRequires: Qt5Qml-devel >= 5.11.1 | |
22 | BuildRequires: Qt5Quick-devel | |
23 | BuildRequires: Qt5Test-devel | |
24 | BuildRequires: Qt5Widgets-devel | |
25 | BuildRequires: cmake >= 2.8.12 | |
26 | BuildRequires: gettext-devel | |
27 | BuildRequires: glib2-devel | |
28 | BuildRequires: gobject-introspection-devel | |
29 | BuildRequires: gstreamer-devel >= 1.1.90 | |
83cc06e6 | 30 | BuildRequires: gstreamer-gl-devel >= 1.1.90 |
f242360b WF |
31 | BuildRequires: kf5-extra-cmake-modules >= %{kframever} |
32 | BuildRequires: kf5-kconfig-devel >= %{kframever} | |
33 | BuildRequires: kf5-kdoctools-devel >= %{kframever} | |
34 | BuildRequires: kf5-ki18n-devel >= %{kframever} | |
35 | BuildRequires: kf5-kio-devel >= %{kframever} | |
36 | BuildRequires: kf5-purpose-devel >= %{kframever} | |
47709c30 | 37 | BuildRequires: ninja |
7bf854d5 WF |
38 | BuildRequires: qt5-build >= %{qtver} |
39 | BuildRequires: rpmbuild(macros) >= 1.164 | |
40 | BuildRequires: shared-mime-info | |
41 | BuildRequires: tar >= 1:1.22 | |
42 | BuildRequires: xz | |
43 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
44 | ||
45 | %description | |
46 | Kamoso is an application to take pictures and videos out of your | |
47 | webcam. | |
48 | ||
b89c032c | 49 | %description -l pl.UTF-8 |
27698b90 WF |
50 | Kamoso jest aplikacją do robienia zdjęć i ściągania video z |
51 | Twojej kamery internetowej. | |
b89c032c | 52 | |
7bf854d5 WF |
53 | %prep |
54 | %setup -q -n %{kaname}-%{version} | |
55 | ||
56 | %build | |
57 | install -d build | |
58 | cd build | |
59 | %cmake \ | |
47709c30 | 60 | -G Ninja \ |
36d2aa89 | 61 | %{!?with_tests:-DBUILD_TESTING=OFF} \ |
f242360b | 62 | -DHTML_INSTALL_DIR=%{_kdedocdir} \ |
7bf854d5 WF |
63 | -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \ |
64 | .. | |
47709c30 | 65 | %ninja_build |
7bf854d5 | 66 | |
36d2aa89 WF |
67 | %if %{with tests} |
68 | ctest | |
69 | %endif | |
70 | ||
71 | ||
7bf854d5 WF |
72 | %install |
73 | rm -rf $RPM_BUILD_ROOT | |
47709c30 | 74 | %ninja_install -C build |
7bf854d5 | 75 | |
d4d3a7aa WF |
76 | rm -rf $RPM_BUILD_ROOT%{_kdedocdir}/zh_CN |
77 | ||
7bf854d5 WF |
78 | %find_lang %{kaname} --all-name --with-kde |
79 | ||
80 | %clean | |
81 | rm -rf $RPM_BUILD_ROOT | |
82 | ||
83 | %files -f %{kaname}.lang | |
84 | %defattr(644,root,root,755) | |
85 | %attr(755,root,root) %{_bindir}/kamoso | |
86 | %attr(755,root,root) %{_libdir}/gstreamer-1.0/gstkamosoqt5videosink.so | |
87 | %{_iconsdir}/hicolor/16x16/apps/kamoso.png | |
88 | %{_iconsdir}/hicolor/22x22/apps/kamoso.png | |
89 | %{_iconsdir}/hicolor/32x32/apps/kamoso.png | |
90 | %{_iconsdir}/hicolor/48x48/apps/kamoso.png | |
91 | %{_iconsdir}/hicolor/64x64/apps/kamoso.png | |
27698b90 | 92 | %{_iconsdir}/hicolor/128x128/apps/kamoso.png |
7bf854d5 | 93 | %{_iconsdir}/hicolor/scalable/actions/burst.svgz |
7bf854d5 WF |
94 | %{_iconsdir}/hicolor/scalable/apps/kamoso.svgz |
95 | %{_datadir}/metainfo/org.kde.kamoso.appdata.xml | |
47709c30 | 96 | %{_desktopdir}/org.kde.kamoso.desktop |
f242360b WF |
97 | %{_datadir}/knotifications5/kamoso.notifyrc |
98 | %{_datadir}/sounds/kamoso-shutter.wav |