commit e1ef34c8f104274ad47e5b2062f94668deabc5f7
Author: leigh123linux <leigh123linux(a)googlemail.com>
Date: Tue Dec 26 12:29:18 2017 +0000
Fix up cuda and libnpp
ffmpeg.spec | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/ffmpeg.spec b/ffmpeg.spec
index adbcea7..68c4bcc 100644
--- a/ffmpeg.spec
+++ b/ffmpeg.spec
@@ -53,11 +53,11 @@
%endif
%global _cuda_rpm_version %(echo %{_cuda_version} | sed -e 's/\\./-/')
%if 0%{?_with_cuda:1}
-%global cuda_cflags $(pkg-config --cflags cuda-%{cuda_version})
+%global cuda_cflags $(pkg-config --cflags cuda-%{_cuda_version})
%global cuda_ldflags -L%{_libdir}/nvidia
%endif
-%if 0%{?_with_libnpp}
+%if 0%{?_with_libnpp:1}
%global libnpp_cflags $(pkg-config --cflags nppi-%{_cuda_version} nppc-%{_cuda_version})
%global libnpp_ldlags $(pkg-config --libs-only-L nppi-%{_cuda_version}
nppc-%{_cuda_version})
%endif
@@ -87,7 +87,7 @@ Source0:
http://ffmpeg.org/releases/ffmpeg-%{version}.tar.xz
Patch0: 0001-arm-Fix-SIGBUS-on-ARM-when-compiled-with-binutils-2..patch
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
%{?_with_cuda:BuildRequires: cuda-driver-dev-%{_cuda_rpm_version}
cuda-misc-headers-%{_cuda_rpm_version} cuda-drivers-devel%{_isa}}
-%{?_with_libnpp:BuildRequires: cuda-cudart-dev-%{_cuda_rpm_version}
cuda-misc-headers-%{_cuda_rpm_version} cuda-npp-dev-%{_cuda_rpm_version}}
+%{?_with_libnpp:BuildRequires: cuda-cudart-dev-%{_cuda_rpm_version}
cuda-nvcc-%{_cuda_rpm_version} cuda-misc-headers-%{_cuda_rpm_version}
cuda-npp-dev-%{_cuda_rpm_version}}
BuildRequires: bzip2-devel
%{?_with_faac:BuildRequires: faac-devel}
%{?_with_fdk_aac:BuildRequires: fdk-aac-devel}