From 511d3326fab861b3d56aabdafc7a959ae46a12ae3093f0e2b7893efa72833974 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ismail=20D=C3=B6nmez?= Date: Mon, 15 Feb 2016 12:08:42 +0000 Subject: [PATCH] Accepting request 359435 from home:X0F:branches:multimedia Rewrite of request#359390 to make GPL3 features optional OBS-URL: https://build.opensuse.org/request/show/359435 OBS-URL: https://build.opensuse.org/package/show/multimedia:apps/mpv?expand=0&rev=36 --- mpv.spec | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/mpv.spec b/mpv.spec index 7f866f9..c820777 100644 --- a/mpv.spec +++ b/mpv.spec @@ -19,13 +19,20 @@ # +%bcond_with mpv_gpl3 +%if %{with mpv_gpl3} +%define _license GPL-3.0+ and BSD-3-Clause +%else +%define _license GPL-2.0+ and BSD-3-Clause +%endif + %define _waf_ver 1.8.12 %define lname libmpv1 Name: mpv Version: 0.15.0 Release: 0 Summary: Advanced general-purpose multimedia player -License: GPL-2.0+ and BSD-3-Clause +License: %{_license} Group: Productivity/Multimedia/Video/Players # waf is licensed with BSD-3-Clause Url: http://mpv.io/ @@ -124,6 +131,7 @@ of video file formats, audio and video codecs, and subtitle types. %package devel Summary: A library to link together with mpv player +License: %{_license} Group: Development/Libraries/C and C++ Requires: %{lname} = %{version} @@ -135,6 +143,7 @@ This package contains all the development files. %package -n %{lname} Summary: A library to link together with mpv player +License: %{_license} Group: System/Libraries %description -n %{lname} @@ -164,6 +173,10 @@ myopts="--disable-sdl1 --disable-sdl2" myopts+=" --disable-build-date" # Debug just adds -g and we do that over optflags anyway. myopts+=" --disable-debug" +# nnedi3 feature that's hidden behind GPL3-switch activates openSUSE lawyers +%if %{with mpv_gpl3} +myopts+=" --enable-gpl3" +%endif export CCFLAGS="%{optflags}" ./waf configure \ --prefix="%{_prefix}" \