make license selection more flexible

slightly adapted from the original patch by Nicolas.

Signed-off-by: Dominik 'Rathann' Mierzejewski <dominik@greysector.net>
el8
Nicolas Chauvet 8 years ago committed by Dominik 'Rathann' Mierzejewski
parent 06e918dc86
commit cc81169190

@ -17,15 +17,21 @@
%global _without_nvenc 1
%endif
%if 0%{?_without_gpl}
%global lesser L
%endif
%if 0%{?_with_amr} || 0%{?_with_gmp} || 0%{?_with_smb}
%global ffmpeg_license %{?lesser}GPLv3+
%else
%global ffmpeg_license %{?lesser}GPLv2+
%endif
Summary: Digital VCR and streaming server
Name: ffmpeg
Version: 3.2.2
Release: 1%{?date}%{?date:git}%{?rel}%{?dist}
%if 0%{?_with_amr} || 0%{?_with_gmp}
License: GPLv3+
%else
License: GPLv2+
%endif
License: %{ffmpeg_license}
URL: http://ffmpeg.org/
%if 0%{?date}
Source0: %{name}-%{?branch}%{date}.tar.bz2
@ -221,7 +227,7 @@ This package contains development files for %{name}
--enable-pthreads \\\
--disable-static \\\
--enable-shared \\\
--enable-gpl \\\
%{!?_without_gpl:--enable-gpl} \\\
--disable-debug \\\
--disable-stripping

Loading…
Cancel
Save