commit 247a86eef9196ee9ab09ce8e924c9f038b3de541
Author: Nicolas Chauvet <kwizart(a)gmail.com>
Date: Wed Oct 10 18:00:57 2018 +0200
Initial import
.gitignore | 1 +
intel-media-driver.spec | 100 ++++++++++++++++++++++++++++++++++++++++++++++++
sources | 1 +
3 files changed, 102 insertions(+)
---
diff --git a/.gitignore b/.gitignore
index e69de29..92a2f27 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+intel-media-*.tar.gz
diff --git a/intel-media-driver.spec b/intel-media-driver.spec
new file mode 100644
index 0000000..889bcfb
--- /dev/null
+++ b/intel-media-driver.spec
@@ -0,0 +1,100 @@
+Name: intel-media-driver
+Version: 18.3.0
+Release: 2%{?dist}
+Summary: The Intel Media Driver for VAAPI
+License: MIT and BSD
+URL:
https://github.com/intel/media-driver
+Source0: %{url}/archive/intel-media-%{version}.tar.gz
+Source1: intel-media-driver.metainfo.xml
+#Source9: parse-intel-media-driver.py
+
+# This is an Intel only vaapi backend
+ExclusiveArch: i686 x86_64
+
+BuildRequires: cmake >= 3.5
+BuildRequires: gcc
+BuildRequires: gcc-c++
+
+# AppStream metadata generation
+BuildRequires: libappstream-glib >= 0.6.3
+
+BuildRequires: pkgconfig(igdgmm)
+BuildRequires: pkgconfig(libva) >= 1.3.0
+BuildRequires: pkgconfig(pciaccess)
+BuildRequires: pkgconfig(x11)
+
+# There is a modified version of libdrm
+Provides: bundled(libdrm)
+
+
+%description
+The Intel Media Driver for VAAPI is a new VA-API (Video Acceleration API)
+user mode driver supporting hardware accelerated decoding, encoding,
+and video post processing for GEN based graphics hardware.
+
+
+%prep
+%autosetup -p1 -n media-driver-intel-media-%{version}
+# Fix license perm
+chmod -x LICENSE.md README.md CMakeLists.txt
+
+# Remove pre-built (but unused) files
+rm -f Tools/MediaDriverTools/UMDPerfProfiler/MediaPerfParser
+
+
+%build
+mkdir build
+pushd build
+%cmake \
+ -DMEDIA_RUN_TEST_SUITE:BOOL=False \
+ -DRUN_TEST_SUITE:BOOL=False \
+ ..
+
+%make_build V=1
+
+popd
+
+
+%install
+pushd build
+%make_install
+
+popd
+
+# Fix perm on library to be stripped
+chmod +x %{buildroot}%{_libdir}/dri/iHD_drv_video.so
+chmod +x %{buildroot}%{_libdir}/igfxcmrt64.so
+
+# install AppData and add modalias provides
+mkdir -p %{buildroot}%{_metainfodir}
+install -pm 0644 %{SOURCE1} %{buildroot}%{_metainfodir}
+
+# TODO - have pci based hw detection
+%if 0
+fn=%{buildroot}%{_metainfodir}/intel-media-driver.metainfo.xml
+%{SOURCE9} src/i965_pciids.h | xargs appstream-util add-provide ${fn} modalias
+%endif
+
+# Don't hardcode LIBVA_LIBRARY_PATH
+sed -i -e '/LIBVA_DRIVERS_PATH/ d'
%{buildroot}%{_sysconfdir}/profile.d/intel-media.sh
+touch -r LICENSE.md %{buildroot}%{_sysconfdir}/profile.d/intel-media.sh
+
+
+%files
+%doc README.md
+%license LICENSE.md
+%config(noreplace) %{_sysconfdir}/profile.d/intel-media.sh
+%{_libdir}/dri/iHD_drv_video.so
+%{_libdir}/igfxcmrt64.so
+%{_metainfodir}/intel-media-driver.metainfo.xml
+
+
+%changelog
+* Wed Oct 10 2018 Nicolas Chauvet <kwizart(a)gmail.com> - 18.3.0-2
+- Use metainfodir
+- Enable AppStream support (no hardware detection yet)
+- Add missing BR
+- Remove pre-built tools
+
+* Mon Oct 08 2018 Nicolas Chauvet <kwizart(a)gmail.com> - 18.3.0-1
+- Initial spec file
diff --git a/sources b/sources
index e69de29..b192fae 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+173755d3b05e3d828345b680f1c1f304 intel-media-18.3.0.tar.gz