File celluloid.spec of Package celluloid

#
# spec file for package celluloid
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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/
#


%define  _name  io.github.celluloid_player.Celluloid
Name:           celluloid
Version:        @SERVICE@
Release:        0
Summary:        A simple GTK+ frontend for mpv
License:        GPL-3.0-or-later
Group:          Productivity/Multimedia/Video/Players
URL:            https://github.com/celluloid-player/celluloid
Source:         %{name}-%{version}.tar.xz
BuildRequires:  hicolor-icon-theme
BuildRequires:  meson >= 0.40.0
BuildRequires:  ninja
BuildRequires:  pkgconfig
BuildRequires:  pkgconfig(epoxy)
BuildRequires:  pkgconfig(glib-2.0) >= 2.44
BuildRequires:  pkgconfig(gtk+-3.0) >= 3.22.23
BuildRequires:  pkgconfig(mpv) >= 1.101
Recommends:     %{name}-lang
Recommends:     youtube-dl

%description
Celluloid (formerly GNOME MPV) is a simple GTK+ frontend for mpv. Celluloid
interacts with mpv via the client API exported by libmpv, allowing access
to mpv's powerful playback capabilities.

%lang_package

%prep
%setup -q

%build
%meson
%meson_build

%install
%meson_install

%find_lang %{name}

%files
%doc AUTHORS README.md
%{_bindir}/%{name}
%{_datadir}/applications/%{_name}.desktop
%{_datadir}/dbus-1/services/%{_name}.service
%{_datadir}/icons/hicolor/*/apps/%{_name}*.svg
%{_datadir}/glib-2.0/schemas/io.github.*.gschema.xml
%{_datadir}/metainfo/%{_name}.appdata.xml
%{_mandir}/man?/%{name}.?%{ext_man}
%license COPYING

%files lang -f %{name}.lang

%changelog
openSUSE Build Service is sponsored by