Nvidia dependency remove for kodi build

This commit is contained in:
2020-04-11 08:26:15 +02:00
parent 252a42224a
commit 58da48d4e4
2 changed files with 23 additions and 7 deletions

View File

@@ -1,18 +1,22 @@
Summary: Digital VCR and streaming server
Name: ffmpeg-nvidia
Version: 4.2.2
Release: 2%{?dist}
Release: 3%{?dist}
License: GPLv2+
URL: http://ffmpeg.org/
Source0: http://ffmpeg.org/releases/ffmpeg-%{version}.tar.xz
%define cudav 10-1
%define ffname ffmpeg
%define debug_package %{nil}
%define _with_libnpp 1
BuildRequires: cuda-drivers-devel
BuildRequires: cuda-minimal-build-%{cudav}
%if 0%{?_with_libnpp}
BuildRequires: cuda
BuildRequires: cuda-devel
%endif
BuildRequires: fdk-aac-devel
BuildRequires: gsm-devel
BuildRequires: jack-audio-connection-kit-devel
@@ -175,7 +179,9 @@ This package contains development files for %{ffname}
--enable-libfreetype \
--enable-libfribidi \
--enable-libgsm \
%{?_with_libnpp:--enable-libnpp \}
%if 0%{?_with_libnpp}
--enable-libnpp \
%endif
--enable-version3
@@ -187,6 +193,10 @@ make install DESTDIR=%{?buildroot}
rm -f %{ffname}-%{version}/debugsourcefiles.list
rm -rf %{buildroot}/.build-id
%clean
[ "%{buildroot}" != "/" ] && [ -d "%{buildroot}" ] && rm -rf %{buildroot}
[ "%{_builddir}" != "/" ] && [ -d "%{_builddir}" ] && rm -rf %{_builddir}/*
%files
%{_bindir}/%{ffname}
%{_bindir}/ffplay
@@ -212,6 +222,9 @@ rm -rf %{buildroot}/.build-id
%changelog
* Mon Mar 9 2020 Daniel Steiner <daniel.steiner@dsteiner.ch>
- More modules added.
* Sun Mar 8 2020 Daniel Steiner <daniel.steiner@dsteiner.ch>
- Initial build.
- Build with Nvidia Cuda support.