diff --git a/pkgs/rpm/clapper.spec b/pkgs/rpm/clapper.spec index c3915a68..dbbf0f18 100644 --- a/pkgs/rpm/clapper.spec +++ b/pkgs/rpm/clapper.spec @@ -2,6 +2,7 @@ # spec file for package clapper # # Copyright (C) 2020 sp1rit +# Copyright (C) 2020 Rafostar # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -17,32 +18,59 @@ # along with this program. If not, see . -Name: clapper -Version: 0.0.0 -Release: 0 -Summary: A GNOME media player -License: GPL-3.0 -URL: https://github.com/Rafostar/clapper -BuildArchitectures: noarch -BuildRoot: %{_builddir}/%{name}-%{version}-build -BuildRequires: meson gjs -Requires: gjs -Source0: _service +%global appname com.github.rafostar.Clapper +%global gst_version 1.16.0 +%global gtk3_version 3.19.4 + +Name: clapper +Version: 0.0.0 +Release: 1 +Summary: Simple and modern GNOME media player + +License: GPL-3.0 +URL: https://github.com/Rafostar/clapper +BuildArch: noarch +BuildRoot: %{_builddir}/%{name}-%{version}-build +Source0: _service + +BuildRequires: meson +BuildRequires: gjs + +Requires: gjs +Requires: gtk3 >= %{gtk3_version} +Requires: hicolor-icon-theme + %if 0%{?suse_version} -Requires: gstreamer gstreamer-plugins-base gstreamer-plugins-good-gtk libgstplayer-1_0-0 -Recommends: gstreamer-plugins-vaapi gstreamer-plugins-libav +Requires: gstreamer +Requires: gstreamer-plugins-base +Requires: gstreamer-plugins-good-gtk +Requires: gstreamer-plugins-bad +Requires: libgstplayer-1_0-0 >= %{gst_version} + +Recommends: gstreamer-plugins-libav # Popular video decoders + +Suggests: gstreamer-plugins-ugly # CD Playback +Suggests: gstreamer-plugins-vaapi # Intel/AMD video acceleration %endif + %if 0%{?fedora} || 0%{?rhel_version} || 0%{?centos_version} -BuildRequires: glibc-all-langpacks -Requires: gstreamer1 gstreamer1-plugins-base gstreamer1-plugins-good-gtk gstreamer1-plugins-bad-free -Recommends: gstreamer1-vaapi +BuildRequires: glibc-all-langpacks +Requires: gstreamer1 +Requires: gstreamer1-plugins-base +Requires: gstreamer1-plugins-good-gtk +Requires: gstreamer1-plugins-bad-free >= %{gst_version} # Contains GstPlayer lib + +Recommends: gstreamer1-plugins-bad-free-extras # ASS subtitles (assrender) + +Suggests: gstreamer1-plugins-ugly-free # CD Playback +Suggests: gstreamer1-vaapi # Intel/AMD video acceleration %endif %description A GNOME media player built using GJS and powered by GStreamer with OpenGL rendering. Can also be used as a pre-made widget for GTK apps. %prep -%setup -q -n %_sourcedir/%name-%version -T -D +%setup -q -n %{_sourcedir}/%{name}-%{version} -T -D %build %meson @@ -50,15 +78,20 @@ A GNOME media player built using GJS and powered by GStreamer with OpenGL render %install %meson_install -ln -s %{_bindir}/com.github.rafostar.Clapper %{buildroot}/%{_bindir}/clapper +ln -s %{_bindir}/%{appname} %{buildroot}/%{_bindir}/%{name} + +%check +desktop-file-validate %{buildroot}%{_datadir}/applications/*.desktop %files %license COPYING %doc README.md -%_bindir/com.github.rafostar.Clapper -%_bindir/clapper -%_datadir/com.github.rafostar.Clapper/ -%dir %_datadir/gjs-1.0/ -%_datadir/gjs-1.0/clapper.js +%{_bindir}/%{appname} +%{_bindir}/%{name} +%{_datadir}/%{appname}/ +%{_datadir}/gjs-1.0/*.js +%{_datadir}/applications/*.desktop +%{_datadir}/icons/hicolor/*/apps/*.svg +%{_datadir}/mime/packages/%{appname}.xml %changelog