commit 6860f3604fbf92da0c7b87e2149c610795f1ee14
Author: Dominik 'Rathann' Mierzejewski <dominik(a)greysector.net>
Date: Tue Jan 3 01:45:16 2017 +0100
add proper dependencies for CUDA
Requires nVidia repo to be enabled:
https://developer.nvidia.com/cuda-downloads
ffmpeg.spec | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/ffmpeg.spec b/ffmpeg.spec
index 2b47615..61a4105 100644
--- a/ffmpeg.spec
+++ b/ffmpeg.spec
@@ -40,8 +40,7 @@
%global nvenc_cflags -I%{_includedir}/nvenc
%endif
%if 0%{?_with_cuda}
-%{!?_cuda_includedir:%global _cuda_includedir $(pkg-config --cflags cuda-8.0)}
-%global cuda_cflags -I%{_cuda_includedir}
+%global cuda_cflags $(pkg-config --cflags cuda-8.0)
%global cuda_ldflags -L%{_libdir}/nvidia
%endif
@@ -67,6 +66,7 @@ Source0: ffmpeg-%{?branch}%{date}.tar.bz2
Source0:
http://ffmpeg.org/releases/ffmpeg-%{version}.tar.xz
%endif
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
+%{?_with_cuda:BuildRequires: cuda-driver-dev-8-0 cuda-misc-headers-8-0
cuda-drivers-devel%{_isa}}
BuildRequires: bzip2-devel
%{?_with_faac:BuildRequires: faac-devel}
%{?_with_fdk_aac:BuildRequires: fdk-aac-devel}