]>
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 | |
df856444 | 10 | Version: 0.5.10 |
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 | |
df856444 | 15 | # Source0-md5: 3bd90b696b644be943450ba0c1497193 |
11dd6f5e JB |
16 | URL: http://www.freedesktop.org/wiki/Software/vaapi/ |
17 | BuildRequires: Mesa-libGL-devel | |
ee342302 | 18 | BuildRequires: autoconf >= 2.66 |
11dd6f5e JB |
19 | BuildRequires: automake >= 1:1.11 |
20 | BuildRequires: glib2-devel >= 1:2.28.0 | |
602e2ec8 JB |
21 | BuildRequires: gstreamer-devel >= 1.4.0 |
22 | BuildRequires: gstreamer-plugins-bad-devel >= 1.4.0 | |
23 | BuildRequires: gstreamer-plugins-base-devel >= 1.4.0 | |
11dd6f5e JB |
24 | BuildRequires: gtk-doc >= 1.12 |
25 | BuildRequires: libdrm-devel | |
26 | BuildRequires: libtool >= 2:2.2 | |
a37dea94 | 27 | BuildRequires: libva-devel >= 1.2.0 |
11dd6f5e JB |
28 | BuildRequires: libva-drm-devel >= 1.1.0 |
29 | BuildRequires: libva-glx-devel >= 1.0.9 | |
30 | BuildRequires: libva-wayland-devel >= 1.1.0 | |
31 | BuildRequires: libva-x11-devel >= 1.0.3 | |
32 | BuildRequires: pkgconfig | |
33 | # libva API versions | |
a37dea94 | 34 | BuildRequires: pkgconfig(libva) >= 0.34.0 |
11dd6f5e JB |
35 | BuildRequires: pkgconfig(libva-drm) >= 0.33.0 |
36 | BuildRequires: pkgconfig(libva-glx) >= 0.32.0 | |
37 | BuildRequires: pkgconfig(libva-wayland) >= 0.33.0 | |
38 | BuildRequires: pkgconfig(libva-x11) >= 0.31.0 | |
39 | BuildRequires: udev-devel | |
40 | BuildRequires: wayland-devel >= 1.0.0 | |
41 | BuildRequires: xorg-lib-libX11-devel | |
42 | BuildRequires: xorg-lib-libXrandr-devel | |
07271103 | 43 | BuildRequires: xorg-lib-libXrender-devel |
11dd6f5e | 44 | Requires: glib2 >= 1:2.28.0 |
ee342302 | 45 | Requires: gstreamer >= 1.0.0 |
602e2ec8 JB |
46 | Requires: gstreamer-plugins-bad >= 1.4.0 |
47 | Requires: gstreamer-plugins-base >= 1.4.0 | |
a37dea94 | 48 | Requires: libva >= 1.2.0 |
11dd6f5e JB |
49 | Requires: wayland >= 1.0.0 |
50 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
51 | ||
52 | %description | |
53 | gstreamer-vaapi consists in a collection of VA-API based plugins for | |
54 | GStreamer and helper libraries. | |
55 | ||
56 | %description -l pl.UTF-8 | |
57 | gstreamer-vaapi zawiera zestaw opartych ma VA-API wtyczek dla | |
58 | GStreamera i bibliotek pomocniczych. | |
59 | ||
60 | %package devel | |
61 | Summary: Header files for GStreamer VA-API libraries | |
62 | Summary(pl.UTF-8): Pliki nagłówkowe bibliotek VA-API GStreamera | |
63 | Group: Development/Libraries | |
64 | Requires: %{name} = %{version}-%{release} | |
602e2ec8 JB |
65 | Requires: gstreamer-devel >= 1.4.0 |
66 | Requires: gstreamer-plugins-base-devel >= 1.4.0 | |
a37dea94 | 67 | Requires: libva-devel >= 1.2.0 |
11dd6f5e JB |
68 | Requires: libva-drm-devel >= 1.1.0 |
69 | Requires: libva-glx-devel >= 1.0.9 | |
70 | Requires: libva-wayland-devel >= 1.1.0 | |
71 | Requires: libva-x11-devel >= 1.0.3 | |
72 | ||
73 | %description devel | |
74 | Header files for GStreamer VA-API helper libraries. | |
75 | ||
76 | %description devel -l pl.UTF-8 | |
77 | Pliki nagłówkowe bibliotek pomocniczych VA-API GStreamera. | |
78 | ||
f9adce0f JB |
79 | %package static |
80 | Summary: Static GStreamer VA-API libraries | |
81 | Summary(pl.UTF-8): Statyczne biblioteki VA-API GStreamera | |
82 | Group: Development/Libraries | |
83 | Requires: %{name}-devel = %{version}-%{release} | |
84 | ||
85 | %description static | |
86 | Static GStreamer VA-API libraries. | |
87 | ||
88 | %description static -l pl.UTF-8 | |
89 | Statyczne biblioteki VA-API GStreamera. | |
90 | ||
11dd6f5e JB |
91 | %prep |
92 | %setup -q | |
93 | ||
94 | %build | |
95 | %{__libtoolize} | |
96 | %{__aclocal} | |
97 | %{__autoconf} | |
98 | %{__autoheader} | |
99 | %{__automake} | |
100 | %configure \ | |
f9adce0f | 101 | --disable-silent-rules \ |
f29a028e AF |
102 | %{!?with_static_libs:--disable-static} \ |
103 | --with-gstreamer-api=%{gstapi} | |
11dd6f5e JB |
104 | |
105 | %{__make} | |
106 | ||
107 | %install | |
108 | rm -rf $RPM_BUILD_ROOT | |
109 | ||
110 | %{__make} install \ | |
111 | DESTDIR=$RPM_BUILD_ROOT | |
112 | ||
113 | # gstreamer module | |
ee342302 | 114 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/gstreamer-1.0/libgst*.la |
f9adce0f JB |
115 | # obsoleted by pkg-config |
116 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/lib*.la | |
11dd6f5e JB |
117 | |
118 | %clean | |
119 | rm -rf $RPM_BUILD_ROOT | |
120 | ||
121 | %post -p /sbin/ldconfig | |
122 | %postun -p /sbin/ldconfig | |
123 | ||
124 | %files | |
125 | %defattr(644,root,root,755) | |
126 | %doc AUTHORS NEWS README | |
602e2ec8 JB |
127 | %attr(755,root,root) %{_libdir}/libgstcodecparsers_vpx.so.*.*.* |
128 | %attr(755,root,root) %ghost %{_libdir}/libgstcodecparsers_vpx.so.0 | |
f29a028e | 129 | %attr(755,root,root) %{_libdir}/libgstvaapi-%{gstapi}.so.*.*.* |
df856444 | 130 | %attr(755,root,root) %ghost %{_libdir}/libgstvaapi-%{gstapi}.so.1 |
f29a028e | 131 | %attr(755,root,root) %{_libdir}/libgstvaapi-drm-%{gstapi}.so.*.*.* |
df856444 | 132 | %attr(755,root,root) %ghost %{_libdir}/libgstvaapi-drm-%{gstapi}.so.1 |
f29a028e | 133 | %attr(755,root,root) %{_libdir}/libgstvaapi-glx-%{gstapi}.so.*.*.* |
df856444 | 134 | %attr(755,root,root) %ghost %{_libdir}/libgstvaapi-glx-%{gstapi}.so.1 |
f29a028e | 135 | %attr(755,root,root) %{_libdir}/libgstvaapi-wayland-%{gstapi}.so.*.*.* |
df856444 | 136 | %attr(755,root,root) %ghost %{_libdir}/libgstvaapi-wayland-%{gstapi}.so.1 |
f29a028e | 137 | %attr(755,root,root) %{_libdir}/libgstvaapi-x11-%{gstapi}.so.*.*.* |
df856444 | 138 | %attr(755,root,root) %ghost %{_libdir}/libgstvaapi-x11-%{gstapi}.so.1 |
ee342302 | 139 | %attr(755,root,root) %{_libdir}/gstreamer-1.0/libgstvaapi.so |
602e2ec8 | 140 | %attr(755,root,root) %{_libdir}/gstreamer-1.0/libgstvaapi_parse.so |
11dd6f5e JB |
141 | |
142 | %files devel | |
143 | %defattr(644,root,root,755) | |
602e2ec8 | 144 | %attr(755,root,root) %{_libdir}/libgstcodecparsers_vpx.so |
f29a028e AF |
145 | %attr(755,root,root) %{_libdir}/libgstvaapi-%{gstapi}.so |
146 | %attr(755,root,root) %{_libdir}/libgstvaapi-drm-%{gstapi}.so | |
147 | %attr(755,root,root) %{_libdir}/libgstvaapi-glx-%{gstapi}.so | |
148 | %attr(755,root,root) %{_libdir}/libgstvaapi-wayland-%{gstapi}.so | |
149 | %attr(755,root,root) %{_libdir}/libgstvaapi-x11-%{gstapi}.so | |
602e2ec8 JB |
150 | %{_includedir}/gstreamer-1.0/gst/vaapi |
151 | %{_pkgconfigdir}/gstreamer-vaapi-1.0.pc | |
152 | %{_pkgconfigdir}/gstreamer-vaapi-drm-1.0.pc | |
153 | %{_pkgconfigdir}/gstreamer-vaapi-glx-1.0.pc | |
154 | %{_pkgconfigdir}/gstreamer-vaapi-wayland-1.0.pc | |
155 | %{_pkgconfigdir}/gstreamer-vaapi-x11-1.0.pc | |
f9adce0f JB |
156 | |
157 | %if %{with static_libs} | |
158 | %files static | |
159 | %defattr(644,root,root,755) | |
602e2ec8 | 160 | %{_libdir}/libgstcodecparsers_vpx.a |
f29a028e AF |
161 | %{_libdir}/libgstvaapi-%{gstapi}.a |
162 | %{_libdir}/libgstvaapi-drm-%{gstapi}.a | |
163 | %{_libdir}/libgstvaapi-glx-%{gstapi}.a | |
164 | %{_libdir}/libgstvaapi-wayland-%{gstapi}.a | |
165 | %{_libdir}/libgstvaapi-x11-%{gstapi}.a | |
f9adce0f | 166 | %endif |