- updated dependencies
[packages/gstreamer-vaapi.git] / gstreamer-vaapi.spec
1 #
2 # Conditional build:
3 %bcond_without  static_libs     # static libraries
4 %bcond_with     api             # GST VA-API libraries API [no longer exported as of 1.6.0]
5
6 %define         gstapi          1.6
7 %define         gst_ver         1.16.0
8 %define         gstpb_ver       1.16.0
9 %define         gstpd_ver       1.16.0
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
13 Version:        1.16.0
14 Release:        1
15 License:        LGPL v2.1+
16 Group:          Libraries
17 Source0:        https://gstreamer.freedesktop.org/src/gstreamer-vaapi/%{name}-%{version}.tar.xz
18 # Source0-md5:  8c3f9ee3e47cbdb75a94f7183460b721
19 URL:            https://gstreamer.freedesktop.org/
20 BuildRequires:  Mesa-libEGL-devel
21 BuildRequires:  Mesa-libGL-devel
22 BuildRequires:  Mesa-libGLES-devel
23 BuildRequires:  autoconf >= 2.69
24 BuildRequires:  automake >= 1:1.14
25 BuildRequires:  glib2-devel >= 1:2.40.0
26 BuildRequires:  gstreamer-devel >= %{gst_ver}
27 BuildRequires:  gstreamer-gl-devel >= %{gstpb_ver}
28 # gstreamer-codecparsers
29 BuildRequires:  gstreamer-plugins-bad-devel >= %{gstpd_ver}
30 BuildRequires:  gstreamer-plugins-base-devel >= %{gstpb_ver}
31 BuildRequires:  gtk-doc >= 1.12
32 BuildRequires:  libdrm-devel
33 BuildRequires:  libtool >= 2:2.2
34 BuildRequires:  libva-devel >= 1.6.0
35 BuildRequires:  libva-drm-devel >= 1.1.0
36 BuildRequires:  libva-wayland-devel >= 1.1.0
37 BuildRequires:  libva-x11-devel >= 1.0.3
38 BuildRequires:  pkgconfig
39 # libva API versions
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
44 BuildRequires:  udev-devel
45 BuildRequires:  wayland-devel >= 1.11.0
46 BuildRequires:  wayland-protocols >= 1.15
47 BuildRequires:  tar >= 1:1.22
48 BuildRequires:  udev-devel
49 BuildRequires:  xorg-lib-libX11-devel
50 BuildRequires:  xorg-lib-libXrandr-devel
51 BuildRequires:  xorg-lib-libXrender-devel
52 BuildRequires:  xz
53 %ifarch %{ix86} %{x8664} x32
54 BuildRequires:  yasm
55 %endif
56 Requires:       glib2 >= 1:2.40.0
57 Requires:       gstreamer >= %{gst_ver}
58 Requires:       gstreamer-gl-libs >= %{gstpb_ver}
59 Requires:       gstreamer-plugins-bad >= %{gstpd_ver}
60 Requires:       gstreamer-plugins-base >= %{gstpb_ver}
61 Requires:       libva >= 1.6.0
62 Requires:       wayland >= 1.11.0
63 %if %{without api}
64 Obsoletes:      gstreamer-vaapi-devel < %{version}
65 Obsoletes:      gstreamer-vaapi-static < %{version}
66 %endif
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}
82 Requires:       gstreamer-devel >= %{gst_ver}
83 Requires:       gstreamer-plugins-base-devel >= %{gstpb_ver}
84 Requires:       libva-devel >= 1.6.0
85 Requires:       libva-drm-devel >= 1.1.0
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
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
107 %package apidocs
108 Summary:        GStreamer VA-API plugins documentation
109 Summary(pl.UTF-8):      Dokumentacja do wtyczek GStreamera VA-API
110 Group:          Documentation
111 %if "%{_rpmversion}" >= "5"
112 BuildArch:      noarch
113 %endif
114
115 %description apidocs
116 GStreamer VA-API plugins documentation.
117
118 %description apidocs -l pl.UTF-8
119 Dokumentacja do wtyczek GStreamera VA-API.
120
121 %prep
122 %setup -q
123
124 %build
125 %{__libtoolize}
126 %{__aclocal} -I m4 -I common/m4
127 %{__autoconf}
128 %{__autoheader}
129 %{__automake}
130 %configure \
131         --disable-silent-rules \
132         %{!?with_static_libs:--disable-static} \
133         --with-html-dir=%{_gtkdocdir}
134
135 %{__make}
136
137 %install
138 rm -rf $RPM_BUILD_ROOT
139
140 %{__make} install \
141         DESTDIR=$RPM_BUILD_ROOT
142
143 # gstreamer module
144 %{__rm} $RPM_BUILD_ROOT%{_libdir}/gstreamer-1.0/libgst*.la
145 %if %{with api}
146 # obsoleted by pkg-config
147 %{__rm} $RPM_BUILD_ROOT%{_libdir}/lib*.la
148 %endif
149
150 %clean
151 rm -rf $RPM_BUILD_ROOT
152
153 %if %{with api}
154 %post   -p /sbin/ldconfig
155 %postun -p /sbin/ldconfig
156 %endif
157
158 %files
159 %defattr(644,root,root,755)
160 %doc AUTHORS NEWS README
161 %if %{with api}
162 %attr(755,root,root) %{_libdir}/libgstcodecparsers_vpx.so.*.*.*
163 %attr(755,root,root) %ghost %{_libdir}/libgstcodecparsers_vpx.so.0
164 %attr(755,root,root) %{_libdir}/libgstvaapi-%{gstapi}.so.*.*.*
165 %attr(755,root,root) %ghost %{_libdir}/libgstvaapi-%{gstapi}.so.1
166 %attr(755,root,root) %{_libdir}/libgstvaapi-drm-%{gstapi}.so.*.*.*
167 %attr(755,root,root) %ghost %{_libdir}/libgstvaapi-drm-%{gstapi}.so.1
168 %attr(755,root,root) %{_libdir}/libgstvaapi-egl-%{gstapi}.so.*.*.*
169 %attr(755,root,root) %ghost %{_libdir}/libgstvaapi-egl-%{gstapi}.so.1
170 %attr(755,root,root) %{_libdir}/libgstvaapi-glx-%{gstapi}.so.*.*.*
171 %attr(755,root,root) %ghost %{_libdir}/libgstvaapi-glx-%{gstapi}.so.1
172 %attr(755,root,root) %{_libdir}/libgstvaapi-wayland-%{gstapi}.so.*.*.*
173 %attr(755,root,root) %ghost %{_libdir}/libgstvaapi-wayland-%{gstapi}.so.1
174 %attr(755,root,root) %{_libdir}/libgstvaapi-x11-%{gstapi}.so.*.*.*
175 %attr(755,root,root) %ghost %{_libdir}/libgstvaapi-x11-%{gstapi}.so.1
176 %endif
177 %attr(755,root,root) %{_libdir}/gstreamer-1.0/libgstvaapi.so
178
179 %if %{with api}
180 %files devel
181 %defattr(644,root,root,755)
182 %attr(755,root,root) %{_libdir}/libgstcodecparsers_vpx.so
183 %attr(755,root,root) %{_libdir}/libgstvaapi-%{gstapi}.so
184 %attr(755,root,root) %{_libdir}/libgstvaapi-drm-%{gstapi}.so
185 %attr(755,root,root) %{_libdir}/libgstvaapi-egl-%{gstapi}.so
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
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
195
196 %if %{with static_libs}
197 %files static
198 %defattr(644,root,root,755)
199 %{_libdir}/libgstcodecparsers_vpx.a
200 %{_libdir}/libgstvaapi-%{gstapi}.a
201 %{_libdir}/libgstvaapi-drm-%{gstapi}.a
202 %{_libdir}/libgstvaapi-egl-%{gstapi}.a
203 %{_libdir}/libgstvaapi-glx-%{gstapi}.a
204 %{_libdir}/libgstvaapi-wayland-%{gstapi}.a
205 %{_libdir}/libgstvaapi-x11-%{gstapi}.a
206 %endif
207 %endif
208
209 %files apidocs
210 %defattr(644,root,root,755)
211 %{_gtkdocdir}/gstreamer-vaapi-plugins-1.0
This page took 0.052864 seconds and 3 git commands to generate.