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

Loading…
Cancel
Save