public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/openvino] origin/pr/7/head: 1st release
@ 2026-06-10 16:59 Ali Erdinc Koroglu
  0 siblings, 0 replies; only message in thread
From: Ali Erdinc Koroglu @ 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 : b8801b4b8d3ba3184cc7320bcb841eba2c40b1ea
Author : Ali Erdinc Koroglu <aekoroglu@linux.intel.com>
Date   : 2024-11-28T10:57:11+02:00
Stats  : +481/-0 in 6 file(s)
URL    : https://src.fedoraproject.org/rpms/openvino/c/b8801b4b8d3ba3184cc7320bcb841eba2c40b1ea?branch=origin/pr/7/head

Log:
1st release

---
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..39062db
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,3 @@
+/openvino-*.tar.gz
+/mlas-*.tar.gz
+/onednn-*.tar.gz

diff --git a/dependencies.cmake b/dependencies.cmake
new file mode 100644
index 0000000..e7746ba
--- /dev/null
+++ b/dependencies.cmake
@@ -0,0 +1,124 @@
+#
+# Pugixml
+#
+
+if(ENABLE_SYSTEM_PUGIXML)
+    # try system pugixml first
+    # Note: we also specify 'pugixml' in NAMES because vcpkg
+    find_package(PugiXML QUIET NAMES PugiXML pugixml)
+    if(PugiXML_FOUND)
+        # TODO: use static pugixml library in case of BUILD_SHARED_LIBS=OFF
+        if(TARGET pugixml::shared)
+            # example: cross-compilation on debian
+            set(pugixml_target pugixml::shared)
+        elseif(TARGET pugixml::pugixml)
+            # or create an alias for pugixml::pugixml shared library
+            # - 'brew install pugixml'
+            # - 'conan install pugixml'
+            set(pugixml_target pugixml::pugixml)
+        elseif(TARGET pugixml)
+            # or create an alias for pugixml shared library
+            # - 'apt-get install libpugixml-dev'
+            set(pugixml_target pugixml)
+        elseif(TARGET pugixml::static)
+            # sometimes pugixml::static target already exists, just need to create an alias
+            # - 'conda install pugixml -c conda-forge'
+            set(pugixml_target pugixml::static)
+        else()
+            message(FATAL_ERROR "Failed to detect pugixml library target name")
+        endif()
+        # to property generate OpenVINO Developer packages files
+        set(PugiXML_FOUND ${PugiXML_FOUND} CACHE BOOL "" FORCE)
+    elseif(PkgConfig_FOUND)
+        # Ubuntu 18.04 case when cmake interface is not available
+        pkg_search_module(pugixml QUIET
+                          IMPORTED_TARGET
+                          ${OV_PkgConfig_VISILITY}
+                          pugixml)
+        if(pugixml_FOUND)
+            set(pugixml_target PkgConfig::pugixml)
+            # PATCH: on Ubuntu 18.04 pugixml.pc contains incorrect include directories
+            get_target_property(interface_include_dir ${pugixml_target} INTERFACE_INCLUDE_DIRECTORIES)
+            if(interface_include_dir AND NOT EXISTS "${interface_include_dir}")
+                set_target_properties(${pugixml_target} PROPERTIES
+                    INTERFACE_INCLUDE_DIRECTORIES "")
+            endif()
+            message(STATUS "${PKG_CONFIG_EXECUTABLE}: pugixml (${pugixml_VERSION}) is found at ${pugixml_PREFIX}")
+        endif()
+    endif()
+
+    # debian 9 case: no cmake, no pkg-config files
+    if(NOT TARGET ${pugixml_target})
+        find_library(PUGIXML_LIBRARY NAMES pugixml DOC "Path to pugixml library")
+        if(PUGIXML_LIBRARY)
+            add_library(pugixml INTERFACE IMPORTED)
+            set_target_properties(pugixml PROPERTIES INTERFACE_LINK_LIBRARIES "${PUGIXML_LIBRARY}")
+            set(pugixml_target pugixml)
+            set(PugiXML_FOUND ON)
+            # because we don't need to have a dependency on specific cmake targets in this case
+            # in file OpenVINOConfig.cmake static build case
+            set(ENABLE_SYSTEM_PUGIXML OFF)
+        endif()
+    endif()
+
+    if(TARGET ${pugixml_target})
+        # we need to install dynamic library for wheel package
+        get_target_property(target_type ${pugixml_target} TYPE)
+        if(target_type STREQUAL "SHARED_LIBRARY")
+            get_target_property(imported_configs ${pugixml_target} IMPORTED_CONFIGURATIONS)
+            foreach(imported_config RELEASE RELWITHDEBINFO DEBUG NONE ${imported_configs})
+                if(imported_config IN_LIST imported_configs)
+                    get_target_property(pugixml_loc ${pugixml_target} IMPORTED_LOCATION_${imported_config})
+                    break()
+                endif()
+            endforeach()
+            get_filename_component(pugixml_dir "${pugixml_loc}" DIRECTORY)
+            get_filename_component(name_we "${pugixml_loc}" NAME_WE)
+            # grab all tbb files matching pattern
+            file(GLOB pugixml_files "${pugixml_dir}/${name_we}.*")
+            foreach(pugixml_file IN LISTS pugixml_files)
+                ov_install_with_name("${pugixml_file}" pugixml)
+            endforeach()
+        elseif(target_type STREQUAL "INTERFACE_LIBRARY")
+            get_target_property(pugixml_loc ${pugixml_target} INTERFACE_LINK_LIBRARIES)
+            file(GLOB pugixml_libs "${pugixml_loc}.*")
+            foreach(pugixml_lib IN LISTS pugixml_libs)
+                ov_install_with_name("${pugixml_lib}" pugixml)
+            endforeach()
+        endif()
+
+        # if dynamic libpugixml.so.1 and libpugixml.so.1.X are found
+        if(NOT pugixml_INSTALLED AND CPACK_GENERATOR MATCHES "^(DEB|RPM)$")
+            message(FATAL_ERROR "Debian | RPM package build requires shared Pugixml library")
+        endif()
+
+        if(OV_PkgConfig_VISILITY)
+            # need to set GLOBAL visibility in order to create ALIAS for this target
+            set_target_properties(${pugixml_target} PROPERTIES IMPORTED_GLOBAL ON)
+        endif()
+        # create an alias for real target which can be shared or static
+        add_library(openvino::pugixml ALIAS ${pugixml_target})
+    else()
+        # reset to prevent improper code generation in OpenVINODeveloperPackage.cmake,
+        # and OpenVINOConfig.cmake for static case
+        set(ENABLE_SYSTEM_PUGIXML OFF)
+    endif()
+endif()
+
+if(NOT TARGET openvino::pugixml)
+    # use OpenVINO pugixml copy if system one is not found
+    function(ov_build_pugixml)
+        function(ov_build_pugixml_static)
+            set(BUILD_SHARED_LIBS OFF)
+            set(PUGIXML_INSTALL OFF CACHE BOOL "" FORCE)
+            add_subdirectory(thirdparty/pugixml EXCLUDE_FROM_ALL)
+        endfunction()
+        ov_build_pugixml_static()
+        set_property(TARGET pugixml-static PROPERTY EXPORT_NAME pugixml)
+        add_library(openvino::pugixml ALIAS pugixml-static)
+        ov_developer_package_export_targets(TARGET openvino::pugixml)
+        ov_install_static_lib(pugixml-static ${OV_CPACK_COMP_CORE})
+    endfunction()
+
+    ov_build_pugixml()
+endif()

