mirror of
https://github.com/Rafostar/clapper.git
synced 2025-08-30 07:42:23 +02:00
Update rpm spec (#6)
* Update RPM spec file * Add required deps versions to RPM spec
This commit is contained in:
@@ -2,6 +2,7 @@
|
|||||||
# spec file for package clapper
|
# spec file for package clapper
|
||||||
#
|
#
|
||||||
# Copyright (C) 2020 sp1rit
|
# Copyright (C) 2020 sp1rit
|
||||||
|
# Copyright (C) 2020 Rafostar
|
||||||
#
|
#
|
||||||
# This program is free software: you can redistribute it and/or modify
|
# 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
|
# it under the terms of the GNU General Public License as published by
|
||||||
@@ -17,32 +18,59 @@
|
|||||||
# along with this program. If not, see <https://www.gnu.org/licenses/>.
|
# along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
|
||||||
Name: clapper
|
%global appname com.github.rafostar.Clapper
|
||||||
Version: 0.0.0
|
%global gst_version 1.16.0
|
||||||
Release: 0
|
%global gtk3_version 3.19.4
|
||||||
Summary: A GNOME media player
|
|
||||||
License: GPL-3.0
|
Name: clapper
|
||||||
URL: https://github.com/Rafostar/clapper
|
Version: 0.0.0
|
||||||
BuildArchitectures: noarch
|
Release: 1
|
||||||
BuildRoot: %{_builddir}/%{name}-%{version}-build
|
Summary: Simple and modern GNOME media player
|
||||||
BuildRequires: meson gjs
|
|
||||||
Requires: gjs
|
License: GPL-3.0
|
||||||
Source0: _service
|
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}
|
%if 0%{?suse_version}
|
||||||
Requires: gstreamer gstreamer-plugins-base gstreamer-plugins-good-gtk libgstplayer-1_0-0
|
Requires: gstreamer
|
||||||
Recommends: gstreamer-plugins-vaapi gstreamer-plugins-libav
|
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
|
%endif
|
||||||
|
|
||||||
%if 0%{?fedora} || 0%{?rhel_version} || 0%{?centos_version}
|
%if 0%{?fedora} || 0%{?rhel_version} || 0%{?centos_version}
|
||||||
BuildRequires: glibc-all-langpacks
|
BuildRequires: glibc-all-langpacks
|
||||||
Requires: gstreamer1 gstreamer1-plugins-base gstreamer1-plugins-good-gtk gstreamer1-plugins-bad-free
|
Requires: gstreamer1
|
||||||
Recommends: gstreamer1-vaapi
|
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
|
%endif
|
||||||
|
|
||||||
%description
|
%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.
|
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
|
%prep
|
||||||
%setup -q -n %_sourcedir/%name-%version -T -D
|
%setup -q -n %{_sourcedir}/%{name}-%{version} -T -D
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%meson
|
%meson
|
||||||
@@ -50,15 +78,20 @@ A GNOME media player built using GJS and powered by GStreamer with OpenGL render
|
|||||||
|
|
||||||
%install
|
%install
|
||||||
%meson_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
|
%files
|
||||||
%license COPYING
|
%license COPYING
|
||||||
%doc README.md
|
%doc README.md
|
||||||
%_bindir/com.github.rafostar.Clapper
|
%{_bindir}/%{appname}
|
||||||
%_bindir/clapper
|
%{_bindir}/%{name}
|
||||||
%_datadir/com.github.rafostar.Clapper/
|
%{_datadir}/%{appname}/
|
||||||
%dir %_datadir/gjs-1.0/
|
%{_datadir}/gjs-1.0/*.js
|
||||||
%_datadir/gjs-1.0/clapper.js
|
%{_datadir}/applications/*.desktop
|
||||||
|
%{_datadir}/icons/hicolor/*/apps/*.svg
|
||||||
|
%{_datadir}/mime/packages/%{appname}.xml
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Reference in New Issue
Block a user