]>
Commit | Line | Data |
---|---|---|
f9adce0f JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without static_libs # static libraries | |
4 | # | |
2813e861 | 5 | %define gstapi 1.6 |
11dd6f5e JB |
6 | Summary: GStreamer plugin to support Video Acceleration API |
7 | Summary(pl.UTF-8): Wtyczka GStreamera obsługująca Video Acceleration API | |
8 | Name: gstreamer-vaapi | |
2813e861 JB |
9 | Version: 0.6.1 |
10 | Release: 1 | |
11dd6f5e JB |
11 | License: LGPL v2.1+ |
12 | Group: Libraries | |
13 | Source0: http://www.freedesktop.org/software/vaapi/releases/gstreamer-vaapi/%{name}-%{version}.tar.bz2 | |
2813e861 | 14 | # Source0-md5: f01425481bd161f57334dab7ab4069d3 |
4771ed98 | 15 | Patch0: %{name}-link.patch |
11dd6f5e | 16 | URL: http://www.freedesktop.org/wiki/Software/vaapi/ |
4771ed98 | 17 | BuildRequires: Mesa-libEGL-devel |
11dd6f5e | 18 | BuildRequires: Mesa-libGL-devel |
4771ed98 | 19 | BuildRequires: Mesa-libGLES-devel |
ee342302 | 20 | BuildRequires: autoconf >= 2.66 |
11dd6f5e | 21 | BuildRequires: automake >= 1:1.11 |
4771ed98 | 22 | BuildRequires: glib2-devel >= 1:2.32.0 |
2813e861 JB |
23 | BuildRequires: gstreamer-devel >= 1.6.0 |
24 | BuildRequires: gstreamer-plugins-bad-devel >= 1.6.0 | |
25 | BuildRequires: gstreamer-plugins-base-devel >= 1.6.0 | |
11dd6f5e JB |
26 | BuildRequires: gtk-doc >= 1.12 |
27 | BuildRequires: libdrm-devel | |
28 | BuildRequires: libtool >= 2:2.2 | |
2813e861 | 29 | BuildRequires: libva-devel >= 1.6.0 |
11dd6f5e | 30 | BuildRequires: libva-drm-devel >= 1.1.0 |
11dd6f5e JB |
31 | BuildRequires: libva-wayland-devel >= 1.1.0 |
32 | BuildRequires: libva-x11-devel >= 1.0.3 | |
33 | BuildRequires: pkgconfig | |
34 | # libva API versions | |
2813e861 | 35 | BuildRequires: pkgconfig(libva) >= 0.38.0 |
11dd6f5e | 36 | BuildRequires: pkgconfig(libva-drm) >= 0.33.0 |
11dd6f5e JB |
37 | BuildRequires: pkgconfig(libva-wayland) >= 0.33.0 |
38 | BuildRequires: pkgconfig(libva-x11) >= 0.31.0 | |
39 | BuildRequires: udev-devel | |
2813e861 | 40 | BuildRequires: wayland-devel >= 1.0.2 |
11dd6f5e JB |
41 | BuildRequires: xorg-lib-libX11-devel |
42 | BuildRequires: xorg-lib-libXrandr-devel | |
07271103 | 43 | BuildRequires: xorg-lib-libXrender-devel |
2813e861 JB |
44 | %ifarch %{ix86} %{x8664} x32 |
45 | BuildRequires: yasm | |
46 | %endif | |
4771ed98 | 47 | Requires: glib2 >= 1:2.32.0 |
2813e861 JB |
48 | Requires: gstreamer >= 1.6.0 |
49 | Requires: gstreamer-plugins-bad >= 1.6.0 | |
50 | Requires: gstreamer-plugins-base >= 1.6.0 | |
51 | Requires: libva >= 1.6.0 | |
11dd6f5e JB |
52 | Requires: wayland >= 1.0.0 |
53 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
54 | ||
55 | %description | |
56 | gstreamer-vaapi consists in a collection of VA-API based plugins for | |
57 | GStreamer and helper libraries. | |
58 | ||
59 | %description -l pl.UTF-8 | |
60 | gstreamer-vaapi zawiera zestaw opartych ma VA-API wtyczek dla | |
61 | GStreamera i bibliotek pomocniczych. | |
62 | ||
63 | %package devel | |
64 | Summary: Header files for GStreamer VA-API libraries | |
65 | Summary(pl.UTF-8): Pliki nagłówkowe bibliotek VA-API GStreamera | |
66 | Group: Development/Libraries | |
67 | Requires: %{name} = %{version}-%{release} | |
2813e861 JB |
68 | Requires: gstreamer-devel >= 1.6.0 |
69 | Requires: gstreamer-plugins-base-devel >= 1.6.0 | |
70 | Requires: libva-devel >= 1.6.0 | |
11dd6f5e | 71 | Requires: libva-drm-devel >= 1.1.0 |
11dd6f5e JB |
72 | Requires: libva-wayland-devel >= 1.1.0 |
73 | Requires: libva-x11-devel >= 1.0.3 | |
74 | ||
75 | %description devel | |
76 | Header files for GStreamer VA-API helper libraries. | |
77 | ||
78 | %description devel -l pl.UTF-8 | |
79 | Pliki nagłówkowe bibliotek pomocniczych VA-API GStreamera. | |
80 | ||
f9adce0f JB |
81 | %package static |
82 | Summary: Static GStreamer VA-API libraries | |
83 | Summary(pl.UTF-8): Statyczne biblioteki VA-API GStreamera | |
84 | Group: Development/Libraries | |
85 | Requires: %{name}-devel = %{version}-%{release} | |
86 | ||
87 | %description static | |
88 | Static GStreamer VA-API libraries. | |
89 | ||
90 | %description static -l pl.UTF-8 | |
91 | Statyczne biblioteki VA-API GStreamera. | |
92 | ||
11dd6f5e JB |
93 | %prep |
94 | %setup -q | |
4771ed98 | 95 | %patch0 -p1 |
11dd6f5e JB |
96 | |
97 | %build | |
98 | %{__libtoolize} | |
99 | %{__aclocal} | |
100 | %{__autoconf} | |
101 | %{__autoheader} | |
102 | %{__automake} | |
103 | %configure \ | |
2813e861 | 104 | --disable-builtin-codecparsers \ |
f9adce0f | 105 | --disable-silent-rules \ |
2813e861 | 106 | %{!?with_static_libs:--disable-static} |
11dd6f5e | 107 | |
cfba30f8 JR |
108 | %{__make} V=1 \ |
109 | HAVE_GNU_STRIP=no \ | |
110 | CC="%{__cc}" \ | |
111 | LD="%{__cc}" \ | |
112 | LDFLAGS="%{rpmldflags}" | |
11dd6f5e JB |
113 | |
114 | %install | |
115 | rm -rf $RPM_BUILD_ROOT | |
116 | ||
117 | %{__make} install \ | |
118 | DESTDIR=$RPM_BUILD_ROOT | |
119 | ||
120 | # gstreamer module | |
ee342302 | 121 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/gstreamer-1.0/libgst*.la |
f9adce0f JB |
122 | # obsoleted by pkg-config |
123 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/lib*.la | |
11dd6f5e JB |
124 | |
125 | %clean | |
126 | rm -rf $RPM_BUILD_ROOT | |
127 | ||
128 | %post -p /sbin/ldconfig | |
129 | %postun -p /sbin/ldconfig | |
130 | ||
131 | %files | |
132 | %defattr(644,root,root,755) | |
133 | %doc AUTHORS NEWS README | |
602e2ec8 JB |
134 | %attr(755,root,root) %{_libdir}/libgstcodecparsers_vpx.so.*.*.* |
135 | %attr(755,root,root) %ghost %{_libdir}/libgstcodecparsers_vpx.so.0 | |
f29a028e | 136 | %attr(755,root,root) %{_libdir}/libgstvaapi-%{gstapi}.so.*.*.* |
2813e861 | 137 | %attr(755,root,root) %ghost %{_libdir}/libgstvaapi-%{gstapi}.so.1 |
f29a028e | 138 | %attr(755,root,root) %{_libdir}/libgstvaapi-drm-%{gstapi}.so.*.*.* |
2813e861 | 139 | %attr(755,root,root) %ghost %{_libdir}/libgstvaapi-drm-%{gstapi}.so.1 |
4771ed98 | 140 | %attr(755,root,root) %{_libdir}/libgstvaapi-egl-%{gstapi}.so.*.*.* |
2813e861 | 141 | %attr(755,root,root) %ghost %{_libdir}/libgstvaapi-egl-%{gstapi}.so.1 |
f29a028e | 142 | %attr(755,root,root) %{_libdir}/libgstvaapi-glx-%{gstapi}.so.*.*.* |
2813e861 | 143 | %attr(755,root,root) %ghost %{_libdir}/libgstvaapi-glx-%{gstapi}.so.1 |
f29a028e | 144 | %attr(755,root,root) %{_libdir}/libgstvaapi-wayland-%{gstapi}.so.*.*.* |
2813e861 | 145 | %attr(755,root,root) %ghost %{_libdir}/libgstvaapi-wayland-%{gstapi}.so.1 |
f29a028e | 146 | %attr(755,root,root) %{_libdir}/libgstvaapi-x11-%{gstapi}.so.*.*.* |
2813e861 | 147 | %attr(755,root,root) %ghost %{_libdir}/libgstvaapi-x11-%{gstapi}.so.1 |
ee342302 | 148 | %attr(755,root,root) %{_libdir}/gstreamer-1.0/libgstvaapi.so |
602e2ec8 | 149 | %attr(755,root,root) %{_libdir}/gstreamer-1.0/libgstvaapi_parse.so |
11dd6f5e JB |
150 | |
151 | %files devel | |
152 | %defattr(644,root,root,755) | |
602e2ec8 | 153 | %attr(755,root,root) %{_libdir}/libgstcodecparsers_vpx.so |
f29a028e AF |
154 | %attr(755,root,root) %{_libdir}/libgstvaapi-%{gstapi}.so |
155 | %attr(755,root,root) %{_libdir}/libgstvaapi-drm-%{gstapi}.so | |
4771ed98 | 156 | %attr(755,root,root) %{_libdir}/libgstvaapi-egl-%{gstapi}.so |
f29a028e AF |
157 | %attr(755,root,root) %{_libdir}/libgstvaapi-glx-%{gstapi}.so |
158 | %attr(755,root,root) %{_libdir}/libgstvaapi-wayland-%{gstapi}.so | |
159 | %attr(755,root,root) %{_libdir}/libgstvaapi-x11-%{gstapi}.so | |
602e2ec8 JB |
160 | %{_includedir}/gstreamer-1.0/gst/vaapi |
161 | %{_pkgconfigdir}/gstreamer-vaapi-1.0.pc | |
162 | %{_pkgconfigdir}/gstreamer-vaapi-drm-1.0.pc | |
163 | %{_pkgconfigdir}/gstreamer-vaapi-glx-1.0.pc | |
164 | %{_pkgconfigdir}/gstreamer-vaapi-wayland-1.0.pc | |
165 | %{_pkgconfigdir}/gstreamer-vaapi-x11-1.0.pc | |
f9adce0f JB |
166 | |
167 | %if %{with static_libs} | |
168 | %files static | |
169 | %defattr(644,root,root,755) | |
602e2ec8 | 170 | %{_libdir}/libgstcodecparsers_vpx.a |
f29a028e AF |
171 | %{_libdir}/libgstvaapi-%{gstapi}.a |
172 | %{_libdir}/libgstvaapi-drm-%{gstapi}.a | |
4771ed98 | 173 | %{_libdir}/libgstvaapi-egl-%{gstapi}.a |
f29a028e AF |
174 | %{_libdir}/libgstvaapi-glx-%{gstapi}.a |
175 | %{_libdir}/libgstvaapi-wayland-%{gstapi}.a | |
176 | %{_libdir}/libgstvaapi-x11-%{gstapi}.a | |
f9adce0f | 177 | %endif |