## START: Set by rpmautospec ## (rpmautospec version 0.8.5) ## 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 %undefine _hardened_build Name: intel-npu-driver Version: 1.38.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/f9ad3bf89c2418d714aef2e6b96a5aafb12a1971/level-zero-npu-extensions-f9ad3bf.tar.gz Source2: https://github.com/openvinotoolkit/npu_compiler_elf/archive/d325f45f2cb405b5fa2ff17a30de9469f1641b73/npu_compiler_elf-d325f45.tar.gz %if 0%{?fedora} > 44 Patch0: add-initializer-umd-level_zero_driver-ze_device.patch %endif Patch1: 0001-add-algorithm-to-add-replace-to-std.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 %if 0%{?rhel} BuildRequires: gcc-toolset-15-gcc BuildRequires: gcc-toolset-15-gcc-c++ BuildRequires: gcc-toolset-15-binutils %if 0%{?rhel} >= 9 BuildRequires: gcc-toolset-15-runtime BuildRequires: gcc-toolset-15-gcc-plugin-annobin %endif %global scl gcc-toolset-15 %endif # 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}. %package -n intel-npu-smi Summary: Utility tool to track NPU telemetry data %description -n intel-npu-smi The intel-npu-smi package utility tool for tracking NPU telemetry power reporting %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/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 %if 0%{?rhel} && 0%{?rhel} <= 9 %{?scl:scl enable %{scl} - << \SCLEND} %else %enable_gcctoolset15 %endif %cmake \ -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_CXX_FLAGS="-fcf-protection=none" \ -DCMAKE_C_FLAGS="-fcf-protection=none" \ -DUSE_SYSTEM_LIBRARIES=ON \ -DENABLE_NPU_PERFETTO_BUILD=ON \ -DENABLE_TOOLS_BUILD=ON \ -DENABLE_NPU_COMPILER_BUILD=OFF %cmake_build %if 0%{?rhel} && 0%{?rhel} <= 9 %{?scl:SCLEND} %endif %install %cmake_install # 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/ mkdir -p redhat-linux-build/third_party/perfetto/sdk cp -a third_party/perfetto/sdk/. redhat-linux-build/third_party/perfetto/sdk/ cp -a tools/intel-npu-smi/. redhat-linux-build/tools/intel-npu-smi/ %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 %files -n intel-npu-smi %{_bindir}/intel-npu-smi %changelog ## START: Generated by rpmautospec * Tue Sep 08 2026 Aaron Chan - 1.35.0-1 - Update intel-npu-driver to v1.35.0 (rawhide) - add intel-npu-smi telemetry power reporting - add Perfetto build - firmware binaries packaging removed by default - remove npu-driver-fedora.patch - update source checksum - Patch to fix missing field initializer when build with level-zero v1.33.1 * Thu Jul 16 2026 Fedora Release Engineering - 1.32.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild * 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