forked from pool/lua-lua-mpris
Accepting request 601664 from home:jberry:branches:devel:languages:lua
- Only produce mpv-plugin-mpris during one flavor to avoid duplicate binary. OBS-URL: https://build.opensuse.org/request/show/601664 OBS-URL: https://build.opensuse.org/package/show/devel:languages:lua/lua-lua-mpris?expand=0&rev=10
This commit is contained in:
committed by
Git OBS Bridge
parent
a9870e0ce2
commit
bdc2e6bb70
@@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Apr 26 17:20:31 UTC 2018 - jberry@suse.com
|
||||
|
||||
- Only produce mpv-plugin-mpris during one flavor to avoid duplicate binary.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Oct 30 14:45:32 UTC 2017 - jmatejek@suse.com
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package lua-lua-mpris
|
||||
#
|
||||
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2018 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
|
||||
@@ -68,8 +68,10 @@ 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}" == "lua53"
|
||||
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
|
||||
@@ -81,11 +83,14 @@ fi
|
||||
%doc LICENSE
|
||||
%{lua_noarchdir}/lua-mpris
|
||||
|
||||
# Only produce during one flavor to avoid duplicate binary.
|
||||
%if "%{flavor}" == "lua53"
|
||||
%files -n mpv-plugin-mpris
|
||||
%defattr(-,root,root)
|
||||
%doc LICENSE
|
||||
%{_datadir}/mpv-plugin-mpris
|
||||
%ghost %config %{_sysconfdir}/mpv/scripts/mpris.lua
|
||||
%ghost %dir %{_sysconfdir}/mpv/scripts
|
||||
%endif
|
||||
|
||||
%changelog
|
||||
|
Reference in New Issue
Block a user