[packages/libva] provide VA-API version (distinct from library version); rel 2

atler atler at pld-linux.org
Thu Nov 21 14:05:56 CET 2024


commit 29e12002110d9732d9fffb6ebd63eecf80861de3
Author: Jan Palus <atler at pld-linux.org>
Date:   Thu Nov 21 13:15:16 2024 +0100

    provide VA-API version (distinct from library version); rel 2

 libva.spec | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)
---
diff --git a/libva.spec b/libva.spec
index 5683262..d557cc2 100644
--- a/libva.spec
+++ b/libva.spec
@@ -2,11 +2,15 @@
 # Conditional build:
 %bcond_without	static_libs	# static libraries
 
+%define		va_api_major	1
+%define		va_api_minor	22
+%define		va_api_micro	0
+
 Summary:	VAAPI (Video Acceleration API)
 Summary(pl.UTF-8):	VAAPI (Video Acceleration API) - API akceleracji filmów
 Name:		libva
 Version:	2.22.0
-Release:	1
+Release:	2
 License:	MIT
 Group:		Libraries
 #Source0Download: https://github.com/intel/libva/tags
@@ -28,6 +32,7 @@ BuildRequires:	wayland-devel >= 1.15
 BuildRequires:	xorg-lib-libX11-devel
 BuildRequires:	xorg-lib-libXext-devel
 BuildRequires:	xorg-lib-libXfixes-devel
+Provides:	libva(va-api)%{?_isa} = %{va_api_major}.%{va_api_minor}.%{va_api_micro}
 Obsoletes:	libva-egl < 2.0
 Obsoletes:	libva-egl-devel < 2.0
 Obsoletes:	libva-egl-static < 2.0
@@ -231,6 +236,10 @@ VAAPI - statyczna biblioteka interfejsu X11.
 %prep
 %setup -q
 
+grep -q '^[^#]*m4_define.*va_api_major_version.*\[%{va_api_major}\]' configure.ac
+grep -q '^[^#]*m4_define.*va_api_minor_version.*\[%{va_api_minor}\]' configure.ac
+grep -q '^[^#]*m4_define.*va_api_micro_version.*\[%{va_api_micro}\]' configure.ac
+
 %build
 %{__libtoolize}
 %{__aclocal} -I m4
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/libva.git/commitdiff/29e12002110d9732d9fffb6ebd63eecf80861de3



More information about the pld-cvs-commit mailing list