]>
Commit | Line | Data |
---|---|---|
a45dd0e4 JB |
1 | # |
2 | # Conditional build: | |
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) | |
5 | ||
6 | %define libva_ver 1.6.1 | |
926295b6 | 7 | Summary: Codecs for VA Intel Driver |
4fab1388 | 8 | Summary(pl.UTF-8): Kodeki dla sterownika VA Intel |
926295b6 | 9 | Name: libva-driver-intel-hybrid |
a45dd0e4 | 10 | Version: 1.0.2 |
926295b6 AM |
11 | Release: 1 |
12 | License: MIT | |
13 | Group: Libraries | |
a45dd0e4 JB |
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 | |
926295b6 | 17 | URL: https://github.com/01org/intel-hybrid-driver |
a45dd0e4 | 18 | %{?with_wayland:BuildRequires: EGL-devel} |
926295b6 AM |
19 | BuildRequires: autoconf >= 2.57 |
20 | BuildRequires: automake >= 1:1.9 | |
a45dd0e4 JB |
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} | |
926295b6 | 24 | BuildRequires: libtool |
a45dd0e4 JB |
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} | |
926295b6 AM |
29 | BuildRequires: pkgconfig |
30 | # API version, not just package version | |
4fab1388 | 31 | BuildRequires: pkgconfig(libva) >= 0.38 |
a45dd0e4 JB |
32 | %{?with_wayland:BuildRequires: wayland-devel} |
33 | %{?with_drm:Requires: libdrm >= 2.4.45} | |
34 | Requires: libva >= %{libva_ver} | |
4fab1388 | 35 | Requires: libva-driver-intel >= 1.6.1 |
16020880 | 36 | ExclusiveArch: %{ix86} %{x8664} x32 |
926295b6 AM |
37 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
38 | ||
39 | %description | |
40 | Codecs for VA Intel Driver: | |
41 | - Hybrid VP8 Encoder | |
42 | - Hybrid VP9 Decoder | |
43 | ||
4fab1388 JB |
44 | %description -l pl.UTF-8 |
45 | Kodeki dla sterownika VA Intel: | |
46 | - Hybrydowy koder VP8 | |
47 | - Hybrydowy dekoder VP9 | |
48 | ||
926295b6 AM |
49 | %prep |
50 | %setup -q -n intel-hybrid-driver-%{version} | |
51 | ||
52 | %build | |
53 | %{__libtoolize} | |
54 | %{__aclocal} | |
55 | %{__autoconf} | |
56 | %{__autoheader} | |
57 | %{__automake} | |
58 | %configure \ | |
59 | --disable-silent-rules | |
60 | ||
61 | %{__make} | |
62 | ||
63 | %install | |
64 | rm -rf $RPM_BUILD_ROOT | |
65 | ||
66 | %{__make} install \ | |
67 | DESTDIR=$RPM_BUILD_ROOT | |
68 | ||
69 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libva/dri/*.la | |
70 | ||
71 | %clean | |
72 | rm -rf $RPM_BUILD_ROOT | |
73 | ||
74 | %files | |
75 | %defattr(644,root,root,755) | |
76 | %doc AUTHORS COPYING NEWS README | |
77 | %attr(755,root,root) %{_libdir}/libva/dri/hybrid_drv_video.so |