3 %bcond_with drm # DRM backend, not used as of 1.0.2 (grep for HAVE_VA_DRM, USE_DRM)
4 %bcond_with wayland # Wayland backend, not used as of 1.0.2 (grep for HAVE_VA_WAYLAND, USE_WAYLAND)
6 %define libva_ver 1.6.1
7 Summary: Codecs for VA Intel Driver
8 Summary(pl.UTF-8): Kodeki dla sterownika VA Intel
9 Name: libva-driver-intel-hybrid
14 #Source0Download: https://github.com/01org/intel-hybrid-driver/releases
15 Source0: https://github.com/01org/intel-hybrid-driver/archive/%{version}/%{name}-%{version}.tar.gz
16 # Source0-md5: 05e97e6948963f08eb14a4a8f68bcf69
17 URL: https://github.com/01org/intel-hybrid-driver
18 %{?with_wayland:BuildRequires: EGL-devel}
19 BuildRequires: autoconf >= 2.57
20 BuildRequires: automake >= 1:1.9
21 # pkgconfig(libcmrt) >= 0.10.0, but cmrt <= 1.0.5 provided cmrt.pc instead of libcmrt.pc
22 BuildRequires: libcmrt-devel >= 1.0.6
23 %{?with_drm:BuildRequires: libdrm-devel >= 2.4.45}
24 BuildRequires: libtool
25 BuildRequires: libva-devel >= %{libva_ver}
26 %{?with_drm:BuildRequires: libva-drm-devel >= %{libva_ver}}
27 %{?with_wayland:BuildRequires: libva-wayland-devel >= %{libva_ver}}
28 BuildRequires: libva-x11-devel >= %{libva_ver}
29 BuildRequires: pkgconfig
30 # API version, not just package version
31 BuildRequires: pkgconfig(libva) >= 0.38
32 %{?with_wayland:BuildRequires: wayland-devel}
33 %{?with_drm:Requires: libdrm >= 2.4.45}
34 Requires: libva >= %{libva_ver}
35 Requires: libva-driver-intel >= 1.6.1
36 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
39 Codecs for VA Intel Driver:
43 %description -l pl.UTF-8
44 Kodeki dla sterownika VA Intel:
46 - Hybrydowy dekoder VP9
49 %setup -q -n intel-hybrid-driver-%{version}
58 --disable-silent-rules
63 rm -rf $RPM_BUILD_ROOT
66 DESTDIR=$RPM_BUILD_ROOT
68 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libva/dri/*.la
71 rm -rf $RPM_BUILD_ROOT
74 %defattr(644,root,root,755)
75 %doc AUTHORS COPYING NEWS README
76 %attr(755,root,root) %{_libdir}/libva/dri/hybrid_drv_video.so