From 5c6836525743067dc72995d8f5ab483754d8d9ff Mon Sep 17 00:00:00 2001 From: Nicolas Chauvet Date: Thu, 15 Dec 2016 15:45:06 +0100 Subject: [PATCH] Add nonfreeflavor RPM Conditional --- ffmpeg.spec | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/ffmpeg.spec b/ffmpeg.spec index 1dd0fe4..2622724 100644 --- a/ffmpeg.spec +++ b/ffmpeg.spec @@ -17,6 +17,23 @@ %global _without_nvenc 1 %endif +# flavor nonfree +%if 0%{?_with_nonfree:1} +%global flavor -nonfree +%global progs_suffix -nonfree +#global build_suffix -lgpl +%global _with_cuda 1 +%global _with_cuvid 1 +%global _with_libnpp 1 +%global _with_fdk_aac 1 +%global _without_cdio 1 +%global _without_frei0r 1 +%global _without_gpl 1 +%global _without_x264 1 +%global _without_x265 1 +%global _without_x11grab 1 +%endif + # extras flags %if 0%{!?_without_nvenc:1} %global nvenc_cflags -I%{_includedir}/nvenc