public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Aaron Chan <aaron.chun.yew.chan@intel.com>
To: git-commits@fedoraproject.org
Subject: [rpms/openvino] rawhide: Add namespace to NPU devel & tools packages
Date: Thu, 19 Nov 2026 11:11:15 GMT	[thread overview]
Message-ID: <179508667563.1.1121344858946224955.rpms-openvino-643a7fabe03c@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : rpms/openvino
            Branch : rawhide
            Commit : 643a7fabe03cb193b875ddb06bd9240837c739ba
            Author : Aaron Chan <aaron.chun.yew.chan@intel.com>
            Date   : 2026-10-29T16:11:01+08:00
            Stats  : +28/-36 in 2 file(s)
            URL    : https://src.fedoraproject.org/rpms/openvino/c/643a7fabe03cb193b875ddb06bd9240837c739ba?branch=rawhide

            Log:
            Add namespace to NPU devel & tools packages

- move NPU devel libs to %{_includedir}/%{name}
- move NPU tools to %{_libexecdir}/%{name}
- remove chrpaths which installs npu tools into custom paths
- add LICENSE file into intel-npu-compiler package

Signed-off-by: Aaron Chan <aaron.chun.yew.chan@intel.com>

---
diff --git a/cmake-lib_install.patch b/cmake-lib_install.patch
index 29d98e2..3a364bc 100644
--- a/cmake-lib_install.patch
+++ b/cmake-lib_install.patch
@@ -7,12 +7,12 @@ index 9518a33..63e6778 100644
  
  install(DIRECTORY "${LOADER_DIR_INC}/vpux_headers"
 -        DESTINATION cid/vpux_elf/loader/include/
-+        DESTINATION include/
++        DESTINATION include/openvino/
          COMPONENT ${CID_COMPONENT})
  
  install(DIRECTORY "${LOADER_DIR_INC}/vpux_loader"
 -        DESTINATION cid/vpux_elf/loader/include/
-+        DESTINATION include/
++        DESTINATION include/openvino/
          COMPONENT ${CID_COMPONENT})
  
  #
@@ -21,22 +21,22 @@ index 9518a33..63e6778 100644
  
  install(DIRECTORY "${LOADER_DIR_HPI_INC}/common"
 -        DESTINATION cid/vpux_elf/loader/include/
-+        DESTINATION include/
++        DESTINATION include/openvino/
          COMPONENT ${CID_COMPONENT})
  
  install(DIRECTORY "${LOADER_DIR_HPI_INC}/3720"
 -        DESTINATION cid/vpux_elf/loader/include/
-+        DESTINATION include/
++        DESTINATION include/openvino/
          COMPONENT ${CID_COMPONENT})
  
  install(DIRECTORY "${LOADER_DIR_HPI_INC}/4000"
 -        DESTINATION cid/vpux_elf/loader/include/
-+        DESTINATION include/
++        DESTINATION include/openvino/
          COMPONENT ${CID_COMPONENT})
  
  install(DIRECTORY "${LOADER_DIR_HPI_INC}/5000"
 -        DESTINATION cid/vpux_elf/loader/include/
-+        DESTINATION include/
++        DESTINATION include/openvino/
          COMPONENT ${CID_COMPONENT})
  
  #
@@ -90,25 +90,25 @@ index 9518a33..63e6778 100644
  # 3 hpp
  install(DIRECTORY "${ELF_DIR}/core/include/vpux_elf"
 -        DESTINATION cid/vpux_elf/core/include/
-+        DESTINATION include/
++        DESTINATION include/openvino/
          COMPONENT ${CID_COMPONENT})
  
  # types
  install(DIRECTORY "${ELF_DIR}/core/include/vpux_elf/types"
 -        DESTINATION cid/vpux_elf/core/include/vpux_elf/
-+        DESTINATION include/vpux_elf/
++        DESTINATION include/openvino/vpux_elf/
          COMPONENT ${CID_COMPONENT})
  
  # utils
  install(DIRECTORY "${ELF_DIR}/core/include/vpux_elf/utils"
 -        DESTINATION cid/vpux_elf/core/include/vpux_elf/
-+        DESTINATION include/vpux_elf/
++        DESTINATION include/openvino/vpux_elf/
          COMPONENT ${CID_COMPONENT})
  
  # writer
  install(DIRECTORY "${ELF_DIR}/core/include/vpux_elf/writer"
 -        DESTINATION cid/vpux_elf/core/include/vpux_elf/
-+        DESTINATION include/vpux_elf/
++        DESTINATION include/openvino/vpux_elf/
          COMPONENT ${CID_COMPONENT})
  
  # core folder | -> src/ -> | -> types/

diff --git a/openvino.spec b/openvino.spec
index 1a831bd..b331f77 100644
--- a/openvino.spec
+++ b/openvino.spec
@@ -37,7 +37,7 @@ Source4:        https://github.com/oneapi-src/level-zero/archive/d562046e7266120
 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
 # Intel NPU compiler thirdparty deps
-Source7:        https://github.com/openvinotoolkit/npu_compiler/archive/01a807a7f7acfafbf523693351f53d0416f08089/%{npu_compiler_rev}.tar.gz
+Source7:	https://github.com/openvinotoolkit/npu_compiler/archive/refs/tags/%{npu_compiler_rev}.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
@@ -114,7 +114,6 @@ BuildRequires:  ocaml-findlib-devel
 BuildRequires:  python3-pygments
 BuildRequires:  python3-pyyaml
 BuildRequires:  valgrind-devel
