File gstreamer-0_10-plugins-vaapi.spec of Package gstreamer-0_10-plugins-vaapi
#
# spec file for package gstreamer-0_10-plugins-vaapi
#
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# every machine even wihtout the specific hardware.
#define SKIP_GSTPROVIDES 1
%define package_version 0.4.0
Name: gstreamer-0_10-plugins-vaapi
BuildRequires: Mesa-devel
BuildRequires: gstreamer-0_10-devel
BuildRequires: gstreamer-0_10-plugins-bad-devel
BuildRequires: gstreamer-0_10-plugins-base-devel
BuildRequires: gtk-doc
BuildRequires: libtool
BuildRequires: libva-devel
BuildRequires: pkgconfig
Summary: Gstreamer VA-API plugins
License: LGPL-2.1+
Group: Productivity/Multimedia/Other
Version: 0.4.0
Release: 0
Source0: gstreamer-vaapi-%{package_version}.tar.bz2
Url: http://gitorious.org/vaapi/gstreamer-vaapi
ExclusiveArch: %ix86 x86_64
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
gstreamer-vaapi is a collection of GStreamer plugins and helper libraries that allow hardware accelerated video decoding through VA-API.
%package devel
Summary: Include Files and Libraries mandatory for Development
Group: Development/Libraries/C and C++
Requires: %{name} = %{version}
%description devel
This package contains all necessary include files and libraries needed
to develop applications that require these.
%package -n libgstvaapi-0_10-0
Summary: Gstreamer VA-API plugins
Group: System/Libraries
%description -n libgstvaapi-0_10-0
gstreamer-vaapi is a collection of GStreamer plugins and helper libraries that allow hardware accelerated video decoding through VA-API.
%package -n libgstvaapi-glx-0_10-0
Summary: Gstreamer GLX VA-API plugins
Group: System/Libraries
%description -n libgstvaapi-glx-0_10-0
gstreamer-vaapi is a collection of GStreamer plugins and helper libraries that allow hardware accelerated video decoding through VA-API.
%package -n libgstvaapi-x11-0_10-0
Summary: Gstreamer X11 VA-API plugins
Group: System/Libraries
%description -n libgstvaapi-x11-0_10-0
gstreamer-vaapi is a collection of GStreamer plugins and helper libraries that allow hardware accelerated video decoding through VA-API.
%if %{suse_version} >= 1230
%package -n libgstvaapi-drm-0_10-0
Summary: Gstreamer DRM VA-API plugins
Group: System/Libraries
%description -n libgstvaapi-drm-0_10-0
gstreamer-vaapi is a collection of GStreamer plugins and helper libraries that allow hardware accelerated video decoding through VA-API.
%endif
%prep
%if 0%{?build_from_git}
%setup -q -n gstreamer-vaapi
%else
%setup -q -n gstreamer-vaapi-%{version}
%endif
%build
%if 0%{?build_from_git}
./autogen.sh
%endif
%configure --disable-static \
--enable-vaapisink-glx
make %{?_smp_mflags} V=1
%install
%makeinstall
find %{buildroot}%{_libdir} -name '*.la' -delete -print
%post -n libgstvaapi-0_10-0 -p /sbin/ldconfig
%postun -n libgstvaapi-0_10-0 -p /sbin/ldconfig
%post -n libgstvaapi-glx-0_10-0 -p /sbin/ldconfig
%postun -n libgstvaapi-glx-0_10-0 -p /sbin/ldconfig
%post -n libgstvaapi-x11-0_10-0 -p /sbin/ldconfig
%postun -n libgstvaapi-x11-0_10-0 -p /sbin/ldconfig
%if %{suse_version} >= 1230
%post -n libgstvaapi-drm-0_10-0 -p /sbin/ldconfig
%postun -n libgstvaapi-drm-0_10-0 -p /sbin/ldconfig
%endif
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,0755)
%doc AUTHORS COPYING.LIB NEWS README
%{_libdir}/gstreamer-*/*.so
%files -n libgstvaapi-0_10-0
%defattr(-,root,root,0755)
%{_libdir}/libgstvaapi-0.10.so.*
%files -n libgstvaapi-glx-0_10-0
%defattr(-,root,root,0755)
%{_libdir}/libgstvaapi-glx-0.10.so.*
%files -n libgstvaapi-x11-0_10-0
%defattr(-,root,root,0755)
%{_libdir}/libgstvaapi-x11-0.10.so.*
%if %{suse_version} >= 1230
%files -n libgstvaapi-drm-0_10-0
%defattr(-,root,root,0755)
%{_libdir}/libgstvaapi-drm-0.10.so.*
%endif
%files devel
%defattr(-,root,root,0755)
%{_includedir}/gstreamer-0.10/gst/vaapi
%{_libdir}/libgst*.so
%{_libdir}/pkgconfig/*.pc
%changelog