diff --git a/openvino-fedora.patch b/openvino-fedora.patch
new file mode 100644
index 0000000..b913d70
--- /dev/null
+++ b/openvino-fedora.patch
@@ -0,0 +1,99 @@
+--- a/CMakeLists.txt	2024-11-21 09:30:10.773366672 +0200
++++ b/CMakeLists.txt	2024-11-21 09:38:39.166535850 +0200
+@@ -168,10 +168,10 @@
+ endif()
+ 
+ include(cmake/extra_modules.cmake)
+-add_subdirectory(docs)
+-add_subdirectory(tools)
+-add_subdirectory(scripts)
+-add_subdirectory(licensing)
++#add_subdirectory(docs)
++#add_subdirectory(tools)
++#add_subdirectory(scripts)
++#add_subdirectory(licensing)
+ 
+ if(ENABLE_TESTS)
+     # layers and other more high-level / e2e tests
+@@ -185,4 +185,4 @@
+ # provides a callback function to describe each component in repo
+ include(cmake/packaging/packaging.cmake)
+ 
+-ov_cpack(${OV_CPACK_COMPONENTS_ALL})
+\ No newline at end of file
++ov_cpack(${OV_CPACK_COMPONENTS_ALL})
+--- a/cmake/developer_package/packaging/archive.cmake	2024-11-21 09:41:13.107605950 +0200
++++ b/cmake/developer_package/packaging/archive.cmake	2024-11-21 11:00:50.406807366 +0200
+@@ -25,14 +25,17 @@
+ macro(ov_archive_cpack_set_dirs)
+     # common "archive" package locations
+     # TODO: move current variables to OpenVINO specific locations
+-    set(OV_CPACK_INCLUDEDIR runtime/include)
+-    set(OV_CPACK_OPENVINO_CMAKEDIR runtime/cmake)
++    set(OV_CPACK_INCLUDEDIR ${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_INCLUDEDIR})
++    set(OV_CPACK_OPENVINO_CMAKEDIR ${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}/cmake/openvino-${OpenVINO_VERSION})
+     set(OV_CPACK_DOCDIR docs)
+     set(OV_CPACK_LICENSESDIR licenses)
+     set(OV_CPACK_SAMPLESDIR samples)
+     set(OV_CPACK_WHEELSDIR wheels)
+     set(OV_CPACK_DEVREQDIR tools)
+-    set(OV_CPACK_PYTHONDIR python)
++    ov_get_pyversion(pyversion)
++    if(pyversion)
++        set(OV_CPACK_PYTHONDIR ${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}/${pyversion}/site-packages)
++    endif()
+ 
+     if(USE_BUILD_TYPE_SUBFOLDER)
+         set(build_type ${CMAKE_BUILD_TYPE})
+@@ -49,11 +52,11 @@
+         set(OV_CPACK_RUNTIMEDIR runtime/lib/${ARCH_FOLDER}/${build_type})
+         set(OV_CPACK_ARCHIVEDIR runtime/lib/${ARCH_FOLDER}/${build_type})
+     else()
+-        set(OV_CPACK_LIBRARYDIR runtime/lib/${ARCH_FOLDER})
+-        set(OV_CPACK_RUNTIMEDIR runtime/lib/${ARCH_FOLDER})
+-        set(OV_CPACK_ARCHIVEDIR runtime/lib/${ARCH_FOLDER})
++        set(OV_CPACK_LIBRARYDIR ${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR})
++        set(OV_CPACK_RUNTIMEDIR ${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR})
++        set(OV_CPACK_ARCHIVEDIR ${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR})
+     endif()
+-    set(OV_CPACK_PLUGINSDIR ${OV_CPACK_RUNTIMEDIR})
++    set(OV_CPACK_PLUGINSDIR ${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}/openvino-${OpenVINO_VERSION})
+ endmacro()
+ 
+ ov_archive_cpack_set_dirs()
+@@ -82,13 +85,13 @@
+     unset(OV_CPACK_COMP_C_SAMPLES_EXCLUDE_ALL)
+     unset(OV_CPACK_COMP_PYTHON_SAMPLES_EXCLUDE_ALL)
+     # python
+-    unset(OV_CPACK_COMP_PYTHON_OPENVINO_EXCLUDE_ALL)
+-    unset(OV_CPACK_COMP_BENCHMARK_APP_EXCLUDE_ALL)
+-    unset(OV_CPACK_COMP_OVC_EXCLUDE_ALL)
++    set(OV_CPACK_COMP_PYTHON_OPENVINO_EXCLUDE_ALL)
++    set(OV_CPACK_COMP_BENCHMARK_APP_EXCLUDE_ALL)
++    set(OV_CPACK_COMP_OVC_EXCLUDE_ALL)
+     set(OV_CPACK_COMP_PYTHON_OPENVINO_PACKAGE_EXCLUDE_ALL EXCLUDE_FROM_ALL)
+     # we don't need wheels in the distribution packages 
+     set(OV_CPACK_COMP_PYTHON_WHEELS_EXCLUDE_ALL EXCLUDE_FROM_ALL)
+-    unset(OV_CPACK_COMP_OPENVINO_REQ_FILES_EXCLUDE_ALL)
++    set(OV_CPACK_COMP_OPENVINO_REQ_FILES_EXCLUDE_ALL)
+     # nodejs
+     set(OV_CPACK_COMP_NPM_EXCLUDE_ALL EXCLUDE_FROM_ALL)
+     # scripts
+--- a/cmake/templates/openvino.pc.in	2024-11-21 11:01:17.143817693 +0200
++++ b/cmake/templates/openvino.pc.in	2024-11-21 11:03:13.731862758 +0200
+@@ -2,13 +2,10 @@
+ # SPDX-License-Identifier: Apache-2.0
+ #
+ 
+-pc_path=${pcfiledir}
+-prefix=${pc_path}/@PKGCONFIG_OpenVINO_PREFIX@
+-
+-exec_prefix=${prefix}/@OV_CPACK_RUNTIMEDIR@
++exec_prefix=@OV_CPACK_RUNTIMEDIR@
+ libdir=${exec_prefix}
+ 
+-include_prefix=${prefix}/@OV_CPACK_INCLUDEDIR@
++include_prefix=@OV_CPACK_INCLUDEDIR@
+ includedir=${include_prefix}
+ 
+ Name: OpenVINO

