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