Skip to content

Instantly share code, notes, and snippets.

@estelsmith
Last active March 6, 2023 22:59
Show Gist options
  • Save estelsmith/ac3f14c352970c2b2a1b2441f8f086c6 to your computer and use it in GitHub Desktop.
Save estelsmith/ac3f14c352970c2b2a1b2441f8f086c6 to your computer and use it in GitHub Desktop.
libva specfile for almalinux 9.1
Name: libva
Version: 2.17.0
Release: 1%{?dist}
Summary: Video Acceleration (VA) API for Linux
License: MIT
URL: https://github.com/intel/libva
Source0: %{url}/releases/download/%{version}/%{name}-%{version}.tar.bz2
BuildRequires: libtool
BuildRequires: libudev-devel
BuildRequires: libdrm-devel
BuildRequires: libpciaccess-devel
# owns the %%{_libdir}/dri directory
Requires: mesa-dri-filesystem
%description
Libva is a library providing the VA API video acceleration API.
%package devel
Summary: Development files for %{name}
Requires: %{name}%{_isa} = %{version}-%{release}
Requires: pkgconfig
%description devel
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.
%prep
%autosetup -p1 -n %{name}-%{version}
autoreconf -vif
%build
%configure --disable-static \
--disable-x11 \
--disable-wayland \
--disable-glx
# remove rpath from libtool
sed -i.rpath 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
sed -i.rpath 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
%make_build
%install
%make_install INSTALL="install -p"
find %{buildroot} -regex ".*\.la$" | xargs rm -f --
%ldconfig_scriptlets
%files
%doc NEWS
%license COPYING
%ghost %{_sysconfdir}/libva.conf
%{_libdir}/libva*.so.*
%files devel
%{_includedir}/va
%{_libdir}/libva*.so
%{_libdir}/pkgconfig/libva*.pc
%changelog
* Sun Mar 05 2023 Estel Smith <estel.smith@gmail.com> - 2.17.0-1
- Build it maself
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment