public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/openvino] origin/pr/7/head: Enabled samples.
@ 2026-06-10 16:59 aanokhov
  0 siblings, 0 replies; only message in thread
From: aanokhov @ 2026-06-10 16:59 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/openvino
Branch : origin/pr/7/head
Commit : aaece1376302b7cf6d0e61d969b8ce8493120be0
Author : aanokhov <artyom.anokhov@intel.com>
Date   : 2026-04-16T12:19:45+02:00
Stats  : +163/-27 in 5 file(s)
URL    : https://src.fedoraproject.org/rpms/openvino/c/aaece1376302b7cf6d0e61d969b8ce8493120be0?branch=origin/pr/7/head

Log:
Enabled samples.

---
diff --git a/README.md b/README.md
index db75ec3..0163f1a 100644
--- a/README.md
+++ b/README.md
@@ -1,3 +1,37 @@
-# openvino
+# OpenVINO Fedora RPM Package
+
+Intel® Distribution of OpenVINO™ Toolkit — native RPM packaging for Fedora.
+
+OpenVINO is an open-source toolkit for optimizing and deploying AI inference.
+It provides high-performance deployment options for deep learning tasks such as
+computer vision, speech recognition, natural language processing, and
+recommendation systems.
+
+- **Home / Source**: https://github.com/openvinotoolkit/openvino
+- **Documentation**: https://docs.openvino.ai/latest/index.html
+- **License**: Apache-2.0
+
+---
+
+## Package structure
+
+| Package | Contents |
+|---|---|
+| `openvino` | Core shared libraries (`libopenvino.so.*`, `libopenvino_c.so.*`) |
+| `libopenvino-dev` | Headers, cmake configs, pkgconfig, unversioned `.so` symlinks |
+| `libopenvino-auto-plugin` | Auto / Multi device plugin |
+| `libopenvino-auto-batch-plugin` | Automatic batching plugin |
+| `libopenvino-hetero-plugin` | Hetero plugin |
+| `libopenvino-intel-cpu-plugin` | Intel CPU plugin (bundles oneDNN + MLAS) |
+| `libopenvino-intel-gpu-plugin` | Intel GPU plugin |
+| `libopenvino-ir-frontend` | IR model frontend |
+| `libopenvino-onnx-frontend` | ONNX model frontend |
+| `libopenvino-paddle-frontend` | PaddlePaddle model frontend |
+| `libopenvino-pytorch-frontend` | PyTorch model frontend |
+| `libopenvino-tensorflow-frontend` | TensorFlow model frontend |
+| `libopenvino-tensorflow-lite-frontend` | TensorFlow Lite model frontend |
+| `openvino-samples` | C++ sample applications |
+
+---
+
 
-The openvino package

diff --git a/openvino.spec b/openvino.spec
index c58b6f5..50db76f 100644
--- a/openvino.spec
+++ b/openvino.spec
@@ -31,7 +31,8 @@ Source2:        https://github.com/openvinotoolkit/mlas/archive/d1bc25ec4660cddd
 Source3:        https://github.com/oneapi-src/oneDNN/archive/929fe4e5629be2a5e89f1ba13b13458b965ffe57/onednn-gpu-929fe4e.tar.gz
 
 Patch0: protobuf_version.patch
-Patch1: xbyak-no-system-includes.patch
+Patch1: xbyak-gflags-system-modules.patch
+Patch2: samples-system-gflags-json.patch
 
 ExclusiveArch:  x86_64
 
@@ -50,6 +51,8 @@ BuildRequires:  nlohmann-json-devel
 BuildRequires:  opencl-headers
 BuildRequires:  pkgconfig(OpenCL)
 BuildRequires:  xbyak-devel
+BuildRequires:  gflags-devel
+BuildRequires:  zlib-devel
 
 Requires:       lib%{name}-ir-frontend = %{version}-%{release}
 Requires:       lib%{name}-pytorch-frontend = %{version}-%{release}
