commit d7c658ccb0ac05fd814341293af894d502a106d4
Author: Robert-André Mauchin <zebob.m(a)gmail.com>
Date: Sun Aug 20 07:32:13 2017 +0200
Initial import (#1475962)
.gitignore | 1 +
...er-1.0.2_replace_obsolete_AC_PROG_LIBTOOL.patch | 28 +++++++++
libva-intel-hybrid-driver.spec | 68 ++++++++++++++++++++++
sources | 1 +
4 files changed, 98 insertions(+)
---
diff --git a/.gitignore b/.gitignore
index e69de29..0b2f020 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/libva-intel-hybrid-driver-1.0.2.tar.gz
diff --git a/libva-intel-hybrid-driver-1.0.2_replace_obsolete_AC_PROG_LIBTOOL.patch
b/libva-intel-hybrid-driver-1.0.2_replace_obsolete_AC_PROG_LIBTOOL.patch
new file mode 100644
index 0000000..7b2b7c0
--- /dev/null
+++ b/libva-intel-hybrid-driver-1.0.2_replace_obsolete_AC_PROG_LIBTOOL.patch
@@ -0,0 +1,28 @@
+diff -up intel-hybrid-driver-1.0.2/configure.ac.replace_obsolete_AC_PROG_LIBTOOL
intel-hybrid-driver-1.0.2/configure.ac
+--- intel-hybrid-driver-1.0.2/configure.ac.replace_obsolete_AC_PROG_LIBTOOL 2017-07-25
19:12:23.237687822 +0200
++++ intel-hybrid-driver-1.0.2/configure.ac 2017-07-25 19:13:04.651575755 +0200
+@@ -59,8 +59,8 @@ AC_ARG_ENABLE([wayland],
+ [build with VA/Wayland API support @<:@default=yes@:>@])],
+ [], [enable_wayland="yes"])
+
+-AC_DISABLE_STATIC
+-AC_PROG_LIBTOOL
++LT_INIT([disable-static])
++AC_SUBST([LIBTOOL_DEPS])
+ AC_PROG_CC
+ AM_PROG_CC_C_O
+ AC_PROG_CXX
+diff -up intel-hybrid-driver-1.0.2/Makefile.am.replace_obsolete_AC_PROG_LIBTOOL
intel-hybrid-driver-1.0.2/Makefile.am
+--- intel-hybrid-driver-1.0.2/Makefile.am.replace_obsolete_AC_PROG_LIBTOOL 2017-07-25
19:12:30.715667586 +0200
++++ intel-hybrid-driver-1.0.2/Makefile.am 2017-07-25 19:13:44.396468204 +0200
+@@ -1,5 +1,10 @@
+ AUTOMAKE_OPTIONS = foreign
+
++LIBTOOL_DEPS = @LIBTOOL_DEPS@
++
++libtool: $(LIBTOOL_DEPS)
++ $(SHELL) ./config.status libtool
++
+ SUBDIRS = debian.upstream src
+
+ # Extra clean files so that maintainer-clean removes *everything*
diff --git a/libva-intel-hybrid-driver.spec b/libva-intel-hybrid-driver.spec
new file mode 100644
index 0000000..f4a8592
--- /dev/null
+++ b/libva-intel-hybrid-driver.spec
@@ -0,0 +1,68 @@
+Name: libva-intel-hybrid-driver
+Version: 1.0.2
+Release: 4%{?dist}
+Summary: VA driver for Intel G45 & HD Graphics family
+
+# Everything under MIT, except vp9hdec/intel_hybrid_hostvld_vp9*,
+# vp9hdec/decode_hybrid_vp9.cpp, src/media_drv_kernels*,
+# src/vp9hdec/intel_hybrid_vp9_kernel under BSD
+# and src/wayland-drm-client-protocol.h, src/wayland/wayland-drm.xml
+# under NTP
+License: MIT and BSD an NTP
+URL:
https://github.com/01org/intel-hybrid-driver
+Source0:
https://github.com/01org/intel-hybrid-driver/archive/%{version}/%{name}-%...
+
+# Build script uses obsolete macro AC_PROG_LIBTOOL, replace it with LT_INIT
+Patch0: libva-intel-hybrid-driver-1.0.2_replace_obsolete_AC_PROG_LIBTOOL.patch
+
+#obviously only for intel platform
+ExclusiveArch: %{ix86} x86_64 ia64
+
+BuildRequires: libtool
+BuildRequires: pkgconfig(libdrm) >= 2.4.45
+BuildRequires: pkgconfig(libva) >= 0.38
+BuildRequires: pkgconfig(libcmrt) >= 0.10.0
+BuildRequires: pkgconfig(egl)
+BuildRequires: pkgconfig(wayland-server)
+
+
+%description
+libva-intel-hybrid-driver is the VA-API implementation for Intel G45 chipsets
+and Intel HD Graphics for Intel Core processor family.
+
+It allows to accelerate VP9 videos on Skylake and Kabylake architectures.
+
+
+%prep
+%autosetup -p1 -n intel-hybrid-driver-%{version}
+
+
+%build
+autoreconf -vif
+%configure
+%make_build
+
+
+%install
+%make_install
+find %{buildroot} -name "*.la" -delete
+
+
+%files
+%license COPYING
+%doc AUTHORS NEWS README
+%{_libdir}/dri/hybrid_drv_video.so
+
+
+%changelog
+* Fri Aug 18 2017 Robert-André Mauchin <zebob.m(a)gmail.com> 1.0.2-4
+- Remove unneeded /sbin/ldconfig
+
+* Tue Jul 25 2017 Robert-André Mauchin <zebob.m(a)gmail.com> 1.0.2-3
+- Added patch to replace the obsolete AC_PROG_LIBTOOL
+
+* Thu Jul 20 2017 Robert-André Mauchin <zebob.m(a)gmail.com> 1.0.2-2
+- Update to Fedora Packaging Guidelines specification
+
+* Wed Jul 19 2017 Robert-André Mauchin <zebob.m(a)gmail.com> 1.0.2-1
+- First RPM release
diff --git a/sources b/sources
index e69de29..9573e2d 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+SHA512 (libva-intel-hybrid-driver-1.0.2.tar.gz) =
c0aab82b0985da25b8926b58c80957c2ddd233aa6c1a6799f0146ecee163f93b2c1908e425f9c6084cb78a7d52634feab16e7e3f74b9b15148d93e116d3ca036