Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
devel:kubic:ei-demo
dldt
dldt.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File dldt.spec of Package dldt
# # spec file for package dldt # # Copyright (c) 2020 SUSE LLC # # 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/ # %ifarch x86_64 %define with_clDNN 1 %else %define with_clDNN 0 %endif Name: dldt Version: 2020.1 Release: 0 Summary: Deep Learning Deployment Toolkit License: Apache-2.0 AND BSD-3-Clause AND MIT URL: https://github.com/opencv/dldt Source0: dldt-2020.1.tar.gz Patch0: disable-Werror.patch Patch1: use-external-ade.patch Patch2: use-external-ngraph.patch Patch3: link-ngraph.patch Patch4: fix-install-paths.patch Patch5: myriad-firmware-path.patch Patch6: disable-myriad-firmware.patch Patch7: no-rpath.patch Patch8: enable-CPU-on-arm.patch BuildRequires: ade-devel BuildRequires: cmake BuildRequires: gcc-c++ BuildRequires: libusb-1_0-devel BuildRequires: ngraph-devel BuildRequires: openSUSE-release BuildRequires: opencv-devel BuildRequires: python3-Cython BuildRequires: python3-devel BuildRequires: python3-numpy BuildRequires: python3-opencv BuildRequires: python3-progress BuildRequires: tbb-devel Requires: dldt-libs = %{version}-%{release} Requires: dldt-plugins = %{version}-%{release} Requires: dldt-udev = %{version}-%{release} Requires: python3-dldt = %{version}-%{release} %description OpenVINO™ Toolkit - Deep Learning Deployment Toolkit repository %package udev Summary: Udev rules for the myriad device License: Apache-2.0 AND BSD-3-Clause AND MIT %description udev Udev rules for the OpenVINO™ Toolkit - Deep Learning Deployment Toolkit (dldt) repository %package plugins Summary: Plugins components for the dldt package License: Apache-2.0 AND BSD-3-Clause AND MIT %description plugins Plugins for the OpenVINO™ Toolkit - Deep Learning Deployment Toolkit (dldt) repository The Myriad driver is compiled with the NO_BOOT option, the NCS2 needs to be bootet with myriadctl before. %package devel Summary: Development components for the dldt package License: Apache-2.0 AND BSD-3-Clause AND MIT Requires: dldt = %{version}-%{release} Requires: dldt-libs = %{version}-%{release} Requires: dldt-plugins = %{version}-%{release} %description devel Development files for the OpenVINO™ Toolkit - Deep Learning Deployment Toolkit (dldt) repository %package doc Summary: Documentation for the dldt package License: Apache-2.0 AND BSD-3-Clause AND MIT %description doc Documentation for the OpenVINO™ Toolkit - Deep Learning Deployment Toolkit (dldt) repository %package sample Summary: Sample tools for the dldt package License: Apache-2.0 AND BSD-3-Clause AND MIT Requires: python3-opencv %description sample Sample tools for the OpenVINO™ Toolkit - Deep Learning Deployment Toolkit (dldt) repository %package libs Summary: Libraries for the dldt package License: Apache-2.0 AND BSD-3-Clause AND MIT %description libs Libraries of the OpenVINO™ Toolkit - Deep Learning Deployment Toolkit (dldt) repository %package -n python3-dldt Summary: Python3 module for the dldt package License: Apache-2.0 AND BSD-3-Clause AND MIT %description -n python3-dldt Python3 module for the OpenVINO™ Toolkit - Deep Learning Deployment Toolkit (dldt) repository %package model-optimizer Summary: Model optimizer for the dldt package License: Apache-2.0 Requires: python3-defusedxml Requires: python3-networkx23 Requires: python3-numpy Requires: python3-protobuf361 Requires: python3-requests Requires: python3-test-generator %description model-optimizer Model optimizer for the OpenVINO™ Toolkit - Deep Learning Deployment Toolkit (dldt) repository %prep %setup -q %patch0 -p1 %patch1 -p1 %patch2 -p1 %patch3 -p1 %patch4 -p1 %patch5 -p1 %patch6 -p1 %patch7 -p1 %ifarch aarch64 %patch8 -p1 %endif %build export TBBROOT=%{_libdir} export OpenCV_DIR=%{_libdir}/cmake/opencv4 mkdir -p build pushd build cmake .. -Wno-dev \ -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \ -DINCLUDE_INSTALL_DIR:PATH=%{_includedir} \ -DLIB_INSTALL_DIR:PATH=%{_libdir} \ -DSYSCONF_INSTALL_DIR:PATH=%{_sysconfdir} \ -DSHARE_INSTALL_PREFIX:PATH=%{_datadir} \ -DCMAKE_INSTALL_LIBDIR:PATH=%{_libdir} \ -DCMAKE_BUILD_TYPE=RelWithDebInfo \ %if 0 -DCMAKE_C_FLAGS="${CFLAGS:-%{optflags}} -DNDEBUG" \ -DCMAKE_CXX_FLAGS="${CXXFLAGS:-%{optflags}} -DNDEBUG" \ -DCMAKE_EXE_LINKER_FLAGS="%{?build_ldflags} -Wl,--as-needed -Wl,--no-undefined -Wl,-z,now" \ -DCMAKE_MODULE_LINKER_FLAGS="%{?build_ldflags} -Wl,--as-needed" \ -DCMAKE_SHARED_LINKER_FLAGS="%{?build_ldflags} -Wl,--as-needed -Wl,--no-undefined -Wl,-z,now" \ %endif %ifnarch x86_64 -DENABLE_SSE42=OFF \ %endif %ifarch armv7l armv7hl -DTHREADING=SEQ \ %else -DTHREADING=TBB \ %endif -DTREAT_WARNING_AS_ERROR=OFF \ -DENABLE_CLDNN=%{with_clDNN} \ -DENABLE_INTEL_OMP=0 \ -DENABLE_OPENCV=OFF \ -DENABLE_NGRAPH=ON \ -DENABLE_SAMPLES_CORE=1 \ -DENABLE_PYTHON_BINDINGS=1 \ -DINSTALL_GMOCK=0 \ -DINSTALL_GTEST=0 \ -DBUILD_GMOCK=1 \ -DBUILD_GTEST=0 \ -DENABLE_PLUGIN_RPATH=0 \ -DENABLE_GNA=0 \ -DLLVM_LINK_LLVM_DYLIB=ON \ -DENABLE_VPU=ON \ -DENABLE_MYRIAD=ON \ -DENABLE_MYRIAD_NO_BOOT=ON \ -DENABLE_MYRIAD_MVNC_TESTS=OFF \ -DENABLE_TESTS=OFF \ -DENABLE_PYTHON=ON \ -DPYTHON_EXECUTABLE=%{_bindir}/python3 \ -DPYTHON_INCLUDE_DIR=$(python3 -c "import distutils.sysconfig; print(distutils.sysconfig.get_python_inc())") \ -DCMAKE_BUILD_TYPE=Release %make_build popd # Fix interpreter sed -i -e 's|/usr/bin/env python3|/usr/bin/python3|g' model-optimizer/*.py model-optimizer/mo/utils/*.py sed -i -e 's|/usr/bin/env python$|/usr/bin/python3|g' inference-engine/ie_bridges/python/sample/*/*.py sed -i -e 's|/usr/bin/env bash|/bin/bash|g' inference-engine/samples/build_samples.sh %install pushd build sed -i -e 's|\(.*inference_engine/external/tbb.*\)|#\1|g' inference-engine/src/inference_engine/cmake_install.cmake %make_install popd # Install missing libraries install -m 0644 bin/Release/lib/libformat_reader.so %{buildroot}%{_libdir} install -m 0644 bin/Release/lib/libopencv_c_wraper.so %{buildroot}%{_libdir} # Move devel from doc mkdir -p %{buildroot}%{_libdir}/cmake mv %{buildroot}/usr/share/doc/inference_engine/share %{buildroot}%{_libdir}/cmake/InferenceEngine mkdir -p %{buildroot}%{_includedir} mv %{buildroot}/usr/share/doc/inference_engine/include/ %{buildroot}%{_includedir}/inference_engine ## Remove excluded files rm -f %{buildroot}%{_includedir}/pugiconfig.hpp rm -f %{buildroot}%{_includedir}/pugixml.hpp rm -f %{buildroot}%{_libdir}/cache.json rm -f %{buildroot}%{_libdir}/cmake/pugixml/pugixml-config.cmake rm -f %{buildroot}%{_libdir}/cmake/pugixml/pugixml-config-release.cmake rm -f %{buildroot}%{_libdir}/pkgconfig/gflags.pc rm -f %{buildroot}%{_libdir}/libpugixml.a %if %{with_clDNN} rm -f %{buildroot}%{_prefix}/lib/libclDNN64.a rm -f %{buildroot}%{_libdir}/libclDNN64.a %endif rm -f %{buildroot}/usr/share/doc/inference_engine/samples/cpp/thirdparty/gflags/.??* rm -f %{buildroot}/usr/share/doc/inference_engine/samples/cpp/thirdparty/gflags/doc/.nojekyll # XXX in which subpackage? rm -rf %{buildroot}%{_libdir}/*custom_kernels # Install model-optimizer mkdir -p %{buildroot}%{_prefix}/lib/openvino cp -ar model-optimizer %{buildroot}%{_prefix}/lib/openvino/ chmod 755 %{buildroot}%{_prefix}/lib/openvino/model-optimizer/mo/utils/{convert.py,summarize_graph.py} # Install samples for i in benchmark_app classification_sample_async hello_classification hello_classification_c hello_nv12_input_classification hello_query_device hello_reshape_ssd object_detection_sample_ssd object_detection_sample_ssd_c speech_sample style_transfer_sample vpu_profile; do install -m 0755 bin/Release/$i %{buildroot}%{_bindir} done # Install python samples mkdir -p %{buildroot}%{_bindir} install -m 0755 inference-engine/ie_bridges/python/sample/classification_sample/classification_sample.py %{buildroot}%{_bindir} install -m 0755 inference-engine/ie_bridges/python/sample/classification_sample_async/classification_sample_async.py %{buildroot}%{_bindir} install -m 0755 inference-engine/ie_bridges/python/sample/hello_query_device/hello_query_device.py %{buildroot}%{_bindir} %files %doc README.md %files udev %{_prefix}/lib/udev/rules.d/97-myriad-usbboot.rules %files plugins %{_libdir}/plugins.xml %{_libdir}/libHeteroPlugin.so %{_libdir}/libMKLDNNPlugin.so %if %{with_clDNN} %{_libdir}/libclDNNPlugin.so %endif %{_libdir}/libmyriadPlugin.so %{_bindir}/myriad_* %{_bindir}/compile_tool %files devel %if %{with_clDNN} %{_includedir}/clDNN/ %endif %{_includedir}/inference_engine/ %dir %{_libdir}/cmake %dir %{_libdir}/cmake/InferenceEngine %{_libdir}/cmake/InferenceEngine/InferenceEngineConfig-version.cmake %{_libdir}/cmake/InferenceEngine/InferenceEngineConfig.cmake %{_libdir}/cmake/InferenceEngine/ie_parallel.cmake %files doc %defattr(0644,root,root,0755) %{_datadir}/doc/inference_engine/ %files sample %{_bindir}/benchmark_app %{_bindir}/classification_sample_async %{_bindir}/hello_classification %{_bindir}/hello_classification_c %{_bindir}/hello_nv12_input_classification %{_bindir}/hello_query_device %{_bindir}/hello_reshape_ssd %{_bindir}/object_detection_sample_ssd %{_bindir}/object_detection_sample_ssd_c %{_bindir}/speech_sample %{_bindir}/style_transfer_sample %{_bindir}/vpu_profile %{_bindir}/classification_sample.py %{_bindir}/classification_sample_async.py %{_bindir}/hello_query_device.py %files libs %license LICENSE %{_libdir}/libinference_engine.so %{_libdir}/libinference_engine_c_api.so %{_libdir}/libinference_engine_nn_builder.so %{_libdir}/libinference_engine_preproc.so %{_libdir}/libformat_reader.so %{_libdir}/libopencv_c_wraper.so %files -n python3-dldt %{_libdir}/python3*/* %files model-optimizer %license LICENSE %dir %{_prefix}/lib/openvino %{_prefix}/lib/openvino/model-optimizer %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor