]>
Commit | Line | Data |
---|---|---|
f9adce0f JB |
1 | # |
2 | # Conditional build: | |
c4497ff0 | 3 | %bcond_without apidocs # API documentation |
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 |
4fd2f44d JB |
7 | %define gst_ver 1.20.0 |
8 | %define gstpb_ver 1.20.0 | |
9 | %define gstpd_ver 1.20.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 | |
146b9394 | 13 | Version: 1.20.2 |
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 |
146b9394 | 18 | # Source0-md5: e5fb2a8bdd7036e26f7975ea8bce567e |
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 | |
c4497ff0 | 25 | BuildRequires: glib2-devel >= 1:2.44.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} | |
c4497ff0 JB |
31 | %{?with_apidocs:BuildRequires: hotdoc >= 0.11.0} |
32 | BuildRequires: libdrm-devel >= 2.4.98 | |
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 | |
4fd2f44d | 37 | BuildRequires: meson >= 0.59 |
c4497ff0 | 38 | BuildRequires: ninja >= 1.5 |
11dd6f5e | 39 | BuildRequires: pkgconfig |
0163573a JB |
40 | BuildRequires: pkgconfig(egl) |
41 | BuildRequires: pkgconfig(gl) | |
42 | BuildRequires: pkgconfig(glesv2) | |
11dd6f5e | 43 | # libva API versions |
682ea262 JB |
44 | BuildRequires: pkgconfig(libva) >= 0.39.0 |
45 | BuildRequires: pkgconfig(libva-drm) >= 0.39.0 | |
46 | BuildRequires: pkgconfig(libva-wayland) >= 0.39.0 | |
47 | BuildRequires: pkgconfig(libva-x11) >= 0.39.0 | |
38f8edc6 | 48 | BuildRequires: rpm-build >= 4.6 |
c4497ff0 | 49 | BuildRequires: rpmbuild(macros) >= 1.736 |
38f8edc6 | 50 | BuildRequires: tar >= 1:1.22 |
11dd6f5e | 51 | BuildRequires: udev-devel |
682ea262 JB |
52 | BuildRequires: wayland-devel >= 1.11.0 |
53 | BuildRequires: wayland-protocols >= 1.15 | |
11dd6f5e JB |
54 | BuildRequires: xorg-lib-libX11-devel |
55 | BuildRequires: xorg-lib-libXrandr-devel | |
fe36652a | 56 | BuildRequires: xz |
2813e861 JB |
57 | %ifarch %{ix86} %{x8664} x32 |
58 | BuildRequires: yasm | |
59 | %endif | |
c4497ff0 | 60 | Requires: glib2 >= 1:2.44.0 |
fe36652a | 61 | Requires: gstreamer >= %{gst_ver} |
9f0dac75 | 62 | Requires: gstreamer-gl-libs >= %{gstpb_ver} |
fe36652a JB |
63 | Requires: gstreamer-plugins-bad >= %{gstpd_ver} |
64 | Requires: gstreamer-plugins-base >= %{gstpb_ver} | |
c4497ff0 | 65 | Requires: libdrm >= 2.4.98 |
2813e861 | 66 | Requires: libva >= 1.6.0 |
682ea262 | 67 | Requires: wayland >= 1.11.0 |
fe36652a | 68 | %if %{without api} |
a44fce07 ER |
69 | Obsoletes: gstreamer-vaapi-devel < %{version} |
70 | Obsoletes: gstreamer-vaapi-static < %{version} | |
fe36652a | 71 | %endif |
11dd6f5e JB |
72 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
73 | ||
74 | %description | |
75 | gstreamer-vaapi consists in a collection of VA-API based plugins for | |
76 | GStreamer and helper libraries. | |
77 | ||
78 | %description -l pl.UTF-8 | |
79 | gstreamer-vaapi zawiera zestaw opartych ma VA-API wtyczek dla | |
80 | GStreamera i bibliotek pomocniczych. | |
81 | ||
82 | %package devel | |
83 | Summary: Header files for GStreamer VA-API libraries | |
84 | Summary(pl.UTF-8): Pliki nagłówkowe bibliotek VA-API GStreamera | |
85 | Group: Development/Libraries | |
86 | Requires: %{name} = %{version}-%{release} | |
fe36652a JB |
87 | Requires: gstreamer-devel >= %{gst_ver} |
88 | Requires: gstreamer-plugins-base-devel >= %{gstpb_ver} | |
2813e861 | 89 | Requires: libva-devel >= 1.6.0 |
11dd6f5e | 90 | Requires: libva-drm-devel >= 1.1.0 |
11dd6f5e JB |
91 | Requires: libva-wayland-devel >= 1.1.0 |
92 | Requires: libva-x11-devel >= 1.0.3 | |
c4497ff0 | 93 | Obsoletes: gstreamer-vaapi-static < %{version} |
11dd6f5e JB |
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 | ||
fe36652a JB |
101 | %package apidocs |
102 | Summary: GStreamer VA-API plugins documentation | |
103 | Summary(pl.UTF-8): Dokumentacja do wtyczek GStreamera VA-API | |
104 | Group: Documentation | |
a44fce07 | 105 | BuildArch: noarch |
fe36652a JB |
106 | |
107 | %description apidocs | |
108 | GStreamer VA-API plugins documentation. | |
109 | ||
110 | %description apidocs -l pl.UTF-8 | |
111 | Dokumentacja do wtyczek GStreamera VA-API. | |
112 | ||
11dd6f5e JB |
113 | %prep |
114 | %setup -q | |
115 | ||
116 | %build | |
c4497ff0 JB |
117 | %meson build \ |
118 | --default-library=shared \ | |
119 | %{!?with_apidocs:-Ddoc=false} | |
120 | ||
121 | %ninja_build -C build | |
122 | ||
123 | %if %{with apidocs} | |
124 | cd build/docs | |
125 | LC_ALL=C.UTF-8 hotdoc run --conf-file vaapi-doc.json | |
126 | %endif | |
11dd6f5e JB |
127 | |
128 | %install | |
129 | rm -rf $RPM_BUILD_ROOT | |
130 | ||
c4497ff0 | 131 | %ninja_install -C build |
11dd6f5e | 132 | |
c4497ff0 JB |
133 | %if %{with apidocs} |
134 | install -d $RPM_BUILD_ROOT%{_docdir}/gstreamer-%{gstmver} | |
135 | cp -pr build/docs/vaapi-doc $RPM_BUILD_ROOT%{_docdir}/gstreamer-%{gstmver} | |
fe36652a | 136 | %endif |
11dd6f5e JB |
137 | |
138 | %clean | |
139 | rm -rf $RPM_BUILD_ROOT | |
140 | ||
fe36652a | 141 | %if %{with api} |
11dd6f5e JB |
142 | %post -p /sbin/ldconfig |
143 | %postun -p /sbin/ldconfig | |
fe36652a | 144 | %endif |
11dd6f5e JB |
145 | |
146 | %files | |
147 | %defattr(644,root,root,755) | |
4fd2f44d | 148 | %doc AUTHORS NEWS README RELEASE |
fe36652a | 149 | %if %{with api} |
602e2ec8 JB |
150 | %attr(755,root,root) %{_libdir}/libgstcodecparsers_vpx.so.*.*.* |
151 | %attr(755,root,root) %ghost %{_libdir}/libgstcodecparsers_vpx.so.0 | |
f29a028e | 152 | %attr(755,root,root) %{_libdir}/libgstvaapi-%{gstapi}.so.*.*.* |
2813e861 | 153 | %attr(755,root,root) %ghost %{_libdir}/libgstvaapi-%{gstapi}.so.1 |
f29a028e | 154 | %attr(755,root,root) %{_libdir}/libgstvaapi-drm-%{gstapi}.so.*.*.* |
2813e861 | 155 | %attr(755,root,root) %ghost %{_libdir}/libgstvaapi-drm-%{gstapi}.so.1 |
4771ed98 | 156 | %attr(755,root,root) %{_libdir}/libgstvaapi-egl-%{gstapi}.so.*.*.* |
2813e861 | 157 | %attr(755,root,root) %ghost %{_libdir}/libgstvaapi-egl-%{gstapi}.so.1 |
f29a028e | 158 | %attr(755,root,root) %{_libdir}/libgstvaapi-glx-%{gstapi}.so.*.*.* |
2813e861 | 159 | %attr(755,root,root) %ghost %{_libdir}/libgstvaapi-glx-%{gstapi}.so.1 |
f29a028e | 160 | %attr(755,root,root) %{_libdir}/libgstvaapi-wayland-%{gstapi}.so.*.*.* |
2813e861 | 161 | %attr(755,root,root) %ghost %{_libdir}/libgstvaapi-wayland-%{gstapi}.so.1 |
f29a028e | 162 | %attr(755,root,root) %{_libdir}/libgstvaapi-x11-%{gstapi}.so.*.*.* |
2813e861 | 163 | %attr(755,root,root) %ghost %{_libdir}/libgstvaapi-x11-%{gstapi}.so.1 |
fe36652a | 164 | %endif |
ee342302 | 165 | %attr(755,root,root) %{_libdir}/gstreamer-1.0/libgstvaapi.so |
11dd6f5e | 166 | |
fe36652a | 167 | %if %{with api} |
11dd6f5e JB |
168 | %files devel |
169 | %defattr(644,root,root,755) | |
602e2ec8 | 170 | %attr(755,root,root) %{_libdir}/libgstcodecparsers_vpx.so |
f29a028e AF |
171 | %attr(755,root,root) %{_libdir}/libgstvaapi-%{gstapi}.so |
172 | %attr(755,root,root) %{_libdir}/libgstvaapi-drm-%{gstapi}.so | |
4771ed98 | 173 | %attr(755,root,root) %{_libdir}/libgstvaapi-egl-%{gstapi}.so |
f29a028e AF |
174 | %attr(755,root,root) %{_libdir}/libgstvaapi-glx-%{gstapi}.so |
175 | %attr(755,root,root) %{_libdir}/libgstvaapi-wayland-%{gstapi}.so | |
176 | %attr(755,root,root) %{_libdir}/libgstvaapi-x11-%{gstapi}.so | |
602e2ec8 JB |
177 | %{_includedir}/gstreamer-1.0/gst/vaapi |
178 | %{_pkgconfigdir}/gstreamer-vaapi-1.0.pc | |
179 | %{_pkgconfigdir}/gstreamer-vaapi-drm-1.0.pc | |
180 | %{_pkgconfigdir}/gstreamer-vaapi-glx-1.0.pc | |
181 | %{_pkgconfigdir}/gstreamer-vaapi-wayland-1.0.pc | |
182 | %{_pkgconfigdir}/gstreamer-vaapi-x11-1.0.pc | |
fe36652a JB |
183 | %endif |
184 | ||
c4497ff0 | 185 | %if %{with apidocs} |
fe36652a JB |
186 | %files apidocs |
187 | %defattr(644,root,root,755) | |
c4497ff0 JB |
188 | %{_docdir}/gstreamer-%{gstmver}/vaapi-doc |
189 | %endif |