Accepting request 1169921 from science
OpenVINO is an open-source toolkit for optimizing and deploying AI inference developed by Intel Superseded after specfile updates OBS-URL: https://build.opensuse.org/request/show/1169921 OBS-URL: https://build.opensuse.org/package/show/science:machinelearning/openvino?expand=0&rev=1
This commit is contained in:
commit
799becee5b
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
## Default LFS
|
||||||
|
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.png filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zst filter=lfs diff=lfs merge=lfs -text
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
.osc
|
11
_constraints
Normal file
11
_constraints
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<constraints>
|
||||||
|
<hardware>
|
||||||
|
<disk>
|
||||||
|
<size unit="G">20</size>
|
||||||
|
</disk>
|
||||||
|
<memory>
|
||||||
|
<size unit="G">8</size>
|
||||||
|
</memory>
|
||||||
|
</hardware>
|
||||||
|
</constraints>
|
16
_service
Normal file
16
_service
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
<services>
|
||||||
|
<service name="obs_scm" mode="manual">
|
||||||
|
<param name="url">https://github.com/openvinotoolkit/openvino.git</param>
|
||||||
|
<param name="scm">git</param>
|
||||||
|
<param name="revision">2024.0.0</param>
|
||||||
|
<param name="version">2024.0.0</param>
|
||||||
|
<param name="submodules">enable</param>
|
||||||
|
<param name="filename">openvino</param>
|
||||||
|
<param name="exclude">.git</param>
|
||||||
|
</service>
|
||||||
|
<service name="tar" mode="buildtime" />
|
||||||
|
<service name="recompress" mode="buildtime">
|
||||||
|
<param name="file">*.tar</param>
|
||||||
|
<param name="compression">zstd</param>
|
||||||
|
</service>
|
||||||
|
</services>
|
3
openvino-2024.0.0.obscpio
Normal file
3
openvino-2024.0.0.obscpio
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:df436c6a42a84424f4a3c2249298d40b89a6046568ea7b38088f1d7bde3b011e
|
||||||
|
size 825923087
|
12
openvino-ComputeLibrary-include-string.patch
Normal file
12
openvino-ComputeLibrary-include-string.patch
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
Index: openvino-2024.0.0/src/plugins/intel_cpu/thirdparty/ComputeLibrary/arm_compute/core/utils/logging/IPrinter.h
|
||||||
|
===================================================================
|
||||||
|
--- openvino-2024.0.0.orig/src/plugins/intel_cpu/thirdparty/ComputeLibrary/arm_compute/core/utils/logging/IPrinter.h
|
||||||
|
+++ openvino-2024.0.0/src/plugins/intel_cpu/thirdparty/ComputeLibrary/arm_compute/core/utils/logging/IPrinter.h
|
||||||
|
@@ -25,6 +25,7 @@
|
||||||
|
#define ARM_COMPUTE_LOGGING_PRINTER_H
|
||||||
|
|
||||||
|
#include "support/Mutex.h"
|
||||||
|
+#include <string>
|
||||||
|
|
||||||
|
namespace arm_compute
|
||||||
|
{
|
61
openvino-fix-install-paths.patch
Normal file
61
openvino-fix-install-paths.patch
Normal file
@ -0,0 +1,61 @@
|
|||||||
|
Index: openvino-2024.0.0/cmake/developer_package/packaging/archive.cmake
|
||||||
|
===================================================================
|
||||||
|
--- openvino-2024.0.0.orig/cmake/developer_package/packaging/archive.cmake
|
||||||
|
+++ openvino-2024.0.0/cmake/developer_package/packaging/archive.cmake
|
||||||
|
@@ -21,15 +21,19 @@ endif()
|
||||||
|
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_DOCDIR docs)
|
||||||
|
- set(OV_CPACK_LICENSESDIR licenses)
|
||||||
|
- set(OV_CPACK_SAMPLESDIR samples)
|
||||||
|
- set(OV_CPACK_WHEELSDIR tools)
|
||||||
|
- set(OV_CPACK_TOOLSDIR tools)
|
||||||
|
- set(OV_CPACK_DEVREQDIR tools)
|
||||||
|
- set(OV_CPACK_PYTHONDIR python)
|
||||||
|
+ set(OV_CPACK_INCLUDEDIR include)
|
||||||
|
+ set(OV_CPACK_OPENVINO_CMAKEDIR ${CMAKE_INSTALL_LIBDIR}/cmake/${PROJECT_NAME})
|
||||||
|
+ set(OV_CPACK_DOCDIR ${CMAKE_INSTALL_DOCDIR})
|
||||||
|
+ set(OV_CPACK_LICENSESDIR ${CMAKE_INSTALL_DATAROOTDIR}/licenses/${PROJECT_NAME})
|
||||||
|
+ set(OV_CPACK_SAMPLESDIR ${CMAKE_INSTALL_DATAROOTDIR}/${PROJECT_NAME}/samples)
|
||||||
|
+ if (ENABLE_PYTHON)
|
||||||
|
+ find_package(Python3 QUIET COMPONENTS Interpreter)
|
||||||
|
+ file(RELATIVE_PATH OV_PYTHON_MODPATH ${CMAKE_INSTALL_PREFIX} ${Python3_SITEARCH})
|
||||||
|
+ set(OV_CPACK_WHEELSDIR tools)
|
||||||
|
+ set(OV_CPACK_TOOLSDIR tools)
|
||||||
|
+ set(OV_CPACK_DEVREQDIR tools)
|
||||||
|
+ set(OV_CPACK_PYTHONDIR ${OV_PYTHON_MODPATH})
|
||||||
|
+ endif()
|
||||||
|
|
||||||
|
if(USE_BUILD_TYPE_SUBFOLDER)
|
||||||
|
set(build_type ${CMAKE_BUILD_TYPE})
|
||||||
|
@@ -46,11 +50,11 @@ macro(ov_archive_cpack_set_dirs)
|
||||||
|
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_LIBDIR})
|
||||||
|
+ set(OV_CPACK_RUNTIMEDIR ${CMAKE_INSTALL_LIBDIR})
|
||||||
|
+ set(OV_CPACK_ARCHIVEDIR ${CMAKE_INSTALL_LIBDIR})
|
||||||
|
endif()
|
||||||
|
- set(OV_CPACK_PLUGINSDIR ${OV_CPACK_RUNTIMEDIR})
|
||||||
|
+ set(OV_CPACK_PLUGINSDIR ${OV_CPACK_RUNTIMEDIR}/${PROJECT_NAME})
|
||||||
|
endmacro()
|
||||||
|
|
||||||
|
ov_archive_cpack_set_dirs()
|
||||||
|
Index: openvino-2024.0.0/src/cmake/openvino.cmake
|
||||||
|
===================================================================
|
||||||
|
--- openvino-2024.0.0.orig/src/cmake/openvino.cmake
|
||||||
|
+++ openvino-2024.0.0/src/cmake/openvino.cmake
|
||||||
|
@@ -254,6 +254,7 @@ if(ENABLE_PKGCONFIG_GEN)
|
||||||
|
|
||||||
|
# define relative paths
|
||||||
|
file(RELATIVE_PATH PKGCONFIG_OpenVINO_PREFIX "/${OV_CPACK_RUNTIMEDIR}/pkgconfig" "/")
|
||||||
|
+ cmake_path(NORMAL_PATH PKGCONFIG_OpenVINO_PREFIX)
|
||||||
|
|
||||||
|
set(pkgconfig_in "${OpenVINO_SOURCE_DIR}/cmake/templates/openvino.pc.in")
|
||||||
|
if(CMAKE_VERSION VERSION_GREATER_EQUAL 3.20 AND OV_GENERATOR_MULTI_CONFIG)
|
12
openvino-onnx-ml-defines.patch
Normal file
12
openvino-onnx-ml-defines.patch
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
Index: openvino-2024.0.0/thirdparty/dependencies.cmake
|
||||||
|
===================================================================
|
||||||
|
--- openvino-2024.0.0.orig/thirdparty/dependencies.cmake
|
||||||
|
+++ openvino-2024.0.0/thirdparty/dependencies.cmake
|
||||||
|
@@ -482,6 +482,7 @@ if(ENABLE_OV_ONNX_FRONTEND)
|
||||||
|
|
||||||
|
if(ONNX_FOUND)
|
||||||
|
# conan and vcpkg create imported targets 'onnx' and 'onnx_proto'
|
||||||
|
+ add_compile_definitions(ONNX_ML=1)
|
||||||
|
else()
|
||||||
|
add_subdirectory(thirdparty/onnx)
|
||||||
|
endif()
|
4
openvino-rpmlintrc
Normal file
4
openvino-rpmlintrc
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
addFilter("openvino-sample.*: E: devel-file-in-non-devel-package")
|
||||||
|
|
||||||
|
# These files are part of samples, meant for the user to copy and re-use, so env based hashbangs are preferred
|
||||||
|
addFilter("openvino-sample.*: E: env-script-interpreter")
|
57
openvino.changes
Normal file
57
openvino.changes
Normal file
@ -0,0 +1,57 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Apr 23 12:42:32 UTC 2024 - Atri Bhattacharya <badshah400@gmail.com>
|
||||||
|
|
||||||
|
- Switch to _service file as tagged Source tarball does not
|
||||||
|
include `./thirdparty` submodules.
|
||||||
|
- Update openvino-fix-install-paths.patch to fix python module
|
||||||
|
install path.
|
||||||
|
- Enable python module and split it out into a python subpackage
|
||||||
|
(for now default python3 only).
|
||||||
|
- Explicitly build python metadata (dist-info) and install it
|
||||||
|
(needs simple sed hackery to support "officially" unsupported
|
||||||
|
platform ppc64le).
|
||||||
|
- Specify ENABLE_JS=OFF to turn off javascript bindings as
|
||||||
|
building these requires downloading npm stuff from the network.
|
||||||
|
- Build with system pybind11.
|
||||||
|
- Bump _constraints for updated disk space requirements.
|
||||||
|
- Drop empty %check section, rpmlint was misleading when it
|
||||||
|
recommended adding this.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Apr 19 08:08:02 UTC 2024 - Atri Bhattacharya <badshah400@gmail.com>
|
||||||
|
|
||||||
|
- Numerous specfile cleanups:
|
||||||
|
* Drop redundant `mv` commands and use `install` where
|
||||||
|
appropriate.
|
||||||
|
* Build with system protobuf.
|
||||||
|
* Fix Summary tags.
|
||||||
|
* Trim package descriptions.
|
||||||
|
* Drop forcing CMAKE_BUILD_TYPE=Release, let macro default
|
||||||
|
RelWithDebInfo be used instead.
|
||||||
|
* Correct naming of shared library packages.
|
||||||
|
* Separate out libopenvino_c.so.* into own shared lib package.
|
||||||
|
* Drop rpmlintrc rule used to hide shlib naming mistakes.
|
||||||
|
* Rename Source tarball to %{name}-%{version}.EXT pattern.
|
||||||
|
* Use ldconfig_scriptlet macro for post(un).
|
||||||
|
- Add openvino-onnx-ml-defines.patch -- Define ONNX_ML at compile
|
||||||
|
time when using system onnx to allow using 'onnx-ml.pb.h'
|
||||||
|
instead of 'onnx.pb.h', the latter not being shipped with
|
||||||
|
openSUSE's onnx-devel package (gh#onnx/onnx#3074).
|
||||||
|
- Add openvino-fix-install-paths.patch: Change hard-coded install
|
||||||
|
paths in upstream cmake macro to standard Linux dirs.
|
||||||
|
- Add openvino-ComputeLibrary-include-string.patch: Include header
|
||||||
|
for std::string.
|
||||||
|
- Add external devel packages as Requires for openvino-devel.
|
||||||
|
- Pass -Wl,-z,noexecstack to %build_ldflags to avoid an exec stack
|
||||||
|
issue with intel CPU plugin.
|
||||||
|
- Use ninja for build.
|
||||||
|
- Adapt _constraits file for correct disk space and memory
|
||||||
|
requirements.
|
||||||
|
- Add empty %check section.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Apr 15 03:18:33 UTC 2024 - Alessandro de Oliveira Faria <cabelo@opensuse.org>
|
||||||
|
|
||||||
|
- Initial package
|
||||||
|
- Version 2024.0.0
|
||||||
|
- Add openvino-rpmlintrc.
|
4
openvino.obsinfo
Normal file
4
openvino.obsinfo
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
name: openvino
|
||||||
|
version: 2024.0.0
|
||||||
|
mtime: 1708605048
|
||||||
|
commit: 34caeefd07800b59065345d651949efbe8ab6649
|
399
openvino.spec
Normal file
399
openvino.spec
Normal file
@ -0,0 +1,399 @@
|
|||||||
|
#
|
||||||
|
# spec file for package openvino
|
||||||
|
#
|
||||||
|
# Copyright (c) 2024 SUSE LLC
|
||||||
|
# Copyright (c) 2024 Alessandro de Oliveira Faria (A.K.A. CABELO) <cabelo@opensuse.org> or <alessandro.faria@owasp.org>
|
||||||
|
#
|
||||||
|
# All modifications and additions to the file contributed by third parties
|
||||||
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
|
# upon. The license for this file, and modifications and additions to the
|
||||||
|
# file, is the same license as for the pristine package itself (unless the
|
||||||
|
# license for the pristine package is not an Open Source License, in which
|
||||||
|
# case the license is the MIT License). An "Open Source License" is a
|
||||||
|
# license that conforms to the Open Source Definition (Version 1.9)
|
||||||
|
# published by the Open Source Initiative.
|
||||||
|
|
||||||
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||||
|
#
|
||||||
|
|
||||||
|
|
||||||
|
# Compilation takes ~1 hr on OBS for a single python, don't try all supported flavours
|
||||||
|
%define pythons python3
|
||||||
|
%define __builder ninja
|
||||||
|
%define so_ver 2400
|
||||||
|
%define shlib lib%{name}%{so_ver}
|
||||||
|
%define shlib_c lib%{name}_c%{so_ver}
|
||||||
|
%define prj_name OpenVINO
|
||||||
|
Name: openvino
|
||||||
|
Version: 2024.0.0
|
||||||
|
Release: 0
|
||||||
|
Summary: A toolkit for optimizing and deploying AI inference
|
||||||
|
License: Apache-2.0
|
||||||
|
URL: https://github.com/openvinotoolkit/openvino
|
||||||
|
Source0: %{name}-%{version}.tar.zst
|
||||||
|
Source1: %{name}-rpmlintrc
|
||||||
|
# PATCH-FEATURE-OPENSUSE openvino-onnx-ml-defines.patch badshah400@gmail.com -- Define ONNX_ML at compile time when using system onnx to allow using 'onnx-ml.pb.h' instead of 'onnx.pb.h', the latter not being shipped with openSUSE's onnx-devel package
|
||||||
|
Patch0: openvino-onnx-ml-defines.patch
|
||||||
|
# PATCH-FEATURE-OPENSUSE openvino-fix-install-paths.patch badshah400@gmail.com -- Fix installation paths hardcoded into upstream defined cmake macros
|
||||||
|
Patch2: openvino-fix-install-paths.patch
|
||||||
|
# PATCH-FIX-UPSTREAM openvino-ComputeLibrary-include-string.patch badshah400@gmail.com -- Include header for std::string
|
||||||
|
Patch3: openvino-ComputeLibrary-include-string.patch
|
||||||
|
BuildRequires: ade-devel
|
||||||
|
BuildRequires: cmake
|
||||||
|
BuildRequires: fdupes
|
||||||
|
BuildRequires: gcc-c++
|
||||||
|
BuildRequires: ninja
|
||||||
|
BuildRequires: opencl-cpp-headers
|
||||||
|
# FIXME: /usr/include/onnx/onnx-ml.pb.h:17:2: error: This file was generated by
|
||||||
|
# an older version of protoc which is incompatible with your Protocol Buffer
|
||||||
|
# headers. Please regenerate this file with a newer version of protoc.
|
||||||
|
#BuildRequires: cmake(ONNX)
|
||||||
|
BuildRequires: pkgconfig
|
||||||
|
BuildRequires: zstd
|
||||||
|
BuildRequires: pkgconfig(OpenCL-Headers)
|
||||||
|
BuildRequires: pkgconfig(flatbuffers)
|
||||||
|
BuildRequires: pkgconfig(libva)
|
||||||
|
BuildRequires: pkgconfig(nlohmann_json)
|
||||||
|
BuildRequires: pkgconfig(ocl-icd)
|
||||||
|
BuildRequires: pkgconfig(protobuf)
|
||||||
|
BuildRequires: pkgconfig(pugixml)
|
||||||
|
BuildRequires: pkgconfig(snappy)
|
||||||
|
BuildRequires: pkgconfig(tbb)
|
||||||
|
BuildRequires: pkgconfig(zlib)
|
||||||
|
BuildRequires: python-rpm-macros
|
||||||
|
BuildRequires: %{python_module devel}
|
||||||
|
BuildRequires: %{python_module pip}
|
||||||
|
BuildRequires: %{python_module pybind11-devel}
|
||||||
|
BuildRequires: %{python_module setuptools}
|
||||||
|
BuildRequires: %{python_module wheel}
|
||||||
|
%ifarch %{arm64}
|
||||||
|
BuildRequires: scons
|
||||||
|
%endif
|
||||||
|
# No 32-bit support
|
||||||
|
ExcludeArch: %{ix86} %{arm32} ppc
|
||||||
|
%define python_subpackage_only 1
|
||||||
|
%python_subpackages
|
||||||
|
|
||||||
|
%description
|
||||||
|
OpenVINO is an open-source toolkit for optimizing and deploying AI inference.
|
||||||
|
|
||||||
|
## Main shared libs and devel pkg ##
|
||||||
|
#
|
||||||
|
%package -n %{shlib}
|
||||||
|
Summary: Shared library for OpenVINO toolkit
|
||||||
|
|
||||||
|
%description -n %{shlib}
|
||||||
|
OpenVINO is an open-source toolkit for optimizing and deploying AI inference.
|
||||||
|
|
||||||
|
This package provides the shared library for OpenVINO.
|
||||||
|
|
||||||
|
#
|
||||||
|
%package -n %{shlib_c}
|
||||||
|
Summary: Shared C library for OpenVINO toolkit
|
||||||
|
|
||||||
|
%description -n %{shlib_c}
|
||||||
|
This package provides the C library for OpenVINO.
|
||||||
|
|
||||||
|
#
|
||||||
|
%package -n %{name}-devel
|
||||||
|
Summary: Headers and sources for OpenVINO toolkit
|
||||||
|
Requires: %{shlib_c} = %{version}
|
||||||
|
Requires: %{shlib} = %{version}
|
||||||
|
Requires: lib%{name}_ir_frontend%{so_ver} = %{version}
|
||||||
|
Requires: lib%{name}_onnx_frontend%{so_ver} = %{version}
|
||||||
|
Requires: lib%{name}_paddle_frontend%{so_ver} = %{version}
|
||||||
|
Requires: lib%{name}_pytorch_frontend%{so_ver} = %{version}
|
||||||
|
Requires: lib%{name}_tensorflow_frontend%{so_ver} = %{version}
|
||||||
|
Requires: lib%{name}_tensorflow_lite_frontend%{so_ver} = %{version}
|
||||||
|
Requires: pkgconfig(OpenCL-Headers)
|
||||||
|
Requires: pkgconfig(flatbuffers)
|
||||||
|
Requires: pkgconfig(libva)
|
||||||
|
Requires: pkgconfig(nlohmann_json)
|
||||||
|
Requires: pkgconfig(ocl-icd)
|
||||||
|
Requires: pkgconfig(protobuf)
|
||||||
|
Requires: pkgconfig(pugixml)
|
||||||
|
Requires: pkgconfig(snappy)
|
||||||
|
Requires: pkgconfig(tbb)
|
||||||
|
Recommends: %{name}-auto-batch-plugin = %{version}
|
||||||
|
Recommends: %{name}-auto-plugin = %{version}
|
||||||
|
Recommends: %{name}-hetero-plugin = %{version}
|
||||||
|
Recommends: %{name}-intel-cpu-plugin = %{version}
|
||||||
|
|
||||||
|
%description -n %{name}-devel
|
||||||
|
OpenVINO is an open-source toolkit for optimizing and deploying AI inference.
|
||||||
|
|
||||||
|
This package provides the headers and sources for developing applications with
|
||||||
|
OpenVINO.
|
||||||
|
|
||||||
|
## Plugins ##
|
||||||
|
#
|
||||||
|
%package -n %{name}-arm-cpu-plugin
|
||||||
|
Summary: Intel CPU plugin for OpenVINO toolkit
|
||||||
|
|
||||||
|
%description -n %{name}-arm-cpu-plugin
|
||||||
|
OpenVINO is an open-source toolkit for optimizing and deploying AI inference.
|
||||||
|
|
||||||
|
This package provides the ARM CPU plugin for OpenVINO on %{arm64} archs.
|
||||||
|
|
||||||
|
#
|
||||||
|
%package -n %{name}-auto-plugin
|
||||||
|
Summary: Auto / Multi software plugin for OpenVINO toolkit
|
||||||
|
|
||||||
|
%description -n %{name}-auto-plugin
|
||||||
|
OpenVINO is an open-source toolkit for optimizing and deploying AI inference.
|
||||||
|
|
||||||
|
This package provides the Auto / Multi software plugin for OpenVINO.
|
||||||
|
|
||||||
|
#
|
||||||
|
%package -n %{name}-auto-batch-plugin
|
||||||
|
Summary: Automatic batch software plugin for OpenVINO toolkit
|
||||||
|
|
||||||
|
%description -n %{name}-auto-batch-plugin
|
||||||
|
OpenVINO is an open-source toolkit for optimizing and deploying AI inference.
|
||||||
|
|
||||||
|
This package provides the automatic batch software plugin for OpenVINO.
|
||||||
|
|
||||||
|
#
|
||||||
|
%package -n %{name}-hetero-plugin
|
||||||
|
Summary: Hetero frontend for Intel OpenVINO toolkit
|
||||||
|
|
||||||
|
%description -n %{name}-hetero-plugin
|
||||||
|
OpenVINO is an open-source toolkit for optimizing and deploying AI inference.
|
||||||
|
|
||||||
|
This package provides the hetero frontend for OpenVINO.
|
||||||
|
|
||||||
|
#
|
||||||
|
%package -n %{name}-intel-cpu-plugin
|
||||||
|
Summary: Intel CPU plugin for OpenVINO toolkit
|
||||||
|
|
||||||
|
%description -n %{name}-intel-cpu-plugin
|
||||||
|
OpenVINO is an open-source toolkit for optimizing and deploying AI inference.
|
||||||
|
|
||||||
|
This package provides the intel CPU plugin for OpenVINO for %{x86_64} archs.
|
||||||
|
|
||||||
|
## Frontend shared libs ##
|
||||||
|
#
|
||||||
|
%package -n lib%{name}_ir_frontend%{so_ver}
|
||||||
|
Summary: Paddle frontend for Intel OpenVINO toolkit
|
||||||
|
|
||||||
|
%description -n lib%{name}_ir_frontend%{so_ver}
|
||||||
|
OpenVINO is an open-source toolkit for optimizing and deploying AI inference.
|
||||||
|
|
||||||
|
This package provides the ir frontend for OpenVINO.
|
||||||
|
|
||||||
|
#
|
||||||
|
%package -n lib%{name}_onnx_frontend%{so_ver}
|
||||||
|
Summary: Onnx frontend for OpenVINO toolkit
|
||||||
|
|
||||||
|
%description -n lib%{name}_onnx_frontend%{so_ver}
|
||||||
|
OpenVINO is an open-source toolkit for optimizing and deploying AI inference.
|
||||||
|
|
||||||
|
This package provides the onnx frontend for OpenVINO.
|
||||||
|
|
||||||
|
#
|
||||||
|
%package -n lib%{name}_paddle_frontend%{so_ver}
|
||||||
|
Summary: Paddle frontend for Intel OpenVINO toolkit
|
||||||
|
|
||||||
|
%description -n lib%{name}_paddle_frontend%{so_ver}
|
||||||
|
OpenVINO is an open-source toolkit for optimizing and deploying AI inference.
|
||||||
|
|
||||||
|
This package provides the paddle frontend for OpenVINO.
|
||||||
|
|
||||||
|
#
|
||||||
|
%package -n lib%{name}_pytorch_frontend%{so_ver}
|
||||||
|
Summary: PyTorch frontend for OpenVINO toolkit
|
||||||
|
|
||||||
|
%description -n lib%{name}_pytorch_frontend%{so_ver}
|
||||||
|
OpenVINO is an open-source toolkit for optimizing and deploying AI inference.
|
||||||
|
|
||||||
|
This package provides the pytorch frontend for OpenVINO.
|
||||||
|
|
||||||
|
#
|
||||||
|
%package -n lib%{name}_tensorflow_frontend%{so_ver}
|
||||||
|
Summary: TensorFlow frontend for OpenVINO toolkit
|
||||||
|
|
||||||
|
%description -n lib%{name}_tensorflow_frontend%{so_ver}
|
||||||
|
OpenVINO is an open-source toolkit for optimizing and deploying AI inference.
|
||||||
|
|
||||||
|
This package provides the tensorflow frontend for OpenVINO.
|
||||||
|
|
||||||
|
#
|
||||||
|
%package -n lib%{name}_tensorflow_lite_frontend%{so_ver}
|
||||||
|
Summary: TensorFlow Lite frontend for OpenVINO toolkit
|
||||||
|
|
||||||
|
%description -n lib%{name}_tensorflow_lite_frontend%{so_ver}
|
||||||
|
OpenVINO is an open-source toolkit for optimizing and deploying AI inference.
|
||||||
|
|
||||||
|
This package provides the tensorflow-lite frontend for OpenVINO.
|
||||||
|
|
||||||
|
## Python module ##
|
||||||
|
#
|
||||||
|
%package -n python-openvino
|
||||||
|
Summary: Python module for openVINO toolkit
|
||||||
|
Requires: python-numpy < 2
|
||||||
|
Requires: python-openvino-telemetry
|
||||||
|
|
||||||
|
%description -n python-openvino
|
||||||
|
OpenVINO is an open-source toolkit for optimizing and deploying AI inference.
|
||||||
|
|
||||||
|
This package provides a Python module for interfacing with openVINO toolkit.
|
||||||
|
|
||||||
|
|
||||||
|
## Samples/examples ##
|
||||||
|
#
|
||||||
|
%package -n %{name}-sample
|
||||||
|
Summary: Samples for use with OpenVINO toolkit
|
||||||
|
BuildArch: noarch
|
||||||
|
|
||||||
|
%description -n %{name}-sample
|
||||||
|
OpenVINO is an open-source toolkit for optimizing and deploying AI inference.
|
||||||
|
|
||||||
|
This package provides some samples for use with openVINO.
|
||||||
|
#
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%autosetup -p1
|
||||||
|
|
||||||
|
%build
|
||||||
|
# Otherwise intel_cpu plugin declares an executable stack
|
||||||
|
%ifarch %{x86_64}
|
||||||
|
%define build_ldflags -Wl,-z,noexecstack
|
||||||
|
%endif
|
||||||
|
%cmake \
|
||||||
|
-DCMAKE_CXX_STANDARD=17 \
|
||||||
|
-DBUILD_SHARED_LIBS=ON \
|
||||||
|
-DENABLE_OV_ONNX_FRONTEND=ON \
|
||||||
|
-DENABLE_OV_PADDLE_FRONTEND=ON \
|
||||||
|
-DENABLE_OV_PYTORCH_FRONTEND=ON \
|
||||||
|
-DENABLE_OV_IR_FRONTEND=ON \
|
||||||
|
-DENABLE_OV_TF_FRONTEND=ON \
|
||||||
|
-DENABLE_OV_TF_LITE_FRONTEND=ON \
|
||||||
|
-DENABLE_INTEL_GPU=OFF \
|
||||||
|
-DENABLE_JS=OFF \
|
||||||
|
-DENABLE_PYTHON=ON \
|
||||||
|
-DENABLE_WHEEL=OFF \
|
||||||
|
-DENABLE_SYSTEM_OPENCL=ON \
|
||||||
|
-DENABLE_SYSTEM_PROTOBUF=ON \
|
||||||
|
-DENABLE_SYSTEM_PUGIXML=ON \
|
||||||
|
-DENABLE_SYSTEM_SNAPPY=ON \
|
||||||
|
-DENABLE_SYSTEM_TBB=ON \
|
||||||
|
-DONNX_USE_PROTOBUF_SHARED_LIBS=ON \
|
||||||
|
-DProtobuf_USE_STATIC_LIBS=OFF \
|
||||||
|
%{nil}
|
||||||
|
%cmake_build
|
||||||
|
# Manually generate dist-info dir
|
||||||
|
export WHEEL_VERSION=%{version} \
|
||||||
|
BUILD_TYPE=RelWithDebInfo
|
||||||
|
%ifarch %{power64}
|
||||||
|
# Manual hackery for power64 because it not "officially" supported
|
||||||
|
sed -i "s/{ARCH}/%{_arch}/" ../src/bindings/python/wheel/setup.py
|
||||||
|
%endif
|
||||||
|
%python_exec ../src/bindings/python/wheel/setup.py dist_info -o ../
|
||||||
|
|
||||||
|
%install
|
||||||
|
%cmake_install
|
||||||
|
|
||||||
|
rm %{buildroot}%{_datadir}/%{prj_name}/samples/cpp/thirdparty/nlohmann_json/.cirrus.yml
|
||||||
|
|
||||||
|
# Hash-bangs in non-exec python sample scripts
|
||||||
|
sed -Ei "1{\@/usr/bin/env@d}" \
|
||||||
|
%{buildroot}%{_datadir}/%{prj_name}/samples/python/benchmark/bert_benchmark/bert_benchmark.py \
|
||||||
|
%{buildroot}%{_datadir}/%{prj_name}/samples/python/benchmark/sync_benchmark/sync_benchmark.py \
|
||||||
|
%{buildroot}%{_datadir}/%{prj_name}/samples/python/benchmark/throughput_benchmark/throughput_benchmark.py \
|
||||||
|
%{buildroot}%{_datadir}/%{prj_name}/samples/python/classification_sample_async/classification_sample_async.py \
|
||||||
|
%{buildroot}%{_datadir}/%{prj_name}/samples/python/hello_classification/hello_classification.py \
|
||||||
|
%{buildroot}%{_datadir}/%{prj_name}/samples/python/hello_query_device/hello_query_device.py \
|
||||||
|
%{buildroot}%{_datadir}/%{prj_name}/samples/python/hello_reshape_ssd/hello_reshape_ssd.py \
|
||||||
|
%{buildroot}%{_datadir}/%{prj_name}/samples/python/model_creation_sample/model_creation_sample.py
|
||||||
|
|
||||||
|
# Unnecessary if we get our package dependencies and lib paths right!
|
||||||
|
rm -fr %{buildroot}%{_prefix}/install_dependencies \
|
||||||
|
%{buildroot}%{_prefix}/setupvars.sh
|
||||||
|
|
||||||
|
%{python_expand rm %{buildroot}%{$python_sitearch}/requirements.txt
|
||||||
|
chmod -x %{buildroot}%{$python_sitearch}/%{name}/tools/ovc/ovc.py
|
||||||
|
cp -r %{name}-%{version}.dist-info %{buildroot}%{$python_sitearch}/
|
||||||
|
%fdupes %{buildroot}%{$python_sitearch}/%{name}/
|
||||||
|
}
|
||||||
|
|
||||||
|
%fdupes %{buildroot}%{_datadir}/
|
||||||
|
|
||||||
|
# We do not use bundled thirdparty libs
|
||||||
|
rm -fr %{buildroot}%{_datadir}/licenses/*
|
||||||
|
|
||||||
|
%ldconfig_scriptlets -n %{shlib}
|
||||||
|
%ldconfig_scriptlets -n %{shlib_c}
|
||||||
|
%ldconfig_scriptlets -n lib%{name}_ir_frontend%{so_ver}
|
||||||
|
%ldconfig_scriptlets -n lib%{name}_onnx_frontend%{so_ver}
|
||||||
|
%ldconfig_scriptlets -n lib%{name}_paddle_frontend%{so_ver}
|
||||||
|
%ldconfig_scriptlets -n lib%{name}_pytorch_frontend%{so_ver}
|
||||||
|
%ldconfig_scriptlets -n lib%{name}_tensorflow_lite_frontend%{so_ver}
|
||||||
|
%ldconfig_scriptlets -n lib%{name}_tensorflow_frontend%{so_ver}
|
||||||
|
|
||||||
|
%files -n %{shlib}
|
||||||
|
%license LICENSE
|
||||||
|
%{_libdir}/libopenvino.so.*
|
||||||
|
|
||||||
|
%files -n %{shlib_c}
|
||||||
|
%license LICENSE
|
||||||
|
%{_libdir}/libopenvino_c.so.*
|
||||||
|
|
||||||
|
%files -n %{name}-auto-batch-plugin
|
||||||
|
%dir %{_libdir}/%{prj_name}
|
||||||
|
%{_libdir}/%{prj_name}/libopenvino_auto_batch_plugin.so
|
||||||
|
|
||||||
|
%files -n %{name}-auto-plugin
|
||||||
|
%dir %{_libdir}/%{prj_name}
|
||||||
|
%{_libdir}/%{prj_name}/libopenvino_auto_plugin.so
|
||||||
|
|
||||||
|
%ifarch %{x86_64}
|
||||||
|
%files -n %{name}-intel-cpu-plugin
|
||||||
|
%dir %{_libdir}/%{prj_name}
|
||||||
|
%{_libdir}/%{prj_name}/libopenvino_intel_cpu_plugin.so
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%ifarch %{arm64}
|
||||||
|
%files -n %{name}-arm-cpu-plugin
|
||||||
|
%dir %{_libdir}/%{prj_name}
|
||||||
|
%{_libdir}/%{prj_name}/libopenvino_arm_cpu_plugin.so
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%files -n %{name}-hetero-plugin
|
||||||
|
%dir %{_libdir}/%{prj_name}
|
||||||
|
%{_libdir}/%{prj_name}/libopenvino_hetero_plugin.so
|
||||||
|
|
||||||
|
%files -n lib%{name}_onnx_frontend%{so_ver}
|
||||||
|
%{_libdir}/libopenvino_onnx_frontend.so.*
|
||||||
|
|
||||||
|
%files -n lib%{name}_ir_frontend%{so_ver}
|
||||||
|
%{_libdir}/libopenvino_ir_frontend.so.*
|
||||||
|
|
||||||
|
%files -n lib%{name}_paddle_frontend%{so_ver}
|
||||||
|
%{_libdir}/libopenvino_paddle_frontend.so.*
|
||||||
|
|
||||||
|
%files -n lib%{name}_pytorch_frontend%{so_ver}
|
||||||
|
%{_libdir}/libopenvino_pytorch_frontend.so.*
|
||||||
|
|
||||||
|
%files -n lib%{name}_tensorflow_frontend%{so_ver}
|
||||||
|
%{_libdir}/libopenvino_tensorflow_frontend.so.*
|
||||||
|
|
||||||
|
%files -n lib%{name}_tensorflow_lite_frontend%{so_ver}
|
||||||
|
%{_libdir}/libopenvino_tensorflow_lite_frontend.so.*
|
||||||
|
|
||||||
|
%files -n %{name}-sample
|
||||||
|
%license LICENSE
|
||||||
|
%{_datadir}/%{prj_name}/
|
||||||
|
|
||||||
|
%files -n %{name}-devel
|
||||||
|
%license LICENSE
|
||||||
|
%{_includedir}/%{name}/
|
||||||
|
%{_libdir}/cmake/%{prj_name}/
|
||||||
|
%{_libdir}/*.so
|
||||||
|
%{_libdir}/pkgconfig/openvino.pc
|
||||||
|
|
||||||
|
%files %{python_files openvino}
|
||||||
|
%license LICENSE
|
||||||
|
%{python_sitearch}/openvino/
|
||||||
|
%{python_sitearch}/openvino*-info/
|
||||||
|
|
||||||
|
%changelog
|
Loading…
Reference in New Issue
Block a user