2011-03-29 18:06:59 +02:00
|
|
|
#
|
2023-04-13 12:45:26 +02:00
|
|
|
# spec file
|
2011-03-29 18:06:59 +02:00
|
|
|
#
|
2023-01-16 11:42:41 +01:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
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.
|
|
|
|
|
2018-10-31 03:38:54 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2011-03-29 18:06:59 +02:00
|
|
|
#
|
2012-04-13 13:59:51 +02:00
|
|
|
|
|
|
|
|
2023-04-13 12:45:26 +02:00
|
|
|
%define flavor @BUILD_FLAVOR@%nil
|
2012-04-13 13:59:51 +02:00
|
|
|
|
2015-12-28 20:47:35 +01:00
|
|
|
%define build_gl 0
|
2017-11-09 00:12:10 +01:00
|
|
|
%define sover 2
|
2015-12-18 12:37:25 +01:00
|
|
|
|
2023-04-13 12:45:26 +02:00
|
|
|
%if "%flavor" == "gl"
|
|
|
|
%define build_gl 1
|
|
|
|
%define name_suffix -%{flavor}
|
|
|
|
%else
|
|
|
|
%define name_suffix %{nil}
|
|
|
|
%endif
|
|
|
|
|
|
|
|
Name: libva%{name_suffix}
|
2015-12-28 20:47:35 +01:00
|
|
|
%define _name libva
|
2023-10-09 14:05:03 +02:00
|
|
|
Version: 2.20.0
|
2012-02-27 20:32:24 +01:00
|
|
|
Release: 0
|
2017-09-07 01:22:05 +02:00
|
|
|
Summary: Video Acceleration (VA) API
|
2012-02-27 20:32:24 +01:00
|
|
|
License: MIT
|
2017-09-07 01:22:05 +02:00
|
|
|
Group: Development/Libraries/C and C++
|
2021-03-24 13:13:47 +01:00
|
|
|
URL: https://01.org/linuxmedia
|
2020-11-26 15:59:48 +01:00
|
|
|
Source0: https://github.com/intel/libva/archive/%{version}.tar.gz#/libva-%{version}.tar.gz
|
2017-04-19 11:00:01 +02:00
|
|
|
Source2: baselibs.conf
|
2023-04-27 13:23:35 +02:00
|
|
|
Patch0: propagate-dpy.patch
|
2023-04-13 12:45:26 +02:00
|
|
|
|
|
|
|
BuildRequires: c++_compiler
|
|
|
|
BuildRequires: meson
|
2012-02-27 20:32:24 +01:00
|
|
|
BuildRequires: pkg-config
|
|
|
|
BuildRequires: pkgconfig(libdrm)
|
2012-03-21 23:15:55 +01:00
|
|
|
BuildRequires: pkgconfig(libudev)
|
2023-04-13 12:45:26 +02:00
|
|
|
BuildRequires: pkgconfig(wayland-client) >= 1.11.0
|
|
|
|
BuildRequires: pkgconfig(wayland-scanner) >= 1.11.0
|
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-28 20:47:35 +01:00
|
|
|
%if %{build_gl}
|
2015-12-18 12:37:25 +01:00
|
|
|
BuildRequires: pkgconfig(gl)
|
2013-09-30 10:44:40 +02:00
|
|
|
%endif
|
2011-02-17 17:14:30 +01:00
|
|
|
|
|
|
|
%description
|
2017-09-07 01:22:05 +02:00
|
|
|
The libva library implements the Video Acceleration API.
|
2011-02-17 17:14:30 +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
|
2012-10-18 12:59:08 +02:00
|
|
|
Group: System/Libraries
|
2017-11-09 00:12:10 +01:00
|
|
|
Supplements: libva%{sover}
|
2012-10-18 12:59:08 +02: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.
|
2012-10-18 12:59:08 +02:00
|
|
|
The library loads a hardware dependendent driver.
|
|
|
|
|
2017-09-07 01:22:05 +02:00
|
|
|
This is the VA/GLX runtime library.
|
2012-10-18 12:59:08 +02: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-18 12:37:25 +01:00
|
|
|
Group: Development/Languages/C and C++
|
2017-09-07 01:22:05 +02:00
|
|
|
%if 0%{?build_gl}
|
2015-12-18 12:37:25 +01:00
|
|
|
BuildRequires: libva-devel = %{version}
|
2017-11-09 00:12:10 +01:00
|
|
|
Requires: libva-glx%{sover} = %{version}
|
2015-12-18 12:37:25 +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}
|
2023-04-13 12:45:26 +02:00
|
|
|
Requires: libva-wayland%{sover} = %{version}
|
2017-11-09 00:12:10 +01:00
|
|
|
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-18 12:37:25 +01:00
|
|
|
|
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-18 12:37:25 +01:00
|
|
|
The library loads a hardware dependendent driver.
|
|
|
|
|
2017-09-07 01:22:05 +02:00
|
|
|
%if 0%{?build_gl}
|
2015-12-18 12:37:25 +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-18 12:37:25 +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
|
2012-10-18 12:59:08 +02: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.
|
2012-10-18 12:59:08 +02:00
|
|
|
The library loads a hardware dependendent driver.
|
|
|
|
|
2017-09-07 01:22:05 +02:00
|
|
|
This is the core runtime library.
|
2012-10-18 12:59:08 +02: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
|
2012-10-18 12:59:08 +02:00
|
|
|
Group: System/Libraries
|
2017-11-09 00:12:10 +01:00
|
|
|
Supplements: libva%{sover}
|
2012-10-18 12:59:08 +02: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.
|
2012-10-18 12:59:08 +02:00
|
|
|
The library loads a hardware dependendent driver.
|
|
|
|
|
2017-09-07 01:22:05 +02:00
|
|
|
This is the VA/DRM runtime library.
|
2012-10-18 12:59:08 +02: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
|
2012-10-18 12:59:08 +02:00
|
|
|
Group: System/Libraries
|
2017-11-09 00:12:10 +01:00
|
|
|
Supplements: libva%{sover}
|
2012-10-18 12:59:08 +02: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.
|
2011-11-09 17:30:39 +01:00
|
|
|
The library loads a hardware dependendent driver.
|
|
|
|
|
2017-09-07 01:22:05 +02:00
|
|
|
This is the VA/X11 runtime library.
|
2011-02-17 17:14:30 +01:00
|
|
|
|
|
|
|
%prep
|
2023-04-13 12:45:26 +02:00
|
|
|
%autosetup -n %{_name}-%{version} -p1
|
2011-02-17 17:14:30 +01:00
|
|
|
|
|
|
|
%build
|
2023-04-13 12:45:26 +02:00
|
|
|
%meson \
|
|
|
|
-D driverdir=%{_libdir}/dri \
|
2015-12-28 20:47:35 +01:00
|
|
|
%if %{build_gl}
|
2023-04-13 12:45:26 +02:00
|
|
|
-D with_glx=yes \
|
|
|
|
-D with_x11=yes \
|
|
|
|
-D disable_drm=true \
|
|
|
|
-D with_wayland=no \
|
|
|
|
-D with_win32=no \
|
|
|
|
%else
|
|
|
|
-D with_glx=no \
|
2013-09-30 10:44:40 +02:00
|
|
|
%endif
|
2023-04-13 12:45:26 +02:00
|
|
|
%{nil}
|
|
|
|
%meson_build
|
2011-02-17 17:14:30 +01:00
|
|
|
|
|
|
|
%install
|
2023-04-13 12:45:26 +02:00
|
|
|
%meson_install
|
2011-02-17 17:14:30 +01:00
|
|
|
|
2015-12-28 20:47:35 +01:00
|
|
|
%if %{build_gl}
|
2015-12-18 12:37:25 +01:00
|
|
|
# remove all files packaged during without gl mode
|
2023-04-13 12:45:26 +02:00
|
|
|
rm -rf `find %{buildroot}%{_includedir}/va/* | grep -v "glx"`
|
|
|
|
rm -rf `find %{buildroot}%{_libdir}/libva* | grep -v "glx"`
|
|
|
|
rm -rf `find %{buildroot}%{_libdir}/pkgconfig/libva*.pc | grep -v "glx"`
|
2015-12-18 12:37:25 +01:00
|
|
|
%endif
|
2012-10-18 12:59:08 +02:00
|
|
|
|
2023-04-13 12:45:26 +02:00
|
|
|
%ldconfig_scriptlets -n libva-glx%{sover}
|
|
|
|
%ldconfig_scriptlets -n libva-wayland%{sover}
|
|
|
|
%ldconfig_scriptlets -n libva%{sover}
|
|
|
|
%ldconfig_scriptlets -n libva-drm%{sover}
|
|
|
|
%ldconfig_scriptlets -n libva-x11-%{sover}
|
2015-12-18 12:37:25 +01:00
|
|
|
|
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-18 12:37:25 +01:00
|
|
|
|
2017-08-29 14:09:53 +02:00
|
|
|
%files devel
|
|
|
|
%{_libdir}/libva-glx.so
|
2023-04-13 12:45:26 +02:00
|
|
|
%{_includedir}/va/va_glx.h
|
|
|
|
%{_includedir}/va/va_backend_glx.h
|
2017-11-28 14:56:09 +01:00
|
|
|
%{_libdir}/pkgconfig/libva-glx.pc
|
2017-08-29 14:09:53 +02:00
|
|
|
%else
|
|
|
|
|
2017-11-09 00:12:10 +01:00
|
|
|
%files -n libva%{sover}
|
2018-07-17 14:50:33 +02:00
|
|
|
%license COPYING
|
2011-11-09 17:30:39 +01:00
|
|
|
%{_libdir}/libva.so.*
|
2012-10-18 12:59:08 +02:00
|
|
|
|
2017-11-09 00:12:10 +01:00
|
|
|
%files -n libva-x11-%{sover}
|
2011-11-09 17:30:39 +01:00
|
|
|
%{_libdir}/libva-x11.so.*
|
2012-10-18 12:59:08 +02:00
|
|
|
|
2017-11-09 00:12:10 +01:00
|
|
|
%files -n libva-drm%{sover}
|
2012-10-18 12:59:08 +02:00
|
|
|
%{_libdir}/libva-drm.so.*
|
2011-02-17 17:14:30 +01:00
|
|
|
|
2023-04-13 12:45:26 +02:00
|
|
|
%files -n libva-wayland%{sover}
|
|
|
|
%{_libdir}/libva-wayland.so.%{sover}*
|
|
|
|
|
2011-02-17 17:14:30 +01:00
|
|
|
%files devel
|
|
|
|
%{_libdir}/libva.so
|
|
|
|
%{_libdir}/libva-x11.so
|
2012-10-18 12:59:08 +02:00
|
|
|
%{_libdir}/libva-drm.so
|
2023-04-13 12:45:26 +02:00
|
|
|
%{_libdir}/libva-wayland.so
|
2011-02-17 17:14:30 +01:00
|
|
|
%{_includedir}/va
|
2017-11-28 14:56:09 +01:00
|
|
|
%{_libdir}/pkgconfig/libva-drm.pc
|
|
|
|
%{_libdir}/pkgconfig/libva-x11.pc
|
2023-04-13 12:45:26 +02:00
|
|
|
%{_libdir}/pkgconfig/libva-wayland.pc
|
2017-11-28 14:56:09 +01:00
|
|
|
%{_libdir}/pkgconfig/libva.pc
|
2015-12-18 12:37:25 +01:00
|
|
|
%endif
|
2011-02-17 17:14:30 +01:00
|
|
|
|
|
|
|
%changelog
|