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