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