c5129bc1a7
- updated to version 1.1.0: * support of JPEG decoding * New hooks to create/free native pixmap * VA/EGL interfaces * Remove legacy DRI support OBS-URL: https://build.opensuse.org/request/show/122777 OBS-URL: https://build.opensuse.org/package/show/X11:XOrg/libva?expand=0&rev=32
158 lines
4.3 KiB
RPMSpec
158 lines
4.3 KiB
RPMSpec
#
|
|
# spec file for package libva
|
|
#
|
|
# 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/
|
|
#
|
|
|
|
|
|
#
|
|
|
|
Name: libva
|
|
Version: 1.1.0
|
|
Release: 0
|
|
Summary: Video Acceleration (VA) API for Linux
|
|
License: MIT
|
|
Group: System/Libraries
|
|
Url: http://freedesktop.org/wiki/Software/vaapi
|
|
Source0: http://cgit.freedesktop.org/libva/snapshot/%{name}-%{version}.tar.gz
|
|
Patch1: libva-compile-warning-fixes.diff
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
BuildRequires: Mesa-devel
|
|
BuildRequires: gcc-c++
|
|
BuildRequires: libtool
|
|
BuildRequires: pkg-config
|
|
BuildRequires: pkgconfig(gl)
|
|
BuildRequires: pkgconfig(libdrm)
|
|
BuildRequires: pkgconfig(libudev)
|
|
BuildRequires: pkgconfig(x11)
|
|
BuildRequires: pkgconfig(xext)
|
|
BuildRequires: pkgconfig(xfixes)
|
|
BuildRequires: pkgconfig(xrandr)
|
|
BuildRequires: pkgconfig(xv)
|
|
# pkgconfig(libdrm_intel) currently only exists on x86*
|
|
ExclusiveArch: %ix86 x86_64
|
|
|
|
%description
|
|
The libva library implements the Video Acceleration (VA) API for Linux.
|
|
The library loads a hardware dependendent driver.
|
|
|
|
%package -n libva1
|
|
Summary: Video Acceleration (VA) API for Linux
|
|
Group: System/Libraries
|
|
Recommends: vaapi-dummy-driver
|
|
|
|
%description -n libva1
|
|
The libva library implements the Video Acceleration (VA) API for Linux.
|
|
The library loads a hardware dependendent driver.
|
|
|
|
%package devel
|
|
Summary: Video Acceleration (VA) API for Linux -- development files
|
|
Group: Development/Languages/C and C++
|
|
Requires: libva1 = %{version}
|
|
Requires: pkgconfig(gl)
|
|
Requires: pkgconfig(libdrm)
|
|
Requires: pkgconfig(x11)
|
|
Requires: pkgconfig(xfixes)
|
|
|
|
%description 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.
|
|
|
|
%package -n vaapi-tools
|
|
Summary: Video Acceleration (VA) API for Linux
|
|
Group: System/Libraries
|
|
|
|
%description -n vaapi-tools
|
|
The libva library implements the Video Acceleration (VA) API for Linux.
|
|
The library loads a hardware dependendent driver.
|
|
|
|
This is a set of tools around vaapi livrary.
|
|
|
|
%package -n vaapi-dummy-driver
|
|
Summary: Video Acceleration (VA) API for Linux
|
|
Group: System/Libraries
|
|
|
|
%description -n vaapi-dummy-driver
|
|
The libva library implements the Video Acceleration (VA) API for Linux.
|
|
The library loads a hardware dependendent driver.
|
|
|
|
This contains the dummy driver.
|
|
|
|
%prep
|
|
%setup -q
|
|
%patch1 -p1
|
|
|
|
%build
|
|
autoreconf -v --install
|
|
%configure --enable-dummy-driver \
|
|
%if 0%{?suse_version} >= 01120
|
|
--enable-dummy-backend \
|
|
%endif
|
|
--enable-glx \
|
|
--enable-egl \
|
|
--with-drivers-path=%{_libdir}/dri
|
|
make %{?_smp_mflags}
|
|
|
|
%install
|
|
%makeinstall
|
|
find %{buildroot} -name '*.la' -delete -print
|
|
grep -r include %{buildroot}%{_includedir}
|
|
|
|
%post -n libva1 -p /sbin/ldconfig
|
|
|
|
%postun -n libva1 -p /sbin/ldconfig
|
|
|
|
%files -n vaapi-tools
|
|
%defattr(-,root,root,-)
|
|
%{_bindir}/vainfo
|
|
%{_bindir}/avcenc
|
|
%{_bindir}/h264encode
|
|
%{_bindir}/mpeg2vldemo
|
|
%{_bindir}/putsurface
|
|
%{_bindir}/loadjpeg
|
|
%{_bindir}/va_egl
|
|
|
|
%files -n vaapi-dummy-driver
|
|
%defattr(-,root,root,-)
|
|
%dir %{_libdir}/dri
|
|
%{_libdir}/dri/dummy_drv_video.so
|
|
|
|
%files -n libva1
|
|
%defattr(-, root, root)
|
|
%{_libdir}/libva.so.*
|
|
%{_libdir}/libva-tpi.so.*
|
|
%{_libdir}/libva-x11.so.*
|
|
%{_libdir}/libva-glx.so.*
|
|
%{_libdir}/libva-egl.so.*
|
|
%if 0%{?suse_version} >= 01120
|
|
%{_libdir}/libva-dummy.so.*
|
|
%endif
|
|
|
|
%files devel
|
|
%defattr(-,root,root,-)
|
|
%{_libdir}/libva.so
|
|
%{_libdir}/libva-tpi.so
|
|
%{_libdir}/libva-x11.so
|
|
%{_libdir}/libva-glx.so
|
|
%{_libdir}/libva-egl.so
|
|
%if 0%{?suse_version} >= 01120
|
|
%{_libdir}/libva-dummy.so
|
|
%endif
|
|
%{_includedir}/va
|
|
%{_libdir}/pkgconfig/libva*.pc
|
|
|
|
%changelog
|