From efbf2d7bcac45a7d823998dc5138afcbab81fe48 Mon Sep 17 00:00:00 2001 From: Nicolas Chauvet Date: Sat, 10 Nov 2018 13:36:24 +0100 Subject: [PATCH] Apply path conditionally --- ffmpeg.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ffmpeg.spec b/ffmpeg.spec index 2de14bb..2769497 100644 --- a/ffmpeg.spec +++ b/ffmpeg.spec @@ -323,7 +323,7 @@ mkdir -p _doc/examples cp -pr doc/examples/{*.c,Makefile,README} _doc/examples/ %build -export PATH=${PATH}:%{_cuda_bindir} +%{?_with_cuda:export PATH=${PATH}:%{_cuda_bindir}} %{ff_configure}\ --shlibdir=%{_libdir} \ %if 0%{?_without_tools:1}