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