-BuildRequires:  chrpath
 
 Requires:       lib%{name}-ir-frontend = %{version}-%{release}
 Requires:       lib%{name}-pytorch-frontend = %{version}-%{release}
@@ -467,26 +466,24 @@ rm -rf %{buildroot}/usr/licenses/*
 
 ## NPU Plugin/Compiler shared libs
 mkdir -p %{buildroot}%{_libdir}/%{name}-%{version}
-#mv %{buildroot}/usr/runtime/lib/intel64/lib%{name}_intel_npu_plugin.so %{buildroot}%{_libdir}/%{name}-%{version}
-#mv %{buildroot}/usr/runtime/lib/intel64/plugins.xml %{buildroot}%{_libdir}/%{name}-%{version}
 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}
-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
+mkdir -p %{buildroot}%{_datadir}/license/intel-npu-compiler
+mv %{_builddir}/%{name}-%{version}/thirdparty/npu_compiler-npu_ud_2026_12_rc1/LICENSE %{buildroot}%{_datadir}/license/intel-npu-compiler/
+mkdir -p %{buildroot}%{_datadir}/doc/intel-npu-compiler
+mv %{buildroot}/usr/cid/CHANGES.txt %{buildroot}%{_datadir}/doc/intel-npu-compiler/
+mv %{buildroot}/usr/cid/README.md %{buildroot}%{_datadir}/doc/intel-npu-compiler/
 
 ## NPU Compile tools
-mkdir -p %{buildroot}%{_bindir}/%{name}/npu/tools/
-mv %{builddir}/%{name}-%{version}/bin/intel64/RelWithDebInfo/compile_tool %{buildroot}%{_bindir}/%{name}/npu/tools/
-mv %{builddir}/%{name}-%{version}/bin/intel64/RelWithDebInfo/protopipe %{buildroot}%{_bindir}/%{name}/npu/tools/
-mv %{builddir}/%{name}-%{version}/bin/intel64/RelWithDebInfo/single-image-test %{buildroot}%{_bindir}/%{name}/npu/tools/single-image-test
-
-chrpath --delete %{buildroot}/%{_bindir}/%{name}/npu/tools/compile_tool
-chrpath --delete %{buildroot}/%{_bindir}/%{name}/npu/tools/protopipe
-chrpath --delete %{buildroot}/%{_bindir}/%{name}/npu/tools/single-image-test
+mkdir -p %{buildroot}/%{_libexecdir}/intel-npu-compiler
+for tools in compile_tool protopipe single-image-test; do
+    mv %{builddir}/%{name}-%{version}/bin/intel64/RelWithDebInfo/$tools \
+       %{buildroot}/%{_libexecdir}/intel-npu-compiler/
+    patchelf --remove-rpath %{buildroot}/%{_libexecdir}/intel-npu-compiler/$tools
+done
 
 %check
 LD_LIBRARY_PATH=%{buildroot}%{_libdir} PYTHONPATH=%{buildroot}%{python3_sitearch} \
@@ -514,14 +511,8 @@ LD_LIBRARY_PATH=%{buildroot}%{_libdir} PYTHONPATH=%{buildroot}%{python3_sitearch
 %{_libdir}/lib%{name}_c.so.%{so_ver}
 
 %files -n lib%{name}-devel
-%{_includedir}/%{name}/*
-%{_includedir}/3720/*
-%{_includedir}/4000/*
-%{_includedir}/5000/*
-%{_includedir}/common/*
-%{_includedir}/vpux_elf/*
-%{_includedir}/vpux_headers/*
-%{_includedir}/vpux_loader/*
+%dir %{_includedir}/%{name}
+%{_includedir}/%{name}/
 %{_libdir}/cmake/%{name}%{version}/
 %{_libdir}/*.so
 %{_libdir}/pkgconfig/%{name}.pc
@@ -586,15 +577,16 @@ LD_LIBRARY_PATH=%{buildroot}%{_libdir} PYTHONPATH=%{buildroot}%{python3_sitearch
 ## Compiler in Driver
 
 %files -n intel-npu-compiler
-%doc %{_datadir}/%{name}/npu/README.md
-%doc %{_datadir}/%{name}/npu/CHANGES.txt
+%license %{_datadir}/license/intel-npu-compiler/LICENSE
+%doc %{_datadir}/doc/intel-npu-compiler/CHANGES.txt
+%doc %{_datadir}/doc/intel-npu-compiler/README.md
 %dir %{_libdir}/%{name}-%{version}
 %{_libdir}/%{name}-%{version}/libnpu_driver_compiler.so
 
 ## NPU Compile Tools
 
 %files -n intel-npu-tools
-%{_bindir}/%{name}/npu/tools/*
+%{_libexecdir}/intel-npu-compiler/
 
 %changelog
 %autochangelog

                 reply	other threads:[~2026-11-19 11:11 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179508667563.1.1121344858946224955.rpms-openvino-643a7fabe03c@fedoraproject.org \
    --to=aaron.chun.yew.chan@intel.com \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox