# which plugins to actually build and install %global extdirs sys/nvdec sys/nvenc %define _cuda_version 9.2 %define _cuda_version_rpm 9-2 Summary: GStreamer 1.0 streaming media framework "bad" cuda plug-ins Name: gstreamer1-plugins-bad-cuda Version: 1.14.4 Release: 2%{?dist} License: LGPLv2+ URL: http://gstreamer.freedesktop.org/ Source0: http://gstreamer.freedesktop.org/src/gst-plugins-bad/gst-plugins-bad-%{version}.tar.xz Patch0: gstreamer1-plugins-bad-cuda.patch BuildRequires: libtool BuildRequires: gcc BuildRequires: gstreamer1-devel >= %{version} BuildRequires: gstreamer1-plugins-base-devel >= %{version} BuildRequires: check BuildRequires: gettext-devel BuildRequires: libdrm-devel BuildRequires: libXt-devel BuildRequires: gtk-doc BuildRequires: orc-devel BuildRequires: libEGL-devel BuildRequires: libGL-devel BuildRequires: libGLES-devel BuildRequires: cuda-minimal-build-%{_cuda_version_rpm} BuildRequires: cuda-drivers-devel BuildRequires: nv-codec-headers %description GStreamer is a streaming media framework, based on graphs of elements which operate on media data. This package contains plug-ins that depend on libraries which use CUDA. %prep %autosetup -p1 -n gst-plugins-bad-%{version} autoreconf -vif %build # Note we don't bother with disabling everything which is in Fedora, that # is unmaintainable, instead we selectively run make in subdirs export NVENCODE_CFLAGS="-I%{_includedir}/ffnvcodec" export CFLAGS="%{optflags} -DHAVE_DYNLINK_HEADERS_NVDEC=1 ${NVENCODE_CFLAGS}" %configure \ --disable-static \ --with-package-name="gst-plugins-bad 1.0 cuda rpmfusion rpm" \ --with-package-origin="http://rpmfusion.org/" \ --with-cuda-prefix=%{_cuda_prefix} \ --enable-debug \ --enable-experimental # Don't use rpath! sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool for i in %{extdirs}; do pushd $i %make_build V=2 popd done %install for i in %{extdirs}; do pushd $i %make_install V=2 popd done rm -fv %{buildroot}%{_libdir}/gstreamer-1.0/*.la %files %doc AUTHORS NEWS README RELEASE %license COPYING.LIB # Plugins with external dependencies %{_libdir}/gstreamer-1.0/libgstnvdec.so %{_libdir}/gstreamer-1.0/libgstnvenc.so %changelog * Sat Nov 10 2018 Nicolas Chauvet - 1.14.4-2 - Initial cuda package * Tue Oct 09 2018 Rex Dieter - 1.14.4-1 - 1.14.4 * Tue Sep 18 2018 Leigh Scott - 1.14.3-1 - 1.14.3 * Sat Aug 18 2018 Rex Dieter - 1.14.2-1 - 1.14.2 * Fri Jul 27 2018 RPM Fusion Release Engineering - 1.14.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Thu May 31 2018 Rex Dieter - 1.14.1-1 - 1.14.1 * Sun Apr 15 2018 Nicolas Chauvet - 1.14.0-1 - Update to 1.14.0 * Sun Mar 04 2018 Leigh Scott - 1.13.1-1 - 1.13.1 * Fri Mar 02 2018 RPM Fusion Release Engineering - 1.12.4-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Mon Dec 11 2017 Leigh Scott - 1.12.4-1 - Update to 1.12.4 * Thu Sep 21 2017 Leigh Scott - 1.12.3-1 - Update to 1.12.3 * Thu Aug 31 2017 RPM Fusion Release Engineering - 1.12.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Tue Jul 18 2017 Leigh Scott - 1.12.2-1 - Update to 1.12.2 * Fri Jun 23 2017 Leigh Scott - 1.12.1-1 - Update to 1.12.1 * Fri May 12 2017 Leigh Scott - 1.12.0-1 - Update to 1.12.0 * Tue Apr 18 2017 Leigh Scott - 1.11.90-1 - Update to 1.11.90 * Sat Mar 25 2017 RPM Fusion Release Engineering - 1.11.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Mon Feb 27 2017 Leigh Scott - 1.11.2-1 - Update to 1.11.2 * Mon Jan 16 2017 Leigh Scott - 1.11.1-2 - Enable fdk-aac * Mon Jan 16 2017 Leigh Scott - 1.11.1-1 - Update to 1.11.1 * Wed Nov 30 2016 leigh scott - 1.10.2-1 - Update to 1.10.2 * Fri Nov 11 2016 Hans de Goede - 1.10.0-1 - Update to 1.10.0 * Sat Jul 9 2016 Hans de Goede - 1.8.2-1 - Update to 1.8.2 * Sat Jul 9 2016 Hans de Goede - 1.6.4-1 - Update to 1.6.4 * Sat Aug 22 2015 Hans de Goede - 1.4.5-1 - Initial gstreamer1-plugins-bad-nonfree rpmfusion package