diff --git a/openvino.spec b/openvino.spec
new file mode 100644
index 0000000..a91704d
--- /dev/null
+++ b/openvino.spec
@@ -0,0 +1,245 @@
+%define so_ver 2450
+%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:	2024.5.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-373e65b/src/common/utils.hpp : BSL-1.0
+# oneDNN-373e65b/src/graph/backend/graph_compiler/core/src/util/hash_utils.hpp : BSL-1.0
+# oneDNN-373e65b/src/cpu/x64/xbyak/xbyak.h : BSD-3-Clause
+# oneDNN-373e65b/src/common/ittnotify/disable_warnings.h : GPL-2.0-only OR BSD-3-Clause
+# oneDNN-373e65b/src/common/ittnotify/ittnotify_config.h : GPL-2.0-only OR BSD-3-Clause
+# oneDNN-373e65b/src/common/ittnotify/ittnotify.h : GPL-2.0-only OR BSD-3-Clause
+# oneDNN-373e65b/src/common/ittnotify/ittnotify_static.c : GPL-2.0-only OR BSD-3-Clause
+# oneDNN-373e65b/src/common/ittnotify/ittnotify_static.h : GPL-2.0-only OR BSD-3-Clause
+# oneDNN-373e65b/src/common/ittnotify/ittnotify_types.h : GPL-2.0-only OR BSD-3-Clause
+# oneDNN-373e65b/src/common/ittnotify/jitprofiling.c : GPL-2.0-only OR BSD-3-Clause
+# oneDNN-373e65b/src/common/ittnotify/jitprofiling.h : GPL-2.0-only OR BSD-3-Clause
+# oneDNN-373e65b/src/common/ittnotify/legacy/ittnotify.h : GPL-2.0-only OR BSD-3-Clause
+# oneDNN-373e65b/src/sycl/level_zero/layers/zel_tracing_api.h : MIT
+# oneDNN-373e65b/src/sycl/level_zero/layers/zel_tracing_ddi.h : MIT
+# oneDNN-373e65b/src/sycl/level_zero/layers/zel_tracing_register_cb.h : MIT
+# oneDNN-373e65b/src/sycl/level_zero/loader/ze_loader.h : MIT
+# oneDNN-373e65b/src/sycl/level_zero/ze_api.h : MIT
+# oneDNN-373e65b/src/sycl/level_zero/ze_ddi.h : MIT
+# oneDNN-373e65b/src/sycl/level_zero/zes_api.h : MIT
+# oneDNN-373e65b/src/sycl/level_zero/zes_ddi.h : MIT
+# oneDNN-373e65b/src/sycl/level_zero/zet_api.h : MIT
+# oneDNN-373e65b/src/sycl/level_zero/zet_ddi.h : 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/c60a9946aa2386890e5c9f5587974facb7624227/onednn-c60a994.tar.gz
+Source2:	https://github.com/openvinotoolkit/mlas/archive/d1bc25ec4660cddd87804fcf03b2411b5dfb2e94/mlas-d1bc25e.tar.gz
+Source3:	dependencies.cmake
+Source4:	pyproject.toml
+
+Patch0:		openvino-fedora.patch
+
+ExclusiveArch:	x86_64
+
+BuildRequires:	cmake
+BuildRequires:	gcc-c++
+BuildRequires:	patchelf
+BuildRequires:	pugixml-devel
+BuildRequires:	pybind11-devel
+BuildRequires:	python3-devel
+BuildRequires:	python3-pip
+BuildRequires:	python3-setuptools
+BuildRequires:	python3-wheel
+BuildRequires:	numpy
+BuildRequires:	ShellCheck
+BuildRequires:	zlib-ng-compat-devel
+BuildRequires:	xbyak-devel
+BuildRequires:	tbb-devel
+# forked version of OpenVINO oneDNN does not have a proper version
+Provides:	bundled(onednn)
+# MLAS upstream does not have any release
+Provides:	bundled(mlas)
+Requires:	lib%{name}-ir-frontend = %{version}
+Requires:	lib%{name}-pytorch-frontend = %{version}
+Requires:	numpy
+Recommends:	%{name}-plugins = %{version}
+
+%description
+%{desc}
+
+%package devel
+Summary:	Development files for %{name}
+Requires:	%{name}%{?_isa} = %{version}-%{release}
+
+%description devel
+The %{name}-devel package contains libraries and header files for
+applications that use %{name}.
+
+%package plugins
+Summary:	OpenVINO Plugins
+Requires:	%{name}%{?_isa} = %{version}-%{release}
+
+%description plugins
+The OpenVINO plugins package provides support for various hardware devices.
+It includes plugins for auto, auto_batch, hetero, intel_cpu and template.
+
+%package -n lib%{name}-ir-frontend
+Summary:	OpenVINO IR Frontend
+Requires:	%{name}%{?_isa} = %{version}-%{release}
+
+%description -n lib%{name}-ir-frontend
+The primary function of the OpenVINO IR Frontend is to load an OpenVINO IR
+into memory.
+
+%package -n lib%{name}-pytorch-frontend
+Summary:	OpenVINO PyTorch Frontend
+Requires:	%{name}%{?_isa} = %{version}-%{release}
+
+%description -n lib%{name}-pytorch-frontend
+The PyTorch Frontend is a C++ based OpenVINO Frontend component that is 
+responsible for reading and converting a PyTorch model to an ov::Model object
+that can be further serialized into the Intermediate Representation (IR) format
+
+%package -n python3-%{name}
+Summary:	OpenVINO Python API
+Requires:	%{name}%{?_isa} = %{version}-%{release}
+
+%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.
+
+%prep
+%autosetup -p1
+
+# Remove the thirdparty deps
+rm -rf thirdparty/*
+cp %{SOURCE3} thirdparty/
+
+# Intel-cpu-plugin thirdparty deps
+tar xf %{SOURCE1}
+cp -r oneDNN-*/* src/plugins/intel_cpu/thirdparty/onednn
+tar xf %{SOURCE2}
+cp -r mlas-*/* src/plugins/intel_cpu/thirdparty/mlas
+
+# python:prep
+sed -i '/openvino-telemetry/d' src/bindings/python/requirements.txt
+cp %{SOURCE4} src/bindings/python
+
+%build
+%cmake \
+	-DCMAKE_BUILD_TYPE=RelWithDebInfo \
+	-DCMAKE_CXX_FLAGS="%{optflags} -Wformat -Wformat-security" \
+	-DENABLE_CLANG_FORMAT=OFF \
+	-DCMAKE_COMPILE_WARNING_AS_ERROR=OFF \
+	-DENABLE_QSPECTRE=OFF \
+	-DENABLE_INTEGRITYCHECK=OFF \
+	-DENABLE_SANITIZER=OFF \
+	-DENABLE_UB_SANITIZER=OFF \
+	-DENABLE_THREAD_SANITIZER=OFF \
+	-DENABLE_COVERAGE=OFF \
+	-DENABLE_FASTER_BUILD=OFF \
+	-DENABLE_CPPLINT=OFF \
+	-DENABLE_CPPLINT_REPORT=OFF \
+	-DENABLE_GAPI_PREPROCESSING=OFF \
+	-DENABLE_NCC_STYLE=OFF \
+	-DENABLE_UNSAFE_LOCATIONS=OFF \
+	-DENABLE_FUZZING=OFF \
+	-DENABLE_PROFILING_ITT=OFF \
+	-DENABLE_PKGCONFIG_GEN=ON \
+	-DENABLE_STRICT_DEPENDENCIES=OFF \
+	-DENABLE_DEBUG_CAPS=ON \
+	-DENABLE_AUTO=ON \
+	-DENABLE_AUTO_BATCH=ON \
+	-DENABLE_HETERO=ON \
+	-DENABLE_INTEL_CPU=ON \
+	-DENABLE_MLAS_FOR_CPU=ON \
+	-DENABLE_MLAS_FOR_CPU_DEFAULT=ON \
+	-DENABLE_INTEL_GNA=OFF \
+	-DENABLE_INTEL_GPU=OFF \
+	-DENABLE_INTEL_NPU=OFF \
+	-DENABLE_ONEDNN_FOR_GPU=OFF \
+	-DENABLE_MULTI=ON \
+	-DENABLE_PROXY=ON \
+	-DENABLE_TEMPLATE=ON \
+	-DENABLE_OV_ONNX_FRONTEND=OFF \
+	-DENABLE_OV_PADDLE_FRONTEND=OFF \
+	-DENABLE_OV_IR_FRONTEND=ON \
+	-DENABLE_OV_PYTORCH_FRONTEND=ON \
+	-DENABLE_OV_TF_FRONTEND=OFF \
+	-DENABLE_OV_TF_LITE_FRONTEND=OFF \
+	-DENABLE_PYTHON=ON \
+	-DPython3_EXECUTABLE=%{python3} \
+	-DENABLE_WHEEL=OFF \
+	-DENABLE_JS=OFF \
+	-DENABLE_SYSTEM_LIBS_DEFAULT=ON \
+	-DENABLE_SYSTEM_OPENCL=OFF \
+	-DENABLE_SYSTEM_PUGIXML=ON \
+	-DENABLE_SYSTEM_PROTOBUF=OFF \
+	-DTHREADING=TBB \
+	-DENABLE_SYSTEM_TBB=ON \
+	-DTBB_LIB_INSTALL_DIR=%{_libdir} \
+	-DENABLE_TBBBIND_2_5=OFF \
+	-DENABLE_TBB_RELEASE_ONLY=ON \
+	-DENABLE_SAMPLES=OFF \
+	-DENABLE_TESTS=OFF \
+	-DBUILD_SHARED_LIBS=ON
+%cmake_build
+
+%install
+%cmake_install
+# generate python dist-info
+export WHEEL_VERSION=%{version}
+%{python3} src/bindings/python/wheel/setup.py dist_info -o %{buildroot}/%{python3_sitearch}
+rm -v %{buildroot}/%{python3_sitearch}/requirements.txt
+rm -v %{buildroot}/%{python3_sitearch}/%{name}/preprocess/torchvision/requirements.txt
+
+%check
+LD_LIBRARY_PATH=$LD_LIBRARY_PATH:%{buildroot}%{_libdir} PYTHONPATH=%{buildroot}%{python3_sitearch} %{python3} samples/python/hello_query_device/hello_query_device.py
+LD_LIBRARY_PATH=$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
+
+%files
+%license LICENSE
+%doc CONTRIBUTING.md README.md
+%{_libdir}/lib%{name}.so.%{version}
+%{_libdir}/lib%{name}.so.%{so_ver}
+%{_libdir}/lib%{name}_c.so.%{version}
+%{_libdir}/lib%{name}_c.so.%{so_ver}
+
+%files devel
+%{_includedir}/%{name}
+%{_libdir}/lib%{name}.so
+%{_libdir}/lib%{name}_c.so
+%{_libdir}/lib%{name}_pytorch_frontend.so
+%{_libdir}/cmake/openvino-%{version}
+%{_libdir}/pkgconfig/%{name}.pc
+
+%files plugins
+%dir %_libdir/%{name}-%{version}
+%{_libdir}/%{name}-%{version}/lib%{name}_auto_plugin.so
+%{_libdir}/%{name}-%{version}/lib%{name}_auto_batch_plugin.so
+%{_libdir}/%{name}-%{version}/lib%{name}_hetero_plugin.so
+%{_libdir}/%{name}-%{version}/lib%{name}_intel_cpu_plugin.so
+
+%files -n lib%{name}-ir-frontend
+%{_libdir}/lib%{name}_ir_frontend.so.%{version}
+%{_libdir}/lib%{name}_ir_frontend.so.%{so_ver}
+
+%files -n lib%{name}-pytorch-frontend
+%{_libdir}/lib%{name}_pytorch_frontend.so.%{version}
+%{_libdir}/lib%{name}_pytorch_frontend.so.%{so_ver}
+
+%files -n python3-%{name}
+%{python3_sitearch}/%{name}
+%{python3_sitearch}/%{name}-%{version}.dist-info
+
+%changelog
+%autochangelog

diff --git a/pyproject.toml b/pyproject.toml
new file mode 100644
index 0000000..fa3098a
--- /dev/null
+++ b/pyproject.toml
@@ -0,0 +1,7 @@
+[project]
+name = "openvino"
+version = "2024.2.0"
+dependencies = [
+  "numpy>1.16.6",
+  "packaging",
+]

diff --git a/sources b/sources
new file mode 100644
index 0000000..379a061
--- /dev/null
+++ b/sources
@@ -0,0 +1,3 @@
+SHA512 (openvino-2024.5.0.tar.gz) = b003647de3de49e605943488ca9b2e5196b20d95b3152f0c2331c283d4cb253d1bbbb9cde04fa82733d3871d7128c6db6210957660bd89f26462798f782eca47
+SHA512 (onednn-c60a994.tar.gz) = cc91f5b2ece1c3f14af308e3da436447d07964fa5ffa848c571fe67197a367673bf7bf9cd979fab0c9b216f92c611bd8df7018ec8e080f10759582629c10cb9d
+SHA512 (mlas-d1bc25e.tar.gz) = 8d6dd319924135b7b22940d623305bf200b812ae64cde79000709de4fad429fbd43794301ef16e6f10ed7132777b7a73e9f30ecae7c030aea80d57d7c0ce4500

^ 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: 1st release Ali Erdinc Koroglu

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