mpv 0.32.0-2 (i686;armv7hnl) 2020-11495
0

Status rejected
Submitter nobodydead [@T] gmail.com
Platform rolling
Repository main
URL https://abf.openmandriva.org/build_lists/758761
Packages
libmpv1-0.32.0-2.i686.binary
libmpv-devel-0.32.0-2.i686.binary
mpv-0.32.0-2.i686.binary
mpv-0.32.0-2.i686.source
libmpv1-0.32.0-2.armv7hnl.binary
libmpv-devel-0.32.0-2.armv7hnl.binary
mpv-0.32.0-2.armv7hnl.source
mpv-0.32.0-2.armv7hnl.binary
Build Date 2020-04-18 15:25:32 +0000 UTC
Last Updated 2020-04-21 01:44:18.368946422 +0000 UTC
$ git show --format=fuller --patch-with-stat --summary 1e793284c3f0688b123b3237e83bca71b171af90

commit 1e793284c3f0688b123b3237e83bca71b171af90
Author:     Bernhard Rosenkränzer <bero@lindev.ch>
AuthorDate: Sat Apr 18 17:09:39 2020 +0200
Commit:     Bernhard Rosenkränzer <bero@lindev.ch>
CommitDate: Sat Apr 18 17:16:45 2020 +0200

    Clean up the samba mess
---
 mpv.spec | 19 +++++++++++++------
 1 file changed, 13 insertions(+), 6 deletions(-)

diff --git a/mpv.spec b/mpv.spec
index f5727f5..d2d305e 100644
--- a/mpv.spec
+++ b/mpv.spec
@@ -9,9 +9,15 @@
 
 %define date 20200126
 
+# Is this actually useful, given most people who use samba mount
+# the shares anyway?
+# Let's enable this (and the slew of dependencies it pulls) only
+# if and when we find a real use case...
+%bcond_with samba
+
 Name:		mpv
 Version:	0.32.0
-Release:	1
+Release:	2
 Summary:	Movie player playing most video formats and DVDs
 Group:		Video
 License:	GPLv2+
@@ -71,9 +77,9 @@ BuildRequires:	pkgconfig(libva-x11)
 BuildRequires:	pkgconfig(openal)
 BuildRequires:	pkgconfig(portaudio-2.0)
 BuildRequires:	pkgconfig(sdl2)
-# Samba in OMV is not available on i686 and ARMv7 (hard to fix build issue), so disable it for this arch (angry)
-%ifnarch %{ix86} %{arm}
+%if %{with samba}
 BuildRequires:	pkgconfig(smbclient)
+Requires:	samba-libs
 %endif
 BuildRequires:	pkgconfig(vdpau)
 BuildRequires:	pkgconfig(xext)
@@ -209,10 +215,10 @@ python ./waf configure \
 	--enable-gl-wayland \
 	--enable-egl-x11 \
 	--enable-vaapi \
-%ifarch %{ix86} %{arm}
-	--disable-libsmbclient \
-%else
+%if %{with samba}
 	--enable-libsmbclient \
+%else
+	--disable-libsmbclient \
 %endif
 	--enable-libmpv-shared
 
@@ -226,3 +232,4 @@ cp etc/encoding-profiles.conf %{buildroot}%{_sysconfdir}/%{name}/
 cp %{SOURCE2} %{buildroot}%{_sysconfdir}/%{name}/mpv.conf
 
 desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop
+echo 'NoDisplay=true' >>%{buildroot}%{_datadir}/applications/%{name}.desktop
Not Available

benbullard79 [@T] cox.netNo Comment.1679d 19hrs