commit cc81169190a2bb4911f4d900f4bad269ee9becae
Author: Nicolas Chauvet <kwizart(a)gmail.com>
Date: Sun Dec 18 00:48:13 2016 +0100
make license selection more flexible
slightly adapted from the original patch by Nicolas.
Signed-off-by: Dominik 'Rathann' Mierzejewski <dominik(a)greysector.net>
ffmpeg.spec | 18 ++++++++++++------
1 file changed, 12 insertions(+), 6 deletions(-)
---
diff --git a/ffmpeg.spec b/ffmpeg.spec
index e41ab90..f166f92 100644
--- a/ffmpeg.spec
+++ b/ffmpeg.spec
@@ -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