# # Copyright (C) 2026 Intel Corporation # # Please submit issues or comments https://github.com/openvinotoolkit/openvino/issues %bcond_with compiler_in_plugin %bcond_with compiler_in_driver %global npu_compiler_rev npu_ud_2026_12_rc1 %global npu_compiler_path thirdparty/npu_compiler-%{npu_compiler_rev} %global debug_package %{nil} %global openvino_en "ON" %if %{with compiler_in_plugin} && %{with compiler_in_driver} %global openvino_en "OFF" %endif %global so_ver 2600 %global desc %{expand:OpenVINO is an open-source toolkit for optimizing and deploying deep learning models from cloud to edge. It accelerates deep learning inference across various use cases, such as generative AI, video, audio, and language with models from popular frameworks like PyTorch, TensorFlow, ONNX, and more.} Name: openvino Version: 2026.0.0 Release: %autorelease Summary: Toolkit for optimizing and deploying AI inference # Most of the source code is Apache-2.0, with the following exceptions: # src/core/reference/include/openvino/reference/deformable_psroi_pooling.hpp : MIT # src/core/src/type/nf4.cpp : MIT # src/plugins/intel_cpu/src/hash_builder.hpp : BSL-1.0 # src/core/reference/include/openvino/reference/interpolate_pil.hpp : HPND # oneDNN: BSL-1.0, BSD-3-Clause, (GPL-2.0-only OR BSD-3-Clause), MIT License: Apache-2.0 AND MIT AND BSL-1.0 AND HPND AND BSD-3-Clause AND (GPL-2.0-only OR BSD-3-Clause) URL: https://github.com/openvinotoolkit/openvino Source0: %{url}/archive/%{version}/%{name}-%{version}.tar.gz Source1: https://github.com/openvinotoolkit/oneDNN/archive/c6b79c1207bd5f20b9395536dab1d71a47cfcb1d/onednn-c6b79c1.tar.gz Source2: https://github.com/openvinotoolkit/mlas/archive/d1bc25ec4660cddd87804fcf03b2411b5dfb2e94/mlas-d1bc25e.tar.gz Source3: https://github.com/oneapi-src/oneDNN/archive/929fe4e5629be2a5e89f1ba13b13458b965ffe57/onednn-gpu-929fe4e.tar.gz %if %{with compiler_in_plugin} Source4: https://github.com/oneapi-src/level-zero/archive/d562046e7266120e8be3533597b65f34a00524c1/oneapi-level-zero-d562046.tar.gz Source5: https://github.com/jbeder/yaml-cpp/archive/da82fd982c260e7f335ce5acbceff24b270544d1/yaml-cpp-da82fd9.tar.gz Source6: https://github.com/intel/level-zero-npu-extensions/archive/8404c63a88d182726038d2b07c219731dada9c21/level-zero-npu-ext-8404c63.tar.gz %endif %if %{with compiler_in_driver} Source7: https://github.com/openvinotoolkit/npu_compiler/archive/01a807a7f7acfafbf523693351f53d0416f08089/npu_compiler-npu_ud_2026_12_rc1.tar.gz Source8: https://github.com/openvinotoolkit/npu_compiler_elf/archive/82c444bcb9feb0f55fa33e18fbd711ec35426fba/npu_compiler-elf-82c444b.tar.gz Source9: https://github.com/google/gtest-parallel/archive/f4d65b555894b301699c7c3c52906f72ea052e83/gtest-f4d65b5.tar.gz Source10: https://github.com/intel-staging/npu-compiler-llvm/archive/cf3934f4e8ada928544a743481e037935a21e857/npu-compiler-llvm-cf3934f.tar.gz Source11: https://github.com/intel/npu-nn-cost-model/archive/33ef9a69b4e694ad5bfc521af829a9cc9ce19b4c/npu-nn-cost-model-33ef9a6.tar.gz Source12: https://github.com/google/flatbuffers/archive/595bf0007ab1929570c7671f091313c8fc20644e/flatbuffers-595bf00.tar.gz %endif Patch0: protobuf_version.patch Patch1: xbyak-gflags-system-modules.patch Patch2: samples-system-gflags-json.patch # pybind11 3.x (Fedora > 44) forbids py::call_guard<> on the def_property # family; older pybind11 needs the original variant. %if 0%{?fedora} > 44 Patch3: pybind11-call_guard-compat-3x.patch %else Patch3: pybind11-call_guard-compat.patch %endif %if %{with compiler_in_driver} Patch4: vpux-driver-compiler-CMakeLists.patch Patch5: cmake-lib_install.patch %endif ExclusiveArch: x86_64 BuildRequires: cmake BuildRequires: gcc BuildRequires: gcc-c++ BuildRequires: glibc-devel BuildRequires: tbb-devel BuildRequires: pugixml-devel BuildRequires: snappy-devel %if 0%{?fedora}>44 BuildRequires: protobuf3-devel %else BuildRequires: protobuf-devel %endif BuildRequires: onnx-devel BuildRequires: flatbuffers-devel BuildRequires: flatbuffers-compiler BuildRequires: nlohmann-json-devel BuildRequires: opencl-headers BuildRequires: pkgconfig(OpenCL) BuildRequires: xbyak-devel BuildRequires: gflags-devel BuildRequires: zlib-devel BuildRequires: python3-devel BuildRequires: pybind11-devel BuildRequires: python3-setuptools BuildRequires: python3-wheel BuildRequires: python3-numpy %if %{with compiler_in_plugin} BuildRequires: clang-devel BuildRequires: ninja-build BuildRequires: opencv-devel BuildRequires: patchelf BuildRequires: rpmlint BuildRequires: ShellCheck %endif %if %{with compiler_in_driver} BuildRequires: blas-devel BuildRequires: ccache BuildRequires: git BuildRequires: git-lfs BuildRequires: glibc-devel BuildRequires: jemalloc-devel BuildRequires: libedit-devel BuildRequires: libpfm-devel BuildRequires: libunwind-devel BuildRequires: libxml2-devel BuildRequires: llvm-devel BuildRequires: ocaml-findlib-devel BuildRequires: python3-pygments BuildRequires: python3-pyyaml BuildRequires: valgrind-devel %endif %if %{without compiler_in_plugin} Requires: lib%{name}-ir-frontend = %{version}-%{release} Requires: lib%{name}-pytorch-frontend = %{version}-%{release} Requires: lib%{name}-onnx-frontend = %{version}-%{release} Requires: lib%{name}-paddle-frontend = %{version}-%{release} Requires: lib%{name}-tensorflow-frontend = %{version}-%{release} %else Requires: lib%{name}-tensorflow-lite-frontend = %{version}-%{release} %endif %if %{without compiler_in_plugin} Recommends: lib%{name}-auto-plugin = %{version}-%{release} Recommends: lib%{name}-auto-batch-plugin = %{version}-%{release} Recommends: lib%{name}-hetero-plugin = %{version}-%{release} Recommends: lib%{name}-intel-cpu-plugin = %{version}-%{release} Recommends: lib%{name}-intel-gpu-plugin = %{version}-%{release} %else Recommends: lib%{name}-intel-npu-plugin = %{version}-%{release} %endif %description %{desc} %if %{with compiler_in_driver} %package -n lib%{name}-npu-devel Summary: Development files for NPU Driver Compiler API Provides: %{name}-devel = %{version}-%{release} Obsoletes: %{name}-devel < 2025.1.0-14 Requires: %{name}%{?_isa} = %{version}-%{release} Requires: tbb-devel %description -n lib%{name}-npu-devel This package provides the interfaces for compiling neural network models to Intel Neural Processing Unit (NPU) devices. ## NPU Compiler ## %package -n intel-npu-compiler Summary: OpenVINO NPU Compiler Provides: bundled(npu_compiler) Provides: bundled(flatbuffers) Requires: %{name}%{?_isa} = %{version}-%{release} Requires: intel-npu-driver Provides: bundled(npu-nn-cost-model) Provides: bundled(npu_plugin_elf) Provides: bundled(npu-plugin-llvm) %description -n intel-npu-compiler 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. ## NPU Plugins ## %package -n lib%{name}-intel-npu-plugin Summary: Intel NPU plugin for OpenVINO %description -n lib%{name}-intel-npu-plugin This package provides the Intel NPU plugin for OpenVINO. ## NPU Compile Tools %package -n %{name}-npu-tools Summary: NPU compile tools for %{name} Requires: %{name}%{?_isa} = %{version}-%{release} %description -n %{name}-npu-tools Compile tool is a C++ application that enables to compile a model for inference on a specific device and exports the compiled representation to a binary file. Protopipe is a C++ tool for simulating performance and validating accuracy of various AI scenarios. It supports running inference on ONNX runtime frameworks. Single Image Test is a C++ application that enables to pass %{name} IR to ONNX model or pre-compiled blob. This tool can be configured to perform various preprocessing methods and output comparison algorithms depending on model topology %endif %if %{without compiler_in_plugin} %package -n lib%{name}-devel Summary: Development files for %{name} Provides: %{name}-devel = %{version}-%{release} Obsoletes: %{name}-devel < 2025.1.0-14 Requires: %{name}%{?_isa} = %{version}-%{release} Requires: tbb-devel %description -n lib%{name}-devel %{desc} . This package provides the headers and libraries for developing applications with OpenVINO. ## Plugins ## %package -n lib%{name}-auto-plugin Summary: Auto / Multi software plugin for OpenVINO %description -n lib%{name}-auto-plugin %{desc} #This package provides the Auto / Multi software plugin for OpenVINO. %package -n lib%{name}-auto-batch-plugin Summary: Automatic batch software plugin for OpenVINO %description -n lib%{name}-auto-batch-plugin %{desc} This package provides the automatic batch software plugin for OpenVINO. %package -n lib%{name}-hetero-plugin Summary: Hetero plugin for OpenVINO %description -n lib%{name}-hetero-plugin %{desc} This package provides the hetero plugin for OpenVINO. %package -n lib%{name}-intel-cpu-plugin Summary: Intel CPU plugin for OpenVINO # Forked version of OpenVINO oneDNN does not have a proper version Provides: bundled(onednn) # Intel MLAS Provides: bundled(mlas) %description -n lib%{name}-intel-cpu-plugin %{desc} This package provides the Intel CPU plugin for OpenVINO. %package -n lib%{name}-intel-gpu-plugin Summary: Intel GPU plugin for OpenVINO # Forked version of oneapi-src/oneDNN used by the GPU plugin Provides: bundled(onednn-gpu) %description -n lib%{name}-intel-gpu-plugin %{desc} This package provides the Intel GPU plugin for OpenVINO. ## Frontend shared libraries ## %package -n lib%{name}-ir-frontend Summary: OpenVINO IR Frontend Requires: %{name}%{?_isa} = %{version}-%{release} %description -n lib%{name}-ir-frontend %{desc} This package provides the IR frontend for OpenVINO. %package -n lib%{name}-onnx-frontend Summary: OpenVINO ONNX Frontend Requires: %{name}%{?_isa} = %{version}-%{release} %description -n lib%{name}-onnx-frontend %{desc} This package provides the ONNX frontend for OpenVINO. %package -n lib%{name}-paddle-frontend Summary: OpenVINO Paddle Frontend Requires: %{name}%{?_isa} = %{version}-%{release} %description -n lib%{name}-paddle-frontend %{desc} This package provides the Paddle frontend for OpenVINO. %package -n lib%{name}-pytorch-frontend Summary: OpenVINO PyTorch Frontend Requires: %{name}%{?_isa} = %{version}-%{release} %description -n lib%{name}-pytorch-frontend %{desc} This package provides the PyTorch frontend for OpenVINO. %package -n lib%{name}-tensorflow-frontend Summary: OpenVINO TensorFlow Frontend Requires: %{name}%{?_isa} = %{version}-%{release} %description -n lib%{name}-tensorflow-frontend %{desc} This package provides the TensorFlow frontend for OpenVINO. %package -n lib%{name}-tensorflow-lite-frontend Summary: OpenVINO TensorFlow Lite Frontend Requires: %{name}%{?_isa} = %{version}-%{release} %description -n lib%{name}-tensorflow-lite-frontend %{desc} This package provides the TensorFlow Lite frontend for OpenVINO. ## Samples ## %package -n %{name}-samples Summary: C and C++ samples for OpenVINO BuildArch: noarch Requires: lib%{name}-devel = %{version}-%{release} Requires: cmake Requires: gcc-c++ Requires: gcc Requires: glibc-devel Requires: make Requires: pkgconf-pkg-config Suggests: opencv-devel >= 3.0 Suggests: ocl-icd-devel Suggests: opencl-headers %description -n %{name}-samples %{desc} This package provides C and C++ source code samples demonstrating how to use OpenVINO runtime and APIs. %package -n python3-%{name} Summary: OpenVINO Python API Requires: %{name}%{?_isa} = %{version}-%{release} Requires: python3-numpy %description -n python3-%{name} OpenVINO Python API allowing users to use the OpenVINO library in their Python code. Python API provides bindings to basic and advanced APIs from OpenVINO runtime. %endif %prep %autosetup -N %patch -P 0 -p1 %patch -P 1 -p1 %patch -P 2 -p1 %patch -P 3 -p1 # Intel CPU plugin thirdparty deps tar xf %{SOURCE1} cp -r oneDNN-c6b79c1207bd5f20b9395536dab1d71a47cfcb1d/* src/plugins/intel_cpu/thirdparty/onednn tar xf %{SOURCE2} cp -r mlas-d1bc25ec4660cddd87804fcf03b2411b5dfb2e94/* src/plugins/intel_cpu/thirdparty/mlas # Intel GPU plugin thirdparty deps tar xf %{SOURCE3} cp -r oneDNN-929fe4e5629be2a5e89f1ba13b13458b965ffe57/* src/plugins/intel_gpu/thirdparty/onednn_gpu # Python bindings: remove openvino-telemetry (not in Fedora) # It is present in both pyproject.toml (root) and src/bindings/python/requirements.txt sed -i '/openvino-telemetry/d' pyproject.toml sed -i '/openvino-telemetry/d' src/bindings/python/requirements.txt # Intel NPU plugin thirdparty deps %if %{with compiler_in_plugin} tar xf %{SOURCE4} -C thirdparty/level_zero/level-zero --strip-components=1 tar xf %{SOURCE5} -C src/plugins/intel_npu/thirdparty/yaml-cpp --strip-components=1 tar xf %{SOURCE6} -C src/plugins/intel_npu/thirdparty/level-zero-ext --strip-components=1 tar xf %{SOURCE12} -C thirdparty/flatbuffers/flatbuffers --strip-components=1 %endif # Intel NPU compiler thirdparty deps %if %{with compiler_in_driver} rm -rf %{npu_compiler_path} mkdir -p %{npu_compiler_path} tar xf %{SOURCE7} -C %{npu_compiler_path} --strip-components=1 git -C %{_builddir}/%{name}-%{version}/%{npu_compiler_path} config --global user.email "buildinfra@fedoraproject.org" git -C %{_builddir}/%{name}-%{version}/%{npu_compiler_path} config --global user.name "Fedora Project" git -C %{_builddir}/%{name}-%{version}/%{npu_compiler_path} config --global --add safe.directory %{_builddir}/%{name}-%{version}/%{npu_compiler_path} git -C %{_builddir}/%{name}-%{version}/%{npu_compiler_path} config --global pull.rebase true git -C %{_builddir}/%{name}-%{version}/%{npu_compiler_path} init -q git -C %{_builddir}/%{name}-%{version}/%{npu_compiler_path} remote add origin https://github.com/openvinotoolkit/npu_compiler git -C %{_builddir}/%{name}-%{version}/%{npu_compiler_path} fetch --all git -C %{_builddir}/%{name}-%{version}/%{npu_compiler_path} add . git -C %{_builddir}/%{name}-%{version}/%{npu_compiler_path} commit -m "initial commit" git -C %{_builddir}/%{name}-%{version}/%{npu_compiler_path} pull origin %{npu_compiler_rev} git -C %{_builddir}/%{name}-%{version}/%{npu_compiler_path} log -1 --oneline %patch -d %{npu_compiler_path} -P 4 -p1 tar xf %{SOURCE8} -C %{npu_compiler_path}/thirdparty/elf --strip-components=1 %patch -d %{npu_compiler_path}/thirdparty/elf -P 5 -p1 tar xf %{SOURCE9} -C %{npu_compiler_path}/thirdparty/gtest-parallel --strip-components=1 tar xf %{SOURCE10} -C %{npu_compiler_path}/thirdparty/llvm-project --strip-components=1 tar xf %{SOURCE11} -C %{npu_compiler_path}/thirdparty/vpucostmodel --strip-components=1 %endif %build %cmake \ -DCMAKE_BUILD_TYPE=RelWithDebInfo \ -DCMAKE_POLICY_VERSION_MINIMUM="3.5.0" \ %if %{with compiler_in_driver} -DCMAKE_CXX_FLAGS="%{optflags} -Wformat -Wformat-security -Wno-free-nonheap-object -Wno-array-bounds -Wno-stringop-overflow \ -Wno-error=dangling-reference -Wno-error=stringop-overflow -Wno-error=maybe-uninitialized -Wno-error=unused-but-set-variable \ -Wno-error=template-id-cdtor -include cstdint -fno-lto" \ %else -DCMAKE_CXX_FLAGS="%{optflags} -Wformat -Wformat-security -Wno-free-nonheap-object -Wno-array-bounds -Wno-stringop-overflow" \ %endif -DCMAKE_COMPILE_WARNING_AS_ERROR=OFF \ -DCMAKE_NO_SYSTEM_FROM_IMPORTED=ON \ -DENABLE_CLANG_FORMAT=OFF \ -DENABLE_PRECOMPILED_HEADERS=OFF \ -DBUILD_SHARED_LIBS=ON \ %if %{with compiler_in_driver} -DCPACK_GENERATOR=TGZ \ %else -DCPACK_GENERATOR=RPM \ %endif -DENABLE_OV_ONNX_FRONTEND=%{openvino_en} \ -DENABLE_OV_PADDLE_FRONTEND=%{openvino_en} \ -DENABLE_OV_PYTORCH_FRONTEND=%{openvino_en} \ -DENABLE_OV_IR_FRONTEND=%{openvino_en} \ -DENABLE_OV_TF_FRONTEND=%{openvino_en} \ -DENABLE_OV_TF_LITE_FRONTEND=ON \ -DENABLE_OV_JAX_FRONTEND=%{openvino_en} \ -DENABLE_INTEL_NPU=OFF \ -DENABLE_TEMPLATE=OFF \ -DENABLE_PROXY=OFF \ -DENABLE_PYTHON=%{openvino_en} \ -DPython3_EXECUTABLE=%{python3} \ -DENABLE_WHEEL=OFF \ -DENABLE_AUTO=%{openvino_en} \ -DENABLE_AUTO_BATCH=%{openvino_en} \ -DENABLE_HETERO=%{openvino_en} \ -DENABLE_INTEL_GPU=%{openvino_en} \ -DENABLE_INTEL_CPU=%{openvino_en} \ -DENABLE_JS=OFF \ -DENABLE_SAMPLES=%{openvino_en} \ -DENABLE_TESTS=OFF \ -DENABLE_PROFILING_ITT=OFF \ -DENABLE_PKGCONFIG_GEN=%{openvino_en} \ -DENABLE_SYSTEM_TBB=ON \ -DENABLE_SYSTEM_OPENCL=ON \ -DENABLE_SYSTEM_PUGIXML=ON \ -DENABLE_SYSTEM_SNAPPY=ON \ -DENABLE_SYSTEM_PROTOBUF=ON \ -DProtobuf_USE_STATIC_LIBS=OFF \ -DENABLE_SYSTEM_FLATBUFFERS=ON \ -DTHREADING=TBB \ %if %{with compiler_in_plugin} -G Ninja \ -DENABLE_SYSTEM_LEVEL_ZERO=ON \ -DENABLE_PLUGINS_XML=ON \ -DENABLE_NPU_PLUGIN_ENGINE=ON \ -DENABLE_INTEL_NPU=ON \ -DENABLE_INTEL_NPU_COMPILER=ON \ -DENABLE_INTEL_NPU_INTERNAL=ON \ -DENABLE_INTEL_NPU_PROTOPIPE=ON \ %endif %if %{with compiler_in_driver} -DOPENVINO_EXTRA_MODULES=%{npu_compiler_path} \ -DENABLE_PREBUILT_LLVM_MLIR_LIBS=OFF \ -DENABLE_MLIR_COMPILER=ON \ -DBUILD_COMPILER_FOR_DRIVER=ON \ -DENABLE_DRIVER_COMPILER_AAPTER=OFF \ -DBUILD_VPUX_DRIVER_COMPILER_TESTS=OFF \ -DLLVM_ENABLE_LTO=OFF \ -DENABLE_LTO=OFF \ -DENABLE_TBBBIND_2_5=OFF \ -DENABLE_TBB_RELEASE_ONLY=OFF \ %endif %cmake_build %install %cmake_install # Remove unnecessary files that may be installed rm -rf %{buildroot}%{_prefix}/install_dependencies \ %{buildroot}%{_prefix}/setupvars.sh rm -rf %{buildroot}/%{_datadir}/licenses/* rm -rf %{buildroot}%{_datadir}/doc/* # Install Python components directly (CPACK_GENERATOR=RPM marks them EXCLUDE_FROM_ALL # for the default cmake install, but explicit --component bypasses that) %if %{without compiler_in_plugin} cmake --install %{__cmake_builddir} --prefix %{buildroot}%{_prefix} \ --component pyopenvino_python%{python3_version} cmake --install %{__cmake_builddir} --prefix %{buildroot}%{_prefix} \ --component ovc cmake --install %{__cmake_builddir} --prefix %{buildroot}%{_prefix} \ --component benchmark_app # Generate dist-info metadata (dist_info does not trigger cmake sub-builds) WHEEL_VERSION=%{version} \ %{python3} setup.py dist_info -o %{buildroot}%{python3_sitearch} # Remove openvino-telemetry (not packaged in Fedora) rm -rf %{buildroot}%{python3_sitearch}/openvino_telemetry* rm -vf %{buildroot}%{python3_sitearch}/requirements.txt rm -vf %{buildroot}%{python3_sitearch}/%{name}/preprocess/torchvision/requirements.txt %endif %if %{with compiler_in_driver} ## Remove unwanted files (not packaged in Fedora) rm -rf %{buildroot}/usr/cid/vpux_elf/lib/Release/lib*.a #rm -rf %{buildroot}/usr/cid/vpux_elf/core/src/* #rm -rf %{buildroot}/usr/cid/vpux_elf/loader/src/* rm -rf %{buildroot}/usr/runtime/3rdparty/* rm -rf %{buildroot}/usr/runtime/cmake/* rm -rf %{buildroot}/usr/samples/cpp/thirdparty/* rm -rf %{buildroot}/usr/licenses/* %endif ## NPU Plugin/Compiler shared libs %if %{with compiler_in_plugin} mkdir -p %{buildroot}%{_libdir}/%{name}-%{version} mv %{buildroot}/usr/runtime/lib/intel64/lib%{name}_intel_npu_plugin.so %{buildroot}%{_libdir}/%{name}-%{version} %endif %if %{with compiler_in_driver} mv %{buildroot}/usr/cid/lib/libnpu_driver_compiler.so %{buildroot}%{_libdir}/%{name}-%{version} ## NPU Driver Compiler mkdir -p %{buildroot}%{_includedir}/%{name} mv %{buildroot}/usr/cid/npu_driver_compiler.h %{buildroot}%{_includedir}/%{name} ## NPU Driver Compiler docs mkdir -p %{buildroot}%{_datadir}/%{name}/npu mv %{buildroot}/usr/cid/README.md %{buildroot}%{_datadir}/%{name}/npu mv %{buildroot}/usr/cid/CHANGES.txt %{buildroot}%{_datadir}/%{name}/npu ## OpenVINO runtime #mkdir -p %{buildroot}%{_libdir}/%{name}/pkgconfig mv %{buildroot}/usr/runtime/lib/intel64/lib%{name}* %{buildroot}%{_libdir} mv %{buildroot}/usr/runtime/include/%{name}/* %{buildroot}%{_includedir}/%{name} ## NPU Compile tools mkdir -p %{buildroot}%{_datadir}/%{name}/npu mv %{buildroot}/usr/runtime/lib/intel64/plugins.xml %{buildroot}%{_datadir}/%{name}/npu mkdir -p %{buildroot}%{_bindir}/%{name}/npu/tools/compile_tool mv %{buildroot}/usr/tools/compile_tool/* %{buildroot}%{_bindir}/%{name}/npu/tools/compile_tool mkdir -p %{buildroot}%{_bindir}/%{name}/npu/tools/protopipe mv %{buildroot}/usr/tools/protopipe/* %{buildroot}%{_bindir}/%{name}/npu/tools/protopipe mkdir -p %{buildroot}%{_bindir}/%{name}/npu/tools/single-image-test mv %{buildroot}/usr/tools/single-image-test/* %{buildroot}%{_bindir}/%{name}/npu/tools/single-image-test %endif %check %if %{without compiler_in_driver} LD_LIBRARY_PATH=%{buildroot}%{_libdir} PYTHONPATH=%{buildroot}%{python3_sitearch} \ %{python3} samples/python/hello_query_device/hello_query_device.py LD_LIBRARY_PATH=%{buildroot}%{_libdir} PYTHONPATH=%{buildroot}%{python3_sitearch} \ %{python3} samples/python/model_creation_sample/model_creation_sample.py \ samples/python/model_creation_sample/lenet.bin CPU %endif %if %{without compiler_in_plugin} %ldconfig_scriptlets %ldconfig_scriptlets -n lib%{name}-ir-frontend %ldconfig_scriptlets -n lib%{name}-onnx-frontend %ldconfig_scriptlets -n lib%{name}-paddle-frontend %ldconfig_scriptlets -n lib%{name}-pytorch-frontend %ldconfig_scriptlets -n lib%{name}-tensorflow-frontend %ldconfig_scriptlets -n lib%{name}-tensorflow-lite-frontend %endif %files %license LICENSE %doc README.md %{_libdir}/lib%{name}*.so %{_libdir}/lib%{name}.so.%{version} %{_libdir}/lib%{name}.so.%{so_ver} %{_libdir}/lib%{name}_c.so.%{version} %{_libdir}/lib%{name}_c.so.%{so_ver} %if %{with compiler_in_driver} %exclude %{_libdir}/lib%{name}_tensorflow_lite_frontend.so %exclude %{_libdir}/lib%{name}_tensorflow_lite_frontend.so.%{version} %exclude %{_libdir}/lib%{name}_tensorflow_lite_frontend.so.%{so_ver} %endif ## NPU - devel %if %{with compiler_in_plugin} %files -n lib%{name}-npu-devel %{_includedir}/%{name}/* %{_includedir}/3720/* %{_includedir}/4000/* %{_includedir}/5000/* %{_includedir}/common/* %{_includedir}/vpux_elf/* %{_includedir}/vpux_headers/* %{_includedir}/vpux_loader/* %else %files -n lib%{name}-devel %{_includedir}/%{name}/ %{_libdir}/cmake/%{name}%{version}/ %{_libdir}/*.so %{_libdir}/pkgconfig/%{name}.pc %endif ## Compiler in Driver %if %{with compiler_in_driver} %files -n intel-npu-compiler %dir %{_libdir}/%{name}-%{version} %{_libdir}/%{name}-%{version}/libnpu_driver_compiler.so %endif ## Plugins %if %{without compiler_in_plugin} %files -n lib%{name}-auto-plugin %dir %{_libdir}/%{name}-%{version} %{_libdir}/%{name}-%{version}/lib%{name}_auto_plugin.so %files -n lib%{name}-auto-batch-plugin %dir %{_libdir}/%{name}-%{version} %{_libdir}/%{name}-%{version}/lib%{name}_auto_batch_plugin.so %files -n lib%{name}-hetero-plugin %dir %{_libdir}/%{name}-%{version} %{_libdir}/%{name}-%{version}/lib%{name}_hetero_plugin.so %files -n lib%{name}-intel-cpu-plugin %dir %{_libdir}/%{name}-%{version} %{_libdir}/%{name}-%{version}/lib%{name}_intel_cpu_plugin.so %files -n lib%{name}-intel-gpu-plugin %dir %{_libdir}/%{name}-%{version} %{_libdir}/%{name}-%{version}/lib%{name}_intel_gpu_plugin.so %{_libdir}/%{name}-%{version}/cache.json %endif ## Plugins - NPU %if %{with compiler_in_driver} %files -n lib%{name}-intel-npu-plugin %dir %{_libdir}/%{name}-%{version} %{_libdir}/%{name}-%{version}/lib%{name}_intel_npu_plugin.so ## Tools - NPU %files -n %{name}-npu-tools %doc %{_bindir}/%{name}/npu/tools/compile_tool/README.md %doc %{_bindir}/%{name}/npu/tools/protopipe/README.md %doc %{_bindir}/%{name}/npu/tools/single-image-test/README.md %doc %{_datadir}/%{name}/npu/README.md %doc %{_datadir}/%{name}/npu/CHANGES.txt %{_bindir}/%{name}/npu/tools/compile_tool/compile_tool %{_bindir}/%{name}/npu/tools/protopipe/protopipe %{_bindir}/%{name}/npu/tools/single-image-test/single-image-test %{_datadir}/%{name}/npu/plugins.xml %endif ## Frontends %if %{without compiler_in_plugin} %files -n lib%{name}-ir-frontend %{_libdir}/lib%{name}_ir_frontend.so.* %files -n lib%{name}-onnx-frontend %{_libdir}/lib%{name}_onnx_frontend.so.* %files -n lib%{name}-paddle-frontend %{_libdir}/lib%{name}_paddle_frontend.so.* %files -n lib%{name}-pytorch-frontend %{_libdir}/lib%{name}_pytorch_frontend.so.* %files -n lib%{name}-tensorflow-frontend %{_libdir}/lib%{name}_tensorflow_frontend.so.* %files -n lib%{name}-tensorflow-lite-frontend %{_libdir}/lib%{name}_tensorflow_lite_frontend.so.* ## Samples %files -n %{name}-samples %{_datadir}/openvino/samples/ %files -n python3-%{name} %{python3_sitearch}/%{name} %{python3_sitearch}/%{name}-%{version}.dist-info %endif %changelog %autochangelog