10
0
forked from pool/lua-lua-mpris

Accepting request 765451 from home:lachs0r:branches:devel:languages:lua

- Do not build mpv-plugin-mpris as it is broken and to be replaced
  with https://github.com/hoyon/mpv-mpris
- Run spec-cleaner

OBS-URL: https://build.opensuse.org/request/show/765451
OBS-URL: https://build.opensuse.org/package/show/devel:languages:lua/lua-lua-mpris?expand=0&rev=23
This commit is contained in:
Tomáš Chvátal
2020-01-18 11:58:50 +00:00
committed by Git OBS Bridge
parent 47d86ea5e3
commit 2697452af7
2 changed files with 10 additions and 38 deletions

View File

@@ -1,3 +1,10 @@
-------------------------------------------------------------------
Sat Jan 18 10:38:28 UTC 2020 - Martin Herkt <9+suse@cirno.systems>
- Do not build mpv-plugin-mpris as it is broken and to be replaced
with https://github.com/hoyon/mpv-mpris
- Run spec-cleaner
-------------------------------------------------------------------
Fri Oct 25 16:54:12 UTC 2019 - alarrosa@suse.com

View File

@@ -1,7 +1,7 @@
#
# spec file for package lua-lua-mpris
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2020 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -18,16 +18,16 @@
%define flavor @BUILD_FLAVOR@
%define mod_name lua-mpris
%define mpv_lua_flavor lua51
Version: 0.0+git20191025.2b12542
Release: 0
Summary: MPRIS api for lua
License: MIT
Group: Development/Libraries/Other
Url: https://github.com/antlarr/lua-mpris/
URL: https://github.com/antlarr/lua-mpris/
Source: lua-mpris-%{version}.tar.xz
BuildRequires: %{flavor}-devel
BuildRequires: %{flavor}-lua-dbus
BuildRequires: pkgconfig
BuildRequires: pkgconfig(dbus-1)
Requires: %{flavor}
Requires: %{flavor}-lua-dbus
@@ -45,21 +45,6 @@ Name: %{flavor}-%{mod_name}
%description
MPRIS api for lua
%package -n mpv-plugin-mpris
Summary: MPV plugin to add MPRIS support
Group: Productivity/Multimedia/Video/Players
Requires: %{mpv_lua_flavor}-lua-mpris
Requires: mpv
Requires(post): mpv
Supplements: mpv
%description -n mpv-plugin-mpris
mpv is a movie player based on MPlayer and mplayer2. It supports a wide variety
of video file formats, audio and video codecs, and subtitle types.
This package installs a lua plugin for mpv to add mpris support through a
dbus interface.
%prep
%setup -q -n lua-mpris-%{version}
@@ -68,29 +53,9 @@ dbus interface.
%install
mkdir -p %{buildroot}%{lua_noarchdir}/lua-mpris
cp -Ra applet.lua client.lua init.lua %{buildroot}%{lua_noarchdir}/lua-mpris/
%if "%{flavor}" == "lua51"
mkdir -p %{buildroot}%{_datadir}/mpv-plugin-mpris
cp mpv.lua %{buildroot}%{_datadir}/mpv-plugin-mpris/
%endif
%post -n mpv-plugin-mpris
if [ "$1" = 1 ] ; then
mkdir -p %{_sysconfdir}/mpv/scripts/
ln -s %{_datadir}/mpv-plugin-mpris/mpv.lua %{_sysconfdir}/mpv/scripts/mpris.lua
fi
%files
%license LICENSE
%{lua_noarchdir}/lua-mpris
# Only produce during one flavor to avoid duplicate binary.
%if "%{flavor}" == "lua51"
%files -n mpv-plugin-mpris
%defattr(-,root,root)
%license LICENSE
%{_datadir}/mpv-plugin-mpris
%ghost %config %{_sysconfdir}/mpv/scripts/mpris.lua
%ghost %dir %{_sysconfdir}/mpv/scripts
%endif
%changelog