2015-12-28 20:47:35 +01:00
|
|
|
#
|
|
|
|
# spec file for package libva-gl
|
|
|
|
#
|
2020-02-26 12:48:21 +01:00
|
|
|
# Copyright (c) 2020 SUSE LLC
|
2015-12-28 20:47:35 +01: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.
|
|
|
|
|
2018-10-31 03:38:54 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2015-12-28 20:47:35 +01:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
#
|
|
|
|
|
2017-04-11 12:39:29 +02:00
|
|
|
%if 0%{?suse_version} <= 1315 && !0%{?is_opensuse}
|
2015-12-28 20:47:35 +01:00
|
|
|
%bcond_with wayland
|
|
|
|
%else
|
|
|
|
%bcond_without wayland
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%define build_gl 1
|
2017-11-09 00:12:10 +01:00
|
|
|
%define sover 2
|
2015-12-28 20:47:35 +01:00
|
|
|
|
|
|
|
Name: libva-gl
|
|
|
|
%define _name libva
|
2020-02-26 12:48:21 +01:00
|
|
|
Version: 2.6.0
|
2015-12-28 20:47:35 +01:00
|
|
|
Release: 0
|
2017-09-07 01:22:05 +02:00
|
|
|
Summary: Video Acceleration (VA) API
|
2015-12-28 20:47:35 +01:00
|
|
|
License: MIT
|
2017-09-07 01:22:05 +02:00
|
|
|
Group: Development/Libraries/C and C++
|
2020-02-26 12:48:21 +01:00
|
|
|
URL: http://freedesktop.org/wiki/Software/vaapi
|
2019-07-06 18:51:09 +02:00
|
|
|
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
|
2017-04-19 11:00:01 +02:00
|
|
|
Source2: baselibs.conf
|
2015-12-28 20:47:35 +01:00
|
|
|
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)
|
|
|
|
%if %{with wayland}
|
2017-11-28 14:56:09 +01:00
|
|
|
BuildRequires: pkgconfig(wayland-client) >= 1.11.0
|
|
|
|
BuildRequires: pkgconfig(wayland-scanner) >= 1.11.0
|
2015-12-28 20:47:35 +01:00
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%description
|
2017-09-07 01:22:05 +02:00
|
|
|
The libva library implements the Video Acceleration API.
|
2015-12-28 20:47:35 +01:00
|
|
|
The library loads a hardware dependendent driver.
|
|
|
|
|
2017-11-09 00:12:10 +01:00
|
|
|
%package -n libva-glx%{sover}
|
2017-09-07 01:22:05 +02:00
|
|
|
Summary: GLX backend for the Video Acceleration API
|
2015-12-28 20:47:35 +01:00
|
|
|
Group: System/Libraries
|
2017-11-09 00:12:10 +01:00
|
|
|
Supplements: libva%{sover}
|
2015-12-28 20:47:35 +01:00
|
|
|
|
2017-11-09 00:12:10 +01:00
|
|
|
%description -n libva-glx%{sover}
|
2017-09-07 01:22:05 +02:00
|
|
|
The libva library implements the Video Acceleration API.
|
2015-12-28 20:47:35 +01:00
|
|
|
The library loads a hardware dependendent driver.
|
|
|
|
|
2017-09-07 01:22:05 +02:00
|
|
|
This is the VA/GLX runtime library.
|
2015-12-28 20:47:35 +01:00
|
|
|
|
2017-11-09 00:12:10 +01:00
|
|
|
%package -n libva-wayland%{sover}
|
2017-09-07 01:22:05 +02:00
|
|
|
Summary: Wayland backend for the Video Acceleration API
|
2017-08-29 14:09:53 +02:00
|
|
|
Group: System/Libraries
|
|
|
|
|
2017-11-09 00:12:10 +01:00
|
|
|
%description -n libva-wayland%{sover}
|
2017-09-07 01:22:05 +02:00
|
|
|
The libva library implements the Video Acceleration API.
|
2017-08-29 14:09:53 +02:00
|
|
|
The library loads a hardware dependendent driver.
|
|
|
|
|
2015-12-28 20:47:35 +01:00
|
|
|
%package devel
|
2017-09-07 01:22:05 +02:00
|
|
|
Summary: Development files for the Video Acceleration API
|
2015-12-28 20:47:35 +01:00
|
|
|
Group: Development/Languages/C and C++
|
2017-09-07 01:22:05 +02:00
|
|
|
%if 0%{?build_gl}
|
2015-12-28 20:47:35 +01:00
|
|
|
BuildRequires: libva-devel = %{version}
|
2017-11-09 00:12:10 +01:00
|
|
|
Requires: libva-glx%{sover} = %{version}
|
2017-08-29 14:09:53 +02:00
|
|
|
%if %{with wayland}
|
2017-11-09 00:12:10 +01:00
|
|
|
Requires: libva-wayland%{sover} = %{version}
|
2017-08-29 14:09:53 +02:00
|
|
|
%endif
|
2015-12-28 20:47:35 +01:00
|
|
|
Requires: pkgconfig(gl)
|
2017-09-07 01:22:05 +02:00
|
|
|
%else
|
2017-11-09 00:12:10 +01:00
|
|
|
Requires: libva%{sover} = %{version}
|
|
|
|
Requires: libva-drm%{sover} = %{version}
|
|
|
|
Requires: libva-x11-%{sover} = %{version}
|
2017-09-07 01:22:05 +02:00
|
|
|
Requires: pkgconfig(libdrm)
|
|
|
|
Requires: pkgconfig(x11)
|
|
|
|
Requires: pkgconfig(xfixes)
|
|
|
|
Recommends: libva-gl-devel
|
|
|
|
%endif
|
2015-12-28 20:47:35 +01:00
|
|
|
|
|
|
|
%description devel
|
2017-09-07 01:22:05 +02:00
|
|
|
The libva library implements the Video Acceleration API.
|
2015-12-28 20:47:35 +01:00
|
|
|
The library loads a hardware dependendent driver.
|
|
|
|
|
2017-09-07 01:22:05 +02:00
|
|
|
%if 0%{?build_gl}
|
2015-12-28 20:47:35 +01:00
|
|
|
This package provides the development environment for libva gl packages.
|
2017-09-07 01:22:05 +02:00
|
|
|
%else
|
|
|
|
This package provides the development environment for libva packages.
|
|
|
|
%endif
|
2015-12-28 20:47:35 +01:00
|
|
|
|
2017-11-09 00:12:10 +01:00
|
|
|
%package -n libva%{sover}
|
2017-09-07 01:22:05 +02:00
|
|
|
Summary: Video Acceleration API
|
2015-12-28 20:47:35 +01:00
|
|
|
Group: System/Libraries
|
|
|
|
|
2017-11-09 00:12:10 +01:00
|
|
|
%description -n libva%{sover}
|
2017-09-07 01:22:05 +02:00
|
|
|
The libva library implements the Video Acceleration API.
|
2015-12-28 20:47:35 +01:00
|
|
|
The library loads a hardware dependendent driver.
|
|
|
|
|
2017-09-07 01:22:05 +02:00
|
|
|
This is the core runtime library.
|
2015-12-28 20:47:35 +01:00
|
|
|
|
2017-11-09 00:12:10 +01:00
|
|
|
%package -n libva-drm%{sover}
|
2017-09-07 01:22:05 +02:00
|
|
|
Summary: DRM backend for the Video Acceleration API
|
2015-12-28 20:47:35 +01:00
|
|
|
Group: System/Libraries
|
2017-11-09 00:12:10 +01:00
|
|
|
Supplements: libva%{sover}
|
2015-12-28 20:47:35 +01:00
|
|
|
|
2017-11-09 00:12:10 +01:00
|
|
|
%description -n libva-drm%{sover}
|
2017-09-07 01:22:05 +02:00
|
|
|
The libva library implements the Video Acceleration API.
|
2015-12-28 20:47:35 +01:00
|
|
|
The library loads a hardware dependendent driver.
|
|
|
|
|
2017-09-07 01:22:05 +02:00
|
|
|
This is the VA/DRM runtime library.
|
2015-12-28 20:47:35 +01:00
|
|
|
|
2017-11-09 00:12:10 +01:00
|
|
|
%package -n libva-x11-%{sover}
|
2017-09-07 01:22:05 +02:00
|
|
|
Summary: X11 backend for the Video Acceleration API
|
2015-12-28 20:47:35 +01:00
|
|
|
Group: System/Libraries
|
2017-11-09 00:12:10 +01:00
|
|
|
Supplements: libva%{sover}
|
2015-12-28 20:47:35 +01:00
|
|
|
|
2017-11-09 00:12:10 +01:00
|
|
|
%description -n libva-x11-%{sover}
|
2017-09-07 01:22:05 +02:00
|
|
|
The libva library implements the Video Acceleration API.
|
2015-12-28 20:47:35 +01:00
|
|
|
The library loads a hardware dependendent driver.
|
|
|
|
|
2017-09-07 01:22:05 +02:00
|
|
|
This is the VA/X11 runtime library.
|
2015-12-28 20:47:35 +01:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n %{_name}-%{version}
|
2017-11-09 00:12:10 +01:00
|
|
|
# Add "libva-wayland%%{sover}" to baselibs.conf when enabling wayland build;
|
2017-04-11 14:24:42 +02:00
|
|
|
# ugly I know ...This is needed since otherwise source validator
|
|
|
|
#
|
|
|
|
# osc service run source_validator
|
|
|
|
#
|
|
|
|
# fails on sle
|
|
|
|
%if %{with wayland}
|
2017-11-09 00:12:10 +01:00
|
|
|
echo libva-wayland%{sover} >> $RPM_SOURCE_DIR/baselibs.conf
|
2017-04-11 14:24:42 +02:00
|
|
|
%endif
|
2015-12-28 20:47:35 +01:00
|
|
|
|
|
|
|
%build
|
|
|
|
[ -d m4 ] || mkdir m4
|
|
|
|
autoreconf -v --install
|
|
|
|
%configure \
|
|
|
|
%if %{build_gl}
|
|
|
|
--enable-glx \
|
|
|
|
%if %{with wayland}
|
|
|
|
--enable-wayland \
|
|
|
|
%else
|
|
|
|
--disable-wayland \
|
|
|
|
%endif
|
|
|
|
%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
|
2017-11-09 00:12:10 +01:00
|
|
|
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"`
|
2015-12-28 20:47:35 +01:00
|
|
|
%endif
|
|
|
|
|
2017-11-09 00:12:10 +01:00
|
|
|
%post -n libva-glx%{sover} -p /sbin/ldconfig
|
2015-12-28 20:47:35 +01:00
|
|
|
|
2017-11-09 00:12:10 +01:00
|
|
|
%postun -n libva-glx%{sover} -p /sbin/ldconfig
|
2017-08-29 14:09:53 +02:00
|
|
|
|
2017-11-09 00:12:10 +01:00
|
|
|
%post -n libva-wayland%{sover} -p /sbin/ldconfig
|
2017-08-29 14:09:53 +02:00
|
|
|
|
2017-11-09 00:12:10 +01:00
|
|
|
%postun -n libva-wayland%{sover} -p /sbin/ldconfig
|
2015-12-28 20:47:35 +01:00
|
|
|
|
2017-11-09 00:12:10 +01:00
|
|
|
%post -n libva%{sover} -p /sbin/ldconfig
|
2015-12-28 20:47:35 +01:00
|
|
|
|
2017-11-09 00:12:10 +01:00
|
|
|
%postun -n libva%{sover} -p /sbin/ldconfig
|
2015-12-28 20:47:35 +01:00
|
|
|
|
2017-11-09 00:12:10 +01:00
|
|
|
%post -n libva-drm%{sover} -p /sbin/ldconfig
|
2015-12-28 20:47:35 +01:00
|
|
|
|
2017-11-09 00:12:10 +01:00
|
|
|
%postun -n libva-drm%{sover} -p /sbin/ldconfig
|
2015-12-28 20:47:35 +01:00
|
|
|
|
2017-11-09 00:12:10 +01:00
|
|
|
%post -n libva-x11-%{sover} -p /sbin/ldconfig
|
2015-12-28 20:47:35 +01:00
|
|
|
|
2017-11-09 00:12:10 +01:00
|
|
|
%postun -n libva-x11-%{sover} -p /sbin/ldconfig
|
2015-12-28 20:47:35 +01:00
|
|
|
|
|
|
|
%if %{build_gl}
|
2017-11-09 00:12:10 +01:00
|
|
|
%files -n libva-glx%{sover}
|
|
|
|
%{_libdir}/libva-glx.so.%{sover}*
|
2015-12-28 20:47:35 +01:00
|
|
|
|
|
|
|
%if %{with wayland}
|
2017-11-09 00:12:10 +01:00
|
|
|
%files -n libva-wayland%{sover}
|
|
|
|
%{_libdir}/libva-wayland.so.%{sover}*
|
2015-12-28 20:47:35 +01:00
|
|
|
%endif
|
|
|
|
|
2017-08-29 14:09:53 +02:00
|
|
|
%files devel
|
|
|
|
%{_libdir}/libva-glx.so
|
|
|
|
%{_includedir}/va
|
2017-11-28 14:56:09 +01:00
|
|
|
%{_libdir}/pkgconfig/libva-glx.pc
|
2017-08-29 14:09:53 +02:00
|
|
|
%if %{with wayland}
|
2017-11-28 14:56:09 +01:00
|
|
|
%{_libdir}/pkgconfig/libva-wayland.pc
|
2017-08-29 14:09:53 +02:00
|
|
|
%{_libdir}/libva-wayland.so
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%else
|
|
|
|
|
2017-11-09 00:12:10 +01:00
|
|
|
%files -n libva%{sover}
|
2018-07-17 14:50:33 +02:00
|
|
|
%license COPYING
|
2015-12-28 20:47:35 +01:00
|
|
|
%{_libdir}/libva.so.*
|
|
|
|
|
2017-11-09 00:12:10 +01:00
|
|
|
%files -n libva-x11-%{sover}
|
2015-12-28 20:47:35 +01:00
|
|
|
%{_libdir}/libva-x11.so.*
|
|
|
|
|
2017-11-09 00:12:10 +01:00
|
|
|
%files -n libva-drm%{sover}
|
2015-12-28 20:47:35 +01:00
|
|
|
%{_libdir}/libva-drm.so.*
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%{_libdir}/libva.so
|
|
|
|
%{_libdir}/libva-x11.so
|
|
|
|
%{_libdir}/libva-drm.so
|
|
|
|
%{_includedir}/va
|
2017-11-28 14:56:09 +01:00
|
|
|
%{_libdir}/pkgconfig/libva-drm.pc
|
|
|
|
%{_libdir}/pkgconfig/libva-x11.pc
|
|
|
|
%{_libdir}/pkgconfig/libva.pc
|
2015-12-28 20:47:35 +01:00
|
|
|
%endif
|
|
|
|
|
|
|
|
%changelog
|