## START: Set by rpmautospec ## (rpmautospec version 0.8.4) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 2; 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 %global _firmwarepath /lib/firmware/updates/intel/vpu Name: intel-npu-driver Version: 1.32.0 Release: %autorelease Summary: Intel Neural Processing Unit Driver License: MIT AND Apache-2.0 URL: https://github.com/intel/linux-npu-driver Source0: %url/archive/v%{version}/%{name}-%{version}.tar.gz Source1: https://github.com/intel/level-zero-npu-extensions/archive/42768cc73e74f6d371bd9dd51b1860b07774e7ec/level-zero-npu-extensions-42768cc.tar.gz Source2: https://github.com/openvinotoolkit/npu_compiler_elf/archive/82c444bcb9feb0f55fa33e18fbd711ec35426fba/npu_compiler_elf-82c444b.tar.gz Patch0: npu-driver-fedora.patch ExclusiveArch: x86_64 BuildRequires: cmake BuildRequires: gcc-c++ BuildRequires: glibc-devel BuildRequires: gmock-devel BuildRequires: gtest-devel BuildRequires: libudev-devel BuildRequires: oneapi-level-zero-devel BuildRequires: openssl-devel BuildRequires: yaml-cpp-devel # openvino-npu_compiler_elf Provides: bundled(openvino-npu_compiler_elf) # level-zero-npu-extensions Provides: bundled(level-zero-npu-extensions) Requires: oneapi-level-zero %description Intel NPU device is an AI inference accelerator integrated with Intel client CPUs, starting from Intel Core Ultra generation of CPUs (formerly known as Meteor Lake). It enables energy-efficient execution of artificial neural network tasks. %package test Summary: Test files for %{name} Requires: %{name}%{?_isa} = %{version}-%{release} %description test The %{name}-test package contains kernel-mode (kmd) and user-mode (umd) parts of the %{name}. %prep %autosetup -N -n linux-npu-driver-%{version} # thirdparty deps rm -rf third_party/googletest \ third_party/level-zero-npu-extensions \ third_party/npu_compiler_elf \ third_party/perfetto \ third_party/yaml-cpp tar xf %{SOURCE1} mv level-zero-npu-extensions-* third_party/level-zero-npu-extensions tar xf %{SOURCE2} mv npu_compiler_elf-* third_party/npu_compiler_elf %autopatch -p1 %build %cmake \ -DCMAKE_BUILD_TYPE=Release \ -DUSE_SYSTEM_LIBRARIES=ON \ -DENABLE_NPU_COMPILER_BUILD=OFF %cmake_build %install %cmake_install # remove the fw files since they are not packaged here rm -rf %{buildroot}%{_firmwarepath} # remove the unversioned so file rm -vf %{buildroot}%{_libdir}/libze_intel_npu.so # install NPU shared tests install -d %{buildroot}%{_bindir} install -m 0755 redhat-linux-build/bin/*npu_*tests %{buildroot}%{_bindir}/ # Stage source trees inside the cmake build dir so debugedit/cpio can find # files for /usr/src/debug/. DWARF records paths as "redhat-linux-build//..." # but the real sources live at "/..." in the unpacked tarball. mkdir -p redhat-linux-build/third_party/npu_compiler_elf cp -a third_party/npu_compiler_elf/. redhat-linux-build/third_party/npu_compiler_elf/ cp -a umd/. redhat-linux-build/umd/ cp -a validation/. redhat-linux-build/validation/ %files %license LICENSE.md %doc README.md %{_libdir}/libze_intel_npu.so.1 %{_libdir}/libze_intel_npu.so.%{version} %files test %{_bindir}/npu-kmd-test %{_bindir}/npu-umd-test %{_bindir}/*npu_*tests %changelog ## START: Generated by rpmautospec * Tue May 26 2026 Androniychuk, Pavel - 1.32.0-2 - Rebuild on oneapi-level-zero changes * Thu May 21 2026 Aaron Chan - 1.32.0-1 - Update intel-npu-driver to v1.32.0 (rhbz #2463156) - update sources level-zero-npu-extensions, npu_compiler_elf - update checksum source file - remove 3rd party oneapi-level-zero - rename thirdparty to third_party - Fix debugsource ELF files - Remove unnecessary fw excludes and description macro - Change build to release * Thu May 14 2026 Androniychuk, Pavel - 1.28.0-5 - keep thirdparty src removals, update provides name of npu_compiler * Tue May 05 2026 Aaron Chan - 1.28.0-4 - Fix file integrity to match intel-npu-driver v1.16.0 * Tue May 05 2026 Aaron Chan - 1.28.0-3 - Exclude Intel NPU/VPU firmware libraries * Mon May 04 2026 Aaron Chan - 1.28.0-2 - Update NPU firmware redistribution license * Thu Apr 30 2026 Aaron Chan - 1.28.0-1 - NPU Driver v1.28.0 Release for EPEL 10 * Fri Jan 16 2026 Fedora Release Engineering - 1.16.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild * Thu Nov 13 2025 Benjamin A. Beasley - 1.16.0-2 - Rebuilt for gtest 1.17.0 * Fri Aug 15 2025 Ali Erdinc Koroglu - 1.16.0-1 - 1st release ## END: Generated by rpmautospec