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