]>
Commit | Line | Data |
---|---|---|
f9adce0f JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without static_libs # static libraries | |
fe36652a | 4 | %bcond_with api # GST VA-API libraries API [no longer exported as of 1.6.0] |
a44fce07 | 5 | |
2813e861 | 6 | %define gstapi 1.6 |
8ac14fc9 JB |
7 | %define gst_ver 1.12.0 |
8 | %define gstpb_ver 1.12.0 | |
9 | %define gstpd_ver 1.12.0 | |
11dd6f5e JB |
10 | Summary: GStreamer plugin to support Video Acceleration API |
11 | Summary(pl.UTF-8): Wtyczka GStreamera obsługująca Video Acceleration API | |
12 | Name: gstreamer-vaapi | |
0d45bbf2 | 13 | Version: 1.12.4 |
38c10c25 | 14 | Release: 2 |
11dd6f5e JB |
15 | License: LGPL v2.1+ |
16 | Group: Libraries | |
fe36652a | 17 | Source0: https://gstreamer.freedesktop.org/src/gstreamer-vaapi/%{name}-%{version}.tar.xz |
0d45bbf2 | 18 | # Source0-md5: 2149982cdb348139bca946bb63766f4c |
65cc08d1 | 19 | URL: https://gstreamer.freedesktop.org/ |
4771ed98 | 20 | BuildRequires: Mesa-libEGL-devel |
11dd6f5e | 21 | BuildRequires: Mesa-libGL-devel |
4771ed98 | 22 | BuildRequires: Mesa-libGLES-devel |
fe36652a JB |
23 | BuildRequires: autoconf >= 2.69 |
24 | BuildRequires: automake >= 1:1.14 | |
4771ed98 | 25 | BuildRequires: glib2-devel >= 1:2.32.0 |
fe36652a | 26 | BuildRequires: gstreamer-devel >= %{gst_ver} |
8ac14fc9 | 27 | # gstreamer-gl (optional), gstreamer-codecparsers |
fe36652a JB |
28 | BuildRequires: gstreamer-plugins-bad-devel >= %{gstpd_ver} |
29 | BuildRequires: gstreamer-plugins-base-devel >= %{gstpb_ver} | |
11dd6f5e JB |
30 | BuildRequires: gtk-doc >= 1.12 |
31 | BuildRequires: libdrm-devel | |
32 | BuildRequires: libtool >= 2:2.2 | |
2813e861 | 33 | BuildRequires: libva-devel >= 1.6.0 |
11dd6f5e | 34 | BuildRequires: libva-drm-devel >= 1.1.0 |
11dd6f5e JB |
35 | BuildRequires: libva-wayland-devel >= 1.1.0 |
36 | BuildRequires: libva-x11-devel >= 1.0.3 | |
37 | BuildRequires: pkgconfig | |
38 | # libva API versions | |
2813e861 | 39 | BuildRequires: pkgconfig(libva) >= 0.38.0 |
11dd6f5e | 40 | BuildRequires: pkgconfig(libva-drm) >= 0.33.0 |
11dd6f5e JB |
41 | BuildRequires: pkgconfig(libva-wayland) >= 0.33.0 |
42 | BuildRequires: pkgconfig(libva-x11) >= 0.31.0 | |
43 | BuildRequires: udev-devel | |
2813e861 | 44 | BuildRequires: wayland-devel >= 1.0.2 |
fe36652a | 45 | BuildRequires: tar >= 1:1.22 |
8ac14fc9 | 46 | BuildRequires: udev-devel |
11dd6f5e JB |
47 | BuildRequires: xorg-lib-libX11-devel |
48 | BuildRequires: xorg-lib-libXrandr-devel | |
07271103 | 49 | BuildRequires: xorg-lib-libXrender-devel |
fe36652a | 50 | BuildRequires: xz |
2813e861 JB |
51 | %ifarch %{ix86} %{x8664} x32 |
52 | BuildRequires: yasm | |
53 | %endif | |
4771ed98 | 54 | Requires: glib2 >= 1:2.32.0 |
fe36652a JB |
55 | Requires: gstreamer >= %{gst_ver} |
56 | Requires: gstreamer-plugins-bad >= %{gstpd_ver} | |
57 | Requires: gstreamer-plugins-base >= %{gstpb_ver} | |
2813e861 | 58 | Requires: libva >= 1.6.0 |
11dd6f5e | 59 | Requires: wayland >= 1.0.0 |
fe36652a | 60 | %if %{without api} |
a44fce07 ER |
61 | Obsoletes: gstreamer-vaapi-devel < %{version} |
62 | Obsoletes: gstreamer-vaapi-static < %{version} | |
fe36652a | 63 | %endif |
11dd6f5e JB |
64 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
65 | ||
66 | %description | |
67 | gstreamer-vaapi consists in a collection of VA-API based plugins for | |
68 | GStreamer and helper libraries. | |
69 | ||
70 | %description -l pl.UTF-8 | |
71 | gstreamer-vaapi zawiera zestaw opartych ma VA-API wtyczek dla | |
72 | GStreamera i bibliotek pomocniczych. | |
73 | ||
74 | %package devel | |
75 | Summary: Header files for GStreamer VA-API libraries | |
76 | Summary(pl.UTF-8): Pliki nagłówkowe bibliotek VA-API GStreamera | |
77 | Group: Development/Libraries | |
78 | Requires: %{name} = %{version}-%{release} | |
fe36652a JB |
79 | Requires: gstreamer-devel >= %{gst_ver} |
80 | Requires: gstreamer-plugins-base-devel >= %{gstpb_ver} | |
2813e861 | 81 | Requires: libva-devel >= 1.6.0 |
11dd6f5e | 82 | Requires: libva-drm-devel >= 1.1.0 |
11dd6f5e JB |
83 | Requires: libva-wayland-devel >= 1.1.0 |
84 | Requires: libva-x11-devel >= 1.0.3 | |
85 | ||
86 | %description devel | |
87 | Header files for GStreamer VA-API helper libraries. | |
88 | ||
89 | %description devel -l pl.UTF-8 | |
90 | Pliki nagłówkowe bibliotek pomocniczych VA-API GStreamera. | |
91 | ||
f9adce0f JB |
92 | %package static |
93 | Summary: Static GStreamer VA-API libraries | |
94 | Summary(pl.UTF-8): Statyczne biblioteki VA-API GStreamera | |
95 | Group: Development/Libraries | |
96 | Requires: %{name}-devel = %{version}-%{release} | |
97 | ||
98 | %description static | |
99 | Static GStreamer VA-API libraries. | |
100 | ||
101 | %description static -l pl.UTF-8 | |
102 | Statyczne biblioteki VA-API GStreamera. | |
103 | ||
fe36652a JB |
104 | %package apidocs |
105 | Summary: GStreamer VA-API plugins documentation | |
106 | Summary(pl.UTF-8): Dokumentacja do wtyczek GStreamera VA-API | |
107 | Group: Documentation | |
a44fce07 ER |
108 | %if "%{_rpmversion}" >= "5" |
109 | BuildArch: noarch | |
110 | %endif | |
fe36652a JB |
111 | |
112 | %description apidocs | |
113 | GStreamer VA-API plugins documentation. | |
114 | ||
115 | %description apidocs -l pl.UTF-8 | |
116 | Dokumentacja do wtyczek GStreamera VA-API. | |
117 | ||
11dd6f5e JB |
118 | %prep |
119 | %setup -q | |
120 | ||
121 | %build | |
122 | %{__libtoolize} | |
fe36652a | 123 | %{__aclocal} -I m4 -I common/m4 |
11dd6f5e JB |
124 | %{__autoconf} |
125 | %{__autoheader} | |
126 | %{__automake} | |
127 | %configure \ | |
f9adce0f | 128 | --disable-silent-rules \ |
fe36652a JB |
129 | %{!?with_static_libs:--disable-static} \ |
130 | --with-html-dir=%{_gtkdocdir} | |
11dd6f5e | 131 | |
fe36652a | 132 | %{__make} |
11dd6f5e JB |
133 | |
134 | %install | |
135 | rm -rf $RPM_BUILD_ROOT | |
136 | ||
fe36652a | 137 | %{__make} install \ |
11dd6f5e JB |
138 | DESTDIR=$RPM_BUILD_ROOT |
139 | ||
140 | # gstreamer module | |
ee342302 | 141 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/gstreamer-1.0/libgst*.la |
fe36652a | 142 | %if %{with api} |
f9adce0f JB |
143 | # obsoleted by pkg-config |
144 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/lib*.la | |
fe36652a | 145 | %endif |
11dd6f5e JB |
146 | |
147 | %clean | |
148 | rm -rf $RPM_BUILD_ROOT | |
149 | ||
fe36652a | 150 | %if %{with api} |
11dd6f5e JB |
151 | %post -p /sbin/ldconfig |
152 | %postun -p /sbin/ldconfig | |
fe36652a | 153 | %endif |
11dd6f5e JB |
154 | |
155 | %files | |
156 | %defattr(644,root,root,755) | |
157 | %doc AUTHORS NEWS README | |
fe36652a | 158 | %if %{with api} |
602e2ec8 JB |
159 | %attr(755,root,root) %{_libdir}/libgstcodecparsers_vpx.so.*.*.* |
160 | %attr(755,root,root) %ghost %{_libdir}/libgstcodecparsers_vpx.so.0 | |
f29a028e | 161 | %attr(755,root,root) %{_libdir}/libgstvaapi-%{gstapi}.so.*.*.* |
2813e861 | 162 | %attr(755,root,root) %ghost %{_libdir}/libgstvaapi-%{gstapi}.so.1 |
f29a028e | 163 | %attr(755,root,root) %{_libdir}/libgstvaapi-drm-%{gstapi}.so.*.*.* |
2813e861 | 164 | %attr(755,root,root) %ghost %{_libdir}/libgstvaapi-drm-%{gstapi}.so.1 |
4771ed98 | 165 | %attr(755,root,root) %{_libdir}/libgstvaapi-egl-%{gstapi}.so.*.*.* |
2813e861 | 166 | %attr(755,root,root) %ghost %{_libdir}/libgstvaapi-egl-%{gstapi}.so.1 |
f29a028e | 167 | %attr(755,root,root) %{_libdir}/libgstvaapi-glx-%{gstapi}.so.*.*.* |
2813e861 | 168 | %attr(755,root,root) %ghost %{_libdir}/libgstvaapi-glx-%{gstapi}.so.1 |
f29a028e | 169 | %attr(755,root,root) %{_libdir}/libgstvaapi-wayland-%{gstapi}.so.*.*.* |
2813e861 | 170 | %attr(755,root,root) %ghost %{_libdir}/libgstvaapi-wayland-%{gstapi}.so.1 |
f29a028e | 171 | %attr(755,root,root) %{_libdir}/libgstvaapi-x11-%{gstapi}.so.*.*.* |
2813e861 | 172 | %attr(755,root,root) %ghost %{_libdir}/libgstvaapi-x11-%{gstapi}.so.1 |
fe36652a | 173 | %endif |
ee342302 | 174 | %attr(755,root,root) %{_libdir}/gstreamer-1.0/libgstvaapi.so |
11dd6f5e | 175 | |
fe36652a | 176 | %if %{with api} |
11dd6f5e JB |
177 | %files devel |
178 | %defattr(644,root,root,755) | |
602e2ec8 | 179 | %attr(755,root,root) %{_libdir}/libgstcodecparsers_vpx.so |
f29a028e AF |
180 | %attr(755,root,root) %{_libdir}/libgstvaapi-%{gstapi}.so |
181 | %attr(755,root,root) %{_libdir}/libgstvaapi-drm-%{gstapi}.so | |
4771ed98 | 182 | %attr(755,root,root) %{_libdir}/libgstvaapi-egl-%{gstapi}.so |
f29a028e AF |
183 | %attr(755,root,root) %{_libdir}/libgstvaapi-glx-%{gstapi}.so |
184 | %attr(755,root,root) %{_libdir}/libgstvaapi-wayland-%{gstapi}.so | |
185 | %attr(755,root,root) %{_libdir}/libgstvaapi-x11-%{gstapi}.so | |
602e2ec8 JB |
186 | %{_includedir}/gstreamer-1.0/gst/vaapi |
187 | %{_pkgconfigdir}/gstreamer-vaapi-1.0.pc | |
188 | %{_pkgconfigdir}/gstreamer-vaapi-drm-1.0.pc | |
189 | %{_pkgconfigdir}/gstreamer-vaapi-glx-1.0.pc | |
190 | %{_pkgconfigdir}/gstreamer-vaapi-wayland-1.0.pc | |
191 | %{_pkgconfigdir}/gstreamer-vaapi-x11-1.0.pc | |
f9adce0f JB |
192 | |
193 | %if %{with static_libs} | |
194 | %files static | |
195 | %defattr(644,root,root,755) | |
602e2ec8 | 196 | %{_libdir}/libgstcodecparsers_vpx.a |
f29a028e AF |
197 | %{_libdir}/libgstvaapi-%{gstapi}.a |
198 | %{_libdir}/libgstvaapi-drm-%{gstapi}.a | |
4771ed98 | 199 | %{_libdir}/libgstvaapi-egl-%{gstapi}.a |
f29a028e AF |
200 | %{_libdir}/libgstvaapi-glx-%{gstapi}.a |
201 | %{_libdir}/libgstvaapi-wayland-%{gstapi}.a | |
202 | %{_libdir}/libgstvaapi-x11-%{gstapi}.a | |
f9adce0f | 203 | %endif |
fe36652a JB |
204 | %endif |
205 | ||
206 | %files apidocs | |
207 | %defattr(644,root,root,755) | |
208 | %{_gtkdocdir}/gstreamer-vaapi-plugins-1.0 |