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