]>
Commit | Line | Data |
---|---|---|
1 | # | |
2 | # Conditional build: | |
3 | %bcond_without static_libs # static libraries | |
4 | # | |
5 | Summary: GStreamer plugin to support Video Acceleration API | |
6 | Summary(pl.UTF-8): Wtyczka GStreamera obsługująca Video Acceleration API | |
7 | Name: gstreamer-vaapi | |
8 | Version: 0.5.6 | |
9 | Release: 1 | |
10 | License: LGPL v2.1+ | |
11 | Group: Libraries | |
12 | Source0: http://www.freedesktop.org/software/vaapi/releases/gstreamer-vaapi/%{name}-%{version}.tar.bz2 | |
13 | # Source0-md5: 0a3e645d12c8f275e8ea221ecb89f981 | |
14 | URL: http://www.freedesktop.org/wiki/Software/vaapi/ | |
15 | BuildRequires: Mesa-libGL-devel | |
16 | BuildRequires: autoconf >= 2.66 | |
17 | BuildRequires: automake >= 1:1.11 | |
18 | BuildRequires: glib2-devel >= 1:2.28.0 | |
19 | BuildRequires: gstreamer-devel >= 1.0.0 | |
20 | BuildRequires: gstreamer-plugins-bad-devel >= 1.0.0 | |
21 | BuildRequires: gstreamer-plugins-base-devel >= 1.0.0 | |
22 | BuildRequires: gtk-doc >= 1.12 | |
23 | BuildRequires: libdrm-devel | |
24 | BuildRequires: libtool >= 2:2.2 | |
25 | BuildRequires: libva-drm-devel >= 1.1.0 | |
26 | BuildRequires: libva-glx-devel >= 1.0.9 | |
27 | BuildRequires: libva-wayland-devel >= 1.1.0 | |
28 | BuildRequires: libva-x11-devel >= 1.0.3 | |
29 | BuildRequires: pkgconfig | |
30 | # libva API versions | |
31 | BuildRequires: pkgconfig(libva) >= 0.30.4 | |
32 | BuildRequires: pkgconfig(libva-drm) >= 0.33.0 | |
33 | BuildRequires: pkgconfig(libva-glx) >= 0.32.0 | |
34 | BuildRequires: pkgconfig(libva-wayland) >= 0.33.0 | |
35 | BuildRequires: pkgconfig(libva-x11) >= 0.31.0 | |
36 | BuildRequires: udev-devel | |
37 | BuildRequires: wayland-devel >= 1.0.0 | |
38 | BuildRequires: xorg-lib-libX11-devel | |
39 | BuildRequires: xorg-lib-libXrandr-devel | |
40 | BuildRequires: xorg-lib-libXrender-devel | |
41 | Requires: glib2 >= 1:2.28.0 | |
42 | Requires: gstreamer >= 1.0.0 | |
43 | Requires: gstreamer-plugins-bad >= 1.0.0 | |
44 | Requires: gstreamer-plugins-base >= 1.0.0 | |
45 | Requires: libva >= 1.1.0 | |
46 | Requires: wayland >= 1.0.0 | |
47 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
48 | ||
49 | %description | |
50 | gstreamer-vaapi consists in a collection of VA-API based plugins for | |
51 | GStreamer and helper libraries. | |
52 | ||
53 | %description -l pl.UTF-8 | |
54 | gstreamer-vaapi zawiera zestaw opartych ma VA-API wtyczek dla | |
55 | GStreamera i bibliotek pomocniczych. | |
56 | ||
57 | %package devel | |
58 | Summary: Header files for GStreamer VA-API libraries | |
59 | Summary(pl.UTF-8): Pliki nagłówkowe bibliotek VA-API GStreamera | |
60 | Group: Development/Libraries | |
61 | Requires: %{name} = %{version}-%{release} | |
62 | Requires: gstreamer-devel >= 1.0.0 | |
63 | Requires: gstreamer-plugins-base-devel >= 1.0.0 | |
64 | Requires: libva-drm-devel >= 1.1.0 | |
65 | Requires: libva-glx-devel >= 1.0.9 | |
66 | Requires: libva-wayland-devel >= 1.1.0 | |
67 | Requires: libva-x11-devel >= 1.0.3 | |
68 | ||
69 | %description devel | |
70 | Header files for GStreamer VA-API helper libraries. | |
71 | ||
72 | %description devel -l pl.UTF-8 | |
73 | Pliki nagłówkowe bibliotek pomocniczych VA-API GStreamera. | |
74 | ||
75 | %package static | |
76 | Summary: Static GStreamer VA-API libraries | |
77 | Summary(pl.UTF-8): Statyczne biblioteki VA-API GStreamera | |
78 | Group: Development/Libraries | |
79 | Requires: %{name}-devel = %{version}-%{release} | |
80 | ||
81 | %description static | |
82 | Static GStreamer VA-API libraries. | |
83 | ||
84 | %description static -l pl.UTF-8 | |
85 | Statyczne biblioteki VA-API GStreamera. | |
86 | ||
87 | %prep | |
88 | %setup -q | |
89 | ||
90 | %build | |
91 | %{__libtoolize} | |
92 | %{__aclocal} | |
93 | %{__autoconf} | |
94 | %{__autoheader} | |
95 | %{__automake} | |
96 | %configure \ | |
97 | --disable-silent-rules \ | |
98 | %{!?with_static_libs:--disable-static} | |
99 | ||
100 | %{__make} | |
101 | ||
102 | %install | |
103 | rm -rf $RPM_BUILD_ROOT | |
104 | ||
105 | %{__make} install \ | |
106 | DESTDIR=$RPM_BUILD_ROOT | |
107 | ||
108 | # gstreamer module | |
109 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/gstreamer-1.0/libgst*.la | |
110 | # obsoleted by pkg-config | |
111 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/lib*.la | |
112 | ||
113 | %clean | |
114 | rm -rf $RPM_BUILD_ROOT | |
115 | ||
116 | %post -p /sbin/ldconfig | |
117 | %postun -p /sbin/ldconfig | |
118 | ||
119 | %files | |
120 | %defattr(644,root,root,755) | |
121 | %doc AUTHORS NEWS README | |
122 | %attr(755,root,root) %{_libdir}/libgstvaapi-1.0.so.*.*.* | |
123 | %attr(755,root,root) %ghost %{_libdir}/libgstvaapi-1.0.so.2 | |
124 | %attr(755,root,root) %{_libdir}/libgstvaapi-drm-1.0.so.*.*.* | |
125 | %attr(755,root,root) %ghost %{_libdir}/libgstvaapi-drm-1.0.so.2 | |
126 | %attr(755,root,root) %{_libdir}/libgstvaapi-glx-1.0.so.*.*.* | |
127 | %attr(755,root,root) %ghost %{_libdir}/libgstvaapi-glx-1.0.so.2 | |
128 | %attr(755,root,root) %{_libdir}/libgstvaapi-wayland-1.0.so.*.*.* | |
129 | %attr(755,root,root) %ghost %{_libdir}/libgstvaapi-wayland-1.0.so.2 | |
130 | %attr(755,root,root) %{_libdir}/libgstvaapi-x11-1.0.so.*.*.* | |
131 | %attr(755,root,root) %ghost %{_libdir}/libgstvaapi-x11-1.0.so.2 | |
132 | %attr(755,root,root) %{_libdir}/gstreamer-1.0/libgstvaapi.so | |
133 | ||
134 | %files devel | |
135 | %defattr(644,root,root,755) | |
136 | %attr(755,root,root) %{_libdir}/libgstvaapi-1.0.so | |
137 | %attr(755,root,root) %{_libdir}/libgstvaapi-drm-1.0.so | |
138 | %attr(755,root,root) %{_libdir}/libgstvaapi-glx-1.0.so | |
139 | %attr(755,root,root) %{_libdir}/libgstvaapi-wayland-1.0.so | |
140 | %attr(755,root,root) %{_libdir}/libgstvaapi-x11-1.0.so | |
141 | %{_includedir}/gstreamer-1.0/gst/vaapi | |
142 | %{_pkgconfigdir}/gstreamer-vaapi-1.0.pc | |
143 | %{_pkgconfigdir}/gstreamer-vaapi-drm-1.0.pc | |
144 | %{_pkgconfigdir}/gstreamer-vaapi-glx-1.0.pc | |
145 | %{_pkgconfigdir}/gstreamer-vaapi-wayland-1.0.pc | |
146 | %{_pkgconfigdir}/gstreamer-vaapi-x11-1.0.pc | |
147 | ||
148 | %if %{with static_libs} | |
149 | %files static | |
150 | %defattr(644,root,root,755) | |
151 | %{_libdir}/libgstvaapi-1.0.a | |
152 | %{_libdir}/libgstvaapi-drm-1.0.a | |
153 | %{_libdir}/libgstvaapi-glx-1.0.a | |
154 | %{_libdir}/libgstvaapi-wayland-1.0.a | |
155 | %{_libdir}/libgstvaapi-x11-1.0.a | |
156 | %endif |