2011-03-29 18:06:59 +02:00
|
|
|
#
|
|
|
|
# spec file for package libva
|
|
|
|
#
|
2014-04-28 00:06:35 +02:00
|
|
|
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2011-03-29 18:06:59 +02:00
|
|
|
#
|
|
|
|
# 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/
|
|
|
|
#
|
2012-04-13 13:59:51 +02:00
|
|
|
|
|
|
|
|
|
|
|
#
|
|
|
|
|
2013-09-30 10:44:40 +02:00
|
|
|
%if 0%{?suse_version} < 1300
|
|
|
|
%bcond_with wayland
|
|
|
|
%else
|
|
|
|
%bcond_without wayland
|
|
|
|
%endif
|
|
|
|
|
2011-02-17 17:14:30 +01:00
|
|
|
Name: libva
|
2014-10-27 09:23:46 +01:00
|
|
|
Version: 1.4.1
|
2012-02-27 20:32:24 +01:00
|
|
|
Release: 0
|
2011-02-17 17:14:30 +01:00
|
|
|
Summary: Video Acceleration (VA) API for Linux
|
2012-02-27 20:32:24 +01:00
|
|
|
License: MIT
|
2011-02-17 17:14:30 +01:00
|
|
|
Group: System/Libraries
|
2012-02-27 20:32:24 +01:00
|
|
|
Url: http://freedesktop.org/wiki/Software/vaapi
|
2013-07-10 19:13:11 +02:00
|
|
|
Source0: http://www.freedesktop.org/software/vaapi/releases/libva/%{name}-%{version}.tar.bz2
|
2014-10-30 11:35:16 +01:00
|
|
|
Source1: baselibs.conf
|
2011-02-17 17:14:30 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2012-05-29 16:50:22 +02:00
|
|
|
BuildRequires: Mesa-devel
|
2012-02-27 20:32:24 +01:00
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: libtool
|
|
|
|
BuildRequires: pkg-config
|
2012-05-29 17:29:39 +02:00
|
|
|
BuildRequires: xz
|
2012-02-27 20:32:24 +01:00
|
|
|
BuildRequires: pkgconfig(gl)
|
|
|
|
BuildRequires: pkgconfig(libdrm)
|
2012-03-21 23:15:55 +01:00
|
|
|
BuildRequires: pkgconfig(libudev)
|
2012-05-23 17:03:21 +02:00
|
|
|
BuildRequires: pkgconfig(x11)
|
2012-02-27 20:32:24 +01:00
|
|
|
BuildRequires: pkgconfig(xext)
|
|
|
|
BuildRequires: pkgconfig(xfixes)
|
2012-05-29 16:50:22 +02:00
|
|
|
BuildRequires: pkgconfig(xrandr)
|
|
|
|
BuildRequires: pkgconfig(xv)
|
2013-09-30 10:44:40 +02:00
|
|
|
%if %{with wayland}
|
|
|
|
BuildRequires: pkgconfig(wayland-client) >= 1.0.0
|
|
|
|
%endif
|
2011-02-17 17:14:30 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
The libva library implements the Video Acceleration (VA) API for Linux.
|
|
|
|
The library loads a hardware dependendent driver.
|
|
|
|
|
2012-04-13 13:59:51 +02:00
|
|
|
%package -n libva1
|
2011-02-17 17:14:30 +01:00
|
|
|
Summary: Video Acceleration (VA) API for Linux
|
|
|
|
Group: System/Libraries
|
2012-05-23 17:03:21 +02:00
|
|
|
Recommends: vaapi-dummy-driver
|
2011-02-17 17:14:30 +01:00
|
|
|
|
2012-04-13 13:59:51 +02:00
|
|
|
%description -n libva1
|
2011-02-17 17:14:30 +01:00
|
|
|
The libva library implements the Video Acceleration (VA) API for Linux.
|
|
|
|
The library loads a hardware dependendent driver.
|
|
|
|
|
2012-10-18 12:59:08 +02:00
|
|
|
This is the core runtime library
|
|
|
|
|
|
|
|
%package -n libva-drm1
|
|
|
|
Summary: Video Acceleration (VA) API for Linux -- VA/DRM Backend
|
|
|
|
Group: System/Libraries
|
|
|
|
Supplements: libva1
|
|
|
|
|
|
|
|
%description -n libva-drm1
|
|
|
|
The libva library implements the Video Acceleration (VA) API for Linux.
|
|
|
|
The library loads a hardware dependendent driver.
|
|
|
|
|
|
|
|
This is the VA/DRM runtime library
|
|
|
|
|
|
|
|
%package -n libva-egl1
|
|
|
|
Summary: Video Acceleration (VA) API for Linux -- VA/EGL Backend
|
|
|
|
Group: System/Libraries
|
|
|
|
Supplements: libva1
|
|
|
|
|
|
|
|
%description -n libva-egl1
|
|
|
|
The libva library implements the Video Acceleration (VA) API for Linux.
|
|
|
|
The library loads a hardware dependendent driver.
|
|
|
|
|
|
|
|
This is the VA/EGL runtime library
|
|
|
|
|
|
|
|
%package -n libva-x11-1
|
|
|
|
Summary: Video Acceleration (VA) API for Linux -- VA/X11 Backend
|
|
|
|
Group: System/Libraries
|
|
|
|
Supplements: libva1
|
|
|
|
|
|
|
|
%description -n libva-x11-1
|
|
|
|
The libva library implements the Video Acceleration (VA) API for Linux.
|
|
|
|
The library loads a hardware dependendent driver.
|
|
|
|
|
|
|
|
This is the VA/X11 runtime library
|
|
|
|
|
|
|
|
%package -n libva-glx1
|
|
|
|
Summary: Video Acceleration (VA) API for Linux -- VA/GLX Backend
|
|
|
|
Group: System/Libraries
|
|
|
|
Supplements: libva1
|
|
|
|
|
|
|
|
%description -n libva-glx1
|
|
|
|
The libva library implements the Video Acceleration (VA) API for Linux.
|
|
|
|
The library loads a hardware dependendent driver.
|
|
|
|
|
|
|
|
This is the VA/GLX runtime library
|
|
|
|
|
2013-09-30 10:44:40 +02:00
|
|
|
%if %{with wayland}
|
|
|
|
%package -n libva-wayland1
|
|
|
|
Summary: Video Acceleration (VA) API for Linux -- Wayland support
|
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
%description -n libva-wayland1
|
|
|
|
The libva library implements the Video Acceleration (VA) API for Linux.
|
|
|
|
The library loads a hardware dependendent driver.
|
|
|
|
%endif
|
|
|
|
|
2012-04-13 13:59:51 +02:00
|
|
|
%package devel
|
|
|
|
Summary: Video Acceleration (VA) API for Linux -- development files
|
|
|
|
Group: Development/Languages/C and C++
|
2012-10-18 12:59:08 +02:00
|
|
|
Requires: libva-drm1 = %{version}
|
|
|
|
Requires: libva-egl1 = %{version}
|
|
|
|
Requires: libva-glx1 = %{version}
|
2013-09-30 10:44:40 +02:00
|
|
|
%if %{with wayland}
|
|
|
|
Requires: libva-wayland1 = %{version}
|
|
|
|
%endif
|
2012-10-18 12:59:08 +02:00
|
|
|
Requires: libva-x11-1 = %{version}
|
2012-04-13 13:59:51 +02:00
|
|
|
Requires: libva1 = %{version}
|
2012-05-23 12:16:47 +02:00
|
|
|
Requires: pkgconfig(gl)
|
|
|
|
Requires: pkgconfig(libdrm)
|
|
|
|
Requires: pkgconfig(x11)
|
|
|
|
Requires: pkgconfig(xfixes)
|
2011-11-09 17:30:39 +01:00
|
|
|
|
2012-04-13 13:59:51 +02:00
|
|
|
%description devel
|
2011-11-09 17:30:39 +01:00
|
|
|
The libva library implements the Video Acceleration (VA) API for Linux.
|
|
|
|
The library loads a hardware dependendent driver.
|
|
|
|
|
2012-04-13 13:59:51 +02:00
|
|
|
This package provides the development environment for libva.
|
2011-11-09 17:30:39 +01:00
|
|
|
|
2012-04-13 13:59:51 +02:00
|
|
|
%package -n vaapi-tools
|
2011-02-17 17:14:30 +01:00
|
|
|
Summary: Video Acceleration (VA) API for Linux
|
|
|
|
Group: System/Libraries
|
|
|
|
|
2012-04-13 13:59:51 +02:00
|
|
|
%description -n vaapi-tools
|
2011-02-17 17:14:30 +01:00
|
|
|
The libva library implements the Video Acceleration (VA) API for Linux.
|
|
|
|
The library loads a hardware dependendent driver.
|
|
|
|
|
2012-04-13 13:59:51 +02:00
|
|
|
This is a set of tools around vaapi livrary.
|
2011-02-17 17:14:30 +01:00
|
|
|
|
2013-09-30 10:44:40 +02:00
|
|
|
%if %{with wayland}
|
|
|
|
%package -n vaapi-wayland-tools
|
|
|
|
Summary: Video Acceleration (VA) API for Linux - Wayland support
|
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
%description -n vaapi-wayland-tools
|
|
|
|
The libva library implements the Video Acceleration (VA) API for Linux.
|
|
|
|
The library loads a hardware dependendent driver.
|
|
|
|
%endif
|
|
|
|
|
2012-05-23 17:03:21 +02:00
|
|
|
%package -n vaapi-dummy-driver
|
2012-04-13 13:59:51 +02:00
|
|
|
Summary: Video Acceleration (VA) API for Linux
|
|
|
|
Group: System/Libraries
|
|
|
|
|
2012-05-23 17:03:21 +02:00
|
|
|
%description -n vaapi-dummy-driver
|
2011-02-17 17:14:30 +01:00
|
|
|
The libva library implements the Video Acceleration (VA) API for Linux.
|
|
|
|
The library loads a hardware dependendent driver.
|
|
|
|
|
2012-05-23 17:03:21 +02:00
|
|
|
This contains the dummy driver.
|
2011-02-17 17:14:30 +01:00
|
|
|
|
|
|
|
%prep
|
2012-05-29 16:50:22 +02:00
|
|
|
%setup -q
|
2011-02-17 17:14:30 +01:00
|
|
|
|
|
|
|
%build
|
2012-10-18 12:59:08 +02:00
|
|
|
[ -d m4 ] || mkdir m4
|
2011-02-17 17:14:30 +01:00
|
|
|
autoreconf -v --install
|
|
|
|
%configure --enable-dummy-driver \
|
|
|
|
--enable-glx \
|
2011-11-09 17:30:39 +01:00
|
|
|
--enable-egl \
|
2013-09-30 10:44:40 +02:00
|
|
|
--with-drivers-path=%{_libdir}/dri \
|
|
|
|
%if %{with wayland}
|
|
|
|
--enable-wayland
|
|
|
|
%else
|
|
|
|
--disable-wayland
|
|
|
|
%endif
|
2012-03-21 23:15:55 +01:00
|
|
|
make %{?_smp_mflags}
|
2011-02-17 17:14:30 +01:00
|
|
|
|
|
|
|
%install
|
|
|
|
%makeinstall
|
2011-11-09 17:30:39 +01:00
|
|
|
find %{buildroot} -name '*.la' -delete -print
|
2011-02-17 17:14:30 +01:00
|
|
|
|
|
|
|
%post -n libva1 -p /sbin/ldconfig
|
2011-07-27 18:44:32 +02:00
|
|
|
|
2011-02-17 17:14:30 +01:00
|
|
|
%postun -n libva1 -p /sbin/ldconfig
|
|
|
|
|
2012-10-18 12:59:08 +02:00
|
|
|
%post -n libva-drm1 -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun -n libva-drm1 -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%post -n libva-egl1 -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun -n libva-egl1 -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%post -n libva-glx1 -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun -n libva-glx1 -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%post -n libva-x11-1 -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun -n libva-x11-1 -p /sbin/ldconfig
|
|
|
|
|
2011-02-17 17:14:30 +01:00
|
|
|
%files -n vaapi-tools
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%{_bindir}/vainfo
|
2011-05-31 21:57:42 +02:00
|
|
|
%{_bindir}/avcenc
|
2011-02-17 17:14:30 +01:00
|
|
|
%{_bindir}/h264encode
|
2013-07-10 19:13:11 +02:00
|
|
|
%{_bindir}/mpeg2vaenc
|
2011-02-17 17:14:30 +01:00
|
|
|
%{_bindir}/mpeg2vldemo
|
|
|
|
%{_bindir}/putsurface
|
2012-05-29 16:50:22 +02:00
|
|
|
%{_bindir}/loadjpeg
|
2011-02-17 17:14:30 +01:00
|
|
|
|
2013-09-30 10:44:40 +02:00
|
|
|
%if %{with wayland}
|
|
|
|
%files -n vaapi-wayland-tools
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_bindir}/putsurface_wayland
|
|
|
|
|
|
|
|
%files -n libva-wayland1
|
|
|
|
%defattr(-, root, root)
|
|
|
|
%{_libdir}/libva-wayland.so.*
|
|
|
|
%endif
|
|
|
|
|
2012-05-23 17:03:21 +02:00
|
|
|
%files -n vaapi-dummy-driver
|
2011-11-09 17:30:39 +01:00
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%dir %{_libdir}/dri
|
|
|
|
%{_libdir}/dri/dummy_drv_video.so
|
|
|
|
|
2011-02-17 17:14:30 +01:00
|
|
|
%files -n libva1
|
|
|
|
%defattr(-, root, root)
|
2011-11-09 17:30:39 +01:00
|
|
|
%{_libdir}/libva.so.*
|
|
|
|
%{_libdir}/libva-tpi.so.*
|
2012-10-18 12:59:08 +02:00
|
|
|
|
|
|
|
%files -n libva-x11-1
|
|
|
|
%defattr(-, root, root)
|
2011-11-09 17:30:39 +01:00
|
|
|
%{_libdir}/libva-x11.so.*
|
2012-10-18 12:59:08 +02:00
|
|
|
|
|
|
|
%files -n libva-glx1
|
|
|
|
%defattr(-, root, root)
|
2011-11-09 17:30:39 +01:00
|
|
|
%{_libdir}/libva-glx.so.*
|
2012-10-18 12:59:08 +02:00
|
|
|
|
|
|
|
%files -n libva-egl1
|
|
|
|
%defattr(-, root, root)
|
2011-11-09 17:30:39 +01:00
|
|
|
%{_libdir}/libva-egl.so.*
|
2012-10-18 12:59:08 +02:00
|
|
|
|
|
|
|
%files -n libva-drm1
|
|
|
|
%defattr(-, root, root)
|
|
|
|
%{_libdir}/libva-drm.so.*
|
2011-02-17 17:14:30 +01:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%{_libdir}/libva.so
|
|
|
|
%{_libdir}/libva-tpi.so
|
|
|
|
%{_libdir}/libva-x11.so
|
|
|
|
%{_libdir}/libva-glx.so
|
|
|
|
%{_libdir}/libva-egl.so
|
2012-10-18 12:59:08 +02:00
|
|
|
%{_libdir}/libva-drm.so
|
2013-09-30 10:44:40 +02:00
|
|
|
%if %{with wayland}
|
|
|
|
%{_libdir}/libva-wayland.so
|
|
|
|
%endif
|
2011-02-17 17:14:30 +01:00
|
|
|
%{_includedir}/va
|
2012-03-21 23:15:55 +01:00
|
|
|
%{_libdir}/pkgconfig/libva*.pc
|
2011-02-17 17:14:30 +01:00
|
|
|
|
|
|
|
%changelog
|