From bdc2e6bb709ee4d4e001f5916b3af97cf5c083a7ec04cd3ad656674e082cbb5c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Thu, 26 Apr 2018 20:16:57 +0000 Subject: [PATCH] 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 --- lua-lua-mpris.changes | 5 +++++ lua-lua-mpris.spec | 7 ++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/lua-lua-mpris.changes b/lua-lua-mpris.changes index ad2d236..8ca0a20 100644 --- a/lua-lua-mpris.changes +++ b/lua-lua-mpris.changes @@ -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 diff --git a/lua-lua-mpris.spec b/lua-lua-mpris.spec index 33beec8..9c29196 100644 --- a/lua-lua-mpris.spec +++ b/lua-lua-mpris.spec @@ -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