]>
Commit | Line | Data |
---|---|---|
cf8ad706 | 1 | Summary: VAAPI (Video Acceleration API) |
7a7f6185 | 2 | Summary(pl.UTF-8): VAAPI (Video Acceleration API) - API akceleracji filmów |
cf8ad706 | 3 | Name: libva |
7275dddd | 4 | Version: 1.0.8 |
cf8ad706 AM |
5 | Release: 1 |
6 | License: BSD | |
7 | Group: Libraries | |
8 | # git clone git://anongit.freedesktop.org/git/libva | |
7b9231e8 | 9 | #Source0Download: http://cgit.freedesktop.org/libva/ |
3b224f4e | 10 | Source0: http://cgit.freedesktop.org/libva/snapshot/%{name}-%{version}.tar.bz2 |
7275dddd | 11 | # Source0-md5: f55c5399f717ba84b4912136cbe32b15 |
cf8ad706 | 12 | URL: http://www.freedesktop.org/wiki/Software/vaapi |
154de1a7 | 13 | BuildRequires: Mesa-libGL-devel |
7a7f6185 | 14 | BuildRequires: autoconf >= 2.57 |
cf8ad706 | 15 | BuildRequires: automake |
7b9231e8 | 16 | BuildRequires: libdrm-devel >= 2.4.23 |
154de1a7 KK |
17 | BuildRequires: libtool |
18 | BuildRequires: pkgconfig | |
7a7f6185 | 19 | BuildRequires: xorg-lib-libXext-devel |
154de1a7 | 20 | BuildRequires: xorg-lib-libXfixes-devel |
7b9231e8 | 21 | Requires: libdrm >= 2.4.23 |
cf8ad706 AM |
22 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
23 | ||
24 | %description | |
25 | The main motivation for VAAPI (Video Acceleration API) is to enable | |
26 | hardware accelerated video decode/encode at various entry-points (VLD, | |
27 | IDCT, Motion Compensation etc.) for the prevailing coding standards | |
28 | today (MPEG-2, MPEG-4 ASP/H.263, MPEG-4 AVC/H.264, and VC-1/VMW3). | |
29 | ||
7a7f6185 JB |
30 | %description -l pl.UTF-8 |
31 | Głównym celem API akceleracji filmów VAAPI (Video Acceleration API) | |
32 | jest umożliwienie sprzętowej akceleracji dekodowania/kodowania filmów | |
33 | na różnych etapach (VLD, IDCT, kompensacja ruchu itp.) dla obecnie | |
34 | przeważających standardów kodowania (MPEG-2, MPEG-4 ASP/H.263, MPEG-4 | |
35 | AVC/H.264, VC-1/VMW3). | |
36 | ||
cf8ad706 | 37 | %package devel |
7a7f6185 JB |
38 | Summary: Header files for libva libraries |
39 | Summary(pl.UTF-8): Pliki nagłówkowe bibliotek libva | |
cf8ad706 | 40 | Group: Development/Libraries |
7a7f6185 | 41 | Requires: %{name} = %{version}-%{release} |
cf8ad706 AM |
42 | |
43 | %description devel | |
7a7f6185 JB |
44 | Header files for libva libraries. |
45 | ||
46 | %description devel -l pl.UTF-8 | |
47 | Pliki nagłówkowe bibliotek libva. | |
cf8ad706 AM |
48 | |
49 | %package static | |
7a7f6185 JB |
50 | Summary: Static libva libraries |
51 | Summary(pl.UTF-8): Statyczne biblioteki libva | |
cf8ad706 | 52 | Group: Development/Libraries |
7a7f6185 | 53 | Requires: %{name}-devel = %{version}-%{release} |
cf8ad706 AM |
54 | |
55 | %description static | |
7a7f6185 JB |
56 | Static libva libraries. |
57 | ||
58 | %description static -l pl.UTF-8 | |
59 | Statyczne biblioteki libva. | |
cf8ad706 AM |
60 | |
61 | %prep | |
3b224f4e | 62 | %setup -q |
cf8ad706 AM |
63 | |
64 | %build | |
7a7f6185 JB |
65 | %{__libtoolize} |
66 | %{__aclocal} | |
67 | %{__autoconf} | |
68 | %{__autoheader} | |
69 | %{__automake} | |
cf8ad706 | 70 | %configure \ |
7275dddd | 71 | --disable-silent-rules \ |
cf8ad706 AM |
72 | --enable-static \ |
73 | --enable-i965-driver \ | |
74 | --with-drivers-path=%{_libdir}/%{name}/dri | |
75 | ||
76 | %{__make} | |
77 | ||
78 | %install | |
79 | rm -rf $RPM_BUILD_ROOT | |
cf8ad706 AM |
80 | |
81 | %{__make} install \ | |
82 | DESTDIR=$RPM_BUILD_ROOT | |
83 | ||
7a7f6185 JB |
84 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{name}/dri/*.{a,la} |
85 | %{__rm} $RPM_BUILD_ROOT%{_bindir}/test_* | |
3b224f4e | 86 | |
cf8ad706 AM |
87 | %clean |
88 | rm -rf $RPM_BUILD_ROOT | |
89 | ||
90 | %post -p /sbin/ldconfig | |
91 | %postun -p /sbin/ldconfig | |
92 | ||
93 | %files | |
94 | %defattr(644,root,root,755) | |
3b224f4e AM |
95 | %attr(755,root,root) %{_bindir}/h264encode |
96 | %attr(755,root,root) %{_bindir}/mpeg2vldemo | |
97 | %attr(755,root,root) %{_bindir}/putsurface | |
cf8ad706 | 98 | %attr(755,root,root) %{_bindir}/vainfo |
7a7f6185 JB |
99 | %attr(755,root,root) %{_libdir}/libva.so.*.*.* |
100 | %attr(755,root,root) %ghost %{_libdir}/libva.so.1 | |
101 | %attr(755,root,root) %{_libdir}/libva-glx.so.*.*.* | |
102 | %attr(755,root,root) %ghost %{_libdir}/libva-glx.so.1 | |
103 | %attr(755,root,root) %{_libdir}/libva-tpi.so.*.*.* | |
104 | %attr(755,root,root) %ghost %{_libdir}/libva-tpi.so.1 | |
105 | %attr(755,root,root) %{_libdir}/libva-x11.so.*.*.* | |
106 | %attr(755,root,root) %ghost %{_libdir}/libva-x11.so.1 | |
cf8ad706 AM |
107 | %dir %{_libdir}/%{name} |
108 | %dir %{_libdir}/%{name}/dri | |
7a7f6185 JB |
109 | %attr(755,root,root) %{_libdir}/%{name}/dri/dummy_drv_video.so |
110 | %attr(755,root,root) %{_libdir}/%{name}/dri/i965_drv_video.so | |
cf8ad706 AM |
111 | |
112 | %files devel | |
113 | %defattr(644,root,root,755) | |
7a7f6185 JB |
114 | %attr(755,root,root) %{_libdir}/libva.so |
115 | %attr(755,root,root) %{_libdir}/libva-glx.so | |
116 | %attr(755,root,root) %{_libdir}/libva-tpi.so | |
117 | %attr(755,root,root) %{_libdir}/libva-x11.so | |
118 | %{_libdir}/libva.la | |
119 | %{_libdir}/libva-glx.la | |
120 | %{_libdir}/libva-tpi.la | |
121 | %{_libdir}/libva-x11.la | |
cf8ad706 | 122 | %{_includedir}/va |
7a7f6185 JB |
123 | %{_pkgconfigdir}/libva.pc |
124 | %{_pkgconfigdir}/libva-glx.pc | |
125 | %{_pkgconfigdir}/libva-tpi.pc | |
126 | %{_pkgconfigdir}/libva-x11.pc | |
cf8ad706 AM |
127 | |
128 | %files static | |
129 | %defattr(644,root,root,755) | |
7a7f6185 JB |
130 | %{_libdir}/libva.a |
131 | %{_libdir}/libva-glx.a | |
132 | %{_libdir}/libva-tpi.a | |
133 | %{_libdir}/libva-x11.a |