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