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