@@ -123,6 +126,8 @@ 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}
@@ -192,6 +197,29 @@ Requires:       %{name}%{?_isa} = %{version}-%{release}
 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}-dev = %{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.
+
+
 %global debug_package %{nil}
 
 
@@ -214,7 +242,7 @@ cp -r oneDNN-929fe4e5629be2a5e89f1ba13b13458b965ffe57/* src/plugins/intel_gpu/th
 %cmake \
       -DCMAKE_BUILD_TYPE=RelWithDebInfo \
       -DCMAKE_POLICY_VERSION_MINIMUM="3.5.0" \
-      -DCMAKE_CXX_FLAGS="%{optflags} -Wformat -Wformat-security -Wno-free-nonheap-object" \
+      -DCMAKE_CXX_FLAGS="%{optflags} -Wformat -Wformat-security -Wno-free-nonheap-object -Wno-array-bounds -Wno-stringop-overflow" \
       -DCMAKE_COMPILE_WARNING_AS_ERROR=OFF \
       -DCMAKE_NO_SYSTEM_FROM_IMPORTED=ON \
       -DENABLE_CLANG_FORMAT=OFF \
@@ -233,7 +261,7 @@ cp -r oneDNN-929fe4e5629be2a5e89f1ba13b13458b965ffe57/* src/plugins/intel_gpu/th
       -DENABLE_PROXY=OFF \
       -DENABLE_PYTHON=OFF \
       -DENABLE_JS=OFF \
-      -DENABLE_SAMPLES=OFF \
+      -DENABLE_SAMPLES=ON \
       -DENABLE_TESTS=OFF \
       -DENABLE_PROFILING_ITT=OFF \
       -DENABLE_PKGCONFIG_GEN=ON \
@@ -257,7 +285,6 @@ rm -rf %{buildroot}%{_prefix}/install_dependencies \
        %{buildroot}%{_prefix}/setupvars.sh
 rm -rf %{buildroot}%{_datadir}/licenses/*
 rm -rf %{buildroot}%{_datadir}/doc
-rm -rf %{buildroot}%{_datadir}/openvino
 
 
 %ldconfig_scriptlets
@@ -328,6 +355,11 @@ rm -rf %{buildroot}%{_datadir}/openvino
 %files -n lib%{name}-tensorflow-lite-frontend
 %{_libdir}/lib%{name}_tensorflow_lite_frontend.so.*
 
+## Samples
+
+%files -n %{name}-samples
+%{_datadir}/openvino/samples/
+
 
 %changelog
 * Fri Mar 20 2026 Artyom Anokhov <artyom.anokhov@intel.com> - 2026.0.0-1

diff --git a/samples-system-gflags-json.patch b/samples-system-gflags-json.patch
new file mode 100644
index 0000000..ae88b22
--- /dev/null
+++ b/samples-system-gflags-json.patch
@@ -0,0 +1,30 @@
+diff --git a/samples/cpp/CMakeLists.txt b/samples/cpp/CMakeLists.txt
+index 25d85ba213..204ce3f941 100644
+--- a/samples/cpp/CMakeLists.txt
++++ b/samples/cpp/CMakeLists.txt
+@@ -112,6 +112,10 @@ if(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/common/utils")
+     set(gflags_required ON)
+ endif()
+ 
++if(NOT TARGET gflags)
++    find_package(gflags QUIET)
++endif()
++
+ if(TARGET gflags)
+     set(GFLAGS_TARGET gflags)
+ elseif(gflags_required)
+diff --git a/samples/cpp/benchmark_app/CMakeLists.txt b/samples/cpp/benchmark_app/CMakeLists.txt
+index ef339e0a5d..7451e896fd 100644
+--- a/samples/cpp/benchmark_app/CMakeLists.txt
++++ b/samples/cpp/benchmark_app/CMakeLists.txt
+@@ -14,6 +14,10 @@ ov_add_sample(NAME ${TARGET_NAME}
+ 
+ # Required nlohmann_json dependency
+ 
++if(NOT TARGET nlohmann_json::nlohmann_json)
++    find_package(nlohmann_json QUIET)
++endif()
++
+ if(NOT TARGET nlohmann_json::nlohmann_json)
+     if(EXISTS "${Samples_SOURCE_DIR}/thirdparty/nlohmann_json")
+         # OpenVINO package puts thirdparty to samples dir

diff --git a/xbyak-gflags-system-modules.patch b/xbyak-gflags-system-modules.patch
new file mode 100644
index 0000000..e83b244
--- /dev/null
+++ b/xbyak-gflags-system-modules.patch
@@ -0,0 +1,61 @@
+diff --git a/thirdparty/dependencies.cmake b/thirdparty/dependencies.cmake
+index 053006c031..18d14ca390 100644
+--- a/thirdparty/dependencies.cmake
++++ b/thirdparty/dependencies.cmake
+@@ -59,6 +59,16 @@ if(X86_64 OR X86 OR UNIVERSAL2)
+     find_package(xbyak QUIET)
+     if(xbyak_FOUND)
+         # conan creates alias xbyak::xbyak, no extra steps are required
++        # Fedora: xbyak cmake config sets INTERFACE_INCLUDE_DIRECTORIES=/usr/include
++        # and INTERFACE_SYSTEM_INCLUDE_DIRECTORIES=/usr/include/xbyak, resulting in
++        # both -isystem /usr/include and -isystem /usr/include/xbyak on the command
++        # line. GCC 16 deduplicates system paths and drops implicit /usr/include,
++        # breaking #include_next <stdlib.h> in libstdc++ headers.
++        if(TARGET xbyak::xbyak)
++            set_target_properties(xbyak::xbyak PROPERTIES
++                INTERFACE_SYSTEM_INCLUDE_DIRECTORIES ""
++                INTERFACE_INCLUDE_DIRECTORIES "/usr/include/xbyak")
++        endif()
+     else()
+         add_subdirectory(thirdparty/xbyak EXCLUDE_FROM_ALL)
+     endif()
+@@ -162,7 +172,15 @@ endif()
+ #
+ 
+ if(ENABLE_SAMPLES OR ENABLE_TESTS)
+-    add_subdirectory(thirdparty/zlib EXCLUDE_FROM_ALL)
++    find_package(ZLIB QUIET)
++    if(ZLIB_FOUND)
++        add_library(openvino_zlib INTERFACE IMPORTED GLOBAL)
++        target_link_libraries(openvino_zlib INTERFACE ZLIB::ZLIB)
++        target_include_directories(openvino_zlib INTERFACE ${ZLIB_INCLUDE_DIRS})
++        add_library(openvino::zlib ALIAS openvino_zlib)
++    else()
++        add_subdirectory(thirdparty/zlib EXCLUDE_FROM_ALL)
++    endif()
+ endif()
+ 
+ #
+@@ -306,11 +324,17 @@ endif()
+ #
+ 
+ if(ENABLE_SAMPLES OR ENABLE_TESTS OR ENABLE_INTEL_NPU_INTERNAL)
+-    add_subdirectory(thirdparty/gflags EXCLUDE_FROM_ALL)
+-    ov_developer_package_export_targets(
+-        TARGET gflags
+-        INSTALL_INCLUDE_DIRECTORIES "${CMAKE_BINARY_DIR}/thirdparty/gflags/gflags/include/gflags"
+-        INSTALL_DESTIONATION "developer_package/include/gflags")
++    # Prefer system gflags if available (Fedora provides gflags-devel)
++    find_package(gflags QUIET)
++    if(gflags_FOUND AND TARGET gflags)
++        message(STATUS "Using system gflags")
++    else()
++        add_subdirectory(thirdparty/gflags EXCLUDE_FROM_ALL)
++        ov_developer_package_export_targets(
++            TARGET gflags
++            INSTALL_INCLUDE_DIRECTORIES "${CMAKE_BINARY_DIR}/thirdparty/gflags/gflags/include/gflags"
++            INSTALL_DESTIONATION "developer_package/include/gflags")
++    endif()
+ endif()
+ 
+ #

diff --git a/xbyak-no-system-includes.patch b/xbyak-no-system-includes.patch
deleted file mode 100644
index c7d3b77..0000000
--- a/xbyak-no-system-includes.patch
+++ /dev/null
@@ -1,21 +0,0 @@
-diff --git a/thirdparty/dependencies.cmake b/thirdparty/dependencies.cmake
-index 053006c031..2d0864c6f7 100644
---- a/thirdparty/dependencies.cmake
-+++ b/thirdparty/dependencies.cmake
-@@ -59,6 +59,16 @@ if(X86_64 OR X86 OR UNIVERSAL2)
-     find_package(xbyak QUIET)
-     if(xbyak_FOUND)
-         # conan creates alias xbyak::xbyak, no extra steps are required
-+        # Fedora: xbyak cmake config sets INTERFACE_INCLUDE_DIRECTORIES=/usr/include
-+        # and INTERFACE_SYSTEM_INCLUDE_DIRECTORIES=/usr/include/xbyak, resulting in
-+        # both -isystem /usr/include and -isystem /usr/include/xbyak on the command
-+        # line. GCC 16 deduplicates system paths and drops implicit /usr/include,
-+        # breaking #include_next <stdlib.h> in libstdc++ headers.
-+        if(TARGET xbyak::xbyak)
-+            set_target_properties(xbyak::xbyak PROPERTIES
-+                INTERFACE_SYSTEM_INCLUDE_DIRECTORIES ""
-+                INTERFACE_INCLUDE_DIRECTORIES "/usr/include/xbyak")
-+        endif()
-     else()
-         add_subdirectory(thirdparty/xbyak EXCLUDE_FROM_ALL)
-     endif()

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-06-10 16:59 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-10 16:59 [rpms/openvino] origin/pr/7/head: Enabled samples aanokhov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox