]>
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 |
c4497ff0 JB |
7 | %define gst_ver 1.18.5 |
8 | %define gstpb_ver 1.18.5 | |
9 | %define gstpd_ver 1.18.5 | |
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 | |
c4497ff0 | 13 | Version: 1.18.5 |
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 |
c4497ff0 | 18 | # Source0-md5: aae78428770dd3cc3673b2e3b50931f6 |
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 | |
c4497ff0 JB |
37 | BuildRequires: meson >= 0.48.0 |
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 | |
07271103 | 56 | BuildRequires: xorg-lib-libXrender-devel |
fe36652a | 57 | BuildRequires: xz |
2813e861 JB |
58 | %ifarch %{ix86} %{x8664} x32 |
59 | BuildRequires: yasm | |
60 | %endif | |
c4497ff0 | 61 | Requires: glib2 >= 1:2.44.0 |
fe36652a | 62 | Requires: gstreamer >= %{gst_ver} |
9f0dac75 | 63 | Requires: gstreamer-gl-libs >= %{gstpb_ver} |
fe36652a JB |
64 | Requires: gstreamer-plugins-bad >= %{gstpd_ver} |
65 | Requires: gstreamer-plugins-base >= %{gstpb_ver} | |
c4497ff0 | 66 | Requires: libdrm >= 2.4.98 |
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 | |
c4497ff0 | 94 | Obsoletes: gstreamer-vaapi-static < %{version} |
11dd6f5e JB |
95 | |
96 | %description devel | |
97 | Header files for GStreamer VA-API helper libraries. | |
98 | ||
99 | %description devel -l pl.UTF-8 | |
100 | Pliki nagłówkowe bibliotek pomocniczych VA-API GStreamera. | |
101 | ||
fe36652a JB |
102 | %package apidocs |
103 | Summary: GStreamer VA-API plugins documentation | |
104 | Summary(pl.UTF-8): Dokumentacja do wtyczek GStreamera VA-API | |
105 | Group: Documentation | |
a44fce07 | 106 | BuildArch: noarch |
fe36652a JB |
107 | |
108 | %description apidocs | |
109 | GStreamer VA-API plugins documentation. | |
110 | ||
111 | %description apidocs -l pl.UTF-8 | |
112 | Dokumentacja do wtyczek GStreamera VA-API. | |
113 | ||
11dd6f5e JB |
114 | %prep |
115 | %setup -q | |
116 | ||
117 | %build | |
c4497ff0 JB |
118 | %meson build \ |
119 | --default-library=shared \ | |
120 | %{!?with_apidocs:-Ddoc=false} | |
121 | ||
122 | %ninja_build -C build | |
123 | ||
124 | %if %{with apidocs} | |
125 | cd build/docs | |
126 | LC_ALL=C.UTF-8 hotdoc run --conf-file vaapi-doc.json | |
127 | %endif | |
11dd6f5e JB |
128 | |
129 | %install | |
130 | rm -rf $RPM_BUILD_ROOT | |
131 | ||
c4497ff0 | 132 | %ninja_install -C build |
11dd6f5e | 133 | |
c4497ff0 JB |
134 | %if %{with apidocs} |
135 | install -d $RPM_BUILD_ROOT%{_docdir}/gstreamer-%{gstmver} | |
136 | cp -pr build/docs/vaapi-doc $RPM_BUILD_ROOT%{_docdir}/gstreamer-%{gstmver} | |
fe36652a | 137 | %endif |
11dd6f5e JB |
138 | |
139 | %clean | |
140 | rm -rf $RPM_BUILD_ROOT | |
141 | ||
fe36652a | 142 | %if %{with api} |
11dd6f5e JB |
143 | %post -p /sbin/ldconfig |
144 | %postun -p /sbin/ldconfig | |
fe36652a | 145 | %endif |
11dd6f5e JB |
146 | |
147 | %files | |
148 | %defattr(644,root,root,755) | |
149 | %doc AUTHORS NEWS README | |
fe36652a | 150 | %if %{with api} |
602e2ec8 JB |
151 | %attr(755,root,root) %{_libdir}/libgstcodecparsers_vpx.so.*.*.* |
152 | %attr(755,root,root) %ghost %{_libdir}/libgstcodecparsers_vpx.so.0 | |
f29a028e | 153 | %attr(755,root,root) %{_libdir}/libgstvaapi-%{gstapi}.so.*.*.* |
2813e861 | 154 | %attr(755,root,root) %ghost %{_libdir}/libgstvaapi-%{gstapi}.so.1 |
f29a028e | 155 | %attr(755,root,root) %{_libdir}/libgstvaapi-drm-%{gstapi}.so.*.*.* |
2813e861 | 156 | %attr(755,root,root) %ghost %{_libdir}/libgstvaapi-drm-%{gstapi}.so.1 |
4771ed98 | 157 | %attr(755,root,root) %{_libdir}/libgstvaapi-egl-%{gstapi}.so.*.*.* |
2813e861 | 158 | %attr(755,root,root) %ghost %{_libdir}/libgstvaapi-egl-%{gstapi}.so.1 |
f29a028e | 159 | %attr(755,root,root) %{_libdir}/libgstvaapi-glx-%{gstapi}.so.*.*.* |
2813e861 | 160 | %attr(755,root,root) %ghost %{_libdir}/libgstvaapi-glx-%{gstapi}.so.1 |
f29a028e | 161 | %attr(755,root,root) %{_libdir}/libgstvaapi-wayland-%{gstapi}.so.*.*.* |
2813e861 | 162 | %attr(755,root,root) %ghost %{_libdir}/libgstvaapi-wayland-%{gstapi}.so.1 |
f29a028e | 163 | %attr(755,root,root) %{_libdir}/libgstvaapi-x11-%{gstapi}.so.*.*.* |
2813e861 | 164 | %attr(755,root,root) %ghost %{_libdir}/libgstvaapi-x11-%{gstapi}.so.1 |
fe36652a | 165 | %endif |
ee342302 | 166 | %attr(755,root,root) %{_libdir}/gstreamer-1.0/libgstvaapi.so |
11dd6f5e | 167 | |
fe36652a | 168 | %if %{with api} |
11dd6f5e JB |
169 | %files devel |
170 | %defattr(644,root,root,755) | |
602e2ec8 | 171 | %attr(755,root,root) %{_libdir}/libgstcodecparsers_vpx.so |
f29a028e AF |
172 | %attr(755,root,root) %{_libdir}/libgstvaapi-%{gstapi}.so |
173 | %attr(755,root,root) %{_libdir}/libgstvaapi-drm-%{gstapi}.so | |
4771ed98 | 174 | %attr(755,root,root) %{_libdir}/libgstvaapi-egl-%{gstapi}.so |
f29a028e AF |
175 | %attr(755,root,root) %{_libdir}/libgstvaapi-glx-%{gstapi}.so |
176 | %attr(755,root,root) %{_libdir}/libgstvaapi-wayland-%{gstapi}.so | |
177 | %attr(755,root,root) %{_libdir}/libgstvaapi-x11-%{gstapi}.so | |
602e2ec8 JB |
178 | %{_includedir}/gstreamer-1.0/gst/vaapi |
179 | %{_pkgconfigdir}/gstreamer-vaapi-1.0.pc | |
180 | %{_pkgconfigdir}/gstreamer-vaapi-drm-1.0.pc | |
181 | %{_pkgconfigdir}/gstreamer-vaapi-glx-1.0.pc | |
182 | %{_pkgconfigdir}/gstreamer-vaapi-wayland-1.0.pc | |
183 | %{_pkgconfigdir}/gstreamer-vaapi-x11-1.0.pc | |
fe36652a JB |
184 | %endif |
185 | ||
c4497ff0 | 186 | %if %{with apidocs} |
fe36652a JB |
187 | %files apidocs |
188 | %defattr(644,root,root,755) | |
c4497ff0 JB |
189 | %{_docdir}/gstreamer-%{gstmver}/vaapi-doc |
190 | %endif |