forked from pool/lua-lua-mpris
Accepting request 517857 from home:alarrosa:branches:devel:languages:lua
New package lua-lua-mpris which also generates a mpv-plugin-mpris package which adds mpris support to mpv OBS-URL: https://build.opensuse.org/request/show/517857 OBS-URL: https://build.opensuse.org/package/show/devel:languages:lua/lua-lua-mpris?expand=0&rev=1
This commit is contained in:
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
## Default LFS
|
||||
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||
*.png filter=lfs diff=lfs merge=lfs -text
|
||||
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||
*.zst filter=lfs diff=lfs merge=lfs -text
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.osc
|
5
_multibuild
Normal file
5
_multibuild
Normal file
@@ -0,0 +1,5 @@
|
||||
<multibuild>
|
||||
<package>lua51</package>
|
||||
<package>lua52</package>
|
||||
<package>lua53</package>
|
||||
</multibuild>
|
16
_service
Normal file
16
_service
Normal file
@@ -0,0 +1,16 @@
|
||||
<services>
|
||||
<service name="tar_scm" mode="disabled">
|
||||
<param name="url">https://github.com/antlarr/lua-mpris</param>
|
||||
<param name="filename">lua-mpris</param>
|
||||
<param name="versionformat">0.0+git%cd.%h</param>
|
||||
<param name="scm">git</param>
|
||||
<param name="revision">212606758eb243d54416f254b09357fc89a10235</param>
|
||||
<param name="changesgenerate">enable</param>
|
||||
</service>
|
||||
<service name="recompress" mode="disabled">
|
||||
<param name="compression">xz</param>
|
||||
<param name="file">*.tar</param>
|
||||
</service>
|
||||
<service name="set_version" mode="disabled" />
|
||||
</services>
|
||||
|
4
_servicedata
Normal file
4
_servicedata
Normal file
@@ -0,0 +1,4 @@
|
||||
<servicedata>
|
||||
<service name="tar_scm">
|
||||
<param name="url">https://github.com/antlarr/lua-mpris</param>
|
||||
<param name="changesrevision">212606758eb243d54416f254b09357fc89a10235</param></service></servicedata>
|
10
lua-lua-mpris.changes
Normal file
10
lua-lua-mpris.changes
Normal file
@@ -0,0 +1,10 @@
|
||||
-------------------------------------------------------------------
|
||||
Sun Aug 20 17:24:27 UTC 2017 - opensuse-packaging@opensuse.org
|
||||
|
||||
- Update to version 0.0+git20170820.2126067:
|
||||
* Initialize the mpris:artUrl and xesam:url variables for all files
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Aug 18 15:31:07 UTC 2017 - alarrosa@suse.com
|
||||
|
||||
- Initial release
|
88
lua-lua-mpris.spec
Normal file
88
lua-lua-mpris.spec
Normal file
@@ -0,0 +1,88 @@
|
||||
#
|
||||
# spec file for package lua-lua-mpris
|
||||
#
|
||||
# Copyright (c) 2017 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 http://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
%define flavor @BUILD_FLAVOR@
|
||||
%define mod_name lua-mpris
|
||||
%define mpv_lua_flavor lua51
|
||||
Version: 0.0+git20170820.2126067
|
||||
Release: 0
|
||||
Summary: MPRIS api for lua
|
||||
License: MIT
|
||||
Group: Development/Libraries/Other
|
||||
Url: https://github.com/antlarr/lua-mpris/
|
||||
Source: lua-mpris-%{version}.tar.xz
|
||||
BuildRequires: pkgconfig(dbus-1)
|
||||
BuildRequires: %{flavor}-lua-dbus
|
||||
BuildRequires: %{flavor}-devel
|
||||
Requires: %{flavor}
|
||||
Requires: %{flavor}-lua-dbus
|
||||
%if "%{flavor}" == "lua53"
|
||||
Provides: lua-%{mod_name} = %{version}
|
||||
Obsoletes: lua-%{mod_name} < %{version}
|
||||
%endif
|
||||
%if "%{flavor}" == ""
|
||||
Name: lua-%{mod_name}
|
||||
ExclusiveArch: do_not_build
|
||||
%else
|
||||
Name: %{flavor}-%{mod_name}
|
||||
%endif
|
||||
|
||||
%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
|
||||
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}
|
||||
|
||||
%build
|
||||
|
||||
%install
|
||||
mkdir -p %{buildroot}%{lua_noarchdir}/lua-mpris
|
||||
cp -Ra applet.lua client.lua init.lua %{buildroot}%{lua_noarchdir}/lua-mpris/
|
||||
mkdir -p %{buildroot}%{_datadir}/mpv-plugin-mpris
|
||||
cp mpv.lua %{buildroot}%{_datadir}/mpv-plugin-mpris/
|
||||
|
||||
%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
|
||||
%{lua_noarchdir}/lua-mpris
|
||||
|
||||
%files -n mpv-plugin-mpris
|
||||
%{_datadir}/mpv-plugin-mpris
|
||||
%ghost %config %{_sysconfdir}/mpv/scripts/mpris.lua
|
||||
%ghost %dir %{_sysconfdir}/mpv
|
||||
%ghost %dir %{_sysconfdir}/mpv/scripts
|
||||
|
||||
%changelog
|
3
lua-mpris-0.0+git20170820.2126067.tar.xz
Normal file
3
lua-mpris-0.0+git20170820.2126067.tar.xz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:1ba77b504f20ef1928fa25d272f56c194abc45f80969ba2703a9b596eb4c64cf
|
||||
size 6136
|
Reference in New Issue
Block a user