# uncomment to enable bootstrap mode #global bootstrap 1 %if !0%{?bootstrap} %global tests 1 %endif Name: kamoso Summary: Application for taking pictures and videos from a webcam Version: 22.08.0 Release: 1 License: GPLv2+ URL: https://userbase.kde.org/Kamoso %global revision %(echo %{version} | cut -d. -f3) %global majmin_ver %(echo %{version} | cut -d. -f1,2) %if %{revision} >= 50 %global stable unstable %else %global stable stable %endif Source0: http://download.kde.org/%{stable}/release-service/%{version}/src/%{name}-%{version}.tar.xz BuildRequires: boost-devel BuildRequires: desktop-file-utils BuildRequires: extra-cmake-modules BuildRequires: gettext BuildRequires: kf5-rpm-macros BuildRequires: kf5-kconfig-devel BuildRequires: kf5-kcoreaddons-devel BuildRequires: kf5-kdeclarative-devel BuildRequires: kf5-kdoctools-devel BuildRequires: kf5-ki18n-devel BuildRequires: kf5-kio-devel BuildRequires: kf5-kwidgetsaddons-devel BuildRequires: kf5-solid-devel BuildRequires: cmake(KF5Config) BuildRequires: cmake(KF5DocTools) BuildRequires: cmake(KF5KIO) BuildRequires: cmake(KF5I18n) BuildRequires: cmake(KF5Purpose) BuildRequires: cmake(KF5Notifications) BuildRequires: cmake(KF5Kirigami2) BuildRequires: libappstream-glib BuildRequires: pkgconfig(libaccounts-glib) BuildRequires: pkgconfig(libudev) BuildRequires: pkgconfig(Qt5Network) BuildRequires: pkgconfig(Qt5Qml) BuildRequires: pkgconfig(gstreamer-1.0) BuildRequires: pkgconfig(gstreamer-base-1.0) BuildRequires: pkgconfig(gstreamer-video-1.0) BuildRequires: pkgconfig(Qt5Quick) %if 0%{?tests} BuildRequires: time BuildRequires: xorg-x11-server-Xvfb %endif BuildRequires: make Requires: kf5-purpose%{?_isa} >= 1.1 Requires: qt5-qtdeclarative%{?_isa} Requires: qt5-qtquickcontrols%{?_isa} Requires: qt5-qtgraphicaleffects%{?_isa} %description Kamoso is an application to take pictures and videos out of your webcam. %prep %autosetup -p1 %build mkdir %{_target_platform} pushd %{_target_platform} %{cmake_kf5} .. \ -DBUILD_TESTING:BOOL=%{?tests:ON}%{!?tests:OFF} -Wno-dev popd %make_build -C %{_target_platform} %install make install/fast DESTDIR=%{buildroot} -C %{_target_platform} %find_lang kamoso --with-html %check appstream-util validate-relax --nonet %{buildroot}%{_kf5_metainfodir}/org.kde.kamoso.appdata.xml desktop-file-validate %{buildroot}%{_kf5_datadir}/applications/org.kde.kamoso.desktop %if 0%{?tests} export CTEST_OUTPUT_ON_FAILURE=1 xvfb-run -a \ time \ make test ARGS="--output-on-failure --timeout 300" -C %{_target_platform} ||: %endif %files -f kamoso.lang %doc AUTHORS %license LICENSES/* %{_kf5_metainfodir}/org.kde.kamoso.appdata.xml %{_kf5_datadir}/applications/org.kde.kamoso.desktop %{_kf5_bindir}/kamoso %{_kf5_datadir}/icons/hicolor/*/apps/kamoso.* %{_kf5_datadir}/icons/hicolor/*/actions/* %{_libdir}/gstreamer-1.0/gstkamosoqt5videosink.so %{_kf5_datadir}/knotifications5/%{name}* %{_kf5_datadir}/sounds/%{name}* %changelog * Fri Dec 16 2022 misaka00251 - 22.08.0-1 - 22.08.0