## START: Set by rpmautospec ## (rpmautospec version 0.6.0) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 1; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec Name: intel-media-driver-free Version: 24.1.5 Release: %autorelease Summary: The Intel Media Driver for VAAPI License: MIT and BSD URL: https://github.com/intel/media-driver # Original source has non-free and/or patented files, use following on the original source! # $ python3 strip.py # ref. https://github.com/intel/media-driver/wiki/Media-Driver-Shaders-(EU-Kernels)#build-with-open-source-shaders #Source0: %%{url}/archive/intel-media-%%{version}%%{?pre}.tar.gz Source0: intel-media-%{version}-free.tar.gz Source1: intel-media-driver.metainfo.xml Source2: strip.py # This is an Intel only vaapi backend ExclusiveArch: i686 x86_64 BuildRequires: cmake BuildRequires: gcc BuildRequires: gcc-c++ # AppStream metadata generation BuildRequires: libappstream-glib # Enable once we start building free kernels #BuildRequires: intel-igc-devel #BuildRequires: intel-cm-compiler #BuildRequires: intel-compute-runtime BuildRequires: pkgconfig(libcmrt) BuildRequires: pkgconfig(igdgmm) BuildRequires: python3 BuildRequires: python3-devel BuildRequires: python-unversioned-command BuildRequires: libva-devel BuildRequires: libpciaccess-devel BuildRequires: libdrm-devel BuildRequires: pkgconfig(x11) BuildRequires: ninja-build %description The Intel Media Driver for VAAPI is a new VA-API (Video Acceleration API) user mode driver supporting hardware accelerated decoding, encoding, and video post processing for GEN based graphics hardware. https://01.org/intel-media-for-linux %package -n libva-intel-media-driver Summary: The Intel Media Driver for VAAPI. %description -n libva-intel-media-driver %{description} %package -n libigfxcmrt Summary: Library to load own GPU kernels on render engine via Intel media driver. Requires: libva-intel-media-driver%{?_isa} = %{version}-%{release} %description -n libigfxcmrt libigfxcmrt is a runtime library needed when user wants to execute their own GPU kernels on render engine. It calls Intel media driver to load the kernels and allocate the resources. It provides a set of APIs for user to call directly from application. %package -n libigfxcmrt-devel Summary: Development files for libigfxcmrt Requires: libigfxcmrt%{?_isa} = %{version}-%{release} %description -n libigfxcmrt-devel The libigfxcmrt-devel package contains libraries and header files for developing applications that use libigfxcmrt. %prep %autosetup -p1 -n media-driver-intel-media-%{version}%{?pre} # Fix license perm chmod -x LICENSE.md README.md CMakeLists.txt # Remove pre-built (but unused) files rm -rv Tools/MediaDriverTools/UMDPerfProfiler/MediaPerfParser %build %ifarch %{ix86} export CXXFLAGS="%{optflags} -D_FILE_OFFSET_BITS=64" %endif %cmake \ %ifarch %{ix86} -DARCH:STRING=32 \ %endif -DENABLE_NONFREE_KERNELS:BOOL=OFF \ -DENABLE_KERNELS:BOOL=OFF \ -DBUILD_KERNELS:BOOL=OFF \ -DLIBVA_DRIVERS_PATH=%{_libdir}/dri \ -DMEDIA_BUILD_FATAL_WARNINGS=OFF \ -DVC1_Decode_Supported="no" \ -DAVC_Encode_VME_Supported="no" \ -DAVC_Encode_VDEnc_Supported="no" \ -DHEVC_Encode_VME_Supported="no" \ -DHEVC_Encode_VDEnc_Supported="no" \ -DAVC_Decode_Supported="no" \ -DHEVC_Decode_Supported="no" \ -DAVC_Decode_Supported="no" \ -G Ninja %cmake_build %install %cmake_install # Fix perm on library to be stripped chmod +x %{buildroot}%{_libdir}/dri/iHD_drv_video.so # install AppData and add modalias provides mkdir -p %{buildroot}%{_metainfodir} install -pm 0644 %{SOURCE1} %{buildroot}%{_metainfodir}/%{name}.metainfo.xml # TODO - have pci based hw detection %if 0 fn=%{buildroot}%{_metainfodir}/intel-media-driver.metainfo.xml %{SOURCE9} src/i965_pciids.h | xargs appstream-util add-provide ${fn} modalias %endif %files -n libva-intel-media-driver %doc README.md %license LICENSE.md %{_libdir}/dri/iHD_drv_video.so %{_metainfodir}/%{name}.metainfo.xml %files -n libigfxcmrt %{_libdir}/libigfxcmrt.so.* %files -n libigfxcmrt-devel %{_libdir}/libigfxcmrt.so %{_includedir}/igfxcmrt %{_libdir}/pkgconfig/igfxcmrt.pc %changelog ## START: Generated by rpmautospec * Wed Mar 20 2024 Frantisek Zatloukal - 24.1.5-1 - intel-media-24.1.5 * Mon Mar 18 2024 Frantisek Zatloukal - 24.1.3-4 - Manually set LIBVA_DRIVERS_PATH to the default single path * Tue Feb 27 2024 Nicolas Chauvet - 24.1.3-3 - Rename metainfo to match package name * Tue Feb 27 2024 Nicolas Chauvet - 24.1.3-2 - Drop conflicts with intel-media-driver * Fri Feb 02 2024 Frantisek Zatloukal - 24.1.3-1 - intel-media-24.1.3 * Mon Jan 29 2024 Frantisek Zatloukal - 24.1.2-1 - intel-media-24.1.2 * Wed Jan 24 2024 Fedora Release Engineering - 23.4.3-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Sat Jan 20 2024 Fedora Release Engineering - 23.4.3-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Tue Jan 16 2024 Frantisek Zatloukal - 23.4.3-2 - Update appstream metainfo * Mon Dec 11 2023 Frantisek Zatloukal - 23.4.3-1 - intel-media-23.4.3 * Thu Dec 07 2023 Frantisek Zatloukal - 23.4.2-3 - Fix libigfxcmrt requires (Fixes RHBZ#2253145) * Wed Dec 06 2023 Frantisek Zatloukal - 23.4.2-1 - Initial package, taken from rpmfusion and reduced to contain only free parts ## END: Generated by rpmautospec