Stefan Dirsch
3188497a3f
- update to 2.8.0: * trace: enable return value trace for successful function call * trace: divide va_TraceEndPicture to two seperate function * trace: add support for VAProfileHEVCSccMain444_10 * fix:Fixes file descriptor leak * add fourcc code for P012 format * travis: Add a test that code files don't have the exec bit set * Remove the execute bit from all source code files * meson: Allow for libdir and includedir to be absolute paths * trace: Fix format string warnings * fix:Fix clang warning (reading garbage) * add definition to enforce both reflist not empty * trace: List correct field names in va_TraceVAPictureParameterBufferHEVC * change the return value to be UNIMPLEMENTED when the function pointer is NULL * remove check of vaPutSurface implementation * Add new slice structure flag for CAPS reporting * VA/X11: VAAPI driver mapping for iris DRI driver * VA/X11: enable driver candidate selection for DRI2 * Add SCC flags to enable/disable features * fix: Fix HDR10 MaxCLL and MaxFALL documentation * Add VAProfileHEVCSccMain444_10 for HEVC * change the compatible list to be dynamic one * trace:Convert VAProfileAV1Profile0 VAProfileAV1Profile1 to string OBS-URL: https://build.opensuse.org/request/show/826893 OBS-URL: https://build.opensuse.org/package/show/X11:XOrg/libva?expand=0&rev=125
224 lines
6.2 KiB
RPMSpec
224 lines
6.2 KiB
RPMSpec
#
|
|
# spec file for package libva-gl
|
|
#
|
|
# Copyright (c) 2020 SUSE LLC
|
|
#
|
|
# 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 https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
#
|
|
|
|
%define build_gl 1
|
|
%define sover 2
|
|
|
|
Name: libva-gl
|
|
%define _name libva
|
|
Version: 2.8.0
|
|
Release: 0
|
|
Summary: Video Acceleration (VA) API
|
|
License: MIT
|
|
Group: Development/Libraries/C and C++
|
|
URL: http://freedesktop.org/wiki/Software/vaapi
|
|
Source0: https://github.com/intel/libva/releases/download/%{version}/%{_name}-%{version}.tar.bz2
|
|
Source1: https://github.com/intel/libva/releases/download/%{version}/%{_name}-%{version}.tar.bz2.sha1sum
|
|
Source2: baselibs.conf
|
|
BuildRequires: gcc-c++
|
|
BuildRequires: libtool
|
|
BuildRequires: pkg-config
|
|
BuildRequires: xz
|
|
BuildRequires: pkgconfig(libdrm)
|
|
BuildRequires: pkgconfig(libudev)
|
|
BuildRequires: pkgconfig(x11)
|
|
BuildRequires: pkgconfig(xext)
|
|
BuildRequires: pkgconfig(xfixes)
|
|
BuildRequires: pkgconfig(xrandr)
|
|
BuildRequires: pkgconfig(xv)
|
|
%if %{build_gl}
|
|
BuildRequires: pkgconfig(gl)
|
|
BuildRequires: pkgconfig(wayland-client) >= 1.11.0
|
|
BuildRequires: pkgconfig(wayland-scanner) >= 1.11.0
|
|
%endif
|
|
|
|
%description
|
|
The libva library implements the Video Acceleration API.
|
|
The library loads a hardware dependendent driver.
|
|
|
|
%package -n libva-glx%{sover}
|
|
Summary: GLX backend for the Video Acceleration API
|
|
Group: System/Libraries
|
|
Supplements: libva%{sover}
|
|
|
|
%description -n libva-glx%{sover}
|
|
The libva library implements the Video Acceleration API.
|
|
The library loads a hardware dependendent driver.
|
|
|
|
This is the VA/GLX runtime library.
|
|
|
|
%package -n libva-wayland%{sover}
|
|
Summary: Wayland backend for the Video Acceleration API
|
|
Group: System/Libraries
|
|
|
|
%description -n libva-wayland%{sover}
|
|
The libva library implements the Video Acceleration API.
|
|
The library loads a hardware dependendent driver.
|
|
|
|
%package devel
|
|
Summary: Development files for the Video Acceleration API
|
|
Group: Development/Languages/C and C++
|
|
%if 0%{?build_gl}
|
|
BuildRequires: libva-devel = %{version}
|
|
Requires: libva-glx%{sover} = %{version}
|
|
Requires: libva-wayland%{sover} = %{version}
|
|
Requires: pkgconfig(gl)
|
|
%else
|
|
Requires: libva%{sover} = %{version}
|
|
Requires: libva-drm%{sover} = %{version}
|
|
Requires: libva-x11-%{sover} = %{version}
|
|
Requires: pkgconfig(libdrm)
|
|
Requires: pkgconfig(x11)
|
|
Requires: pkgconfig(xfixes)
|
|
Recommends: libva-gl-devel
|
|
%endif
|
|
|
|
%description devel
|
|
The libva library implements the Video Acceleration API.
|
|
The library loads a hardware dependendent driver.
|
|
|
|
%if 0%{?build_gl}
|
|
This package provides the development environment for libva gl packages.
|
|
%else
|
|
This package provides the development environment for libva packages.
|
|
%endif
|
|
|
|
%package -n libva%{sover}
|
|
Summary: Video Acceleration API
|
|
Group: System/Libraries
|
|
|
|
%description -n libva%{sover}
|
|
The libva library implements the Video Acceleration API.
|
|
The library loads a hardware dependendent driver.
|
|
|
|
This is the core runtime library.
|
|
|
|
%package -n libva-drm%{sover}
|
|
Summary: DRM backend for the Video Acceleration API
|
|
Group: System/Libraries
|
|
Supplements: libva%{sover}
|
|
|
|
%description -n libva-drm%{sover}
|
|
The libva library implements the Video Acceleration API.
|
|
The library loads a hardware dependendent driver.
|
|
|
|
This is the VA/DRM runtime library.
|
|
|
|
%package -n libva-x11-%{sover}
|
|
Summary: X11 backend for the Video Acceleration API
|
|
Group: System/Libraries
|
|
Supplements: libva%{sover}
|
|
|
|
%description -n libva-x11-%{sover}
|
|
The libva library implements the Video Acceleration API.
|
|
The library loads a hardware dependendent driver.
|
|
|
|
This is the VA/X11 runtime library.
|
|
|
|
%prep
|
|
%setup -q -n %{_name}-%{version}
|
|
# Add "libva-wayland%%{sover}" to baselibs.conf when enabling wayland build;
|
|
# ugly I know ...This is needed since otherwise source validator
|
|
#
|
|
# osc service run source_validator
|
|
#
|
|
# fails on sle
|
|
echo libva-wayland%{sover} >> $RPM_SOURCE_DIR/baselibs.conf
|
|
|
|
%build
|
|
[ -d m4 ] || mkdir m4
|
|
autoreconf -v --install
|
|
%configure \
|
|
%if %{build_gl}
|
|
--enable-glx \
|
|
--enable-wayland \
|
|
%endif
|
|
--with-drivers-path=%{_libdir}/dri
|
|
make %{?_smp_mflags}
|
|
|
|
%install
|
|
%makeinstall
|
|
find %{buildroot} -name '*.la' -delete -print
|
|
|
|
%if %{build_gl}
|
|
# remove all files packaged during without gl mode
|
|
rm -rf `find %{buildroot}%{_includedir}/va/* | grep -v "glx\|wayland"`
|
|
rm -rf `find %{buildroot}%{_libdir}/libva* | grep -v "glx\|wayland"`
|
|
rm -rf `find %{buildroot}%{_libdir}/pkgconfig/libva*.pc | grep -v "glx\|wayland"`
|
|
%endif
|
|
|
|
%post -n libva-glx%{sover} -p /sbin/ldconfig
|
|
|
|
%postun -n libva-glx%{sover} -p /sbin/ldconfig
|
|
|
|
%post -n libva-wayland%{sover} -p /sbin/ldconfig
|
|
|
|
%postun -n libva-wayland%{sover} -p /sbin/ldconfig
|
|
|
|
%post -n libva%{sover} -p /sbin/ldconfig
|
|
|
|
%postun -n libva%{sover} -p /sbin/ldconfig
|
|
|
|
%post -n libva-drm%{sover} -p /sbin/ldconfig
|
|
|
|
%postun -n libva-drm%{sover} -p /sbin/ldconfig
|
|
|
|
%post -n libva-x11-%{sover} -p /sbin/ldconfig
|
|
|
|
%postun -n libva-x11-%{sover} -p /sbin/ldconfig
|
|
|
|
%if %{build_gl}
|
|
%files -n libva-glx%{sover}
|
|
%{_libdir}/libva-glx.so.%{sover}*
|
|
|
|
%files -n libva-wayland%{sover}
|
|
%{_libdir}/libva-wayland.so.%{sover}*
|
|
|
|
%files devel
|
|
%{_libdir}/libva-glx.so
|
|
%{_includedir}/va
|
|
%{_libdir}/pkgconfig/libva-glx.pc
|
|
%{_libdir}/pkgconfig/libva-wayland.pc
|
|
%{_libdir}/libva-wayland.so
|
|
|
|
%else
|
|
|
|
%files -n libva%{sover}
|
|
%license COPYING
|
|
%{_libdir}/libva.so.*
|
|
|
|
%files -n libva-x11-%{sover}
|
|
%{_libdir}/libva-x11.so.*
|
|
|
|
%files -n libva-drm%{sover}
|
|
%{_libdir}/libva-drm.so.*
|
|
|
|
%files devel
|
|
%{_libdir}/libva.so
|
|
%{_libdir}/libva-x11.so
|
|
%{_libdir}/libva-drm.so
|
|
%{_includedir}/va
|
|
%{_libdir}/pkgconfig/libva-drm.pc
|
|
%{_libdir}/pkgconfig/libva-x11.pc
|
|
%{_libdir}/pkgconfig/libva.pc
|
|
%endif
|
|
|
|
%changelog
|