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
This commit is contained in:
parent
8e429f4b7c
commit
511d3326fa
15
mpv.spec
15
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 _waf_ver 1.8.12
|
||||||
%define lname libmpv1
|
%define lname libmpv1
|
||||||
Name: mpv
|
Name: mpv
|
||||||
Version: 0.15.0
|
Version: 0.15.0
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Advanced general-purpose multimedia player
|
Summary: Advanced general-purpose multimedia player
|
||||||
License: GPL-2.0+ and BSD-3-Clause
|
License: %{_license}
|
||||||
Group: Productivity/Multimedia/Video/Players
|
Group: Productivity/Multimedia/Video/Players
|
||||||
# waf is licensed with BSD-3-Clause
|
# waf is licensed with BSD-3-Clause
|
||||||
Url: http://mpv.io/
|
Url: http://mpv.io/
|
||||||
@ -124,6 +131,7 @@ of video file formats, audio and video codecs, and subtitle types.
|
|||||||
|
|
||||||
%package devel
|
%package devel
|
||||||
Summary: A library to link together with mpv player
|
Summary: A library to link together with mpv player
|
||||||
|
License: %{_license}
|
||||||
Group: Development/Libraries/C and C++
|
Group: Development/Libraries/C and C++
|
||||||
Requires: %{lname} = %{version}
|
Requires: %{lname} = %{version}
|
||||||
|
|
||||||
@ -135,6 +143,7 @@ This package contains all the development files.
|
|||||||
|
|
||||||
%package -n %{lname}
|
%package -n %{lname}
|
||||||
Summary: A library to link together with mpv player
|
Summary: A library to link together with mpv player
|
||||||
|
License: %{_license}
|
||||||
Group: System/Libraries
|
Group: System/Libraries
|
||||||
|
|
||||||
%description -n %{lname}
|
%description -n %{lname}
|
||||||
@ -164,6 +173,10 @@ myopts="--disable-sdl1 --disable-sdl2"
|
|||||||
myopts+=" --disable-build-date"
|
myopts+=" --disable-build-date"
|
||||||
# Debug just adds -g and we do that over optflags anyway.
|
# Debug just adds -g and we do that over optflags anyway.
|
||||||
myopts+=" --disable-debug"
|
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}"
|
export CCFLAGS="%{optflags}"
|
||||||
./waf configure \
|
./waf configure \
|
||||||
--prefix="%{_prefix}" \
|
--prefix="%{_prefix}" \
|
||||||
|
Loading…
Reference in New Issue
Block a user