File kooha.spec of Package kooha

#
# spec file for package kooha
#
# Copyright (c) 2023 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via https://bugs.opensuse.org/
#


Name:           kooha
Version:        2.3.1
Release:        0
Summary:        Simple screen recorder
License:        GPL-3.0-or-later
URL:            https://github.com/SeaDve/Kooha
Source0:        %{url}/releases/download/v%{version}/%{name}-%{version}.tar.xz
BuildRequires:  meson
BuildRequires:  appstream-glib
BuildRequires:  cargo-packaging
BuildRequires:  desktop-file-utils
BuildRequires:  pkgconfig(gtk4)
BuildRequires:  pkgconfig(libadwaita-1)
BuildRequires:  pkgconfig(gstreamer-1.0)
BuildRequires:  pkgconfig(gstreamer-video-1.0)
BuildRequires:  pkgconfig(libpulse)
Requires:       typelib(Adw)
Recommends:     gstreamer-plugins-ugly
Recommends:     gstreamer-plugins-vaapi

%description
Kooha is a simple screen recorder built with GTK. It allows you to record
your screen and also audio from your microphone or desktop.

%lang_package

%prep
%autosetup 

%build
%meson
%meson_build

%install
%meson_install
rm -rf %{buildroot}%{_datadir}/locale/{zh_Hans,zh_Hant}
%find_lang %{name}

%files
%doc README.md
%license COPYING
%{_bindir}/kooha
%{_datadir}/applications/*.desktop
%{_datadir}/metainfo/*.metainfo.xml
%{_datadir}/glib-2.0/schemas/*.gschema.xml
%{_datadir}/icons/*/*/*/*.svg
%{_datadir}/dbus-1/services/*.service
%{_datadir}/kooha/

%files lang -f %{name}.lang

%changelog
openSUSE Build Service is sponsored by