2011-03-29 18:06:59 +02:00
|
|
|
#
|
|
|
|
# spec file for package libva
|
|
|
|
#
|
2015-02-09 11:58:57 +01:00
|
|
|
# Copyright (c) 2015 SUSE LINUX 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
|
|
|
|
|
|
|
|
|
|
|
#
|
|
|
|
|
2015-12-18 12:37:25 +01:00
|
|
|
%if 0%{?suse_version} < 1300
|
2013-09-30 10:44:40 +02:00
|
|
|
%bcond_with wayland
|
|
|
|
%else
|
|
|
|
%bcond_without wayland
|
|
|
|
%endif
|
|
|
|
|
2015-12-18 12:37:25 +01:00
|
|
|
%bcond_with gl
|
|
|
|
|
2011-02-17 17:14:30 +01:00
|
|
|
Name: libva
|
2015-12-17 11:08:20 +01:00
|
|
|
Version: 1.6.2
|
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-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(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)
|
2015-12-18 12:37:25 +01:00
|
|
|
%if %{with gl}
|
|
|
|
BuildRequires: pkgconfig(egl)
|
|
|
|
BuildRequires: pkgconfig(gl)
|
|
|
|
%else
|
2013-09-30 10:44:40 +02:00
|
|
|
%if %{with wayland}
|
|
|
|
BuildRequires: pkgconfig(wayland-client) >= 1.0.0
|
2015-11-24 10:36:56 +01:00
|
|
|
BuildRequires: pkgconfig(wayland-scanner) >= 1.0.0
|
2013-09-30 10:44:40 +02:00
|
|
|
%endif
|
2015-12-18 12:37:25 +01:00
|
|
|
%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.
|
|
|
|
|
2015-12-18 12:37:25 +01:00
|
|
|
%if %{with gl}
|
|
|
|
%package -n libva-egl1
|
|
|
|
Summary: Video Acceleration (VA) API for Linux -- VA/EGL Backend
|
2011-02-17 17:14:30 +01:00
|
|
|
Group: System/Libraries
|
2015-12-18 12:37:25 +01:00
|
|
|
Supplements: libva1
|
2011-02-17 17:14:30 +01:00
|
|
|
|
2015-12-18 12:37:25 +01:00
|
|
|
%description -n libva-egl1
|
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.
|
|
|
|
|
2015-12-18 12:37:25 +01:00
|
|
|
This is the VA/EGL runtime library
|
2012-10-18 12:59:08 +02:00
|
|
|
|
2015-12-18 12:37:25 +01:00
|
|
|
%package -n libva-glx1
|
|
|
|
Summary: Video Acceleration (VA) API for Linux -- VA/GLX Backend
|
2012-10-18 12:59:08 +02:00
|
|
|
Group: System/Libraries
|
|
|
|
Supplements: libva1
|
|
|
|
|
2015-12-18 12:37:25 +01:00
|
|
|
%description -n libva-glx1
|
2012-10-18 12:59:08 +02:00
|
|
|
The libva library implements the Video Acceleration (VA) API for Linux.
|
|
|
|
The library loads a hardware dependendent driver.
|
|
|
|
|
2015-12-18 12:37:25 +01:00
|
|
|
This is the VA/GLX runtime library
|
2012-10-18 12:59:08 +02:00
|
|
|
|
2015-12-18 12:37:25 +01:00
|
|
|
%package gl-devel
|
|
|
|
Summary: Video Acceleration (VA) API for Linux -- gl development files
|
|
|
|
Group: Development/Languages/C and C++
|
|
|
|
BuildRequires: libva-devel = %{version}
|
|
|
|
Requires: libva-egl1 = %{version}
|
|
|
|
Requires: libva-glx1 = %{version}
|
|
|
|
Requires: pkgconfig(egl)
|
|
|
|
Requires: pkgconfig(gl)
|
|
|
|
|
|
|
|
%description gl-devel
|
|
|
|
The libva library implements the Video Acceleration (VA) API for Linux.
|
|
|
|
The library loads a hardware dependendent driver.
|
|
|
|
|
|
|
|
This package provides the development environment for libva gl packages.
|
|
|
|
%else
|
|
|
|
|
|
|
|
%package -n libva1
|
|
|
|
Summary: Video Acceleration (VA) API for Linux
|
2012-10-18 12:59:08 +02:00
|
|
|
Group: System/Libraries
|
2015-12-18 12:37:25 +01:00
|
|
|
Recommends: vaapi-dummy-driver
|
2012-10-18 12:59:08 +02:00
|
|
|
|
2015-12-18 12:37:25 +01:00
|
|
|
%description -n libva1
|
2012-10-18 12:59:08 +02:00
|
|
|
The libva library implements the Video Acceleration (VA) API for Linux.
|
|
|
|
The library loads a hardware dependendent driver.
|
|
|
|
|
2015-12-18 12:37:25 +01:00
|
|
|
This is the core runtime library
|
2012-10-18 12:59:08 +02:00
|
|
|
|
2015-12-18 12:37:25 +01:00
|
|
|
%package -n libva-drm1
|
|
|
|
Summary: Video Acceleration (VA) API for Linux -- VA/DRM Backend
|
2012-10-18 12:59:08 +02:00
|
|
|
Group: System/Libraries
|
|
|
|
Supplements: libva1
|
|
|
|
|
2015-12-18 12:37:25 +01:00
|
|
|
%description -n libva-drm1
|
2012-10-18 12:59:08 +02:00
|
|
|
The libva library implements the Video Acceleration (VA) API for Linux.
|
|
|
|
The library loads a hardware dependendent driver.
|
|
|
|
|
2015-12-18 12:37:25 +01:00
|
|
|
This is the VA/DRM runtime library
|
2012-10-18 12:59:08 +02:00
|
|
|
|
2015-12-18 12:37:25 +01:00
|
|
|
%package -n libva-x11-1
|
|
|
|
Summary: Video Acceleration (VA) API for Linux -- VA/X11 Backend
|
2012-10-18 12:59:08 +02:00
|
|
|
Group: System/Libraries
|
|
|
|
Supplements: libva1
|
|
|
|
|
2015-12-18 12:37:25 +01:00
|
|
|
%description -n libva-x11-1
|
2012-10-18 12:59:08 +02:00
|
|
|
The libva library implements the Video Acceleration (VA) API for Linux.
|
|
|
|
The library loads a hardware dependendent driver.
|
|
|
|
|
2015-12-18 12:37:25 +01:00
|
|
|
This is the VA/X11 runtime library
|
2012-10-18 12:59:08 +02:00
|
|
|
|
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}
|
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(libdrm)
|
|
|
|
Requires: pkgconfig(x11)
|
|
|
|
Requires: pkgconfig(xfixes)
|
2015-12-18 12:37:25 +01:00
|
|
|
Recommends: libva-gl-devel
|
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.
|
2015-12-18 12:37:25 +01:00
|
|
|
%endif
|
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
|
2015-12-18 12:37:25 +01:00
|
|
|
%configure \
|
|
|
|
%if %{with gl}
|
2011-02-17 17:14:30 +01:00
|
|
|
--enable-glx \
|
2011-11-09 17:30:39 +01:00
|
|
|
--enable-egl \
|
2015-12-18 12:37:25 +01:00
|
|
|
--disable-dummy-driver \
|
|
|
|
--disable-wayland \
|
|
|
|
%else
|
|
|
|
--enable-dummy-driver \
|
2013-09-30 10:44:40 +02:00
|
|
|
%if %{with wayland}
|
2015-12-18 12:37:25 +01:00
|
|
|
--enable-wayland \
|
2013-09-30 10:44:40 +02:00
|
|
|
%else
|
2015-12-18 12:37:25 +01:00
|
|
|
--disable-wayland \
|
|
|
|
%endif
|
2013-09-30 10:44:40 +02:00
|
|
|
%endif
|
2015-12-18 12:37:25 +01:00
|
|
|
--with-drivers-path=%{_libdir}/dri
|
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
|
|
|
|
2015-12-18 12:37:25 +01:00
|
|
|
%if %{with gl}
|
|
|
|
# remove all files packaged during without gl mode
|
|
|
|
%{__rm} -rf %{buildroot}%{_bindir}/{avcenc,h264encode,jpegenc,loadjpeg,mpeg2vaenc,mpeg2vldemo,putsurface,vainfo}
|
|
|
|
%{__rm} -rf `find %{buildroot}%{_includedir}/va/* | grep -v "egl\|glx"`
|
|
|
|
%{__rm} -rf `find %{buildroot}%{_libdir}/libva* | grep -v "egl\|glx"`
|
|
|
|
%{__rm} -rf `find %{buildroot}%{_libdir}/pkgconfig/libva*.pc | grep -v "egl\|glx"`
|
|
|
|
%endif
|
2012-10-18 12:59:08 +02:00
|
|
|
|
2015-12-18 12:37:25 +01:00
|
|
|
%if %{with gl}
|
2012-10-18 12:59:08 +02:00
|
|
|
%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
|
2015-12-18 12:37:25 +01:00
|
|
|
%else
|
|
|
|
|
|
|
|
%post -n libva1 -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun -n libva1 -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%post -n libva-drm1 -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun -n libva-drm1 -p /sbin/ldconfig
|
2012-10-18 12:59:08 +02:00
|
|
|
|
|
|
|
%post -n libva-x11-1 -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun -n libva-x11-1 -p /sbin/ldconfig
|
2015-12-18 12:37:25 +01:00
|
|
|
%endif
|
|
|
|
|
|
|
|
%if %{with gl}
|
|
|
|
%files -n libva-glx1
|
|
|
|
%defattr(-, root, root)
|
|
|
|
%{_libdir}/libva-glx.so.*
|
|
|
|
|
|
|
|
%files -n libva-egl1
|
|
|
|
%defattr(-, root, root)
|
|
|
|
%{_libdir}/libva-egl.so.*
|
|
|
|
|
|
|
|
%files gl-devel
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%{_libdir}/libva-glx.so
|
|
|
|
%{_libdir}/libva-egl.so
|
|
|
|
%{_includedir}/va
|
|
|
|
%{_libdir}/pkgconfig/libva*.pc
|
|
|
|
%else
|
2012-10-18 12:59:08 +02:00
|
|
|
|
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
|
2015-02-09 11:58:57 +01:00
|
|
|
%{_bindir}/jpegenc
|
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-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
|
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
|
2015-12-18 12:37:25 +01:00
|
|
|
%endif
|
2011-02-17 17:14:30 +01:00
|
|
|
|
|
|
|
%changelog
|