Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
devel:kubic:ei-demo
ngraph
ngraph.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File ngraph.spec of Package ngraph
# # spec file for package ngraph # # 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/ # %define for_dldt_only 1 Name: ngraph Version: 0.29.0 Release: 0 Summary: C++ library, compiler and runtime for Deep Learning License: Apache-2.0 URL: https://github.com/NervanaSystems/ngraph Source0: ngraph-0.29.0-rc.0.tar.gz Patch0: ngraph-rpm.patch Patch1: ngraph-version.patch BuildRequires: binutils-gold BuildRequires: cmake BuildRequires: gcc-c++ BuildRequires: gtest BuildRequires: nlohmann_json-devel %if !%{for_dldt_only} BuildRequires: clang-devel BuildRequires: eigen-devel BuildRequires: gmock BuildRequires: mkl-dnn-devel BuildRequires: tbb-devel %endif %description nGraph - open source C++ library, compiler and runtime for Deep Learning %package devel Summary: Devel components for the ngraph package Requires: libngraph0_29 = %{version} %description devel Devel components for the ngraph package. %package -n libngraph0_29 Summary: Ngraph runtime library %description -n libngraph0_29 Shared library for the ngraph package. %prep %setup -q -n ngraph-0.29.0-rc.0 %patch0 -p1 %patch1 -p1 %build mkdir -p build pushd build # C_FLAGS from %%cmake macro does not work 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" \ %endif -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" \ -DNGRAPH_LIB_VERSIONING_ENABLE=TRUE \ -DNGRAPH_USE_PREBUILT_LLVM=TRUE \ -DNGRAPH_USE_LEGACY_MKLDNN=OFF \ -DNGRAPH_STATIC_LIB_ENABLE=OFF \ -DNGRAPH_WARNINGS_AS_ERRORS=OFF \ -DNGRAPH_NATIVE_ARCH_ENABLE=FALSE \ %if %{for_dldt_only} -DNGRAPH_UNIT_TEST_ENABLE=OFF \ -DNGRAPH_TOOLS_ENABLE=OFF \ -DNGRAPH_CPU_ENABLE=FALSE \ %else -DNGRAPH_UNIT_TEST_ENABLE=ON \ -DNGRAPH_TOOLS_ENABLE=ON \ -DNGRAPH_CPU_ENABLE=TRUE \ %endif -DCMAKE_BUILD_TYPE=Release \ -DNGRAPH_VERSION_LABEL="v0.29.0-rc.0+b8419c3" %make_build #make VERBOSE=1 %install cd build %make_install mkdir -p %{buildroot}%{_libdir}/cmake mv %{buildroot}%{_prefix}/cmake %{buildroot}%{_libdir}/cmake/ngraph rm -rf %{buildroot}%{_prefix}/licenses rm %{buildroot}%{_prefix}/LICENSE rm %{buildroot}%{_prefix}/VERSION rm %{buildroot}%{_libdir}/libngraph_test_util.a %post -n libngraph0_29 -p /sbin/ldconfig %postun -n libngraph0_29 -p /sbin/ldconfig %files devel %{_libdir}/cmake/ngraph %{_includedir}/ngraph %{_libdir}/lib*.so #/usr/bin/nbench %files -n libngraph0_29 %license LICENSE %{_libdir}/libgcpu_backend.so.0.29* %{_libdir}/libinterpreter_backend.so.0.29* %{_libdir}/libngraph.so.0.29* %{_libdir}/libnop_backend.so.0.29* %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