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}" \