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