File tsukimi.spec of Package tsukimi
#
# spec file for package tsukimi
#
# Copyright (c) 2024 mantarimay
#
# 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/
#
%bcond_without test
Name: tsukimi
Version: 0
Release: 0
Summary: A simple third-party Emby client
License: GPL-3.0-or-later
URL: https://github.com/tsukinaha/tsukimi
Source0: %{name}-%{version}.tar.zst
Source1: vendor.tar.zst
BuildRequires: cargo-packaging
BuildRequires: gtk4-devel
BuildRequires: meson
BuildRequires: openssl-devel
BuildRequires: libadwaita-devel
BuildRequires: gstreamer-devel
BuildRequires: libepoxy-devel
BuildRequires: mpv-devel
BuildRequires: dbus-1-devel
BuildRequires: pkgconfig(gstreamer-audio-1.0)
BuildRequires: pkgconfig(gstreamer-play-1.0)
BuildRequires: desktop-file-utils
BuildRequires: appstream-glib
%description
Tsukimi is a simple third-party Emby client written in GTK4-RS, uses MPV
as the video player, and GStreamer as the music player.
%lang_package
%prep
%autosetup -a1 -p1
%build
%meson
%meson_build
%install
%meson_install
install -Dm0644 resources/icons/tsukimi.png -t \
%{buildroot}%{_datadir}/icons/hicolor/256x256/apps/
%find_lang %{name}
%if %{with test}
%check
%meson_test
%endif
%files
%license LICEN*
%doc README*
%{_bindir}/%{name}
%{_datadir}/applications/*.desktop
%{_datadir}/glib-2.0/schemas/*.gschema.xml
%{_datadir}/icons/hicolor/256x256/apps/
%exclude %{_datadir}/icons/%{name}.png
%{_datadir}/metainfo/*.metainfo.xml
%{_datadir}/%{name}/
%files lang -f %{name}.lang
%exclude %{_datadir}/locale/zh_Han{s,t}
%changelog